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

constant variables in all processors , parallel simulation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 17, 2013, 13:07
Default constant variables in all processors , parallel simulation
  #1
Member
 
Saba Saeb
Join Date: Dec 2010
Location: Erlangen, Germany
Posts: 32
Rep Power: 6
saba_saeb is on a distinguished road
Hi Foamers,

Here is the modification that I've applied into a solver.

Code:
volScalarField Boeing::dots() const
{
    scalar temp;
    temp = 0.03 * HS_.value();
    volScalarField dots=mesh_.C().component(1);
    forAll(dots,cel)
    {
        if(dots[cel]>0.05)
       dots[cel]=0.1-dots[cel];
    }

    forAll(dots,cel)
    {
       dots[cel] = dots[cel] + temp;
    }

    return dots;
}
I would like to run the simulation in parallel. As in parallel simulation, every block of the mesh would be solved in a different processor, my implementation breaks! How can I make this volScalarField constant for all of the processors? Any idea?

Cheers,
Saba
saba_saeb is offline   Reply With Quote

Reply

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
Engine Simulation in parallel Peter_600 OpenFOAM 0 July 26, 2012 06:02
help with command line in parallel simulation ernest STAR-CCM+ 8 August 17, 2011 05:02
How can I maintain a constant volume during the simulation period? bejewel FLOW-3D 2 January 25, 2011 12:40
Really big problems when creating own materials da Jop FLUENT 0 June 28, 2007 11:15
Parallel simulation of unsteady flows MLJ Main CFD Forum 5 June 14, 2000 01:24


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