a solitary wave defined by depth and amplitude <velwave>

edited November 2014 in Old versions
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

Comments

  • This the formula (pseudocode) for the velocity:

    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);


Sign In or Register to comment.