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

programming

Register Blogs Community New Posts Updated Threads Search

programming
Old

MPI barrier inside OpenFoam

Posted March 1, 2018 at 06:34 by kindle

Pstream has two sub directories :
dummy and mpi

Quote:
Originally Posted by matteoL View Post
Hello,
when running in parallel, for some reasons I have some actions that have to be done only by the master core and I would like the other partitions to wait until the master has finished.
(I call those action doing:
If (Pstream::master()){ ...} )


I think the solution in a general c++ code using MPI would be to add a line like:
MPI_BARRIER(MPI_COMM_WORLD)
...
New Member
Posted in programming
Views 1893 Comments 0 kindle is offline Edit Tags
Old

I want to use the 'turbulentIn

Posted September 25, 2017 at 13:47 by kindle

BC need to pay atttention

Quote:
Originally Posted by chris1980 View Post
I want to use the 'turbulentInlet' boundary condition. As far as I can see the use only inputs a fluctuation scale but what about the integral length scale or other appropiate scales because the flucation scale alone do not define a turublent inlet.

Ok I know it is anyway no real turbulent inlet because there is no turbulence strcuture etc.

Additionally, I was wondering what I have to set for k and epsilon at this turbulent boundary
...
New Member
Views 2714 Comments 0 kindle is offline Edit Tags
Old

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

Posted September 25, 2017 at 13: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 2623 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 715 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 2985 Comments 0 kindle is offline Edit Tags

All times are GMT -4. The time now is 17:34.