CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2017, 05:10
Default 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
agustinvo is on a distinguished road
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
agustinvo is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:44.