CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Handling of custom fields by decomposePar (http://www.cfd-online.com/Forums/openfoam-programming-development/113245-handling-custom-fields-decomposepar.html)

winden February 15, 2013 12:06

Handling of custom fields by decomposePar
 
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 March 13, 2013 09:22

Never mind. I managed to do the whole thing in another way so I could keep the standard fields.
//B


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