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

Trying to create a new solver: phaseChangeHeatDyMFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2018, 02:27
Default Trying to create a new solver: phaseChangeHeatDyMFoam
  #1
Member
 
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10
silviliril is on a distinguished road
I am trying to incorporate dynamic meshing with phaseChangeHeatFoam solver. The new solver is compiled by copying and imitating the files of interDyMFoam and interFoam. I made a new solver called phaseChangeHeatDyMFoam.

But, while running a test code i get this error:

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::mag<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>(Foam::GeometricField<Foam::Vect or<double>, Foam::fvsPatchField, Foam::surfaceMesh> const&) at ??:?
#4 Foam::smoothInterfaceProperties::calculateK() at ??:?
#5
at ??:?
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7
at ??:?
Floating point exception (core dumped)


What can i to solve the problem.

Here is my boundary conditions folder:
https://drive.google.com/drive/folde...gX?usp=sharing
silviliril is offline   Reply With Quote

Old   March 17, 2018, 16:52
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Have you confirmed if the case runs with interDyMFoam or pimpleDyMFoam?

Because that's the first thing you should do, namely to have a case with which you can compare apples with apples, otherwise you are risking trying to solve 2 to 10 problems at the same time. The only guaranteed way to figure out how to solve each problem is if you are able to isolate each problem. And in this case, you need to first test if the case even works with the other solvers.


On the other hand, if you have already tested the case with the two other solvers and it worked, then you should have written indicating that as well.
__________________
wyldckat is offline   Reply With Quote

Old   March 19, 2018, 10:10
Default
  #3
Member
 
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10
silviliril is on a distinguished road
Hi,

I have tested a case by running it with interDyMFoam, where it works fine. But, It do not work in phaseChangeHeatDyMFoam.
silviliril is offline   Reply With Quote

Old   March 20, 2018, 08:33
Default Debug using gdb
  #4
New Member
 
Saicharan
Join Date: Jan 2018
Location: Bangalore, India
Posts: 29
Rep Power: 8
wavefunction is on a distinguished road
Go to your solver's directory, type this in the terminal:

Quote:
wclean
export WM_COMPILE_OPTION=Debug
wmake
Then when you are running your test case, type
Quote:
gdb "your solver's name"
r
If you get an error, type
Quote:
bt
This will show you exactly where the problem is.
wavefunction 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
Can't get data from OpenFoam to external solver using externalCoupled perry OpenFOAM Running, Solving & CFD 4 May 26, 2014 08:09
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
how to combine parts of MRFSimpleFoam and TurbFoam to create a new solver? renyun0511 OpenFOAM Running, Solving & CFD 0 May 3, 2010 22:10
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


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