CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread 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: 166
Rep Power: 14
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: 21
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: 166
Rep Power: 14
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: 21
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: 166
Rep Power: 14
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with if statement CHARLES OpenFOAM Programming & Development 17 August 22, 2021 04:14
multiphaseInterFoam: timestep error by simulating a co-extrusion nozzle Quatschinsky OpenFOAM Running, Solving & CFD 7 March 27, 2014 06:08
ERCOFTAC Centrifugal Pump with kOmegaSST Model marcelgt87 OpenFOAM Running, Solving & CFD 4 March 13, 2013 11:49
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 03:31


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