Questions tagged [dae]

A (system of) Differential Algebraic Equations (DAE) is a system of equations with ordinary differential equations and algebraic equations; all the equations should be satisfied simultaneously.

Filter by
Sorted by
Tagged with
4 votes
2 answers
378 views

Choice between DAE or ODE formulation for chemical systems

Consider a simple ODE system describing the evolution of two chemical species undergoing the reaction $A = B$ : $$ \frac{dn_A}{dt} = - k * n_A $$ $$ \frac{dn_B}{dt} = k * n_A $$ We can discretize ...
Anon_Chem's user avatar
0 votes
0 answers
363 views

SUNDIALS using Python Interface tutorial

I am attempting to solve differential algebraic equations using SUNDIALS with a Python interface. I am having trouble learning to actually use sundials, and cannot seem to find any tutorials online ...
ellekalle's user avatar
2 votes
1 answer
349 views

solving a Algebraic Differential Equation in Julia using modelingToolKit.JL

I'm trying to solve a differential algebraic equation in Julia's modelingTookKit.JL, where the vector field has the form f(X) = 0. I found an example of a DAE in the below link modelingToolkit.JL DAE](...
steve3051980's user avatar
2 votes
1 answer
156 views

Index reduction of a DAE from a PDE system

I have a system of 2 non-linear, coupled PDEs that I would like to transform to a stiff ODE system to solve them using the method of lines. The 2 equations: $$\begin{align} \frac{\partial \phi}{\...
Iddingsite's user avatar
3 votes
1 answer
387 views

Solving DAE in Julia using GPUs

I'm trying to solve a Differential Algebraic Equation (DAE) in Julia which is very computationally expensive using GPUs. I'm brand new to Julia and don't have much experience coding with GPUs. The ...
steve3051980's user avatar
2 votes
0 answers
189 views

Problem with Numerical DAE Implementation of Nernst-Planck Equations

I write to you all today in order to clarify if I implemented my model correctly into MATLAB. I will outline the following: analytical governing equations, my discretization for the equations and ...
Nicholas Szaro's user avatar
0 votes
0 answers
705 views

"This DAE appears to be of index greater than 1" daeic12 (line76) error code

Hi I am trying to solve a set of pde converted into ODE and DAE using central finite difference method. I have used the MATLAB 'solve' command to determine the coefficients of fictitious nodes for ...
Puneet Valecha's user avatar
0 votes
0 answers
256 views

Problem with solving coupled ODE and DAE equations with mass matrix (Error using daeic12 (line 77) This DAE appears to be of index greater than 1)

I am trying to solve 6 ODE equations coupled with 1 DAE one. The ODE equations have been discritized in space domain and ode15s MATLAB solver is used to solve the equations in time domain. I have ...
Mina's user avatar
  • 1
2 votes
0 answers
81 views

How to increase the stability of a DAE solver?

I am trying to solve a set of linear PDEs of the form $$F\left(\vec{y},\frac{\partial \vec{y}}{\partial x},\frac{\partial^2 \vec{y}}{\partial x^2},\frac{\partial \vec{y}}{\partial t}\right)=0.$$ To ...
Peanutlex's user avatar
  • 219
1 vote
0 answers
42 views

Optimality conditions for optimal control: BVP - DAE

I am solving an optimal control problem of the form $$ \min_u \qquad\int_0^T \langle u(t), u(t) \rangle \, \mathrm{d}t \\ s.t. \quad \dot{x} = \tilde{f}(x) + u, \quad x(0)=x_0 \\ \qquad \tilde{\Phi}(...
jjjjjj's user avatar
  • 325
1 vote
0 answers
117 views

How to solve an implicit ODE with forward Euler?

Consider the implicit ODE $$ M(y)\dot{y} = F(t,y) $$ If $M$ is non-singular for all $y$ How to use the forward-Euler method to numerically solve for $y$ without inverting $M(y)$? I only came out ...
Chen Ziv's user avatar
1 vote
0 answers
17 views

Procedure to identify characteristic properties of unknown functions in a DAE model

I have a system of 1st order odes given by $$ \dot{x_1}(t) = \alpha_1 f_1(x_1,t) + \beta_1 u(t) \\ \dot{x_2}(t) = \alpha_2 f_2(x_2,t) + \beta_2 u(t) $$ They are constrained by an algebraic equation ...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
1 answer
61 views

Open source solver for continuous-time stochastic non-linear DAEs (SDAEs)

I am trying to solve a system of non-linear index-1 DAEs in which the derivatives of the state variables, $x(t)$ are corrupted by additive noise, $w(t)$ (whose covariance matrix is known). $\dot x(t) =...
Dr Krishnakumar Gopalakrishnan's user avatar
0 votes
1 answer
407 views

DAE in Matlab: ode15s

I have to solve this problem $$\left\{\begin{matrix} y''=4y'+\frac{1}{h}-7y\\ y(1)=1\\ y'(1)=1 \end{matrix}\right. \text{where} \; h=5y'-2y$$ as it were a DAE (I know I could just substitute $h$ ...
Marco's user avatar
  • 145
0 votes
3 answers
243 views

Choice of solver/software for global optimisation of cheap black-box function with known derivatives

I am trying to estimate a few unknown parameters of my continuous non-linear PDAE model (simulated through finite-volume method spatial discretisation, and time-stepping through method-of-lines). I am ...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
1 answer
419 views

Does anyone have a driver for fortran DAE solver - COLDAE?

Coldae is a solver writter by U Ascher and R Spiteri, located here http://www.cs.ubc.ca/~ascher/coldae.f . It can solve upto index-2 DAEs using collocation. I am new to Fortran, and having a hard ...
Chintan Pathak's user avatar
12 votes
3 answers
11k views

ODEs vs DAE vs ADE?

I am totally confused between ODEs which I am familiar with, and differential algebraic equations (DAE) and algebraic differential equations (ADE). Are they the same but just different names or what ...
MBM's user avatar
  • 167
2 votes
2 answers
1k views

Solving DAE with higher index

I want to solve 7 coupled differential equations in MATLAB. I used the method of lines (MOL) to convert them to a system of DAEs. I then attempted to solve this system using ode15s. Unfortunately an ...
fatemeh's user avatar
  • 73