CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Boundary condition with mpirun

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

LinkBack Thread Tools Display Modes
Old   August 8, 2013, 22:47
Default Boundary condition with mpirun
Senior Member
Join Date: Mar 2012
Location: Atlanta
Posts: 140
Rep Power: 6
Joachim is on a distinguished road
Hello everyone!

I just implemented Lund's recycled boundary condition (thank you Perry Johnson ) in OpenFOAM, and it seems to work just fine on a single processor.

However, when I run the simulation on several processors, I get a pretty uggly error (sigSegv, sigFpe, etc...). Is there anything I should be doing to parallelize my code?

Basically, the algorithms starts with

void Foam::scaledMappedVelocityFixedValueFvPatchField:: updateCoeffs()
if (updated())

// Since we're inside initEvaluate/evaluate there might be processor
// comms underway. Change the tag we use.
int oldTag = UPstream::msgType();
UPstream::msgType() = oldTag+1;

// Get the mappedPatchBase
const mappedPatchBase& mpp = refCast<const mappedPatchBase>
scaledMappedVelocityFixedValueFvPatchField:atch( ).patch()

const fvMesh& nbrMesh = refCast<const fvMesh>(mpp.sampleMesh());
const word& fieldName = dimensionedInternalField().name();
const volVectorField& nbrField =

after that, I extract a plane from the domain, scale it, and eventually return the inlet as follows:

// return the velocity values to inlet condition

// Restore tag
UPstream::msgType() = oldTag;


If someone had an idea, it would be really great! I don't really feel like running my LES on a single processor.


Joachim is offline   Reply With Quote


Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 04:23
Domain Imbalance HMR CFX 3 March 6, 2011 21:10

All times are GMT -4. The time now is 11:43.