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 |
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. |
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 :) |
If you're using rhoPimpleFoam, you should be able to get the deltas with the following:
Code:
turbulence->delta() |
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. |