|
[Sponsors] |
January 7, 2018, 19:40 |
volScalarField::Internal vs. volScalarField
|
#1 |
Member
Join Date: Jul 2010
Posts: 52
Rep Power: 16 |
Hi!
In kEpsilon.C, G is defiened as: Code:
volScalarField::Internal G ( this->GName(), nut.v()*(dev(twoSymm(tgradU().v())) && tgradU().v()) ); volScalarField G1= this->nut_*(dev(twoSymm(tgradU())) && tgradU()); Thanks, Mary |
|
December 1, 2020, 09:44 |
|
#2 |
Senior Member
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6 |
I got the same question lately. Did you get an answer for your question?
Regards, |
|
December 5, 2020, 05:02 |
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
||
December 26, 2020, 11:33 |
|
#4 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
This is what I have understood.
The volScalarField is a typedef of GeometricField<>. So volScalarField contains an internal field a boundaryfield etc. Now, the volScalarField::Internal is the 'type' of the internal field in the volscalarField. It's defined by typedefing of Diemnsionedfield. For volScalarField the 'Internal' translates to: Code:
typedef DiamensionedField<Scalar, volMesh> Internal; Code:
volScalarField::Internal G ( this->GName(), nut.v()*(dev(twoSymm(tgradU().v())) && tgradU().v()) ); Code:
DimensionedField<scalar, volField> G ( this->GName(), nut.v()*(dev(twoSymm(tgradU().v())) && tgradU().v()) ); |
|
Tags |
kepsilon, volscalarfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible 2D airfoil rhoSimpleFoam fatal error volScalarField none | jfournier | OpenFOAM Running, Solving & CFD | 4 | September 28, 2017 07:28 |
Adding new member function to GidaspowErgunWenYu.C of dragModel | kiang | OpenFOAM Programming & Development | 0 | June 21, 2017 06:23 |
execFlowFunctionObjects - unknown field problem | Toorop | OpenFOAM Post-Processing | 16 | March 14, 2016 04:25 |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 23:38 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |