CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Mesh Utilities (http://www.cfd-online.com/Forums/openfoam-meshing-utilities/)
-   -   makeAxialMesh and axisymmetric flow (http://www.cfd-online.com/Forums/openfoam-meshing-utilities/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


All times are GMT -4. The time now is 15:40.