WOLFRAM NOTEBOOK

In[]:=
In[]:=
In[]:=
htab01=Join[htab,htab1];
In[]:=
Dimensions[htab01]
Out[]=
{2002,2}
In[]:=
lhinterp=Interpolation@Log[htab01];
In[]:=
LogLogPlot[Exp[lhinterp[Log[k]]],{k,0.1,1000},PlotLabel->"H(κ)",AxesLabel->{κ,H}]
Out[]=
In[]:=
Dv2[r_]:=NIntegrate[1/Pi^2(1-Sin[kr]/(kr))Exp[lhinterp[Log[k]]],{k,0.1,1000}];
In[]:=
rD[(1-Sin[kr]/(kr)),r]//Simplify
Out[]=
-Cos[kr]+
Sin[kr]
kr
In[]:=
DDv2[r_]:=NIntegrate1Pi^2-Cos[kr]+
Sin[kr]
kr
Exp[lhinterp[Log[k]]],{k,0.1,1000};
In[]:=
DDv2[1.]
Out[]=
0.00560144
In[]:=
vtab=ParallelTable[{r,Dv2[r]},{r,0.01,10,0.01}];
In[]:=
ListLinePlot[vtab]
Out[]=
In[]:=
PTh=LogLogPlot[Dv2[r],{r,0.001,100},PlotLegends->{"Theory"}]
Out[]=
Theory
In[]:=
In[]:=
PTh0=LogLogPlot[Dv2[r],{r,0.00001,0.001},PlotLegends->{"Theory"},PlotStyle->{Green}]
Out[]=
Theory
In[]:=
Pas=LogLogPlot[Dv2[0.001](r/0.001)^2,{r,0.00001,0.001},PlotStyle->{Red,Dashed},PlotLegends->{ρ^2}]
Out[]=
2
ρ
In[]:=
Show[{PTh0,PTh,Pas},PlotRange->All,PlotLabel->"Velocity second moment",AxesLabel->{ρ,νtΔv^2}]
Out[]=
Theory
Theory
2
ρ
In[]:=
24864
Out[]=
20736
In[]:=
Subscript[ξ,2][r]
Out[]=
ξ
2
[r]
In[]:=
ξ2[r_]:=DDv2[r]/Dv2[r];
In[]:=
ξ2[1]
Out[]=
0.0562551
In[]:=
X2=Plot[ξ2[10^t],{t,-3,2.5},PlotRange->All,PlotStyle->{Blue,Thick},AxesLabel->{"Log[r/L[t]]","r D[Log[Δ v^2],r]"},PlotLabel->"Effective index vs Log[r/L[t]]"]
Out[]=
In[]:=
X1=Plot[ξ2[10^t],{t,1,2.5},PlotRange->All,PlotStyle->{Blue,Thin},AxesLabel->{"Log[r/L[t]]","r D[Log[Δ v^2],r]"},PlotLabel->"Oscillations of effective index at large r"]
Out[]=
In[]:=
ArrayReshape[{X2,X1},{2,1}]//TableForm
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.