CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Lambda2 or Q in multiRegionFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 7, 2011, 05:26
Default Lambda2 or Q in multiRegionFoam
  #1
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 7
preibie is on a distinguished road
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
preibie is offline   Reply With Quote

Old   December 7, 2011, 05:49
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
You can easily upgrade the utility to read the correct U-field. Maybe it is enoug to change the name of the variable there?
Bernhard is offline   Reply With Quote

Old   December 7, 2011, 06:01
Default
  #3
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 7
preibie is on a distinguished road
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
preibie is offline   Reply With Quote

Old   December 7, 2011, 06:09
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Quote:
Originally Posted by preibie View Post
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!
Bernhard is offline   Reply With Quote

Old   December 7, 2011, 06:54
Default
  #5
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 7
preibie is on a distinguished road
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
preibie is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiregionfoam + blockmesh + region property alvora OpenFOAM 0 March 23, 2011 08:03
regionCouple in multiRegionFoam mvoss OpenFOAM Programming & Development 1 March 7, 2011 14:02
MultiRegionFoam alvora OpenFOAM 0 March 2, 2011 08:40


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