CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Array declaration (

kdarc August 23, 2007 23:21

Hi. I want to set up spmeth

I want to set up spmething akin to a volScalarField ARRAY.

That is, something that would appear, say in fortran as
var(cell_i,element_j). That is a scalar that has n components (element_j ranges from 1 to n), for each cell in the mesh. I could imagine it looking something like var[cellI][j] in openfoam.

could someone point me to an example where such a variable is declared, initialized, used?


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