Documentation Home Page ◇ ePHASORSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
Examples
PSS/E
Here an example of a YAML mapping file for the CSTCNT
component which can be found in phasor05
RT-LAB example is presented.
In this example, the PSS/E block FACTS_DEVICE
with its DYR component CSTCNT
is mapped to a custom FMU named CSTCNT
. The PSS/e parameters (M
and J
) are mapped to the block parameters as defined OpenModelica parameters.
Three aliases are defined:
Alias
COMP
is the component from theFACTS_DEVICE
section of the RAW file.Alias
CSTCNT
comes from the DYR file.Alias
BUS
matches the connected BUS data from the RAW file.
version: 1.0.0
filters:
main:
COMP: FACTS_DEVICE
sub:
CSTCNT:
- type: CSTCNT
if: CSTCNT.FACTSNAME == COMP.uid.split("_")[-1]
BUS:
- type: BUS
if: BUS.I == COMP.I
mappings:
DB_COMP:
- type: Subsystem
if: '"CSTCNT" in ListSubAlias and len(ListSubAlias) == 2'
block:
name: f"facts_{COMP.uid}"
parameters:
fmuModelIdentifier: '"CSTCNT"'
IB: CSTCNT.M
T1: CSTCNT.J
T2: CSTCNT.J_1
T3: CSTCNT.J_2
T4: CSTCNT.J_3
K: CSTCNT.J_4
Droop: CSTCNT.J_5
Vmax: CSTCNT.J_6
Vmin: CSTCNT.J_7
ICMAX: CSTCNT.J_8
ILMAX: CSTCNT.J_9
Vcutout: CSTCNT.J_10
Elimit: CSTCNT.J_11
Xt: CSTCNT.J_12
Acc: CSTCNT.J_13
P_gen: COMP.PDES
Q_gen: COMP.VSMX
Qmax: COMP.SHMX
Qmin: -COMP.SHMX
SB: COMP.RMPCT
Vt_abs: BUS.VM
Vt_ang: BUS.VA
ZSOURCE_RE: COMP.VTMN
fn: fBase
ports:
bus0: f"bus_{BUS.I}"
1: Model Library, PSS®E 35.3.0, July 2021
PowerFactory
Please refer to the phasor19
example in RT-LAB.
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter