|
[Sponsors] |
February 22, 2022, 07:52 |
Create a labelList from components
|
#1 |
New Member
Join Date: Feb 2022
Posts: 25
Rep Power: 4 |
Hello foamers,
I would like to create a list of integers from components. Something similar to a vector in the STL: Code:
vector<int> v{ 10, 20, 30, 40, 50 }; labelList does not appear to have this constructor and I would have to: Code:
labelList v (5); v[0]=10; v[1] = 20; ... v[4] = 50; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 07:56 |
[blockMesh] edges not aligned with or perpendicular to non-empty directions | ynos | OpenFOAM Meshing & Mesh Conversion | 6 | March 26, 2020 15:02 |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 11:32 |
Actuator disk model | audrich | FLUENT | 0 | September 21, 2009 07:06 |
Where's the singularity/mesh flaw? | audrich | FLUENT | 3 | August 4, 2009 01:07 |