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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: henrik
Forum: OpenFOAM Running, Solving & CFD April 28, 2009, 06:14
Replies: 2
Views: 1,258
Posted By henrik
Some more info on the gory details: ...

Some more info on the gory details:


forAll(DES_, cellI)
{
if( keps_[cellI] < CDESdelta_[cellI] )
{DES_[cellI] = 1.0;}
else
{DES_[cellI] = 0.0;}
}
Forum: OpenFOAM Running, Solving & CFD April 27, 2009, 11:08
Replies: 2
Views: 1,258
Posted By henrik
Dear Sven, DES_ = 1.0 sets the whole field...

Dear Sven,

DES_ = 1.0 sets the whole field to 1.0, likewise DES_ = 0.0;

You need a loop or translate the if into some function that is defined for fields.

Nice error, wonder what CDESdelta_...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 00:42.