CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Combining 3 volScalarFields to form a volVectorField (http://www.cfd-online.com/Forums/openfoam/60781-combining-3-volscalarfields-form-volvectorfield.html)

srinath August 11, 2008 05:21

Hi If i have vx, vy and vz
 
Hi

If i have vx, vy and vz as volScalarFields, and want to set the components of a volVectorField U =(vx,vy,vz), what should i do?


Thanks
srinath

srinath August 13, 2008 02:27

I believe this is solved He
 
I believe this is solved

Here is what i did

U.replace(0,vx);
U.replace(1,vy); etc

Srinath


All times are GMT -4. The time now is 01:15.