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

how to output subMesh pointer files ??

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2010, 18:07
Default how to output subMesh pointer files ??
  #1
Member
 
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 30
Rep Power: 9
kdarc is on a distinguished road
Back with v1.3 someone kindly modified the subsetMesh.C file to include some code which generated output files of the mapped results (cells, points, faces etc.)

The code was this:

OFstream cellmap("cellMap");
cellmap << mesh().cellMap() << endl;

Now, in v1.6 we get an error stating that mesh has no member .cellMap()

Does anyone know the updated syntax that will output the cellMap into a file??

thanks.
kdarc is offline   Reply With Quote

Old   November 29, 2010, 11:47
Default
  #2
Member
 
Ken Darcovich
Join Date: Mar 2009
Location: Ottawa, Canada
Posts: 30
Rep Power: 9
kdarc is on a distinguished road
since "how to" information for OF seems precious and jealously guarded, for the record, the solution to my question which was painstakingly deduced with help from colleagues is:

in subsetMesh.C (v1.6)

The mesh is assigned as:
const fvMesh& baseMesh = subsetter.baseMesh();

thus, in the OFsteam code, the string

subsetter.cellMap()

outputs as required.
kdarc 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
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46


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