CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Array declaration (http://www.cfd-online.com/Forums/openfoam-solving/59484-array-declaration.html)

kdarc August 23, 2007 23:21

Hi. I want to set up spmeth
 
Hi.

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?

thanks.


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