|
[Sponsors] |
Identify unknown function (boundMinMax) and include Header file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2011, 06:12 |
Identify unknown function (boundMinMax) and include Header file
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Hello World.
I have a function which definition is unknown while compiling the code. Is is called boundMinMax and takes three inputs. Does anybody know which H.-file I have to include to make the compilation work? Thanks sega
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
June 24, 2011, 18:31 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi sega,
You could have at least mentioned the OpenFOAM version you were using! According to google: Quote:
Best regards, Bruno
__________________
|
||
June 25, 2011, 03:08 |
|
#3 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Yes, Sorry.
I'm using version 1.7.1 in which boundMinMax is not included in bound.H any more. Instead there is only the function bound, which looks like having a different kind of input. Do you know how the new bound-function works? S.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
June 25, 2011, 05:52 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Sebastian,
Oddly enough, the official OpenFOAM apparently can survive without bounding the maximum value. It has done this since at least version 1.4.1. And the bound function works as simply as if were named boundMin; bound also exists in 1.5-dev and 1.6-ext. So, basically, if your code already uses boundMinMax, then take out the maximum value. But if you see it still needs to bind the maximum value, either reimplement the code from the OpenFOAM variant -dev or -ext, or negate the scalar field and bind the negative maximum to it! I did a bit more digging and found that boundMinMax is only used in "src/sampling/boundField/boundField.C" in 1.5-dev and 1.6-ext... so no wonder that only bound exists in the original code, as well as in the variants... Best regards, Bruno
__________________
Last edited by wyldckat; June 25, 2011 at 05:53. Reason: "simply" was repeated |
|
Tags |
boundminmax |
|
|