From: mortain D'Ammaro on
Hello,

I have a series of data composed by {X Y Z U_X U_Y U_Z PRESSURE} I would like to load in Matlab and create the curl of the velocity field (time indipendent).

The domain is X=1...680, whereas Y and Z go from 1...73

The file goes from X=1...680 and Y and Z equal to 1, then reached X=680 Y increase of one (Y=2) and X goes again from 1 till 680 and increase again Y till 73 hence Z increases of 1 (Z=2) and Y again go from 1 till 73 till Z go at 73.

" 1 1 1 0.00000D+00 0.00000D+00 0.00000D+00 0.33333D+00"

"680 73 73 0.00000D+00 0.00000D+00 0.00000D+00 0.33333D+00"

the velocity is zero because there are obstacles at those nodes.

Can you tell me if the format is good for Matlab (because for now it gives me problem) and if it is problem the presence of pressure.
Any of you know how is based the curl calculations in Matlab.

Thank you very much

Antonio
From: us on
"mortain D'Ammaro" <adammaro(a)hotmail.com> wrote in message <i1a84c$pf6$1(a)fred.mathworks.com>...
> Hello,
>
> I have a series of data composed by {X Y Z U_X U_Y U_Z PRESSURE} I would like to load in Matlab and create the curl of the velocity field (time indipendent).
>
> The domain is X=1...680, whereas Y and Z go from 1...73
>
> The file goes from X=1...680 and Y and Z equal to 1, then reached X=680 Y increase of one (Y=2) and X goes again from 1 till 680 and increase again Y till 73 hence Z increases of 1 (Z=2) and Y again go from 1 till 73 till Z go at 73.
>
> " 1 1 1 0.00000D+00 0.00000D+00 0.00000D+00 0.33333D+00"
>
> "680 73 73 0.00000D+00 0.00000D+00 0.00000D+00 0.33333D+00"
>
> the velocity is zero because there are obstacles at those nodes.
>
> Can you tell me if the format is good for Matlab (because for now it gives me problem) and if it is problem the presence of pressure.
> Any of you know how is based the curl calculations in Matlab.
>
> Thank you very much
>
> Antonio

firstly, clearly show the anatomy of your file with a few(!) exemplary lines...
then, show CSSM how you read the file...

us