CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   question about createField (https://www.cfd-online.com/Forums/openfoam-solving/101182-question-about-createfield.html)

sasookey April 28, 2012 17:10

question about createField
 
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?

declanj April 30, 2012 05:17

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.


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