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 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Fransje
Forum: OpenFOAM Programming & Development November 19, 2010, 09:26
Replies: 6
Views: 2,579
Posted By Fransje
Hum... I focused more on the explanation of what...

Hum... I focused more on the explanation of what he was trying to do than on the code he provided.. But code-wise I can only agree!

As for the explicit looping there is a possibility of avoiding...
Forum: OpenFOAM Programming & Development November 19, 2010, 09:11
Replies: 6
Views: 2,579
Posted By Fransje
By the way, if zoneCell is the boolList...

By the way, if zoneCell is the boolList containing the true and false values, and it has the same number of elements as alfa, could you not try:

forAll(zoneCell, index)
{
...
Forum: OpenFOAM Programming & Development November 19, 2010, 08:52
Replies: 6
Views: 2,579
Posted By Fransje
Would you not loose the conditional variable...

Would you not loose the conditional variable setting by setting alfa directly?? The idea was to set alfa = 1 if the value of the boolList was true and 0 if it was false no?

The explicit looping...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 20:16.