|
[Sponsors] |
How to access a new defined fields in turbulence model code |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 21, 2016, 07:07 |
How to access a new defined fields in turbulence model code
|
#1 |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
Dear All
In my program, I defined a new fields in the ''creatfields.H'', as: volScalarField UConvec1 ( IOobject ( "UConvec1", runTime.timeName(), mesh ), mesh, dimensionedScalar ( "UConvec1", dimensionSet(1, -2, -2, 0, 0, 0, 0), 0.0 ) ); UConvec1 is calculated in the main program and stored the convection term in the previous time step, and will renewed at the end of the main program, and also used when dealing with the momentum equation. In the turbulence mode code, such as kEpsilon.C, I need to access this field, here is my question, How can I access this field when coding in the turbulence model? regards, Xinguang |
|
March 24, 2016, 15:35 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Access turbulence model in coded functionobjectlibs | eelcovv | OpenFOAM Programming & Development | 6 | December 1, 2018 19:43 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
What model of turbulence choose to study an external aerodynamics case | raffale | OpenFOAM | 0 | August 23, 2012 06:45 |
Discussion: Reason of Turbulence!! | Wen Long | Main CFD Forum | 3 | May 15, 2009 10:52 |
Wall Treatment of User defined Turbulence Model | Yang Chung | FLUENT | 0 | August 23, 2008 12:31 |