CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Dynamic List

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2016, 00:49
Default Dynamic List
Join Date: Jul 2010
Posts: 55
Rep Power: 15
ashkan is on a distinguished road
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 is offline   Reply With Quote

Old   June 27, 2016, 11:19
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
Have you checked this? It gives a good example.
applications/test/ DynamicList/Test-DynamicList.C
@HIKassem |
hk318i is offline   Reply With Quote


dynamiclist, list

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
[] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

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