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: alberto
Forum: OpenFOAM April 23, 2010, 14:18
Replies: 7
Views: 4,534
Posted By alberto
You're welcome :D

You're welcome :D
Forum: OpenFOAM April 22, 2010, 10:11
Replies: 7
Views: 4,534
Posted By alberto
It's not a class, it's just an index created...

It's not a class, it's just an index created locally by the forAll loop :D



Yes, let's assume you want to loop over the boundaries of a field p:


forAll(p.boundaryField(), patchi)
{
...
Forum: OpenFOAM April 22, 2010, 00:30
Replies: 7
Views: 4,534
Posted By alberto
Hi, you have to loop over your cells to...

Hi,

you have to loop over your cells to compare information in each point:

forAll(P1, cellI)
{
if (P1[cellI] > P2[cellI])
{
N[cellI] = ...
}
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 06:56.