CFD Online Discussion Forums

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

srinath August 11, 2008 04: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 01: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 03:38.