Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7413 > unrolled thread
| Started by | Gausstein <gausstein@gmail.com> |
|---|---|
| First post | 2011-12-23 12:15 +0000 |
| Last post | 2011-12-24 12:08 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
NDSolve::ndsz Gausstein <gausstein@gmail.com> - 2011-12-23 12:15 +0000
Re: NDSolve::ndsz "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-12-24 12:08 +0000
| From | Gausstein <gausstein@gmail.com> |
|---|---|
| Date | 2011-12-23 12:15 +0000 |
| Subject | NDSolve::ndsz |
| Message-ID | <jd1rdq$1rt$1@smc.vnet.net> |
Greetings,
I have a problem solving two coupled differential equations using
NDSolve.
The following message appears: "NDSolve::ndsz: At t ==
-0.008080592178665635`,
step size is effectively zero; singularity or stiff system suspected.
>>"
Can NDSolve actually solve these equations? or should I better try
another program?
I have tried everything!!!
I just need to know if it is possible to solve this equations with
Mathematica.
The code used is the following:
*********************************************************************************************************
H0 = 1/5000000;
m = 3/500000000;
A = 1/10^2;
V0 = 3 H0^2;
V0a = V0 - 1/2 A m^2 (2^(2 - 18 (1 - (7 Sqrt[51])/50)) 5^(2 - 21 (1 -
(7 Sqrt[51])/50)));
ti = -(11/10);
tf = -Exp[-10];
V[t_] := V0 + 1/2 m^2 phi[t]^2 + UnitStep[t + 1] (-V0 + V0a + 1/2 A
m^2 phi[t]^2)
value1 = 2^(1 - 21/2 (1 - (7 Sqrt[51])/50)) 5^(1 - 12 (1 - (7
Sqrt[51])/50)) 11^(3/2 (1 - (7 Sqrt[51])/50));
value2 = -3 2^(1 - 21/2 (1 - (7 Sqrt[51])/50)) 5^(2 - 12 (1 - (7
Sqrt[51])/50) ) 11^(3/2 (1 - (7 Sqrt[51])/50) -
1) (1 - (7 Sqrt[51])/50);
temp = NDSolve[{
Derivative[1][a][t]/a[t]^2 ==Sqrt[1/3 (1/2 (Derivative[1][phi][t]/
a[t])^2 +V[t])],
Derivative[2][phi][t] + 2 Derivative[1][a][t]/a[t] Derivative[1][phi]
[t] + m^2 a[t]^2 phi[t] (1 + A UnitStep[t + 1]) == 0,
a[ti] == -1/(H0 ti),
phi[ti] == value1,
phi'[ti] == value2},
{a, phi}, {t, ti, tf}, MaxSteps -> \[Infinity], InterpolationOrder ->
All]
***************************************************************************************************************
I know it looks pretty messy, but once it is copied into the Notebook
(and if
it is converted into StandardForm) it gets clearer.
I really need help!!!!!!!!!!!!!!!!!!
Thanks a lot!!!
[toc] | [next] | [standalone]
| From | "Kevin J. McCann" <Kevin.McCann@umbc.edu> |
|---|---|
| Date | 2011-12-24 12:08 +0000 |
| Message-ID | <jd4fci$d9u$1@smc.vnet.net> |
| In reply to | #7413 |
If you plot the resulting a[t] and phi[t] over the range -1.1 <=t
<=-0.009, you will see that the two solutions blow up, as a result V[t]
does as well. I assume that the DE is physically motivated. Is there
some reason it should blow up?
Kevin
On 12/23/2011 7:15 AM, Gausstein wrote:
> Greetings,
> I have a problem solving two coupled differential equations using
> NDSolve.
> The following message appears: "NDSolve::ndsz: At t ==
> -0.008080592178665635`,
> step size is effectively zero; singularity or stiff system suspected.
>>> "
>
> Can NDSolve actually solve these equations? or should I better try
> another program?
> I have tried everything!!!
> I just need to know if it is possible to solve this equations with
> Mathematica.
> The code used is the following:
> *********************************************************************************************************
> H0 = 1/5000000;
> m = 3/500000000;
> A = 1/10^2;
> V0 = 3 H0^2;
> V0a = V0 - 1/2 A m^2 (2^(2 - 18 (1 - (7 Sqrt[51])/50)) 5^(2 - 21 (1 -
> (7 Sqrt[51])/50)));
>
> ti = -(11/10);
> tf = -Exp[-10];
> V[t_] := V0 + 1/2 m^2 phi[t]^2 + UnitStep[t + 1] (-V0 + V0a + 1/2 A
> m^2 phi[t]^2)
>
> value1 = 2^(1 - 21/2 (1 - (7 Sqrt[51])/50)) 5^(1 - 12 (1 - (7
> Sqrt[51])/50)) 11^(3/2 (1 - (7 Sqrt[51])/50));
> value2 = -3 2^(1 - 21/2 (1 - (7 Sqrt[51])/50)) 5^(2 - 12 (1 - (7
> Sqrt[51])/50) ) 11^(3/2 (1 - (7 Sqrt[51])/50) -
> 1) (1 - (7 Sqrt[51])/50);
>
> temp = NDSolve[{
>
> Derivative[1][a][t]/a[t]^2 ==Sqrt[1/3 (1/2 (Derivative[1][phi][t]/
> a[t])^2 +V[t])],
> Derivative[2][phi][t] + 2 Derivative[1][a][t]/a[t] Derivative[1][phi]
> [t] + m^2 a[t]^2 phi[t] (1 + A UnitStep[t + 1]) == 0,
> a[ti] == -1/(H0 ti),
> phi[ti] == value1,
> phi'[ti] == value2},
> {a, phi}, {t, ti, tf}, MaxSteps -> \[Infinity], InterpolationOrder ->
> All]
> ***************************************************************************************************************
> I know it looks pretty messy, but once it is copied into the Notebook
> (and if
> it is converted into StandardForm) it gets clearer.
> I really need help!!!!!!!!!!!!!!!!!!
> Thanks a lot!!!
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web