modelGeneralCurrentToVoltageAdaptor
Extends from Modelica.Blocks.Interfaces.Adaptors.FlowToPotentialAdaptor (Signal adaptor for a connector with flow, 1st derivative of flow, and 2nd derivative of flow as inputs and potential, 1st derivative of potential, and 2nd derivative of potential as outputs (especially useful for FMUs)).
Information
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 model and 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 in Electrical.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 appropriate ground components to define electric potential within the subcircuits.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_pder (from FlowToPotentialAdaptor) | true | Use output for 1st derivative of potential |
| Boolean | use_pder2 (from FlowToPotentialAdaptor) | true | Use output for 2nd derivative of potential (only if 1st derivative is used, too) |
| Boolean | use_fder (from FlowToPotentialAdaptor) | true | Use input for 1st derivative of flow |
| Boolean | use_fder2 (from FlowToPotentialAdaptor) | true | Use input for 2nd derivative of flow (only if 1st derivative is used, too) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | p (from FlowToPotentialAdaptor) | Output for potential | |
| Modelica.Blocks.Interfaces.RealOutput | pder (from FlowToPotentialAdaptor) | Optional output for der(potential) | |
| Modelica.Blocks.Interfaces.RealOutput | pder2 (from FlowToPotentialAdaptor) | Optional output for der2(potential) | |
| Modelica.Blocks.Interfaces.RealInput | f (from FlowToPotentialAdaptor) | Input for flow | |
| Modelica.Blocks.Interfaces.RealInput | fder (from FlowToPotentialAdaptor) | Optional input for der(flow) | |
| Modelica.Blocks.Interfaces.RealInput | fder2 (from FlowToPotentialAdaptor) | Optional input for der2(flow) | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | pin_p | ||
| Modelica.Electrical.Analog.Interfaces.NegativePin | pin_n |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v | Voltage drop between the two pins (= p.v - n.v) | |
| SI.Current | i | Current flowing from pin p to pin n |