PipeWithScalarField

Visualizing a pipe with scalar field quantities along the pipe axis

    PipeWithScalarField

Library

Modelica/Mechanics/MultiBody/Visualizers

Description

Model PipeWithScalarField visualizes a pipe and a scalarfield along the pipe axis. The latter is shown by mapping the scalarfield to color values with a color map and utilizing this colorat the perimeter associated with the corresponding axis location.Typically the scalar field value is a temperature, but mightbe also another quantity.Predefined color maps are available fromMultiBody.Visualizers.Colors.ColorMapsand can be selected via parameter "colorMap".A color map with the corresponding scalar field values can be exportedas vector-graphics in svg-format with functionMultiBody.Visualizers.Colors.colorMapToSvg.Connector frame_a of this component is located in the center of thecircle at the left side of the pipe and the pipe axis is orientedalong the x-axis of frame_a, see figure below in which frame_a is visualizedwith a coordinate system:

The color coding is shown in the next figure. It was generated withMultiBody.Visualizers.Colors.colorMapToSvgusing the following call:

colorMapToSvg(Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.jet(),              height=50, nScalars=6, T_max=100, caption="Temperature in C");

Parameters

PipeWithScalarField_0

NameLabelDescriptionData TypeValid Values

mo_animation

animation

= true, if animation shall be enabled

Scalar

true
false

mo_rOuter

rOuter

Outer radius of pipe

Scalar

mo_length

length

Length of pipe

Scalar

mo_xsi

xsi

[:] Relative position along the pipe with x[1] = 0, x[end] = 1

Vector

mo_T_min

T_min

Minimum value of T that corresponds to colorMap[1,:]

Scalar

mo_T_max

T_max

Maximum value of T that corresponds to colorMap[end,:]

Scalar

mo_T

T

[:] Scalar values at position xsi*length (will be visualized by color)

Vector

mo_colorMap

colorMap

Function defining the color map

FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.gray')
FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.hot')
FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.jet')
FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.autumn')
FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.spring')
FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.summer')
FromModelica('Modelica.Mechanics.MultiBody.Visualizers.Colors.ColorMaps.winter')

mo_n_colors

n_colors

Number of colors in the colorMap

Scalar

mo_specularCoefficient

specularCoefficient

Reflection of ambient light (= 0: light is completely absorbed)

Scalar

mo_transparency

transparency

Transparency of shape: 0 (= opaque) ... 1 (= fully transparent)

Scalar

PipeWithScalarField_1

NameLabelDescriptionData TypeValid Values

mo_n_rOuter

n_rOuter

Number of points along outer radius

Scalar

mo_n_length

n_length

Number of points along length

Scalar

PipeWithScalarField_2

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

Coordinate system in which visualization data is resolved

input

1