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

volScalarField::Internal vs. volScalarField

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By MaryBau

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2018, 19:40
Default volScalarField::Internal vs. volScalarField
  #1
Member
 
Join Date: Jul 2010
Posts: 52
Rep Power: 16
MaryBau is on a distinguished road
Hi!

In kEpsilon.C, G is defiened as:

Code:
    volScalarField::Internal G
    (
        this->GName(),
        nut.v()*(dev(twoSymm(tgradU().v())) && tgradU().v())
    );
Why is it defined as "volScalarField::Internal" instead of just a simple "volScalarFiled"? And have something like this:

volScalarField G1= this->nut_*(dev(twoSymm(tgradU())) && tgradU());


Thanks,

Mary
MaryBau is offline   Reply With Quote

Old   December 1, 2020, 09:44
Default
  #2
Senior Member
 
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 7
Tibo99 is on a distinguished road
I got the same question lately. Did you get an answer for your question?

Regards,
Tibo99 is offline   Reply With Quote

Old   December 5, 2020, 05:02
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Tibo99 View Post
I got the same question lately. Did you get an answer for your question?
The question to ask yourself: if it were a volScalarField, which is an internal field (with dimensions) and a boundary - what would you like to calculate on the boundaries?
olesen is offline   Reply With Quote

Old   December 26, 2020, 11:33
Default
  #4
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10
granzer is on a distinguished road
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;
So, the code
Code:
    volScalarField::Internal G
    (
        this->GName(),
        nut.v()*(dev(twoSymm(tgradU().v())) && tgradU().v())
    );
Can be seen as
Code:
    DimensionedField<scalar, volField> G
    (
        this->GName(),
        nut.v()*(dev(twoSymm(tgradU().v())) && tgradU().v())
    );
granzer is offline   Reply With Quote

Reply

Tags
kepsilon, volscalarfield


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
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


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