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

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

 January 13, 2014, 07:48 method max(const GeometricField< Type, PatchField, GeoMesh>& gf) #1 Senior Member   Join Date: Jan 2012 Posts: 159 Rep Power: 5 Hi what does method Code: `dimensioned Foam::max(const GeometricField< Type, PatchField, GeoMesh >& gf)` do? See: http://foam.sourceforge.net/docs/cpp...2b6d7a1cf29a1e greetings maybee

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

 January 13, 2014, 09:45 #3 Senior Member   Join Date: Jan 2012 Posts: 159 Rep Power: 5 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?

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

 January 14, 2014, 05:15 #5 Senior Member   Join Date: Jan 2012 Posts: 159 Rep Power: 5 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?

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Quatschinsky OpenFOAM Running, Solving & CFD 7 March 27, 2014 06:08 CHARLES OpenFOAM Programming & Development 15 September 18, 2013 18:29 marcelgt87 OpenFOAM Running, Solving & CFD 4 March 13, 2013 11:49 clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04 antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 02:31

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