CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

method max(const GeometricField< Type, PatchField, GeoMesh>& gf)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 13, 2014, 07:48
Default method max(const GeometricField< Type, PatchField, GeoMesh>& gf)
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
maybee is on a distinguished road
Hi what does method

Code:
dimensioned<Type> Foam::max(const GeometricField< Type, PatchField, GeoMesh >& gf)
do?

See:

http://foam.sourceforge.net/docs/cpp...2b6d7a1cf29a1e

greetings
maybee
maybee is offline   Reply With Quote

Old   January 13, 2014, 08:01
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
This is just a function that returns the maximum value of a field in a domain.
Bernhard is offline   Reply With Quote

Old   January 13, 2014, 09:45
Default
  #3
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
maybee is on a distinguished road
In method solveAlphas() in multiphasesystem.C of multiphaseEulerFoam method max(...) is called within

Code:
 phir += min(cAlpha()*phic, max(phi_))*nHatf(phase1, phase2);
where phi_ is "const surfaceScalarField& phi_ in multiphasesystem.H" and intitialized when constructing multiphasesystem fluid (U,phi) with

Code:
phi_(phi),
So max(...) returns the surface flux of the cell with the highest surface flux?
maybee is offline   Reply With Quote

Old   January 13, 2014, 11:00
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
In this case I suppose it would return the maximum surface flux of a face, not a cell (as it operates on a surfaceScalarField).
Bernhard is offline   Reply With Quote

Old   January 14, 2014, 05:15
Default
  #5
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 5
maybee is on a distinguished road
hi,

first of all thx. I still have some unanswered questions:

When looking at

Code:
phir += min(cAlpha()*phic, max(phi_))*nHatf(phase1, phase2);
of method solveAlphas() of multiphaseEulerFoam and within this especially

Code:
max(phi_)
where "phi_" is as told before "const surfaceScalarField& phi_ in multiphasesystem.H" and intitialized when constructing multiphasesystem fluid (U,phi) with

Code:
phi_(phi),
where are exactly the flux values of the different faces of all cells are stored within "phi" or "phi_", how are they structured and how are they accessed?
maybee is offline   Reply With Quote

Reply

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
multiphaseInterFoam: timestep error by simulating a co-extrusion nozzle Quatschinsky OpenFOAM Running, Solving & CFD 7 March 27, 2014 06:08
Help with if statement CHARLES OpenFOAM Programming & Development 15 September 18, 2013 18:29
ERCOFTAC Centrifugal Pump with kOmegaSST Model marcelgt87 OpenFOAM Running, Solving & CFD 4 March 13, 2013 11:49
Using starToFoam clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 02:31


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