PartialRigid
IconPartialRigid
Rigid connection of two translational 1D flanges
Usage
PartialRigid(L=0.0)
Parameters:
Name | Description | Units | Default value |
---|---|---|---|
L | Length of component, from left flange to right flange | m | 0 |
Connectors
Variables
Name | Description | Units |
---|---|---|
s | Absolute position of center of component | m |
Source
# Rigid connection of two translational 1D flanges
partial component PartialRigid
flange_a = Flange() [{
"JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
}]
flange_b = Flange() [{
"JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
}]
# Absolute position of center of component
variable s::JSML.Position
# Length of component, from left flange to right flange
parameter L::Length = 0.0
relations
flange_a.s = s-L/2
flange_b.s = s+L/2
end
Flattened Source
# Rigid connection of two translational 1D flanges partial component PartialRigid flange_a = Flange() [{ "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}} }] flange_b = Flange() [{ "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}} }] # Absolute position of center of component variable s::JSML.Position # Length of component, from left flange to right flange parameter L::Length = 0.0 relations flange_a.s = s-L/2 flange_b.s = s+L/2 metadata {} end
Test Cases
Related
- Examples
- Experiments
- Analyses