inlet / outlet from FreeCAD
Hello,
I'm a new user, currently trying to get familiar with DualSPHysics. I run the recent version under FreeCAD 0.19 and already successfully managed to start my first simulations.
I would now want to add an inlet BC that permanently throws in particles.
When I try to do this by pressing the "Special" button, the "Inlet/Outlet" button is grey and cannot be pressed.
Is using inlets + outlets only possible by editing the xml file, without the FreeCAD GUI? Or what am I doing wrong?
Thanks for your help!
Martin
I'm a new user, currently trying to get familiar with DualSPHysics. I run the recent version under FreeCAD 0.19 and already successfully managed to start my first simulations.
I would now want to add an inlet BC that permanently throws in particles.
When I try to do this by pressing the "Special" button, the "Inlet/Outlet" button is grey and cannot be pressed.
Is using inlets + outlets only possible by editing the xml file, without the FreeCAD GUI? Or what am I doing wrong?
Thanks for your help!
Martin
Comments
Regards
Thanks, Martin
We need to create more documentation about that in the XML_GUIDE...
Note that you can find all the options in the XML file: doc\xml_format_FmtXML_InOut.xml
I could successfully modify it and run some interesting simulations.
However, another question came up: is it possible to use the "circle" input style with a different direction than y-axis?
I changed the following (omitting the tags - why can't I post xml code here?):
zone3d comment="Input zone for 3-D simulations"
circle
#old# point x="1.4" y="2.6" z="0.7"
#old# radius v="0.2"
#old# direction x="0.0" y="-1" z="0"
#new# point x="2.6" y="1.5" z="0.7"
#new# radius v="0.2"
#new# direction x="-1" y="0" z="0"
circle
zone3d
And this throws an error that let's me think that it is not possible.
"Text: Point for inlet conditions with position (2.82,1.5,0.7) is outside the domain. Checks the VTK file 'CaseShapesInlet3D_out/ErrorInOut_InoutPoints.vtk'."
How can I define a circular inlet with a different direction than y?
Thanks again,
Martin
The easiest way will be to use "simulationdomain" as shown in page 135 of XML_GUIDE_v4.4.pdf
Other option is to create your numerical domain by rotating the direction so that you change X<->Y
I think that's not the problem. The reason for the inlet circle exceeding the domain is that it does not change its orientation when the direction tag is modified - the circle's normal vector stays aligned to the y-axis.
When looking at the code (JSphInOutPoints::Create3d_Circle) I guess the rotateaxis tag is needed.
Am I correct that the direction only defines the velocity direction and not the orientation of the circle? My assumption was that the velocity is always normal to the inlet, but this is obviously wrong.
I keep on fighting!
Martin
If you open CaseShapesInlet3D_out/ErrorInOut_InoutPoints.vtk in Paraview, you should see which points lie outside your domain limit. I suggest you take screenshots of the domain and ErrorInOut_InoutPoints.vtk, so that we could have a clear picture on what the error might be.