Template: RotationalComponentTorque - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim Toolboxes : MapleSim Hydraulics Library from Modelon : Templates : ModelonHydraulics/Templates/RotationalComponentTorque

Template: RotationalComponentTorque

The RotationalComponentTorque template is a partial model of a two-port hydraulic component with two rotational flanges connected by a shaft. The hydraulic ports are A and B, the flanges are flange_a and flange_b.

 

Variables

Parameters

Assumptions

Sign Conventions

Examples

Variables

Name

Value

Units

Description

Modelica ID

pA

 

Pa

pressure at port A

port_A.p

pB

 

Pa

pressure at port B

port_B.p

pA(abs)

pA+poil(atm)

Pa

absolute pressure at port A

pA_abs

pB(abs)

pB+poil(atm)

Pa

absolute pressure at port B

pB_abs

pA(lim)

maxpA,poil(vapour)poil(atm)

Pa

limited gauge pressure at port A

pA_limited

pB(lim)

maxpB,poil(vapour)poil(atm)

Pa

limited gauge pressure at port B

pB_limited

pA(sum)

pA

Pa

pressure at port A

summary_pA

pB(sum)

pB

Pa

pressure at port B

summary_pB

Δp

pA(lim)pB(lim)

Pa

pressure differential

dp

psat

oil.gasSaturationPressureT,oil.v_gas

Pa

gas saturation pressure

p_sat

mflow(A)

 

kgs

mass flow rate at port A; positive if oil is entering the component.

port_A.m_flow

mflow(B)

mflow(A)

kgs

mass flow rate at port B; positive if oil is entering the component.

port_B.m_flow

HPsum

Δpq

W

hydraulic power

summary_HP

MPsum

τaφ·a+τbφ·b

W

rotational power

summary_MP

q

mflow(A)ρ

m3s

volume flow rate into port A

q

qsum

q

m3s

volume flow rate into port A

summary_q

ρ

ρΔp,pA(abs),pB(abs),T,oil

kgm3

upstream density of oil

rho

ν

νΔp,pA(abs),pB(abs),T,oil

m2s

upstream kinematic viscosity of oil

nu

T

Toil(0)+ΔTsystem

K

local temperature of oil

T

τ

 

Nm

sum of torques at flanges

tau

w

φ·a

rads

angular velocity of pump shaft

w

φa

 

rad

angular position of flange a

flange_a.phi

φb

φa

rad

angular position of flange b

flange_b.phi

Parameters

Name

Default

Units

Description

Modelica ID

ΔTsystem

0

K

temperature offset from system temperature

dT_system

use volume A

true

 

true means a volume is present at port A

useVolumeA

use volume B

true

 

true means a volume is present at port B

useVolumeB

VA

10-6

m3

volume at port A

volumeA

VB

10-6

m3

volume at port B

volumeB

Assumptions

No storage of energy or mass.

Sign Conventions

If the pressure at port A is greater than the pressure at port B, the volume flow rate at port A is positive.

Examples

Extend the RotationalComponentTorque template to create a simple pump with constant displacement.

Assign the equations that relate the hydraulic variables, Δp and q, to the rotational variables, w, τ.

eqsq=Dpumpwπ,Dpumpdpπ=τ:

Create the modelica for a SimplePump model that extends the template.

MapleSim:-Tools:-MapleToModelicaeqs,'class_name'=SimplePump,'extends'=Hydraulics.Templates.RotationalComponentTorque,'comment'=Simple constant displacement pump,'parameters'=Dpump::Modelica.SIunits.Volume=1,'omit_annotations','display','warning_only':

model SimplePump "Simple constant displacement pump"
    extends Hydraulics.Templates.RotationalComponentTorque;
    extends Maplesoft.Icons.CustomComponent;

    parameter Modelica.SIunits.Volume Dpump = 1;
equation
    -Dpump * dp / Modelica.Constants.pi = tau;
    q = Dpump * w / Modelica.Constants.pi;
end SimplePump;

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam