|
[Sponsors] |
January 16, 2015, 07:08 |
LES turbulence model: how to write delta
|
#1 |
New Member
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 14 |
Dear foamer,
I am using pimpleFoam to run some LES case. As you know, a key element of an LES is the filter width, which is known as delta in OpenFOAM (also in most of the litterature). This delta, is simply a volScalarField For my simulation, I want to write this volScalarField delta. In pimpleFoam, the turbulence model is loaded with Code:
autoPtr<incompressible::turbulenceModel> turbulence ( incompressible::turbulenceModel::New(U, phi, laminarTransport) ); Cheers, Marcel |
|
January 16, 2015, 08:52 |
|
#2 | |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
Quote:
src/turbulenceModels/incompressible/LES/LESModel/LESModel.H You cannot access the LESModel through the "turbulence pointer" (at least to my knowledge), but you could lookup the delta field (or the LESmodel for that matter) from the objectRegistry. Here is how you can lookup the delta field: Code:
volScalarField LESdelta ( IOobject ( "LESdelta", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("LESdelta", dimLength, SMALL) ); if (mesh.objectRegistry::foundObject<volScalarField>("delta")) { const volScalarField& delta = mesh.objectRegistry::lookupObject<volScalarField>("delta"); LESdelta.internalField() = delta.internalField(); } |
||
January 16, 2015, 10:13 |
|
#3 |
New Member
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 14 |
Thank for reply dkxls. your suggestion works perfectly.
Marcel |
|
January 14, 2018, 18:19 |
|
#4 |
New Member
Pedro Marreiro
Join Date: Nov 2017
Location: Lisbon
Posts: 8
Rep Power: 9 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smoothing of IDDES delta | Fuchs | OpenFOAM Running, Solving & CFD | 2 | November 17, 2020 12:17 |
How to decide to Turbulence model | shipman | OpenFOAM | 2 | August 18, 2013 04:00 |
OpenFOAM: LES turbulence model names | Ollie | OpenFOAM | 5 | January 7, 2013 11:24 |
Discussion: Reason of Turbulence!! | Wen Long | Main CFD Forum | 3 | May 15, 2009 10:52 |
LES turbulence model problem-HELP | James Willie | FLUENT | 2 | August 23, 2005 05:54 |