45 RegisterCreatorFunction(
"Noise",
47 "White Noise Forcing");
56 const Array<OneD, MultiRegions::ExpListSharedPtr>& pFields,
57 const unsigned int& pNumForcingFields,
58 const TiXmlElement* pForce)
61 int nq = pFields[0]->GetTotPoints();
63 const TiXmlElement* funcNameElmt = pForce->FirstChildElement(
"WHITENOISE");
64 ASSERTL0(funcNameElmt,
"Requires WHITENOISE tag specifying function "
65 "name which prescribes magnitude of whilte noise force.");
67 string noiseValue = funcNameElmt->GetText();
75 m_Forcing[i] = Array<OneD, NekDouble> (nq, 0.0);
81 const Array<OneD, MultiRegions::ExpListSharedPtr> &fields,
82 const Array<
OneD, Array<OneD, NekDouble> > &inarray,
83 Array<
OneD, Array<OneD, NekDouble> > &outarray,
88 Vmath::Vadd(outarray[i].num_elements(), outarray[i], 1,