|
[Sponsors] |
Boundary condition coding - problem in parallel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 4, 2011, 08:06 |
Boundary condition coding - problem in parallel
|
#1 |
New Member
Pal Schmitt
Join Date: Aug 2010
Location: Belfast
Posts: 21
Rep Power: 15 |
Dear Forum,
I coded a boundary condition using Code:
scalar Area = sum(patch().magSf()); Everything seems fine but in parallel runs the code segfaults on the threads that run on the mesh part that does not contain the patch in the following piece of code: Code:
if ( fabs(directions_*celerity_*xi*dimension[1]) > SMALL ) { sourcevel = (directions_*celerity_*xi*dimension[1])/Area; } Using the following Code:
if ( fabs(directions_*celerity_*xi*dimension[1]) > SMALL && fabs(Area) > SMALL ) { sourcevel = (directions_*celerity_*xi*dimension[1])/Area; } Is there a better way of doing this? Why is a patch evaluated if it is not in the part of the decomposed domain? Thanks for comments, Have a great day, Pal |
|
Tags |
coding bc parallel issues |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 58 | July 3, 2020 01:13 |
Boundary condition on 3D Supersonic nozzle problem with atmosphere | dokeun | FLUENT | 0 | April 1, 2010 21:59 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 15:55 |
Problem with ambit | Lio | FLUENT | 4 | July 6, 2004 08:23 |
a problem with Boundary condition | M Rad | Main CFD Forum | 12 | November 27, 1998 12:49 |