47 "Rectangular stimulus.");
65 const TiXmlElement* pXml)
70 m_nq = pField->GetTotPoints();
78 const TiXmlElement *pXmlparameter;
80 pXmlparameter = pXml->FirstChildElement(
"p_x1");
81 m_px1 = atof(pXmlparameter->GetText());
83 pXmlparameter = pXml->FirstChildElement(
"p_y1");
84 m_py1 = atof(pXmlparameter->GetText());
86 pXmlparameter = pXml->FirstChildElement(
"p_z1");
87 m_pz1 = atof(pXmlparameter->GetText());
89 pXmlparameter = pXml->FirstChildElement(
"p_x2");
90 m_px2 = atof(pXmlparameter->GetText());
92 pXmlparameter = pXml->FirstChildElement(
"p_y2");
93 m_py2 = atof(pXmlparameter->GetText());
95 pXmlparameter = pXml->FirstChildElement(
"p_z2");
96 m_pz2 = atof(pXmlparameter->GetText());
98 pXmlparameter = pXml->FirstChildElement(
"p_is");
99 m_pis = atof(pXmlparameter->GetText());
101 pXmlparameter = pXml->FirstChildElement(
"p_strength");
119 Array<
OneD, Array<OneD, NekDouble> >&outarray,
122 if (
m_field->GetNumElmts() == 0)
128 int dim =
m_field->GetCoordim(0);
131 int nq =
m_field->GetNpoints();
132 Array<OneD,NekDouble> x0(nq);
133 Array<OneD,NekDouble> x1(nq);
134 Array<OneD,NekDouble> x2(nq);
143 for(
int j=0; j<nq; j++)
145 outarray[0][j] += v_amp * ( ( tanh(
m_pis*(x0[j] -
m_px1))
151 for(
int j=0; j<nq; j++)
153 outarray[0][j] += v_amp * ( ( (tanh(
m_pis*(x0[j] -
m_px1))
161 for(
int j=0; j<nq; j++)
163 outarray[0][j] += v_amp * ( ( (tanh(
m_pis*(x0[j] -
m_px1))