GeneralCurrentToVoltageAdaptor

Signal adaptor for an Electrical OnePort with voltage and derivative of voltage as outputs and current and derivative of current as inputs (especially useful for FMUs)

    GeneralCurrentToVoltageAdaptor

Library

Modelica/Electrical/Analog/Basic

Description

Adaptor between an electrical oneport and a signal representation of the oneport.This component is used to provide a pure signal interface around an Electrical modeland export this model in form of an input/output block,especially as FMU (Functional Mock-up Unit).Examples of the usage of this adaptor are provided inElectrical.Analog.Examples.GenerationOfFMUs.This adaptor has current and derivative of current as inputs and voltage and derivative of voltage as output signals.

Note, the input signals must be consistent to each other(di=der(i)).

Note, the adaptor contains no ground.Bear in mind that separating physical components and connecting them via adaptor signals requires to place appropriateground components to define electric potential within the subcircuits.

Parameters

GeneralCurrentToVoltageAdaptor_0

NameLabelDescriptionData TypeValid Values

mo_use_pder

use_pder

Use output for 1st derivative of potential

Number

0
1

mo_use_pder2

use_pder2

Use output for 2nd derivative of potential (only if 1st derivate is used, too)

Number

0
1

mo_use_fder

use_fder

Use input for 1st derivative of flow

Number

0
1

mo_use_fder2

use_fder2

Use input for 2nd derivative of flow (only if 1st derivate is used, too)

Number

0
1

mo_Name_p

Name_p

Name of potential variable

String

mo_Name_pder

Name_pder

Name of 1st derivative of potential variable

String

mo_Name_pder2

Name_pder2

Name of 2nd derivative of potential variable

String

mo_Name_f

Name_f

Name of flow variable

String

mo_Name_fder

Name_fder

Name of 1st derivative of flow variable

String

mo_Name_fder2

Name_fder2

Name of 2nd derivative of flow variable

String

GeneralCurrentToVoltageAdaptor_1

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

'y'
'u'
'v'
'i'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

p

implicit

Output for potential

output

1

f

implicit

Input for flow

input

1

pin_p

implicit

input

2

pin_n

implicit

output

2

Port 5

implicit

Optional output for der(potential)

output

mo_use_pder

Port 6

implicit

Optional output for der2(potential)

output

mo_use_pder&&mo_use_pder2

Port 7

implicit

Optional input for der(flow)

input

mo_use_fder

Port 8

implicit

Optional input for der2(flow)

input

mo_use_fder&&mo_use_fder2