|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
|
Hi to evrybody.
I'm planning to write a postprocessing utility in OpenFoam that read the results from a steady RANS calculation and do something on it like a random perturbation in order to produce a time history. My question is: If i decompose my mesh, can I run in parallel my application without do anything, like in a standard solver, or have I to do something different? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,906
Rep Power: 33 ![]() |
Hello,
SInce you are only doing local data manipulation, you application will run in parallel with no changes. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
|
Thank you so much Hrvoje!
So, if I understood, if I work cell-by-cell without looking for other cells data, the code is allready parallelized... Wow... |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
|
Now I have a second question:
I have to access to the single cell-elements of the vol<type>Field list in order to set in there a random perturbation. What I want to do is: volScalarField Up; for (label cellID=0, cellID<nTotCells, cellID++){ Up[cellID] += randomPerturbation; } Where cellID is the cell-number and Up[cellID] is the value of Up in the cell cellID. How can I do it in OpenFOAM? Thank you! |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parallelization of a new solver | jaswi | OpenFOAM Running, Solving & CFD | 19 | August 27, 2012 02:45 |
parallelization on linux | cesco | FLUENT | 1 | September 27, 2008 12:18 |
Parallelization | Levi | Main CFD Forum | 1 | May 25, 2003 02:03 |
About the parallelization | ptyue | Main CFD Forum | 8 | January 26, 2003 23:29 |
Parallelization efficiency.. | karthik | Main CFD Forum | 1 | January 4, 2000 11:20 |