CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problem convertng a code from 11 to 12

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2005, 14:17
Default I'm going to use 'mapInlet.H'
  #1
ali
Member
 
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 17
ali is on a distinguished road
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
ali is offline   Reply With Quote

Old   December 2, 2005, 05:27
Default You could check the source cod
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
You could check the source code. What type is cut? Wasn't it a cuttingPlane? (sampling library)
mattijs is offline   Reply With Quote

Old   December 5, 2005, 21:10
Default Mattijs, Yes 'cut' is 'cut
  #3
ali
Member
 
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 17
ali is on a distinguished road
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.
ali is offline   Reply With Quote

Old   December 6, 2005, 05:43
Default Can you create a simple testca
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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)
mattijs is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running code yaseer Main CFD Forum 0 March 23, 2007 12:08
problem in installation of Fedora code peter Main CFD Forum 1 August 22, 2006 10:03
Looking for a open FEM code to solve a FSI problem Esto Main CFD Forum 3 June 15, 2006 12:02
problem with using colocated code Jack Main CFD Forum 0 December 15, 2002 01:15
SIMPLE code for 3_D problem bobby Main CFD Forum 1 December 26, 2000 00:20


All times are GMT -4. The time now is 17:59.