Cannot draw solid fluid with drawprism

edited October 2016 in DualSPHysics_v4.0
Hi DualSPHysics,
I try to make fluid with drawprism. Turned out, with setdrawmode mode=full, gencase only make the face without the solid. Then i changed setdrawmode mode="solid", it said "no points drawn". I suspect it is due to my choice of point for prism.

Can someone take a look at my def.xml code here please? : https://drive.google.com/file/d/0B8Vv_GZzZv9Fd3lHZmtzX3FVOHc/view

Thank you for your help.

Comments

  • You are not creating the PRISM correctly:

    SOLUTIONS:
    1) you have to define your points in the inverse order
    OR
    2) you can specify first the points at y=18.2 and then y=0 with the same order you have now

    However the best option is always creating the boundary and then using fillbox to fill with fluid... if this is what you were trying to do, not sure.

    Regards
  • Hi Alex, your (1) solution actually works! thank you very much for your help. Just one another question, are there some rules we have to follow in points ordering to make a solid prism with drawprism?
    because sometimes it works and another time it doesn't.

    Thanks and regards.
  • Is it correct for floating object : ?
    setdrawmode mode="full" />
    setmkbound mk="51" />
    drawprism mask="0">
    point x=" 0" y=" 0" z="1.4" />
    point x=" 0.25" y=" 0" z="1.5443" />
    point x="-0.25" y=" 0" z="1.5443" />
    point x=" 0" y="10" z="1.4" />
    point x=" 0.25" y="10" z="1.5443" />
    point x="-0.25" y="10" z="1.5443" />
    /drawprism>
    shapeout file="Wedge" reset="true" />

    this prism havent particles inside
  • you should create the particles in clockwise rotation!
  • Gut
    Dear Alex,
    Thank you,
    but
    where it should be?
    page 27 XML_GUIDE_v4
    draws a triangle with tree points (points must always go counterclockwise)
    page 33
    drawprism>: draws a prism with a minimum of 6 points
    and nothing about counterclockwise or clockwise

    and furthermore I performed search and dont find any other pages with
    only page 27
  • edited October 2016
    Hi Alex,
    could you help me again with these:
    drawprism>
    point x="1.5" y="18.2" z="-0.72956" />
    point x="3" y="18.2" z="-0.42956" />
    point x="15" y="18.2" z="0.00163" />
    point x="15" y="18.2" z="-0.29837" />
    point x="3" y="18.2" z="-0.772956" />
    point x="1.5" y="18.2" z="-1.02956" />

    point x="1.5" y="0" z="-0.72956" />
    point x="3" y="0" z="-0.42956" />
    point x="15" y="0" z="0.00163" />
    point x="15" y="0" z="-0.29837" />
    point x="3" y="0" z="-0.772956" />
    point x="1.5" y="0" z="-1.02956" />
    /drawprism>

    i still couldnt figure out how the points ordering works (clockwise or counterclockwise). Thank you.
  • Points: clockwise (we always start with the xmax,zmax)
    And first points with ymin and then points with ymax

    Regards
Sign In or Register to comment.