|
[Sponsors] |
Creating a triple index volScalarField S[i][j][k] |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 4, 2019, 17:42 |
Creating a triple index volScalarField S[i][j][k]
|
#1 |
New Member
Join Date: May 2017
Posts: 8
Rep Power: 9 |
Hello everyone,
with the following code I can create a double array of volScalarFields with two indexes, eI and eJ: Code:
List<PtrList<volScalarField>> S(number_I); forAll(S,eI) { S[eI].resize(number_J); forAll(S[eI],eJ) { S[eI].set ( eJ, new volScalarField ( IOobject ( "S"+Foam::name(eI)+Foam::name(eJ), runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), field1 + field2 //some operations (just an example) ) ); } } Is there a way to create a volScalarField with three indexes, say S[eI][eJ][eK]? Thank you. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message | Bruno_Jorge | Main CFD Forum | 1 | February 5, 2019 12:12 |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 23:38 |
[OpenFOAM] Paraview 3.98 - errors when saving geometry file | pajot | ParaView | 1 | September 28, 2013 11:45 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 06:48 |