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

Adding volVectorFields to kind of a vector to get access to them in a loop.. ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2016, 13:26
Question Adding volVectorFields to kind of a vector to get access to them in a loop.. ?
  #1
New Member
 
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11
SirIsaac90 is on a distinguished road
Hello CFD guys!

I want to store different velocity slope fields, let's say ki, in kind of a vector. The ki's are defined as volVectorFields.

I want to do that, because I need them in a for-loop. This loop should work for a general explicit RK method. That is why I would like to create that kind of vector for a method with 's' stages for example defined with k[s].
I know that it is not possible to put the vector fields just in a vector, but is there any possibility to store them and get access to them with a running variable i --> k[i]??

Would be really thankful for any help on that.

Best regards!
SirIsaac90 is offline   Reply With Quote

Old   January 9, 2016, 14:11
Default
  #2
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Hi,
PtrList<volVectorField> is a data type what you need
mkraposhin is offline   Reply With Quote

Old   January 18, 2016, 11:05
Default
  #3
New Member
 
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11
SirIsaac90 is on a distinguished road
Thank you very much!!
SirIsaac90 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
How I can introduce my power heat (W) in chtMultiRegionFoam? aminem OpenFOAM Pre-Processing 32 August 29, 2019 03:23
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 09:43
chtMultiRegionSimpleFoam: strange error samiam1000 OpenFOAM Running, Solving & CFD 26 December 29, 2015 23:14
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 16:57


All times are GMT -4. The time now is 07:25.