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

how to handle this kind of crash

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2009, 07:58
Default how to handle this kind of crash
  #1
New Member
 
mihamina keisha
Join Date: May 2009
Location: india
Posts: 19
Rep Power: 16
keishawillstone is on a distinguished road
Hi there,
My application crashes due to initial field set to 0 for some variables(the division operator can not handle it).
So I gave value to the fields initially set to 0 and I ran it,it was ok with the division but I had another trouble with the operator exp()
Then I went on the internet and found out an alternative about how to handle this,I tried and came out with the same error message!!
Here is what I found on the internet:
1-found out from the printed stack trace which files contain the functions that crash.Copy these into your local directory(At this stage I found out that the function that crashes is GeometricScalarField.C so I copied it and put into the directory of my application named keisha)
2-Add the files to your Make/files
What I did in my Make files is like this:
keisha.C
GeometricScalarField.C

EXE = $(.....)/keisha

3-in Make/options add
-DFULLDEBUG -g O0
to EXE_INC and recompile
And I did it but it seems like it doesn't work out and gives this message
"No rule to make target'GeometricScalarField.C ' needed by 'GeometricScalarField.dep '" when I compile it
I don't know whether I did well but I am quite stuck!!!I dont know what to do!!!
Can somebody out there help me out please?
Best Regards
keishawillstone is offline   Reply With Quote

Old   June 30, 2009, 12:04
Default
  #2
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 17
sachin is on a distinguished road
hi there,
Could you elaborate what exactly are you trying ....and why
sachin is offline   Reply With Quote

Old   July 1, 2009, 06:21
Default
  #3
New Member
 
mihamina keisha
Join Date: May 2009
Location: india
Posts: 19
Rep Power: 16
keishawillstone is on a distinguished road
hi!
Actually,I'm elaborating a code for heat transfer model in an incinaretor,this code contains severals lines.for the compiling it's ok but when I run it,it crashes at this line:

volScalarField rchim = ag/((exp(bo2)-1)/(bo2*rcdiff));

bo2 is volscalarfiled of which the initial field is set to 0
the problem is: I tried to give value to the field but it seems like it doesnt either
then I found out a way to work it out(to take into account the division by zero) in the internet(as I explain in my first post) but I dont know but it doesnt work.So please can you help me?
keishawillstone is offline   Reply With Quote

Old   July 2, 2009, 07:52
Default
  #4
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 17
sachin is on a distinguished road
hi
I m sorry... i still dont understand...
anyways whatever i understood ... is it really necessary to initialize with 0
what solver is it transient or steady ....what if you just keep it slightly more than 0 and run ...might take bit longer to converge or atleast get some idea if it runs some iterations
are you sure about the way it is being done if it is zero ....i doubt..can u point to that page from where u studied it...sounds something interesting
sachin is offline   Reply With Quote

Old   July 2, 2009, 08:22
Default
  #5
Member
 
Sachin Kanetkar
Join Date: Mar 2009
Posts: 57
Rep Power: 17
sachin is on a distinguished road
i found that page ....but it is just debug ...whereas in ur case u know it is because of initial field....why debug more...guess changing initial field is gud idea
sachin is offline   Reply With Quote

Old   July 2, 2009, 08:36
Default
  #6
New Member
 
mihamina keisha
Join Date: May 2009
Location: india
Posts: 19
Rep Power: 16
keishawillstone is on a distinguished road
hi,
thank you,I will try to set it slightly more than zero,you right!!!
best regards,
keishawillstone 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
How did I set two kind of slope in channel ? Marco FLOW-3D 9 August 30, 2022 08:07
please help me with this special kind of boundary condition. mactonald STAR-CD 4 May 2, 2009 07:07
Kind Request Friends vijayaragavan FLUENT 0 February 5, 2008 23:19
What kind of boundary? Nico FLUENT 1 November 16, 2006 23:37
two kind reaction particles? Nicholas FLUENT 5 October 12, 2003 21:46


All times are GMT -4. The time now is 16:13.