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

Error with custom solver simulation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2019, 14:05
Default Error with custom solver simulation
  #1
New Member
 
Vitor Heitor Cardoso
Join Date: Jan 2019
Location: Rio de Janeiro
Posts: 10
Rep Power: 3
heitorvitorc is on a distinguished road
Hello foamers,

This is my first time customizing a solver, so if my question has obvious answers, I apologize in advance. I'm adapting the simpleFoam solver to include a body force on the momentum equation, so I did all the procedures to compile a custom solver, and everything happened well. However when I started a test-simulation to evaluate the accuracy of the solver to compare with analytic results for a simple laminar steady-state flow in a rectangular shaped-brick, the results didnt go well. I've attached the log file from the simulation, and I wonder if you guys could help me with it.

I have checked the boundary conditions and found nothing wrong (I also used the conventional simpleFoam for a check-simulation to see if it was a problem with the mesh, and it ran smoothly), and I proceeded with an dimensional analysis for the added term on the right side of the continuity equation and the results are solid.


The error in the log file:

#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::GAMGSolver::scale(Foam::Field<double>&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const at ??:?
#4 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ??:?
#5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoamCorrected"
#8 Foam::fvMatrix<double>::solve() in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoamCorrected"
#9 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoamCorrected"
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleFoamCorrected"
Floating point exception (core dumped)
----------------------------------------------------------------------------------------------

Thanks in advance!
Attached Images
File Type: jpg mesh.jpg (179.5 KB, 6 views)
Attached Files
File Type: txt log.txt (149.0 KB, 1 views)
heitorvitorc is offline   Reply With Quote

Reply

Tags
body force inclusion, custom solver, internal flow, simplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 to restart simulation using results from other solver sahmed OpenFOAM Running, Solving & CFD 8 July 5, 2019 07:02
PEMFC model with FLUENT brahimchoice FLUENT 21 July 16, 2018 06:22
Hybrid discretisation - blend factor gcoopermax CFX 5 September 23, 2016 09:05
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52


All times are GMT -4. The time now is 15:46.