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/)
-   -   Vector of arbitrary length (http://www.cfd-online.com/Forums/openfoam-solving/59128-vector-arbitrary-length.html)

brgirgis February 14, 2008 07:26

How can I construct a vector o
 
How can I construct a vector of arbitrary length? Will it have all the available options like ordinary field<type>, fvMatrix, etc..??

kar February 16, 2008 15:01

Your question sounds like you
 
Your question sounds like you expect single vector to be a field!

brgirgis February 16, 2008 15:56

I want to construct a vector f
 
I want to construct a vector filed that is of arbitrary length not just 3.

alberto February 17, 2008 01:21

Hi, if the array is not too
 
Hi,

if the array is not too big, you can follow these hints: http://www.cfd-online.com/OpenFOAM_D...tml?1202063931

If you want to store a bigger, or arbitrary (unknown a priori) sized arrays, you need to think to something smarter :-)

Regards,
Alberto


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