CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Lambda2 or Q in multiRegionFoam (http://www.cfd-online.com/Forums/openfoam-post-processing/95126-lambda2-q-multiregionfoam.html)

preibie December 7, 2011 05:26

Lambda2 or Q in multiRegionFoam
 
Hallo,

I want calculate Lambda2 or Q in the solver chtmultiRegionFoam. The program don't find the velocity Field U because the domain is spitted into solid and fluid regions.

How I can choose the right region?

Preibie

Bernhard December 7, 2011 05:49

You can easily upgrade the utility to read the correct U-field. Maybe it is enoug to change the name of the variable there?

preibie December 7, 2011 06:01

Hallo,

copy the U field was my first idea but this is the result:

Code:

Time = 2000
    Reading U
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
size 613281 is not equal to the given value of 724217

file: /home/preibisch/OpenFOAM/preibisch-2.0.1/run/Waermerohr/Waermerohr_4/2000/U from line 18 to line 613347.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/preibisch/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude/Field.C at line 236.

You mean is is easy to upgrade the utility. How do you do this?

Preibie

Bernhard December 7, 2011 06:09

Quote:

Originally Posted by preibie (Post 334982)
Hallo,

copy the U field was my first idea but this is the result:

Code:

Time = 2000
    Reading U
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
size 613281 is not equal to the given value of 724217

file: /home/preibisch/OpenFOAM/preibisch-2.0.1/run/Waermerohr/Waermerohr_4/2000/U from line 18 to line 613347.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/preibisch/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude/Field.C at line 236.


This means your reading a U file that does not belong to default mesh.

Quote:

You mean is is easy to upgrade the utility. How do you do this?
As usual: Copy the utility to a save place, and rename Lamba2.C to something else, then change the Make/files. By looking into the source code the chtRegion solver, you will find out how you can read the correct U or the correct mesh (look for createFields.H or something similar). Finally you can compile this by typing wmake. Good luck!

preibie December 7, 2011 06:54

That the U field dos not match with the mesh is clear because in the solid regions is no U field defined.

I copy the air/constant/polyMesh from the fluid field in the constant/polyMesh and now it works. I will write me a shell script.

Preibie


All times are GMT -4. The time now is 09:12.