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

A question on parallelization in OF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2008, 05:37
Default Hi to evrybody. I'm planning
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
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?
ivan_cozza is offline   Reply With Quote

Old   September 3, 2008, 06:24
Default Hello, SInce you are only d
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   September 3, 2008, 10:44
Default Thank you so much Hrvoje! So,
  #3
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
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...
ivan_cozza is offline   Reply With Quote

Old   September 10, 2008, 06:47
Default Now I have a second question:
  #4
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
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!
ivan_cozza 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
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


All times are GMT -4. The time now is 21:22.