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

definiton of volScalarField G(x, y);

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By marupio

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2011, 09:10
Default definiton of volScalarField G(x, y);
  #1
New Member
 
Bernhard
Join Date: Jul 2011
Posts: 2
Rep Power: 0
Burnhead is on a distinguished road
Hello,

im working on a adjustment of a turbulence model.
While doing that i wondered what volScalarField G(x, y); actually does in a mathematical sense. A Definiton like volScalarField S2 = magSqr(symm(fvc::grad(U_))); is clear to me, but i really can not imagine what the "," is doing. (and unfortunately i wasnt able to find any proper syntax description)
Thanks in advance!
Burnhead is offline   Reply With Quote

Old   July 16, 2011, 16:11
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21
marupio is on a distinguished road
The way you've written it, it looks to me like a constructor.
Code:
volScalarField G(x, y);
The x and y would constructor parameters. Look under GeometricField.H for the constructor it's using. You have to know the classes of x and y to figure out which of the many constructors is being called. Note, the GeometricField class starts off with the definition of an embedded classe, GeometricBoundaryField... skip past that to the constructors for the GeometricField itself.
nsf likes this.
marupio 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
if-loop, volScalarField comparison volker OpenFOAM 7 March 6, 2020 20:03
Problems with creating a volScalarField georlade OpenFOAM Programming & Development 4 December 4, 2016 12:31
volScalarField DiegoNaval OpenFOAM Programming & Development 7 February 2, 2012 03:04
volScalarField for cell volumes and face surfaces AlmostSurelyRob OpenFOAM 2 December 13, 2010 05:24
Confused about how OF handles operation between volScalarField and dimensionedScalar Edy OpenFOAM 3 September 30, 2010 10:07


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