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

Blog Entries

Register Blogs Community New Posts Updated Threads Search

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 1564 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 1592 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 645 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 2900 Comments 0 kindle is offline Edit Tags
Old

relations between master and slave boundary condtions

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

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