CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problem convertng a code from 11 to 12 (https://www.cfd-online.com/Forums/openfoam-solving/60399-problem-convertng-code-11-12-a.html)

ali December 1, 2005 13:17

I'm going to use 'mapInlet.H'
 
I'm going to use 'mapInlet.H' from version 1.1 in 1.2, but there is a problem. In 1.1, for the same case, the result of following sentence is "true", but in 1.2, the outcome is "false".


if (planeMapping && targetPatchNamePresent && cut.cut())
{
// some code
}


I know for sure that both planeMapping and targetPatchNamePresent are true in both 1.1 and 1.2, but I guess there is a problem so 1.2 doesn't recognize "cut.cut()" and it returns false.

I suspect this is because of some changes in the 1.2, what I should put instead if "cut.cut()" to make it working in 1.2?

Thanks

mattijs December 2, 2005 04:27

You could check the source cod
 
You could check the source code. What type is cut? Wasn't it a cuttingPlane? (sampling library)

ali December 5, 2005 20:10

Mattijs, Yes 'cut' is 'cut
 
Mattijs,

Yes 'cut' is 'cuttingPlane' type. I found no change of syntax between 1.1 and 1.2. I shifted the position of my
mapping plane sligtly and it worked. It might be that I am cutting exactly between two cell layers, which could cause the cutting algorithm to fail.

But the thing is I have exact same location of mapping (two identical cases) and 1.1 works without any problem, but 1.2 does not work, I'm still puzzled.

Anyhow, just shifting mapping location solves the problem but it's still odd.

mattijs December 6, 2005 04:43

Can you create a simple testca
 
Can you create a simple testcase which shows this behaviour? The 1.2 code should be at least as good as the 1.1 code (but much faster)


All times are GMT -4. The time now is 05:49.