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

An error about a control equation only includes a transient term and a source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2021, 13:04
Default An error about a control equation only includes a transient term and a source term
  #1
New Member
 
Join Date: Aug 2020
Posts: 7
Rep Power: 5
Heno is on a distinguished road
Hi foamers,
In my program, a control equation only includes a transient term and a source term like that:

ddt(rho,Y) == Sourece

When I run the solver ,the error message shows that:

#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::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4 Foam:perator/(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#5 Foam::diagonalSolver::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&) at /opt/openfoam4/src/finiteVolume/lnInclude/fvMatrixSolve.C:82
#8 Foam::fvMatrix<double>::solve() at /opt/openfoam4/src/finiteVolume/lnInclude/fvMatrixSolve.C:325 (discriminator 6)
#9 ? at ~/OpenFOAM/tutorials/pemfccoldstartModel-4.0.0/pemfccoldstartSolver/applications/../src/myFoam/myFoam12.H:12 (discriminator 42)
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11 ? at ??:?

Please tell me how can I do to solve the problem, thanks a lot.
Heno is offline   Reply With Quote

Old   June 6, 2021, 08:26
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Firstly, you have given us almost no information on what your coding is, so it's not very easy to help you out. Have a read of Guide: How to ask a question on the forums and then have a think about how you might phrase your post to give readers the best chance of helping you.

In the mean time, one thing that we can do is help you understand the error message - it is complaining about a floating point error (#1) as a result of a divide operation (#3, #4) in the diagonal solver (#5). Perhaps check that rho is properly defined and non-zero?
Tobermory is offline   Reply With Quote

Old   June 7, 2021, 22:35
Default
  #3
New Member
 
Join Date: Aug 2020
Posts: 7
Rep Power: 5
Heno is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
Firstly, you have given us almost no information on what your coding is, so it's not very easy to help you out. Have a read of Guide: How to ask a question on the forums and then have a think about how you might phrase your post to give readers the best chance of helping you.

In the mean time, one thing that we can do is help you understand the error message - it is complaining about a floating point error (#1) as a result of a divide operation (#3, #4) in the diagonal solver (#5). Perhaps check that rho is properly defined and non-zero?
Thanks for your help Tobermory! I will read the how-ask-question-forums carefully.

I cannot provide my code for some reasons, and I sure the rho is non-zero. But I added a laplacian term in my control equation and my code ran(The value of the laplacian term is relatively small). I tried to delete the laplacian term in another equation and kept the transit term and source term only. It also didn't work and apear the same error message. So I gueess the problem is in the matrix solver. I am not sure if the matrix solver in OpenFOAM can solve the equations with only transient and source terms.
Heno 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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 03:09
How to stabilize added source term in momentum equation? mykkujinu2201 OpenFOAM Programming & Development 7 June 3, 2021 14:28
How to add Source term (2) for PYROLYSIS - reactingOneDim Kummi OpenFOAM 10 April 12, 2021 21:11
Scalar Transport Equation with a source term using functionObjects and fvOptions mmohaqeqf OpenFOAM Running, Solving & CFD 2 March 8, 2021 18:12
How to define a transient species source term? aleisia FLUENT 3 March 7, 2011 22:58


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