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

a mark for filter size (delta) in LES

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2013, 10:51
Default
  #1
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Dear guys
Hi

I want to write the sub-grid scale mixture fraction variance expression in Open FOAM. In this expression, we have delta that means filter size. Would somebody PLZ hint me that How do we write filter size in Open FOAM?

(merged from another post)

I want to write the expression in LES for mixture fraction variance. In this expression we have filter size (delta). would somebody hint me how can I write filter size in OpenFOAM format?

Regards
Bobi

Last edited by wyldckat; August 18, 2013 at 18:07. Reason: the two posts were made in two separate threads and the topic is nearly identical
babakflame is offline   Reply With Quote

Old   August 18, 2013, 18:08
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Bobi,

Please provide more details on what exactly you want to do.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 19, 2013, 01:57
Default
  #3
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Hi Bruno

As you might Know, libOpenSmoke and its modified versions does not support LES solver, I am trying to write a solver that involves LES solution and 80% I was successful. There was a failure in my thermochemical data (not velocity or mixture fraction fields). I have found that it is because I have used a transport equation for mixture fraction variance. Instead I should have exerted a modeling formulation. Fortunately fireFoam (which has a kind of flamelet solver: FSD) has implemented this modelling formulation in a way. I am trying to implement it into modified OpenSmoke to finally create the LES solver . This is what I found in FSD.H file:


Code:
// Calculation of the mixture fraction variance (ftVar)
    const compressible::LESModel& lesModel =
        YO2.db().lookupObject<compressible::LESModel>("LESProperties");

    const volScalarField& delta = lesModel.delta();
    const volScalarField ftVar(Cv_*sqr(delta)*sqr(mgft));
As it can be seen lesModel.delta() identifies what I mean i.e. filter size (delta)

Regards
Bobi
babakflame is offline   Reply With Quote

Old   August 21, 2013, 11:12
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Bobi,

My guess is that this delta size is actually defined in the dictionary "constant/LESProperties".

You can find several examples on OpenFOAM, by running:
Code:
find $FOAM_TUTORIALS -name "LESProperties"
And if I understand things correctly, "delta()" is actually a field of the same dimensions of the mesh, namely the same size as the pressure field; therefore, I think the "delta size" in OpenFOAM is actually the values of "delta" at each cell centre. And if this interpretation is correct, then it's as I wrote above: this is configurable in the "constant/LESProperties" dictionary, without any need to hack directly into the code

By the way, the OpenFOAM User Guide is a bit vague on how these are used:
basically they also tell us to look at the tutorials

Best regards,
Bruno
babakflame likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 21, 2013, 11:26
Default
  #5
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Hi Bruno

I am going to take a deep look at your hints. Many thanks for your kind reply.

Regards
Bobi
babakflame is offline   Reply With Quote

Old   November 22, 2022, 14:26
Default
  #6
New Member
 
Sandeep
Join Date: Apr 2017
Location: IIT Delhi, New Delhi, India
Posts: 13
Rep Power: 9
Sandeep lamba is on a distinguished road
Hi all.
Greeting!

I am also trying to access LESDelta.

Actually in the transport equation of variance of mixture fraction (varZ) it is required for calculating scalar dissipation of mixture fraction.


When I type delta or LESDelta an error appear saying : "delta/LESDelta is not declared in this scope".


Can anyone please suggest how to access it.


Thanks and regards
Sandeep Lamba
Sandeep lamba is offline   Reply With Quote

Old   December 1, 2022, 21:07
Default
  #7
New Member
 
Join Date: Aug 2017
Posts: 16
Rep Power: 8
Wang Shang is on a distinguished road
Hi Sandeep,

I am also trying to access LESDelta to solve scalar dissipation rate. Did you solve this problem?

Regards,

Shang
Wang Shang is offline   Reply With Quote

Old   December 31, 2022, 09:21
Default
  #8
New Member
 
Sandeep
Join Date: Apr 2017
Location: IIT Delhi, New Delhi, India
Posts: 13
Rep Power: 9
Sandeep lamba is on a distinguished road
Hi Wang Shang,
I could not actually access the LESDelta directly but I solve the problem by locally calculating Delta from local cell volume by accessing mesh properties.


regards
Sandeep lamba 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
Mesh size for DNS and LES Glenn Horrocks Main CFD Forum 45 May 25, 2020 15:43
[ICEM] Effect of globle mesh size and mesh independency sujay ANSYS Meshing & Geometry 20 September 29, 2019 07:36
Problem of InterFoam with LES SpalartAllmarasIDDES keepfit OpenFOAM 3 August 29, 2013 11:21
Turbulence dampening due to magnetic field in LES and RAS eelcovv OpenFOAM 0 June 8, 2010 11:35
Grid size in LES Jin Li Main CFD Forum 1 May 19, 2000 10:02


All times are GMT -4. The time now is 14:08.