|
[Sponsors] | |||||
how to add an extra dimension to internalField data type? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Chen Huang
Join Date: Jul 2009
Location: Gothenburg, Sweden
Posts: 14
Rep Power: 18 ![]() |
Hello!
I am wondering if there is anyone who knows how to define a data type with an extra dimension to the internalField data. E.g. the unburnt temperature at celli can be called as follows, thermo.Tu().internalField()[celli] Can I have a data type which has an extra dimension as follows thermo.Tu().internalField()[celli][extra dimension]? Thanks for the help! Chen |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Chen Huang
Join Date: Jul 2009
Location: Gothenburg, Sweden
Posts: 14
Rep Power: 18 ![]() |
I defined a list of volScalarField like following
PtrList<volScalarField> variable(100); which means variable has 100 elments which are volScalarField. I call each elements like the following: variable[1][celli] which means I call the celli of the second element (a volScalarField). I can get access of the internal and boundaryField as following, variable[1].internalField()[celli] Chen |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| transsonic nozzle with rhoSimpleFoam | Unseen | OpenFOAM Running, Solving & CFD | 8 | July 1, 2022 07:54 |
| compilation problem with "fvPatch::lookupPatchField" | Ya_Squall2010 | OpenFOAM Programming & Development | 9 | November 15, 2021 23:01 |
| rhoSimpleFoam | claco | OpenFOAM | 7 | April 20, 2010 05:32 |
| buoyantSimpleRadiationFoam | msarkar | OpenFOAM | 0 | February 15, 2010 07:22 |
| pipe flow with heat transfer | Fabian | OpenFOAM | 2 | December 12, 2009 05:53 |