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

Blog Entries

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

Old

Utilities: post average turbulence fields and create turbulence fields for LES

Posted September 25, 2017 at 12:45 by kindle

This seems to be useful

Quote:
Originally Posted by Hanzo View Post
Hi everybody,

I found the following issues in OpenFOAM concerning some turbulence analysis:

- the utility createTurbulenceFields only works for RAS computations
- there is no standard utility to average fields after computation has been done (to get U-mean, U-rms, R-Mean, Reff-Mean ...)

So I worked on these utilities and after mentioning it in some posts I got replies and private messages asking me if I could publish
...
New Member
Views 1649 Comments 0 kindle is offline Edit Tags
Old

Inlet velocity profile for turbulent pipe flow using swak4Foam

Posted September 14, 2017 at 05:29 by kindle

This is for the outer layer PowerLaw

Quote:
Originally Posted by zordiack View Post
Hi, I wanted a fully developed inlet velocity profile for my 3D-case and I decided to implement it using swak4Foam since I couldn't figure out how to do it with native OpenFOAM tools. So, I thought I'd share my solution here since it took me a while to figure it out.

Please note that in my case the inlet pipe centerline run along the y-axis, but it should by easy enough to modify for other cases too. Turbulent velocity profile is calculated
...
New Member
Posted in Uncategorized
Views 939 Comments 0 kindle is offline Edit Tags
Old

pTraits

Posted September 14, 2017 at 05: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 961 Comments 0 kindle is offline Edit Tags
Old

How the boundary conditions are called in the OpenFOAM solvers?

Posted September 11, 2017 at 12: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 69 Comments 0 kindle is offline Edit Tags
Old

Average values on Boundary Conditions

Posted July 17, 2017 at 04: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 2166 Comments 0 kindle is offline Edit Tags

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