CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   MRFZonesC questions what is the mesh_V and why only Coriolis force no centrifugal force (https://www.cfd-online.com/Forums/openfoam-solving/58976-mrfzonesc-questions-what-mesh_v-why-only-coriolis-force-no-centrifugal-force.html)

waynezw0618 April 7, 2008 03:27

Hi i am sorry for the last i
 
Hi
i am sorry for the last image is vector of U on shroud wall,which is also the rotating zone like hub,and you can the angular velocity clearly here,and the same as HUB.
does that mean i have imposed the angular velocity to the boundary in a right way?

wayne

dmoroian April 7, 2008 03:54

Hi Wayne, Maybe I did not und
 
Hi Wayne,
Maybe I did not understand the MRFSimpleFoam solver very well, but I think you should set up the case in a different way.
First of all, in MRFZones I think you should specify the rotating zones not surfaces. In other words, IMPELLER should be the name of the zone containing all the cells that are in the rotating domain.
Second, in the patches dictionary you can put all the rotating boundaries (blades, hub, ...).
And that's it.

For instance, this is how I would setup an MRFZones file:

1
(
<blockquote>rotating
{
<blockquote>patches (rotor hub);
origin origin [0 1 0 0 0 0 0] (0 0 0);
axis axis [0 0 0 0 0 0 0] (0 0 -1);
omega omega [0 0 -1 0 0 0 0] 10.472;
}</blockquote>
)</blockquote>
I have considered a zone called rotating and two boundaries rotor and hub.

Dragos

waynezw0618 April 7, 2008 04:26

Hi so according to you,i s
 
Hi
so according to you,i should delete boundary by a faceSet? and make the boundary by defining them in patch dictionary MRFZones?
wayne

waynezw0618 April 7, 2008 04:52

i have just try your way ,and
 
i have just try your way ,and both yours and mine are face the problem. there is a error in the first step

--> FOAM FATAL ERROR : fixedValue is the wrong k patchField type for wall-functions on patch INLET
should be zeroGradient
wayne

waynezw0618 April 7, 2008 05:06

and if i change the k and epsi
 
and if i change the k and epsilon patchField to the zeroGradient, the calculation will divgence after about 200 steps. when i check the flow inside, there is some strange velocity:
http://www.cfd-online.com/OpenFOAM_D...ges/1/7235.jpg

can you help me ?

dmoroian April 7, 2008 06:04

It is normal to set zeroGradie
 
It is normal to set zeroGradient for k and epsilon at walls, since you are using standard k-epsilon turbulence modeling. Divergent solution means that you should start from a better initial solution. Start with potentialFoam. Then continue with simpleFoam, and then with MRFSimpleFoam but with very low angular velocity. After you have a solution, you can further increase the angular velocity until the value that you are looking for.

Dragos

waynezw0618 April 7, 2008 09:19

hi i will try.thanks! wo
 
hi

i will try.thanks!
would you mind to tell me more about the faceSet, i can not understand the both two faceSet in "mix2D".
for the last one i guess i will delete the boundary for the boundary will be patched,and the boundary condition is modified by the memberfuntion in the MRFZone.C.
what about the first one?why to creat all faces on the cellSet? and what is the "face",i have trid in my case that,if i creat faceZone with the set by "option all" , i will get n1 faces,if i creat facezone bying add whole surfaces of the Set.i will get n2 faces.and
n1>>n2.so what are the faces creat with the set by "option all"?why creat them?

waynezw0618 April 8, 2008 02:25

Hi Dragos: can you help me?
 
Hi Dragos:
can you help me?

dmoroian April 8, 2008 02:52

Very interesting questions, an
 
Very interesting questions, and I have to say 'I don't know the complete answers'. I checked what the makeMesh script does and here is what I understood:
  1. m4 <constant/polymesh/blockmeshdict.m4> constant/polyMesh/blockMeshDict - generate a blockMeshDict
  2. blockMesh .. mixerVessel2D - generate the mesh containing one zone of cells called 'rotor' (it seems there is a need for both cellZones and faceZones, so the face zone has to be generated too)
  3. cellSet .. mixerVessel2D - convert the zone 'rotor' to a set of cells
  4. cp system/faceSetDict_rotorFaces system/faceSetDict; faceSet .. mixerVessel2D - convert all the faces of the cells in the cell set into a set of faces
  5. cp system/faceSetDict_noBoundaryFaces system/faceSetDict; faceSet .. mixerVessel2D - remove all the boundary faces from the previous generated set of faces (why???)
  6. setsToZones .. mixerVessel2D -noFlipMap - convert the last generated set of faces into a face zone called 'rotor'

That's it! I hope somebody with a more in depth view will explain more.

I hope this is helpful,
Dragos

waynezw0618 April 8, 2008 04:23

Hi Dragos for 4,i think it
 
Hi Dragos

for 4,i think it creat all faces of cells,here,faces including internal faces and boundary faces which is n1as i metioned last time.and the boundary faces is n2. so n1 >>n2.
and in the MRFZone.C there is boundary correction funtion.so if not 5 ,the solve will calculate it as internalface.


All times are GMT -4. The time now is 14:03.