CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

decomposePar changes sign of surfaceVectorField at processor boundary

Register Blogs Community New Posts Updated Threads Search

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

Code:
//- 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, 03:46
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
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.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply

Tags
decomposepar, surfacevectorfield


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
decomposePar 4-core warning/error? Boloar OpenFOAM Bugs 23 April 8, 2014 09:57
Herschel-Bulkley non-Newtonian viscosity model has term with sign error pbryant OpenFOAM Bugs 5 June 19, 2013 00:53
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 06: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 18:51


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