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 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: mturcios777
Forum: OpenFOAM July 15, 2010, 17:55
Replies: 2
Views: 1,611
Posted By mturcios777
Because this operation has to be done cell by...

Because this operation has to be done cell by cell, you need to use something like:

forAll (X, celli)
{
if(X[celli]>0.5) {
Y[celli] = exp(-X[celli]);}
else {
Y[celli] =...
Showing results 1 to 1 of 1

 
Forum Jump

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