|
[Sponsors] |
June 27, 2016, 01:49 |
Dynamic List
|
#1 |
Member
Join Date: Jul 2010
Posts: 55
Rep Power: 16 |
Hi All,
I would like to define a list that I would be able to add values to the end of it at each time step and also possibly remove values from its beginning every few time steps. The length of the list varies from case to case (depends on my time step and length of time I want to store data for) so I want the list to be dynamic without defining the length initially. I understand it is possible to have DynamicList in OpenFoam but I am not so sure how is the best approach to achieve this. I would highly appreciate any comments/suggestions. Many thanks in advance Ashkan |
|
June 27, 2016, 12:19 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Have you checked this? It gives a good example.
Code:
applications/test/ DynamicList/Test-DynamicList.C |
|
Tags |
dynamiclist, list |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |