How can I write selective additional fields using functionObjects?
I want to have the positions of cell centers (x,y,z) as out put in my time directories. I know that the utility "writeCellCenters" do what I want, but I prefer to get them automatically.
I searched and found out that functionObjects are capable of doing so. I found from
that the type writeAdditionalFields is exactly what I want. I found this example in their documentations:
Any help is appreciated.
can i ask you, why? is ur mesh moving ? if its fixed why do u need to have them in each time step?
however maybe you can add something like to ur solver and compile it:
volVectorField cellCenter //add
Thanks for your hint.
Actually I do not want to have my grid in every time step. That would be fine to have the grid in all time directories although it's not necessary for me now.
You are right. It's possible to obtain the mesh changing the solver, but I do not want to do so.
I want to be more specific about my question posted on June 29th.
About using that example I found in functionObject documentations; there are two points:
|All times are GMT -4. The time now is 05:51.|