CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] makeAxialMesh and axisymmetric flow (https://www.cfd-online.com/Forums/openfoam-meshing/88956-makeaxialmesh-axisymmetric-flow.html)

yassepid May 31, 2011 05:54

makeAxialMesh and axisymmetric flow
 
I want to use the makeAxialMesh to create axisymmetric mesh
I compile the makeAxialMesh without error but my problem is that when I want to Run the Axialcavity testcase first I Run blockMesh then I Run makeAxialMesh -axis movingWall -wedge frontAndBack the mesh successfully is generated in folder 0.00125 then I RUN icoFoam without error but when I Run paraFoam I encounter bellow error


--> FOAM FATAL IO ERROR: keyword frontAndBack_pos is undefined in dictionary
"/home/ami/OpenFOAMŪ/ami-1.7.1/run/AXIALRUN/cavity/0.5/p::boundaryField" file: /home/ami/OpenFOAMŪ/ami-1.7.1/run/AXIALRUN/cavity/0.5/p::boundaryField from line 26 to line 34. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 456.
FOAM exiting


I think the reason of this error is that frontAndBack_pos and frontAndBack_neg are not exist in P and U that generated by icoFoam

please help me to run this axisymmetric testcase

gschaider May 31, 2011 13:11

Quote:

Originally Posted by yassepid (Post 309912)
I want to use the makeAxialMesh to create axisymmetric mesh
I compile the makeAxialMesh without error but my problem is that when I want to Run the Axialcavity testcase first I Run blockMesh then I Run makeAxialMesh -axis movingWall -wedge frontAndBack the mesh successfully is generated in folder 0.00125 then I RUN icoFoam without error but when I Run paraFoam I encounter bellow error


--> FOAM FATAL IO ERROR: keyword frontAndBack_pos is undefined in dictionary
"/home/ami/OpenFOAMŪ/ami-1.7.1/run/AXIALRUN/cavity/0.5/p::boundaryField" file: /home/ami/OpenFOAMŪ/ami-1.7.1/run/AXIALRUN/cavity/0.5/p::boundaryField from line 26 to line 34. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 456.
FOAM exiting


I think the reason of this error is that frontAndBack_pos and frontAndBack_neg are not exist in P and U that generated by icoFoam

please help me to run this axisymmetric testcase

Usually the best practice is that once you're sure that the mesh looks the way you want it to move it to constant/polyMesh. Having two meshes at different timesteps only causes confusion (unless you're doing moving mesh of course) If you're confident that makeAkialMash does everything you want it to you can have it write the mesh to t=0 with the -overwrite command line option.

Of course you'll have to adapt the fields to have all the patches that the mesh does (makeAxialMesh doesn't do this for you).

Bernhard

aminiyasser June 1, 2011 02:30

Dear Bernhard
 
Quote:

Originally Posted by gschaider (Post 310002)
Usually the best practice is that once you're sure that the mesh looks the way you want it to move it to constant/polyMesh. Having two meshes at different timesteps only causes confusion (unless you're doing moving mesh of course) If you're confident that makeAkialMash does everything you want it to you can have it write the mesh to t=0 with the -overwrite command line option.

Of course you'll have to adapt the fields to have all the patches that the mesh does (makeAxialMesh doesn't do this for you).

Bernhard

Dear gschaider

I Run the makeAxialMesh -axis movingWall -overwrite -wedge frontAndBack
then I run paraFoam
the mesh is corrected.

and after it I run
collapseEdges "2e-07" 5 -overwrite
but when I run icoFoam the flow filed not solved and U=0 for all time !!!!!!!!!!!



please help me


Best Regards
Yasser

aminiyasser April 24, 2013 01:27

Quote:

Originally Posted by aminiyasser (Post 310063)
Dear gschaider

I Run the makeAxialMesh -axis movingWall -overwrite -wedge frontAndBack
then I run paraFoam
the mesh is corrected.

and after it I run
collapseEdges "2e-07" 5 -overwrite
but when I run icoFoam the flow filed not solved and U=0 for all time !!!!!!!!!!!



please help me


Best Regards
Yasser

I Run the makeAxialMesh -axis movingWall -overwrite -wedge frontAndBack
then I run paraFoam
the mesh is corrected.

and after it I run
collapseEdges "2e-07" 5 -overwrite
but when I run icoFoam the flow filed not solved and U=0 for all time !!!!!!!!!!!

gschaider April 24, 2013 20:01

Quote:

Originally Posted by aminiyasser (Post 422729)
I Run the makeAxialMesh -axis movingWall -overwrite -wedge frontAndBack
then I run paraFoam
the mesh is corrected.

and after it I run
collapseEdges "2e-07" 5 -overwrite
but when I run icoFoam the flow filed not solved and U=0 for all time !!!!!!!!!!!

Sounds like a problem with the boundary conditions. Check those

cindyhere January 28, 2024 22:38

which version of openfoam are you using? does OpenFOAM 5.0 able to use this utility?
 
Quote:

Originally Posted by yassepid (Post 309912)
I want to use the makeAxialMesh to create axisymmetric mesh
I compile the makeAxialMesh without error but my problem is that when I want to Run the Axialcavity testcase first I Run blockMesh then I Run makeAxialMesh -axis movingWall -wedge frontAndBack the mesh successfully is generated in folder 0.00125 then I RUN icoFoam without error but when I Run paraFoam I encounter bellow error


--> FOAM FATAL IO ERROR: keyword frontAndBack_pos is undefined in dictionary
"/home/ami/OpenFOAMŪ/ami-1.7.1/run/AXIALRUN/cavity/0.5/p::boundaryField" file: /home/ami/OpenFOAMŪ/ami-1.7.1/run/AXIALRUN/cavity/0.5/p::boundaryField from line 26 to line 34. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 456.
FOAM exiting


I think the reason of this error is that frontAndBack_pos and frontAndBack_neg are not exist in P and U that generated by icoFoam

please help me to run this axisymmetric testcase

Hi,yassepid.

Good day.

I am currently trying to test the case with makeAxialMesh but failed to compile it.

I've already extracted the tar.gz file and put it under/application/utilities/mesh/manipulation.

then I entered the makeAxialMesh file with Make as subfile, and run wmake but it returned me with this error:

make: *** [makeAxialMesh.dep:337: Make/linux64GccDPOpt/makeAxialMesh.o] Error 1

while compiling OpenFOAM 2.0.0 it returned me errors as well though I was able to compile it.

Please advise me on this, thank you in advance.

Regards,
Cindy


All times are GMT -4. The time now is 13:11.