Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10244 > unrolled thread
| Started by | Matthieu Brucher <matthieu.brucher@gmail.com> |
|---|---|
| First post | 2012-05-29 09:45 +0000 |
| Last post | 2012-06-01 09:21 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Simplify and then discretize a set of equations with derivatives and integrals Matthieu Brucher <matthieu.brucher@gmail.com> - 2012-05-29 09:45 +0000
Simplify and then discretize a set of equations with derivatives and integrals dr DanW <dmaxwarren@gmail.com> - 2012-06-01 09:21 +0000
| From | Matthieu Brucher <matthieu.brucher@gmail.com> |
|---|---|
| Date | 2012-05-29 09:45 +0000 |
| Subject | Simplify and then discretize a set of equations with derivatives and integrals |
| Message-ID | <jq25s3$6f6$1@smc.vnet.net> |
Hi,
I'm new to Mathematica, but as I professionally have access to it, I'd
like to use it to simplify this problem.
I have a set of equations (from http://www.simulanalog.org/statevariable.pdf)
explaining how a simple electronic system works. My input is e(t) and
my output is vd(t). f(v) can be written as an exponential function
(f(v) = a * e^(b * v + c) for instance).
Here are the equastions :
eqns = {e[t] - i[t] * R - vc[t] - vd[t] == 0,
vc[t] == 1/C * Integrate[i[t], t],
i[t] == f[vd[t]]}
What I'd like is first to simplify this set of equations to a simple
one with only e(t) and vd(t). At one point, I could get the correct
result, but I could get the correct result after resetting the kernel.
Once this is done, I'd like to discretize the resulting function with
the bilinear transform.
Of course, it easy to get the result by hand in this case. But my next
set of equations is so complicated that I don't want to try to solve
it (my main issue is the first step, the discretization is 'just"
symbolic computation once the replacement is done), so I'm back at
Mathematica.
Is it possible do this in Mathematica? Is it complicated to do?
If someone has an answer...
Matthieu
[toc] | [next] | [standalone]
| From | dr DanW <dmaxwarren@gmail.com> |
|---|---|
| Date | 2012-06-01 09:21 +0000 |
| Message-ID | <jqa1i6$bja$1@smc.vnet.net> |
| In reply to | #10244 |
If you write the capacitor equation in derivative instead of integral form, your equation set is in the form of a Differential-Algebraic Equation (DAE) which I believe NDSolve could solve directly, even if f() is not invertable. Wolfram just released SystemModeler (formerly MathModelica) which is a system for formulating this sort of equation from a representation of a physical system and solving it. In the process, it generates c code of the equation set. If this is a one-time thing, maybe you could download the trial version of SystemModeler and extract the c code from your system. If you are doing this on a regular basis for your project, it might be worth giving SystemModeler a look. Daniel
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web