|
[Sponsors] |
constant variables in all processors , parallel simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 17, 2013, 14:07 |
constant variables in all processors , parallel simulation
|
#1 |
Member
Saba Saeb
Join Date: Dec 2010
Location: Erlangen, Germany
Posts: 32
Rep Power: 16 |
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; } Cheers, Saba |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Engine Simulation in parallel | Peter_600 | OpenFOAM | 0 | July 26, 2012 07:02 |
help with command line in parallel simulation | ernest | STAR-CCM+ | 8 | August 17, 2011 06: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 12:15 |
Parallel simulation of unsteady flows | MLJ | Main CFD Forum | 5 | June 14, 2000 02:24 |