CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

question about createField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2012, 17:10
Question question about createField
  #1
New Member
 
reza
Join Date: Apr 2012
Posts: 7
Rep Power: 13
sasookey is on a distinguished road
hello
I'm new user and I want to know what the statement "mesh" do in this lines:

volScalarField u
(
IOobject
(
"u",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE,
),
mesh
)

I want to do some change into some area of a mesh like specify u in a plane or specific region can changing the "mesh" in here help me?
sasookey is offline   Reply With Quote

Old   April 30, 2012, 05:17
Default
  #2
New Member
 
Declan Carolan
Join Date: Jul 2011
Posts: 3
Rep Power: 14
declanj is on a distinguished road
you should use the setFields utility together with setFieldsDict. This will allow you to change the values of any variable you solve for. Have a look at the multiphase tutorial for an example of what setFields can do.
declanj 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
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
question on bounday layer modeling Wen Long Main CFD Forum 2 November 12, 2005 17:29
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37
Philosophical CFD question Richard Howe Main CFD Forum 14 June 17, 2001 14:41


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