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

Error in gradient calculation only while parallel processing

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2019, 04:32
Default Error in gradient calculation only while parallel processing
  #1
Member
 
Join Date: Apr 2019
Location: India
Posts: 79
Rep Power: 5
Pavithra is on a distinguished road
Hello Everyone,

I have a solver for melting in the presence of electric field. In the solver, I calculate the gradient of electric potential to obtain the electric field, as follows:

Code:
E = -fvc::grad(Ue)
Here,
E -> Electric field (volVectorField)
Ue -> Electric potential (VolScalarField).

When I run the solver using a single processor. It gives accurate results and I can perfectly validate both electric field and electric potential distribution.

But, when I run in parallel mode, the gradient calculation goes wrong and I observe nonphysical values in electric field.

The electric potential distribution is physical and has accurate values (in both serial and parallel modes). I am able to validate with the literature. Thus, I am sure that the governing equations of the solver have no problem.

I observe errors only in the electric field. That too, only while running in parallel mode.

E is a final value calculated for post-processing. It does not affect any other part of the governing equations. Also, the most strange thing is that, the gradient of electric potential produced nonphysical values even while calculated using paraview after running reconstructPar.

Kindly please help me to debug this problem. Is there any specific way to calculate gradient while running in parallel mode?

(I have tried different numbers of cores, as well as, different methods of domain decomposition.)

Thank You.


With Thanks,
Pavithra.
Attached Images
File Type: png serial.png (2.6 KB, 10 views)
File Type: png parallel.png (15.9 KB, 10 views)
Pavithra is offline   Reply With Quote

Reply

Tags
gradient calculation, openfoam 1806, parallel calculation

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
Parallel processing of OpenFOAM cases on multicore processor??? g.akbari OpenFOAM Running, Solving & CFD 31 November 1, 2017 09:25
Dynamic mesh adaption in parallel calculation xh110120 FLUENT 1 March 12, 2016 08:05
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
Parallel Processing by region Swift OpenFOAM Running, Solving & CFD 0 July 30, 2015 08:42
Gradient calculation Harry Main CFD Forum 3 October 7, 2006 04:19


All times are GMT -4. The time now is 17:57.