Questions tagged [sundials]

SUNDIALS (SUite of Nonlinear and DIfferential/ALgebraic equation Solvers)

SUNDIALS was implemented with the goal of providing robust time integrators and nonlinear solvers that can easily be incorporated into existing simulation codes. The primary design goals were to require minimal information from the user, allow users to easily supply their own data structures underneath the solvers, and allow for easy incorporation of user-supplied linear solvers and preconditioners.

26 questions
0
votes
0 answers

Making the CMAKE path available to another software

I am trying to install a software package called kinsol, a non-linear equation solver, through ccmake as instructed in its documentation. The package requires a cmake version 3.12 or higher. So, I installed 3.17.3. Now, the problem is that my kinsol…
Dabu
  • 9
  • 5
0
votes
0 answers

Write a text file to save vectors and other variables in C program

I am using Sundials numerical solver to solve DAE equations. I was able to create a working code but I am not sure what is the best way to save solution vector efficiently. Below is the code snippet for solving equations and saving the solution in a…
Derik
  • 57
  • 2
  • 7
0
votes
1 answer

undefined symbols remain, but shared libraries compile and seem to function properly

My goal was to build shared libraries from SUNDIALS 2.7.0 - these are solvers of ordinary differential equations, written in C. I've downloaded the source, and followed the installation guide: run Cmake (with GUI), checked options "CVODE" (this is…
0
votes
1 answer

Wrapping C function with void pointer as argument using Cython

I am learning C library wrapping in cython. I compiled a couple of simple C function and header files using cython and now am trying to run another example which is more complicated one than previous examples. I downloaded very first version of…
Derik
  • 57
  • 2
  • 7
0
votes
1 answer

Python: How to solve DAE with Jacobian efficiently?

I am trying to use the Assimulo package to solve a set of differential algebraic equations (DAEs). I am trying to use an algorithm similar to that shown here. However, there does not seem to be an option to pass in a sparse matrix. My Jacobian…
0
votes
0 answers

Rare, seemingly random segmentation fault and read only memory error: Why? How do I fix?

I'm trying to solve a system of DAE's in julia using sundials.jl. The original code works fine, but a monte carlo simulation for uncertainty quantification sometimes causes a segmentation fault. `struct s_base s1::Float64 …
Alec Bills
  • 1
  • 1
  • 2
0
votes
2 answers

How to fix ‘IDASolve : the corrector convergence failed’ when solving a DAE with scikits.odes and Sundial?

I'm trying to solve a system of DAE (2 ODE and 1 algebraic equation) using the solver IDA from Sundials (https://computation.llnl.gov/projects/sundials/ida), through the Python package scikits.odes (https://scikits-odes.readthedocs.io). I'm using…
Camille C
  • 27
  • 7
0
votes
0 answers

Build Sundials with MKL

I need to build Sundials (as a dependency for another C/C++ library) on a Linux cluster which provides only MKL as BLAS and LAPACK support. As far as I know, unlike other versions, the MKL BLAS and LAPACK wrappers are not self-contained at link time…
unwiseman
  • 1
  • 1
0
votes
1 answer

Dropwizard Sundial Schedueled task with Hibernate object

I have this sundial task in my dropwizard project: @SimpleTrigger(repeatInterval = 10, timeUnit = TimeUnit.SECONDS) public class GitlabImporter extends Job { private static BranchDAO branchDAO; @Override @ExceptionMetered public void…
ghovat
  • 1,033
  • 1
  • 12
  • 38
0
votes
0 answers

Solving Stiff Ordinary differential Equations using C and MATLAB

I have 2*m+3 STIFF ordinary differential equations to be solved. I have tried to solve it using MATLAB ode15s for m=1 and it works fine. But I would like to use Sundials package CVODE to solve the equations. While trying to do so, I used 'backward…
0
votes
0 answers

Failed to compile mex in Matlab 2014a

I was trying to compile a .c file in Matlab 2014a on a Windows 7(64-bit) machine. The compiler was a Mingw-w64 gcc: mex -lsundials_nvecserial -lsundials_cvode -lm -IC:/sundials/include -LC:/sundials/lib model_pike_cvode.c Then it gave me some…
1
2