CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Accessing LES Delta Values From Solver Code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2010, 17:46
Default Accessing LES Delta Values From Solver Code
  #1
Member
 
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 18
mchurchf is on a distinguished road
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
mchurchf is offline   Reply With Quote

Old   December 8, 2012, 15:44
Default
  #2
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 13
hz283 is on a distinguished road
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.
hz283 is offline   Reply With Quote

Old   June 12, 2023, 03:14
Default
  #3
New Member
 
Sarah
Join Date: Jan 2023
Posts: 12
Rep Power: 3
Sarah13 is on a distinguished road
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
Sarah13 is offline   Reply With Quote

Old   June 12, 2023, 11:43
Default
  #4
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
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.
cnsidero is offline   Reply With Quote

Old   June 12, 2023, 12:55
Default
  #5
New Member
 
Sarah
Join Date: Jan 2023
Posts: 12
Rep Power: 3
Sarah13 is on a distinguished road
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
Sarah13 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32
Getting values from fluent solver Moshiur R. Chowdhury FLUENT 2 November 27, 2002 13:41
LES Code gupta Main CFD Forum 0 September 21, 1999 15:11
2D LES Code for Bluff Bodies Patku Main CFD Forum 17 July 31, 1999 18:59


All times are GMT -4. The time now is 19:09.