/* * Copyright (c) 2023, RTE (http://www.rte-france.com) * See AUTHORS.txt * All rights reserved. * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. * SPDX-License-Identifier: MPL-2.0 * * This file is part of Dynawo, an hybrid C++/Modelica open source suite * of simulation tools for power systems. */ function MdPPuEfdNomCalculation extends Icons.Function; input Types.ActivePower PNomAlt "Nominal active (alternator) power in MW"; input Types.PerUnit MdPu "Direct axis mutual inductance in pu"; input Types.PerUnit MqPu "Quadrature axis mutual inductance in pu"; input Types.PerUnit LdPu "Direct axis stator leakage in pu"; input Types.PerUnit LqPu "Quadrature axis stator leakage in pu"; input Types.PerUnit RaPu "Armature resistance in pu"; input Types.PerUnit rTfoPu "Ratio of the generator transformer in pu (base UBaseHV, UBaseLV)"; input Types.PerUnit RTfoPu "Resistance of the generator transformer in pu (base SNom, UNom)"; input Types.PerUnit XTfoPu "Reactance of the generator transformer in pu (base SNom, UNom)"; input Types.ApparentPowerModule SNom "Nominal apparent power in MVA"; input Real md "Parameter for direct axis mutual inductance saturation modelling"; input Real mq "Parameter for quadrature axis mutual inductance saturation modelling"; input Real nd "Parameter for direct axis mutual inductance saturation modelling"; input Real nq "Parameter for quadrature axis mutual inductance saturation modelling"; output Types.PerUnit MdPPuEfdNom "Direct axis mutual inductance used to determine the excitation voltage in nominal conditions in pu"; end MdPPuEfdNomCalculation;