saving . . . saved Enclosure created around the cylinder has been deleted. Enclosure created around the cylinder has been hidden .
Enclosure created around the cylinder
I want to know the following:
1. Since the cylinder is a solid entity, the enclosure is a surface body or a solid itself?
2. If the enclosure is a solid, then do i have to subtract the cylinder from the enclosure to be able to mesh the area external to the cylinder?
3. I am using SALOME. I used a solid body and a solid enclosure, specified the groups and generated the mesh. Later in the terminal i imported using ideasUnvToFoam and then used blockMesh then checkMesh commands. Till here it is all, the mesh is good, but when running the adjointShapeOptimizationFoam solver it shows FATAL ERROR. And i dont know what to do. Please help. Any suggestion will be helpful.

OpenFOAM Importing-mesh-file-in-OpenFOAM 01-02 min 10-20 sec 28-01-17, 8:21 p.m. Rawnap07


1) The enclosure is the farfield required to specify the atmospheric conditions. Yes, you may consider it as a solid body.
2) Yes, you must subtract.
3) Why did you use both ideasUnvToFoam and blockMesh commands? OnlyideasUnvToFoam is enough to import the mesh completely.

02-02-17, 11:13 a.m. viraj20feb
Sorry, I used ideasUnvToFoam and then checkMesh. I was reading about blockMesh so wrote in the problem by mistake.
02-02-17, 4:16 p.m. Rawnap07
Please give details about your error and elaborate about your test case. If possible, share a link to your files here
02-02-17, 4:23 p.m. viraj20feb
I have successfully constructed mesh (using SALOME) and then solved (using adjointshapeoptimisation in OpenFOAM) it for a small form factor of a vehicle body (100 mm * 150 mm). This was done just to get idea of the process and if any problem were to arise it would take less time to pop up. Since it ran fine, i kicked it up a notch and prepared a full scale model with no detailing. Geometry was imported in STL format as suggested by you sir.
Here i have attached 2 images, Error1 and Error2.
Creating mesh in SALOME:
1. For Error1 image file, the description is:
3D- Algorithm : Tetrahedron (Netgen)
Hypothesis : NETGEN 3D Parameters ---Very Fine
2D- Algorithm : Netgen 1D-2D
Hypothesis : NETGEN 2D Parameters ---Very Fine
2. For Error2 image file, the description is:
3D- Algorithm : Netgen 1D-2D-3D
Hypothesis : NETGEN 3D PARAMETERS ---Very Fine

I don't know what to make of it. Please assist.

06-02-17, 7:16 p.m. Rawnap07

I am unable to view or download the files which you uploaded. Please share them in Google Drive or email them to me on

06-02-17, 10:24 p.m. viraj20feb

Login to add comment

Log-in to answer to this question.