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

how does mpirun read in the processorN directory contents?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2017, 09:06
Default how does mpirun read in the processorN directory contents?
  #1
New Member
 
Laura Sumner
Join Date: Mar 2017
Posts: 13
Rep Power: 5
LauraSumner is on a distinguished road
Hello
I am trying to solve a problem which requires me to know the first set of coordinates located in the "points" file within each processor directory after I decompose my field.

I am trying to find the place where OpenFOAM accesses this information. Does anyone know in which file this occurs when the mpirun is operated in parallel?

I know that polyMesh accesses this information, but I need to be able to distinguish which part of my geometry the solver is working on.

Hope this makes sense!

Laura
LauraSumner is offline   Reply With Quote

Old   March 14, 2017, 09:21
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 399
Rep Power: 20
deepsterblue will become famous soon enough
Hello Laura,

Try this:
const point& procPoint = mesh.points()[0];

Pout << "First point: " << procPoint << endl;

Where "mesh" is the appropriate polyMesh / fvMesh at the top level of your solver. This should give you the processor and first coordinate for each. This also assumes that each processor has at least one point on it, but that's easy to check before-hand.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   March 14, 2017, 09:31
Default
  #3
New Member
 
Laura Sumner
Join Date: Mar 2017
Posts: 13
Rep Power: 5
LauraSumner is on a distinguished road
Hi Sandeep,

Thanks! That was exactly what I needed!

Laura
LauraSumner is offline   Reply With Quote

Reply

Tags
coodinate, mesh, mpirun, parallel, polymesh

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
[snappyHexMesh] jagged, ragged edges... ziemowitzima OpenFOAM Meshing & Mesh Conversion 138 July 23, 2012 23:41
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
How to read a mesh from a directory other than the default tutorial directory mali28 OpenFOAM 1 July 6, 2011 14:08
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
Initialize and read a file contents David Baker FLUENT 0 July 11, 2005 08:26


All times are GMT -4. The time now is 12:42.