|
[Sponsors] |
Adding volVectorFields to kind of a vector to get access to them in a loop.. ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 9, 2016, 13:26 |
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 |
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! |
|
January 9, 2016, 14:11 |
|
#2 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi,
PtrList<volVectorField> is a data type what you need
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 18, 2016, 11:05 |
|
#3 |
New Member
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11 |
Thank you very much!!
|
|
|
|
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 |