CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Accessing LES Delta Values From Solver Code (https://www.cfd-online.com/Forums/openfoam/81383-accessing-les-delta-values-solver-code.html)

mchurchf October 25, 2010 17:46

Accessing LES Delta Values From Solver Code
 
Hello,

I am trying to make a modification to buoyantBoussinesqPisoFoam in which the turbulent Prandtl number is a function of the LES filter width. Is there any way to access the LES filter width field from buoyantBoussinesqPisoFoam.C? I tried turbulence->delta(), but that does not work.

Thank you,

Matt

hz283 December 8, 2012 15:44

Hi Matt,
Did you solve this problem?
I am using rhoPimpleFoam and LES Smagorinsky model. The filter width delta is used in the simulation. Now I would like to use delta() to output another quantity (it is volScalarField type), and I think I can add somes lines in creatFields.H. However, I had some problems about how to use the fileter delta () in createFields.H of rhoPimpleFoam. Thank you very much.

Sarah13 June 12, 2023 03:14

Hi
Can anyone please let me know here that how can I access LES delta in my solver code, as I am new to cpp so I don't have much idea and whatever attempts I made, I wasn't successful. What can I add to createfields to call the LESModel class and access its member function delta in my code.
Thanks in advance :)

cnsidero June 12, 2023 11:43

If you're using rhoPimpleFoam, you should be able to get the deltas with the following:

Code:

turbulence->delta()
Untested though. And if it works, you'll have to be careful using it because the LES delta() function is only available when LESModels are used but rhoPimpleFoam also works with RASModels.

Sarah13 June 12, 2023 12:55

Hi Chris
Thanks a lot for your reply. I am using XiFoam solver and the code you mentioned is not working for me, although both rhoPimpleFoam and XiFoam use the same class for momentum transport model.

It is giving me this error.


‘class Foam::CompressibleMomentumTransportModel<Foam::flu idThermo>’ has no member named ‘delta’; did you mean ‘devTau’?


Please if you can help me further regarding this.

Thank you


All times are GMT -4. The time now is 10:48.