CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Create a Vectorfield (

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 12:46.