Complex geometry initial conditions

I want to simulate a realistic dam break case using DualSPhysics and I was wondering if it's possible to create a fillbox that matches a realistic complex geometry?
In other words, can I set a certain water height to fill a complex geometry?

Regards

Comments

  • Hello,

    You should have a look at TestCase Pump.

    Regards
  • Please read the documentation first:
    https://github.com/DualSPHysics/DualSPHysics/wiki/12.-Testcases#1213-pump
    Page 45 of doc/guides/XML_v4.0_GUIDE.pdf
  • Thank you both for the reply.
    I did look into the pump case, and I was aware of the fillbox method. I tried to create the case with the freecad macro and the only problem is that I need to fillbox to rotate for a few degrees to accurately capture the part of the domain that needs to be filled but it seems that rotating isn't an option. I even had the idea to create several smaller fillboxes but it's a big domain.
    It seems that the fillfigure option is the one I need. I shall check it out, shame there isn't an example for it.

    Thank you again and regards.
  • I am not sure that "fillfigure" will work on the GUI with FreeCad.
    It is better if you directly work with modiying the XML

    Regards
  • @kozmonaut

    Just jumping in. Did you get it to work with fillfigure? Would you mind showing a basic example?
  • @Asalih3d

    In the end I realized that fillprism would be the easiest way to do it but it was a drag since I had to add a lot of points.
    I studied the fillfigure option through the example in the /doc/xml_format/CaseTemplate.xml
    The code is as follows:

    <fillfigure x="0.1" y="1" z="1.1">
    <points>
    <point x="0" y="0" z="0" />
    <point x="1" y="0" z="0" />
    <point x="1" y="1" z="0" />
    <point x="0" y="1" z="0" />
    <point x="0" y="0" z="0.8" />
    <point x="1" y="0" z="0.8" />
    <point x="1" y="1" z="0.8" />
    <point x="0" y="1" z="0.8" />
    </points>
    <triangles>
    <triangle x="0" y="1" z="5" />
    <triangle x="1" y="2" z="6" />
    <triangle x="2" y="3" z="7" />
    </triangles>
    <modefill>bound</modefill>
    </fillfigure>">
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!