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

Handling of custom fields by decomposePar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2013, 11:06
Default Handling of custom fields by decomposePar
  #1
Member
 
Björn Windén
Join Date: Feb 2012
Location: National Maritime Research Institute, Tokyo, Japan
Posts: 37
Rep Power: 14
winden is on a distinguished road
Hi.

This is really an aesthetic problem but I thought I would ask to see if anyone knows how to fix it.

So, I have modified the pointMesh class slightly to take some additional input. This is only needed when used together with a special solver so I would like to keep the original pointMesh as it is. This means I have renamed the new one my_pointMesh to avoid conflict with the existing class (since libOpenFOAM is loaded in most solvers and libraries.) For the same reason, I have to rename all point fields that use my_pointMesh in their creation so pointScalarField becomes my_pointScalarField etc. This works fine.

Now to the problem. In decomposePar, the fields that are to be decomposed seem to be hard coded in the executable. This means that it will not decompose for example any my_pointScalarFields, only pointScalarFields. I can of course just add the fields I want there and recompile it but since I wanted to distribute this code to my colleagues, it seems cumbersome to make everyone using it compile their own decomposePar.

Any ideas would be great.

//Björn
winden is offline   Reply With Quote

Old   March 13, 2013, 08:22
Default
  #2
Member
 
Björn Windén
Join Date: Feb 2012
Location: National Maritime Research Institute, Tokyo, Japan
Posts: 37
Rep Power: 14
winden is on a distinguished road
Never mind. I managed to do the whole thing in another way so I could keep the standard fields.
//B
winden 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
Utilities: post average turbulence fields and create turbulence fields for LES Hanzo OpenFOAM Running, Solving & CFD 10 August 18, 2017 18:33
decomposePar gives errors of_user_ OpenFOAM 1 July 4, 2011 05:27
warning message with custom boundary condition during decomposePar romant OpenFOAM Programming & Development 2 June 9, 2011 02:16
Missing fields in reconstructPar flowris OpenFOAM 1 July 9, 2010 02:48
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15


All times are GMT -4. The time now is 20:51.