In[]:=
Clear["Global`*"]
In[]:=
x[p_,q_]:=​​4.`p+Log188.58217139771662`
2
q
0.7580658066983395`+1.`Tanh2.1332922094779003`+0.0005716925300367255`Log
1
q
;
In[]:=
R[p_,q_]:=11+11.810832292494606`
2
Sech1.1354604292040422`-3.81874`+p+Log9.322865507870436`*^17
1/4
1
q

;
In[]:=
tm[q_]:=Log
1.433398163769229`*^-11
1/4
1
3
q
1/4
1
q
;
In[]:=
y0[q_,r_]:=Log5.5475950225106745`
2
q
r39.7685`-10.4018`1.`-1.`Tanh1.1354604292040422`-3.81874`+Log9.322865507870436`*^17
1/4
1
q
;​​ft[Y_,p_,q_]:=Module[{y,b,xx,A,dydt,dbdt},{y,b}=List[Y[[1]],Y[[2]]];​​xx=x[p,q];​​A=Sqrt[Exp[y]+Exp[xx]];​​dydt=(1.+3.*A)/(A-Exp[y-xx]/4.)/R[p,q];​​dbdt=-A/(A-Exp[y-xx]/4.)/R[p,q];​​{dydt,dbdt}];​​​​BE[q_,r_]:=Module[{yini,bini,Yini,tauM,NT,ty,sol,ys,bs,xs,H2,bh7,H2p,bsp,bspp},yini=y0[q,r];​​bini=0;​​Yini={yini,bini};​​tauM=tm[q];​​NT=10000;​​ty=Table[i,{i,0,tauM,tauM/NT}];​​sol=NDSolve[{Y'[tau]ft[Y[tau],tau,q],Y[0]Yini},Y,{tau,0,tauM}][[1]];​​ys=sol[[1,All,1,2]];​​bs=sol[[1,All,2,2]];​​xs=x[ty,q];​​H2=Table[Log[Exp[ys[[i]]]+Exp[xs[[i]]]],{i,1,NT}];​​bh7=Table[Exp[ys[[i]]],{i,1,NT}];​​H2p=Table[(H2[[i+1]]-H2[[i]])/(ty[[i+1]]-ty[[i]]),{i,1,NT-1}];​​bsp=Table[(bs[[i+1]]-bs[[i]])/(ty[[i+1]]-ty[[i]]),{i,1,NT-1}];​​bspp=Table[(bsp[[i+1]]-bsp[[i]])/(ty[[i+1]]-ty[[i]]),{i,1,NT-2}];​​{ty,bh7,H2,H2p,bs,bsp,bspp,NT}];​​
In[]:=
BE[1,1]
Part
:Part 2 of Y[tau] does not exist.
NDSolve
:At tau == -2.11454​, step size is effectively zero; singularity or stiff system suspected.
Part
:Part specification YInterpolatingFunction{{-2.11454,0.}},{5,3,1,{437},{4},0,0,0,0,Automatic,{},{},False},{{-2.11454,49,387}},{-34.6432,8.237},3.35084×
11
10
,-6.32877×
10
10
,49,387,{Automatic}1,All,1,2 is longer than depth of object.
Part
:Part specification YInterpolatingFunction{{-2.11454,0.}},{5,3,1,{437},{4},0,0,0,0,Automatic,{},{},False},{{-2.11454,49,387}},{-34.6432,8.237},3.35084×
11
10
,-6.32877×
10
10
,49,387,{Automatic}1,All,2,2 is longer than depth of object.
Part
:Part 6 of YInterpolatingFunction{{-2.11454,0.}},{5,3,1,{437},{4},0,0,0,0,Automatic,{},{},False},{{-2.11454,49,387}},{-34.6432,8.237},3.35084×
11
10
,-6.32877×
10
10
,49,387,{Automatic}1,All,1,2 does not exist.
Part
:Part 7 of YInterpolatingFunction{{-2.11454,0.}},{5,3,1,{437},{4},0,0,0,0,Automatic,{},{},False},{{-2.11454,49,387}},{-34.6432,8.237},3.35084×
11
10
,-6.32877×
10
10
,49,387,{Automatic}1,All,1,2 does not exist.
General
:Further output of Part::partw will be suppressed during this calculation.
Out[]=
$Aborted[]