Problem in generating too many pointsFoamerrorprintStackFoam%3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumclipartproud gif%22 ALT%3d%22O%22 BORDER%3d0%3estreamamp

 Register Blogs Members List Search Today's Posts Mark Forums Read

 August 6, 2008, 03:49 Hi OpenFOAM I add a code to #1 Senior Member   Marhamat Zeinali Join Date: Mar 2009 Location: Tehran, Tehran, iran Posts: 107 Rep Power: 10 Sponsored Links Hi OpenFOAM I add a code to channelOodles Solver for generating arbitrary points in every iteration in the solution domain . When the points number is below than 92,the code works OK.But when the points number is upper than 92(for ex:100 or 1000 points),after some iteration the run fails. n=85 YYY[n]= 0.230973cellRandom1 9017 n=86 YYY[n]= 0.171737cellRandom1 140439 n=87 YYY[n]= 0.2166cellRandom1 51072 n=88 YYY[n]= 0.1761cellRandom1 32538 n=89 YYY[n]= 0.240889cellRandom1 75073 n=90 YYY[n]= 0.205857cellRandom1 50671 n=91 YYY[n]= 0.241429cellRandom1 14997 n=92 YYY[n]= 0.243897cellRandom1 135296 Foam::error::printStack(Foam:stream&) Foam::sigSegv::sigSegvHandler(int) [0xffffe420] channelOodles [0x8060d6c] __libc_start_main __gxx_personality_v0 Foam::error::printStack(Foam:stream&) Foam::sigSegv::sigSegvHandler(int) [0xffffe420] channelOodles [0x8060d15] __libc_start_main __gxx_personality_v0 >>You can see the part of the written code: Random perturbation(1234567); int loopRandX; int loopRandZ; for(int n=1;n<=bubbleNumber.value();n++) { Info<< "n="<< n ; loopRandX =rand() % 10000 + 1; Info<< " loopRandX= "<

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post rengu OpenFOAM Running, Solving & CFD 5 March 3, 2009 11:19 sponiar OpenFOAM Running, Solving & CFD 2 January 17, 2008 05:00 nishant_hull OpenFOAM Running, Solving & CFD 18 October 30, 2007 14:52 guimch OpenFOAM Running, Solving & CFD 6 October 25, 2007 17:52 panara OpenFOAM Installation 5 August 10, 2007 14:39