CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Use of Field <Type> templates: how to use it (https://www.cfd-online.com/Forums/openfoam-programming-development/193855-use-field-type-templates-how-use.html)

agustinvo October 5, 2017 05:10

Use of Field <Type> templates: how to use it
 
Hello to everyone,

I am dealing with an application, where I want to postProcess different fields, already specified. The process is the same for all of them, but the can be volScalarField, volVectorField... And I don't know how to do it in a loop.

I have seen in some application, codes... tha they use this Field<Type>, and they do not specify directly yhe kind of field they have. They have a Templates.C file where they do all this job, but my C++ background in templates and so on is not so big.

Somebody could explain me how this thing works? Thank you in advance

Agustín


All times are GMT -4. The time now is 14:19.