CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Create a Vectorfield

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2013, 10:22
Default Create a Vectorfield
  #1
New Member
 
Join Date: May 2013
Posts: 1
Rep Power: 0
joskate is on a distinguished road
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!
joskate is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 09:03
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


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