CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Custom boundary condition not working in parallel - gSum problem?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2014, 08:40
Default Custom boundary condition not working in parallel - gSum problem?
  #1
Member
 
Petr Furmanek
Join Date: Jan 2012
Location: Faenza, Italy
Posts: 66
Rep Power: 14
petr.f. is on a distinguished road
Dear Foamers,

I've programmed a custom boundary condition which prescribes velocity according to pressure over patch. In the code I'm accessing all the fields in the following manner :

const fvPatchField<scalar> & pp =
patch().lookupPatchField<volScalarField, scalar>(pName_);

scalar patchArea = gSum(patch().magSf());

avgP = gSum(patch().magSf()*pp)/patchArea;

However, if I run the computation in parallel, it blows up in the first iteration (pressure values are nan).

Do you have any idea, what might be the cause of these problems?

Thanks...
petr.f. is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 05:58
Problem with "symmetryPlanne" boundary condition fcuevas OpenFOAM Running, Solving & CFD 1 March 14, 2012 06:07
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 07:49
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 09:40
a problem with Boundary condition M Rad Main CFD Forum 12 November 27, 1998 13:49


All times are GMT -4. The time now is 12:49.