a solitary wave defined by depth and amplitude <velwave>
Hello
I'm currently running a case involving modeling of solitary wave breaking. I read the XML_Guide provided in the documentation and i found little information about -velwave- on page 35.also there was very little information in "CaseTemplate.xml" " -velwave mkfluid="3" depth="4" hmaxwave="3" x0="26" negative="false" /-".
i wanted to give more information about "x0" and "negative". also I will be grateful if you could tell me based on which formula,"velwave" will produce solitary wave.
Kind regards
nader
I'm currently running a case involving modeling of solitary wave breaking. I read the XML_Guide provided in the documentation and i found little information about -velwave- on page 35.also there was very little information in "CaseTemplate.xml" " -velwave mkfluid="3" depth="4" hmaxwave="3" x0="26" negative="false" /-".
i wanted to give more information about "x0" and "negative". also I will be grateful if you could tell me based on which formula,"velwave" will produce solitary wave.
Kind regards
nader
Comments
vlong=sqrt(4./3.*pow(depth,3)/hmaxwave);
cosxdif=cosh((pos.x-x0)/vlong);
hz=hmaxwave/(cosxdif*cosxdif);
vel.x=hz*sqrt(Gravity/depth);
And this formula (pseudocode) computes the position of the particles:
pbase=PointTranformGet(TDouble3(x0,0,z0));
hz=hmaxwave/(cosh((pos.x-pbase.x)/vlong)*cosh((pos.x-pbase.x)/vlong));
zmax=pbase.z+depth+hz;
writep=(pos.z<zmax);
if(writep)WritePoint(x,y,z);