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

Wrong solution after parallelisation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2014, 06:21
Default Wrong solution after parallelisation
  #1
New Member
 
Martin K
Join Date: Jan 2013
Location: Germany
Posts: 28
Rep Power: 13
Martin_K_lalelu is on a distinguished road
Hi all,

I added a volume force rho*AF to UEqn in an interDyMFoam solver to handle a moving reference frame.
After running successfully in non-parallel mode, the parallel calculations of this volume force fails.

AF and alpha1 are volVectorFields, x is a vector.

Code:
x=gSum(alpha1.internalField()*
            mesh.C().internalField()*mesh.V())/
            gSum(alpha1.internalField()*mesh.V());

AF=alpha1*f(x)
Is there a specific global formulation for parallelized calculations?

The attachement shows the AF value over iterations. Up to iteration 170 in parallel mode (wrong solution), after that starting from the same initial condition in non-parallelized mode (correct solution) .


Any advice will be appreciated!

best regards

Martin

Edit: Solved, AF was calculated correctly.
Attached Images
File Type: png AF.png (13.4 KB, 4 views)

Last edited by Martin_K_lalelu; December 17, 2014 at 04:36. Reason: Solved
Martin_K_lalelu is offline   Reply With Quote

Reply


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
grid dependancy gueynard a. Main CFD Forum 19 June 27, 2014 21:22
interFoam solution tolerances mgdenno OpenFOAM 4 September 13, 2011 12:58
Naca 0012 (compressible and inviscid) flow convergence problem bipulsaha FLUENT 1 July 6, 2011 07:51
Transient, initial variables from a previous solution nakor FloEFD, FloWorks & FloTHERM 0 April 22, 2011 04:34
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 01:16


All times are GMT -4. The time now is 05:10.