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

Definition of a linear function as volScalarField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 19, 2009, 14:22
Question Definition of a linear function as volScalarField
  #1
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 8
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
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
titio is offline   Reply With Quote

Old   October 3, 2010, 16:51
Default openfoam solvers combination
  #2
New Member
 
saeed roosta
Join Date: Sep 2010
Posts: 1
Blog Entries: 1
Rep Power: 0
troosta is on a distinguished road
Hi,
I am trying to combine two solvers of openfoam (nonNewtonianIcoFoam anddieselFoam). I need an algorithm to do it.
Roosta
troosta is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 10:05
Complex Error Function Wen Long Main CFD Forum 1 April 11, 2004 15:38
Porosity function Pawel Main CFD Forum 1 October 21, 2002 12:47


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