|
[Sponsors] |
October 5, 2017, 05:10 |
Use of Field <Type> templates: how to use it
|
#1 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Access to field which is evaluated at the moment | Tobi | OpenFOAM Programming & Development | 6 | April 19, 2017 13:09 |
[General] How to create an additional vector with {Field 4, Field 5, Field 6} | Bombacar | ParaView | 1 | August 15, 2015 18:05 |
New BoundaryCondition: how to modify a single component of a field? | look86 | OpenFOAM Programming & Development | 4 | August 28, 2012 16:48 |
How to define a field on a patch | Aleksey_R | OpenFOAM Programming & Development | 1 | July 9, 2012 11:23 |
Demagnetization field | jan0385 | ANSYS | 0 | April 12, 2012 09:09 |