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

Algebraic Model for Variance - grid size surface field

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2012, 05:03
Default Algebraic Model for Variance - grid size surface field
  #1
Member
 
alessio.nz's Avatar
 
Alex
Join Date: Apr 2010
Posts: 48
Rep Power: 7
alessio.nz is on a distinguished road
Hello,

I have a rhoPimpleFoam solver which solve the equation for an extra scalar equation c (progress variable) and an algebraic equation for its variance.

The model for the variance is var (c) = a * (Delta X)^2 * (grad (c))^2

where the Delta X is the grid size, a is a constant (0.08333) and grad (c) is the gradient of C field.

The solver upload the data for progress variable (which goes from 0 to 1) and variance (which goes from 0 to 0.25) from a two dimensional table .

Table looks like:

Variance PV other variables
0 0
: :
: 1
0.1 0
: :
: 1
0.5 0
: :
: 1
--------------------------------
My questions are the following:

1) I defined the grid size field in the following way and I would like to know if it's correct

surfaceScalarField GridSize
(
IOobject
(
"GridSize",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(0,-1,0,0,0,0,0)
);

GridSize = mesh.surfaceInterpolation::deltaCoeffs();
----------
2) My secondo question is:

considering the equation for the variance:

VarC.internalField() = pow((GridSize.internalField(),2)*0.08333*magSqr(fv c::grad(C));

when I run the simulation, after a few iterations, the variance goes out of bound (despite I impose to stay inside the limit of 0-0.25) and the simulation crashes soon.

Is that have something to do with the gridsize definition?

thanks for the help
alessio.nz 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
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Grid resolution in porous medium model for heat sink Chander CFX 4 April 2, 2012 07:10
Weld surface deformation by VOF model minhaj_iut FLUENT 0 February 12, 2011 09:23
[ICEM] Help with fixing imported IGES model siw ANSYS Meshing & Geometry 24 August 24, 2010 11:22
Reynolds transport, turbulence model, etc Beginner Main CFD Forum 1 January 7, 2009 06:36


All times are GMT -4. The time now is 22:37.