|
[Sponsors] |
February 15, 2013, 11:06 |
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 |
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 |
|
March 13, 2013, 08:22 |
|
#2 |
Member
Björn Windén
Join Date: Feb 2012
Location: National Maritime Research Institute, Tokyo, Japan
Posts: 37
Rep Power: 14 |
Never mind. I managed to do the whole thing in another way so I could keep the standard fields.
//B |
|
|
|
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 |