CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

decomposePar changes sign of surfaceVectorField at processor boundary

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

LinkBack Thread Tools Display Modes
Old   June 16, 2014, 08:45
Default decomposePar changes sign of surfaceVectorField at processor boundary
New Member
James Shaw
Join Date: May 2014
Posts: 6
Rep Power: 3
hertzsprung is on a distinguished road
Digging through the source code I found the a comment in src/parallel/decompose/decompose/fvFieldDecomposer.H:

//- Processor patch field decomposer class. Surface field is assumed
//  to have direction (so manipulates sign when mapping)
which is the wrong assumption for my wind vector field. What's the best way around this?
hertzsprung is offline   Reply With Quote

Old   June 17, 2014, 02:46
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,768
Rep Power: 21
hjasak will become famous soon enough
Are you sure you know what you're doing? This works on surface fields such as flux, where the neighbour processor geometry flips the face area vector. This is the reason for sign change.

If you have a surfaceVectorField, simply re-interpolate in parallel or evaluate eg. Sampling in parallel. Without the change of sign, fluxes would be wrong.

Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote


decomposepar, surfacevectorfield

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
decomposePar 4-core warning/error? Boloar OpenFOAM Bugs 23 April 8, 2014 08:57
Herschel-Bulkley non-Newtonian viscosity model has term with sign error pbryant OpenFOAM Bugs 5 June 18, 2013 23:53
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 05:27
decomposePar: can use this decomposition method only for the whole mesh aloeven OpenFOAM Bugs 0 March 16, 2011 11:15
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

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