modelGeneralVoltageToCurrentAdaptor
Extends from Modelica.Blocks.Interfaces.Adaptors.PotentialToFlowAdaptor (Signal adaptor for a connector with potential, 1st derivative of potential, and 2nd derivative of potential as inputs and flow, 1st derivative of flow, and 2nd derivative of flow as outputs (especially useful for FMUs)).
Information
Adaptor between an electrical openport 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 voltage and derivative of voltage as input signals and current and derivative of current as output signal.
Note, the input signals must be consistent to each other (dv=der(v)).
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 PotentialToFlowAdaptor) | true | Use input for 1st derivative of potential |
| Boolean | use_pder2 (from PotentialToFlowAdaptor) | true | Use input for 2nd derivative of potential (only if 1st derivative is used, too) |
| Boolean | use_fder (from PotentialToFlowAdaptor) | true | Use output for 1st derivative of flow |
| Boolean | use_fder2 (from PotentialToFlowAdaptor) | true | Use output for 2nd derivative of flow (only if 1st derivative is used, too) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | p (from PotentialToFlowAdaptor) | Input for potential | |
| Modelica.Blocks.Interfaces.RealInput | pder (from PotentialToFlowAdaptor) | Optional input for der(potential) | |
| Modelica.Blocks.Interfaces.RealInput | pder2 (from PotentialToFlowAdaptor) | Optional input for der2(potential) | |
| Modelica.Blocks.Interfaces.RealOutput | f (from PotentialToFlowAdaptor) | Output for flow | |
| Modelica.Blocks.Interfaces.RealOutput | fder (from PotentialToFlowAdaptor) | Optional output for der(flow) | |
| Modelica.Blocks.Interfaces.RealOutput | fder2 (from PotentialToFlowAdaptor) | Optional output 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 |