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

Blog Entries

Register Blogs Community New Posts Updated Threads Search

Old

pTraits

Posted September 14, 2017 at 06:05 by kindle

Code:
int(pTraits<arg1>::rank)
just gives flexibility to all types that pTraits wapped. And rank is another static member like "one" and "zero"


Quote:
Originally Posted by openfoammaofnepo View Post
Dear ngj,

Thank you so much. Today I met the pTraits in the turbulentInlet.C again. So I had a look at thread again. The codes are as follows:

Code:
        scalar rmsCorr = sqrt(12*(2*alpha_ - sqr(alpha_)))/alpha_;

        patchField =
            (1 - alpha_)*patchField
...
New Member
Posted in Uncategorized
Views 1676 Comments 0 kindle is offline Edit Tags
Old

How the boundary conditions are called in the OpenFOAM solvers?

Posted September 11, 2017 at 13:29 by kindle

Well, well well,

Quote:
Originally Posted by hjasak View Post
Easy:
- on correctBoundaryConditions() for a field
- on updateCoeffs() at matrix creation

correctBoundaryConditions is also called after the linear solver call automatically.


Enjoy,

Hrv
New Member
Posted in programming
Views 727 Comments 0 kindle is offline Edit Tags
Old

Average values on Boundary Conditions

Posted July 17, 2017 at 05:42 by kindle

Great example of profit from the Openfoam

Quote:
Originally Posted by bigphil View Post
helloworld11,

patchIntegrate and patchAverage only operate on volScalarFields, so if you decompose your velocity field into its components first using foamCalc, i.e.
Code:
foamCalc components U
Then you can run patchAverage on each component:
Code:
patchAverage Ux myInlet
You can also use foamCalc to do other things like calculate the magnitude of a volVectorField:
Code:
foamCalc mag U
If you
...
New Member
Views 2996 Comments 0 kindle is offline Edit Tags
Old

relations between master and slave boundary condtions

Posted July 7, 2017 at 04:16 by kindle

Mapped boudnary condition?


Quote:
Originally Posted by wyldckat View Post
Hi Vimal,

Of course! The mapped BC, I wasn't remembering it. One such tutorial is "incompressible/pisoFoam/les/pitzDailyMapped".
And as of OpenFOAM 2.2, you can find more details about boundary conditions and function objects here: http://foam.sourceforge.net/docs/cpp/modules.html

What you're looking for is in the section Coupled boundary Conditions

The general idea is that:
  1. You define
...
New Member
Posted in programming
Views 2916 Comments 0 kindle is offline Edit Tags
Old

Installation of OpenFOAM 2.3.0 / 2.3.x on RHEL 5.8 without root permissions

Posted July 7, 2017 at 04:08 by kindle
Updated July 10, 2017 at 04:55 by kindle (add the right way to check the interior mesh)

Take a look at the paraview setting.

Here is a page saying that to check the mesh inside a geometry (https://openfoamwiki.net/index.php/FAQ/Postprocessing). The right thing to do is not the clip nor the slice. But
1. load the case unchecking polyhedral decomposition
2. filter : Extract Cells by Region

Quote:
Originally Posted by niX1337 View Post
Hello Bruno,

my bad, I have no idea why it did not work for OF 2.3.1 ... but it worked perfectly with OF 2.3.x. That's why I guess I made a mistake
...
New Member
Posted in Post-processing
Views 2642 Comments 0 kindle is offline Edit Tags

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