|
[Sponsors] |
Definition of a linear function as volScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 19, 2009, 14:22 |
Definition of a linear function as volScalarField
|
#1 |
Senior Member
|
Hi Foamers,
I am trying to model non-newtonian flow and in the model I am being using I have a linear function that depends on the trace of stress tensor field, in the form func_lin=1+K*trace(StressS) I am using the PISO algorithm to solve the equations, and I believe to calculate that linear function I need to define a volScalarField, and mapped it in the mesh. I am using the following code to do this volScalarField func_lin ( IOobject ( "func_lin", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), 1.0 + K*tr(stressS) ); K is a scalar constant. Am I right? I think this code initializes the scalar field, that is then recalculated in each iteration. However, when I compare my predictions with analytical results, I do not get good results. I may be due to the definition of the linear function. Can someone help me out? Thanks, Titio |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
root of 1d monotone picewise linear function | bill | Main CFD Forum | 14 | February 2, 2009 17:51 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |
wall function | Alex | CFX | 9 | May 19, 2005 11:05 |
Complex Error Function | Wen Long | Main CFD Forum | 1 | April 11, 2004 16:38 |
Porosity function | Pawel | Main CFD Forum | 1 | October 21, 2002 13:47 |