|
[Sponsors] |
October 25, 2010, 18:46 |
Accessing LES Delta Values From Solver Code
|
#1 |
Member
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 19 |
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 |
|
December 8, 2012, 16:44 |
|
#2 |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
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. |
|
June 12, 2023, 04:14 |
|
#3 |
New Member
Sarah
Join Date: Jan 2023
Posts: 12
Rep Power: 3 |
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 |
|
June 12, 2023, 12:43 |
|
#4 |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 |
If you're using rhoPimpleFoam, you should be able to get the deltas with the following:
Code:
turbulence->delta() |
|
June 12, 2023, 13:55 |
|
#5 |
New Member
Sarah
Join Date: Jan 2023
Posts: 12
Rep Power: 3 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |
Getting values from fluent solver | Moshiur R. Chowdhury | FLUENT | 2 | November 27, 2002 14:41 |
LES Code | gupta | Main CFD Forum | 0 | September 21, 1999 16:11 |
2D LES Code for Bluff Bodies | Patku | Main CFD Forum | 17 | July 31, 1999 19:59 |