I’m looking for a way to show or calculate the piercing angle of a foil relative to the water surface within the ventilation module.
Specifically, I need to visualise the intersection angle between the foil geometry and the free surface interface.
Thanks.
Note that Gomboc versions released after 9.20260422, nearOceanFrameDescending and nearOceanFrameAscending booleans replace the nearOceanFrame boolean. This allows to extract up to two foil piercing angle on an element.
One option for displaying the piercing angle is to output the local rondure frame Frame_[elementName]_NearOcean] at the element’s wetted point closest to the water surface by setting nearOceanFrame: true (see manual in section Foils/Hydrodynamics/Configuration).
Assuming a T-foil configuration with a vertical Shaft and two horizontal surfaces WingOB and WingIB:
"Elements": {
"Shaft" : { "Mesh": { "Spanwise": { "nSeg": 20 } } },
"WingOB": { nearOceanFrame: true, "Mesh": { "Spanwise": { "nSeg": 10 } } },
"WingIB": { nearOceanFrame: true, "Mesh": { "Spanwise": { "nSeg": 10 } } },
},
Blocks.Boat:"WingIBFrame" : {
"Frame" : BL.FrameXfromParent({
ParentFrame : "{^.Foil.Hydro.Frame_WingIB_NearOcean}",
Translation : [0,0,0]
}),
},
"WingIBAngle" : "aLimit180({WingIBFrame.Frame}.eulerInFrame({Root.InertialFrame})[0]/pi*180)",
R.merge("Blocks.Boat", {
"WingOBFrame" : {
"Frame" : BL.FrameXfromParent({
ParentFrame : "{^.Foil.Hydro.Frame_WingOB_NearOcean}",
Translation : [0,0,0]
}),
},
"WingOBAngle" : "aLimit180({WingOBFrame.Frame}.eulerInFrame({Root.InertialFrame})[0]/pi*180)",
});
