GeneralVoltageToCurrentAdaptor
Signal adaptor for an Electrical OnePort with current and derivative of current as output and voltage and derivative of voltage as input (especially useful for FMUs)
Library
Electrical/Analog/Basic
Description
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_use_pder | use_pder | Use input for 1st derivative of potential | Number | 0 |
mo_use_pder2 | use_pder2 | Use input for 2nd derivative of potential (only if 1st derivate is used, too) | Number | 0 |
mo_use_fder | use_fder | Use output for 1st derivative of flow | Number | 0 |
mo_use_fder2 | use_fder2 | Use output for 2nd derivative of flow (only if 1st derivate is used, too) | Number | 0 |
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 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_p | p | p | Structure | |
mo_p/fixed | fixed | Cell of scalars | true | |
mo_p/start | start | Cell of scalars | ||
mo_pder | pder | pder | Structure | |
mo_pder/fixed | fixed | Cell of scalars | true | |
mo_pder/start | start | Cell of scalars | ||
mo_pder2 | pder2 | pder2 | Structure | |
mo_pder2/fixed | fixed | Cell of scalars | true | |
mo_pder2/start | start | Cell of scalars | ||
mo_f | f | f | Structure | |
mo_f/fixed | fixed | Cell of scalars | true | |
mo_f/start | start | Cell of scalars | ||
mo_fder | fder | fder | Structure | |
mo_fder/fixed | fixed | Cell of scalars | true | |
mo_fder/start | start | Cell of scalars | ||
mo_fder2 | fder2 | fder2 | Structure | |
mo_fder2/fixed | fixed | Cell of scalars | true | |
mo_fder2/start | start | Cell of scalars | ||
mo_v | v | v | Structure | |
mo_v/fixed | fixed | Cell of scalars | true | |
mo_v/start | start | Cell of scalars | ||
mo_i | i | i | Structure | |
mo_i/fixed | fixed | Cell of scalars | true | |
mo_i/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
p | implicit | Input for potential | input | 1 |
f | implicit | Output for flow | output | 1 |
pin_p | implicit | input | 2 | |
pin_n | implicit | output | 2 | |
Port 5 | implicit | Optional input for der(potential) | input | mo_use_pder |
Port 6 | implicit | Optional input for der2(potential) | input | mo_use_pder&&mo_use_pder2 |
Port 7 | implicit | Optional output for der(flow) | output | mo_use_fder |
Port 8 | implicit | Optional output for der2(flow) | output | mo_use_fder&&mo_use_fder2 |