7 #beginMacro assignGaussianPulseInitialConditions(GRIDTYPE)
8 if(
mg.numberOfDimensions()==2 )
10 J1 = Range(max(
Ie1.getBase(),
uel.getBase(0)),min(
Ie1.getBound(),
uel.getBound(0)));
11 J2 = Range(max(
Ie2.getBase(),
uel.getBase(1)),min(
Ie2.getBound(),
uel.getBound(1)));
12 J3 = Range(max(
Ie3.getBase(),
uel.getBase(2)),min(
Ie3.getBound(),
uel.getBound(2)));
15 #If #GRIDTYPE eq "curvilinear"
23 real temp=exp( -pow(beta*(xe*xe+ye*ye),exponent) );
33 J1 = Range(max(
Ih1.getBase(),
uhl.getBase(0)),min(
Ih1.getBound(),
uhl.getBound(0)));
34 J2 = Range(max(
Ih2.getBase(),
uhl.getBase(1)),min(
Ih2.getBound(),
uhl.getBound(1)));
35 J3 = Range(max(
Ih3.getBase(),
uhl.getBase(2)),min(
Ih3.getBound(),
uhl.getBound(2)));
38 #If #GRIDTYPE eq "curvilinear"
46 real temp=exp( -pow(beta*(xh*xh+yh*yh),exponent) );
54 J1 = Range(max(
Ie1.getBase(),
uel.getBase(0)),min(
Ie1.getBound(),
uel.getBound(0)));
55 J2 = Range(max(
Ie2.getBase(),
uel.getBase(1)),min(
Ie2.getBound(),
uel.getBound(1)));
56 J3 = Range(max(
Ie3.getBase(),
uel.getBase(2)),min(
Ie3.getBound(),
uel.getBound(2)));
59 #If #GRIDTYPE eq "curvilinear"
72 real rsq = xe*xe+ye*ye+ze*
ze;
77 real dphix =
scale*exp( -pow(beta*rsq,exponent) );
90 J1 = Range(max(
Ih1.getBase(),
uhl.getBase(0)),min(
Ih1.getBound(),
uhl.getBound(0)));
91 J2 = Range(max(
Ih2.getBase(),
uhl.getBase(1)),min(
Ih2.getBound(),
uhl.getBound(1)));
92 J3 = Range(max(
Ih3.getBase(),
uhl.getBase(2)),min(
Ih3.getBound(),
uhl.getBound(2)));
96 #If #GRIDTYPE eq "curvilinear"
111 real rsq = xh*xh+yh*yh+zh*
zh;
116 real dphix =
scale*exp( -pow(beta*rsq,exponent) );