conic_section_port_housing_surface
This shape is a cut cone surface with circular ports. The ports can be created either orthogonal to the surface or parallel to the cone axis (paraxial). The coordinates (x,y,z) are the end points of the port.
Works with MeshViewer: Yes.
Works with GeometryViewer: No.
XML element:
<conic_section_port_housing_surface>C++ type:
KGWrappedSurface<KGConicSectPortHousing>Defined in: KGConicSectPortHousingBuilder.hh:188
Element |
Description |
|---|---|
Attribute |
Type |
Description |
|---|---|---|
|
|
Example:
<conic_section_port_housing_surface name="example_conic_section_port_housing_surface">
<conic_section_port_housing r1="2.75" z1="-1.79675" r2="0.25" z2="-0.067" longitudinal_mesh_count="100" axial_mesh_count="100">
<define name="offset" value="2."/>
<define name="nPorts" value="6"/>
<loop variable="i" start="0" end="{[nPorts]-1}" step="1">
<if condition="{([i] mod 2) eq 0}">
<orthogonal_port x="{[offset]*TMath::Cos(2.*TMath::Pi()*[i]/[nPorts])}" y="{[offset]*TMath::Sin(2.*TMath::Pi()*[i]/[nPorts])}" z=".5" radius="{.05 + .05*([i]+1)}"/>
</if>
<if condition="{([i] mod 2) eq 1}">
<paraxial_port x="{[offset]*TMath::Cos(2.*TMath::Pi()*[i]/[nPorts])}" y="{[offset]*TMath::Sin(2.*TMath::Pi()*[i]/[nPorts])}" z=".5" radius="{.05 + .05*([i]+1)}"/>
</if>
</loop>
</conic_section_port_housing>
</conic_section_port_housing_surface>
Used as:
<conic_section_port_housing_surface>in <geometry>
More information
Explained in: Complex Shapes in KGeoBag
Appears in the documentation:
Complex Shapes in KGeoBag (Conic Section Pump Port Surface)
Used in example configurations: