CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   B in the tutorials pisoFoam (LES) cases (http://www.cfd-online.com/Forums/openfoam/114238-b-tutorials-pisofoam-les-cases.html)

zxj160 March 7, 2013 10:04

B in the tutorials pisoFoam (LES) cases
 
Dear Foamers,

I am practicing pisoFom solver for the pitzDaily LES case. I notice 'B' is in the time 0 file. But in later time output files, there is no 'B'. I reviewed the 'creatFields.H' file in the pisoFoam solver, but I did not find a declaration for 'B'.

Does anyone know where can I find the declaration of 'B'? And what does 'B' mean?

My best regards,
Jian

Bernhard March 7, 2013 11:50

Which LES model are you using?

The tutorial case you refer to uses the oneEqEddy model. If you open oneEqEddy.H (see src folder), you'll see the definition of B (although not used in the code as far as I see).

zxj160 March 7, 2013 13:39

Yes, I used the oneEqEddy model. In the GenSGSStress.C file in the file of '/apps/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/LES/GenSGSStress', I find

B_
(
IOobject
(
"B",
runTime_.timeName(),
mesh_,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh_
),

B should be 'AUTO_WRITE' during the running time. But when I run the tutorial case, B is only in the time 0 file. Later, it is gone.

akbarMohammadiAhmar March 7, 2013 13:41

Hi Jian Zhong
B in LES models is Stress tensor similar R in RANS models in OpenFoam.
Have you B in 0 Folder?
I think B is in creditfield and you must see that in creditfield B is defined or no?

zxj160 March 7, 2013 17:55

Quote:

Originally Posted by akbarMohammadiAhmar (Post 412358)
Hi Jian Zhong
B in LES models is Stress tensor similar R in RANS models in OpenFoam.
Have you B in 0 Folder?
I think B is in creditfield and you must see that in creditfield B is defined or no?

I test that if I delete B in time 0, pisoFoam (LES, oneEqEddy model) can still run well for the tutorial pitzDaily case.

wyldckat March 7, 2013 18:45

Greetings to all!

Those "B" files were removed in OpenFOAM 2.1.x in August 2012: https://github.com/OpenFOAM/OpenFOAM...a52c14701a61d2
This was done around 2 months after 2.1.1 was released.

Best regards,
Bruno

luuhoangthien November 28, 2013 21:51

Dear zxj160,

You can modified solver to get R in RANS or B in LES.

view source code Utility R in OpenFOAM to get idea and get B in LES

Thien


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