CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

definiton of volScalarField G(x, y);

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By marupio

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

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
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 436
Rep Power: 15
marupio is on a distinguished road
The way you've written it, it looks to me like a constructor.
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


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with creating a volScalarField georlade OpenFOAM Programming & Development 4 December 4, 2016 13:31
volScalarField DiegoNaval OpenFOAM Programming & Development 7 February 2, 2012 04:04
volScalarField for cell volumes and face surfaces AlmostSurelyRob OpenFOAM 2 December 13, 2010 06:24
Confused about how OF handles operation between volScalarField and dimensionedScalar Edy OpenFOAM 3 September 30, 2010 10:07
if-loop, volScalarField comparison volker OpenFOAM 5 April 23, 2010 14:18

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