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/)
-   -   Definition of tensions initial conditions (https://www.cfd-online.com/Forums/openfoam-solving/58096-definition-tensions-initial-conditions.html)

titio January 15, 2009 16:18

Hi, I am trying to model vi
 
Hi,

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?

Antonio

santos January 16, 2009 06: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.

Regards,
Jose Santos


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