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: ngj
Forum: OpenFOAM Programming & Development September 21, 2013, 12:50
Replies: 8
Views: 1,758
Posted By ngj
Well, when you define the variable in...

Well, when you define the variable in createFields.H, it is out of scope (aka unknown) for your function. I merely referred to createFields.H for your inspiration.

The following should work, no...
Forum: OpenFOAM Programming & Development September 17, 2013, 13:55
Replies: 8
Views: 1,758
Posted By ngj
But you still change the entire field based on a...

But you still change the entire field based on a single if statement on the pressure, so now it looks like the pressure in the final cell in the computational domain controls the return value.

I...
Forum: OpenFOAM Programming & Development September 15, 2013, 16:09
Replies: 8
Views: 1,758
Posted By ngj
Also, since you do not modify x, I suggest that...

Also, since you do not modify x, I suggest that you make it into a const reference. The fact that you are copying x will also include some unnecessary overhead.

As already stated, you loop over...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 19:36.