Cannot draw solid fluid with drawprism
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.
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
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
because sometimes it works and another time it doesn't.
Thanks and regards.
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
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
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.
And first points with ymin and then points with ymax
Regards