CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Definition of tensions initial conditions (

titio January 15, 2009 17:18

Hi, I am trying to model vi

I am trying to model viscoelastic flow using OpenFoam. Right now I have a problem on how to define initial conditions and fields for the tensions. Can I do it extending createFields.H, for example of icoFoam, and defining a data file similar to p and U? Can anyone help me out?


santos January 16, 2009 07:52

Hello Antonio, For scalars
Hello Antonio,

For scalars and vectors, you may use p and U as a template for declaring your fields in createFields.H.

For tensors, use volTensorField fieldName, the other lines are the same.

To define initial conditions you need to edit your <case>/0/<field> files. Look in the UserGuide for guidance.

Jose Santos

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