CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Create a Vectorfield (http://www.cfd-online.com/Forums/openfoam-pre-processing/117437-create-vectorfield.html)

joskate May 8, 2013 10:22

Create a Vectorfield
 
Hello Foamer,
I am a beginner ;) I want to create a new VolVectorField in createfields.H. I want to set all x components to components from another VolVectorField and so on. Until now i wrote that:

volVectorField tt1
(
tt1.component(0) = nn.component(1),
tt1.component(1) = nn.component(2),
tt1.component(2) = nn.componen(0)
);
nn is another volVectorField. The compiler "expected initializer before tt1". Thank you for helping!


All times are GMT -4. The time now is 07:18.