24 Matrix aMatrix = Matrix::Zero(3, 3);
25 Matrix bMatrix = capacitance.inverse();
26 Matrix cMatrix = Matrix::Identity(3, 3);
27 Matrix dMatrix = Matrix::Zero(3, 3);
42 Real omega = 2.0 *
PI * frequency;
44 MatrixComp admittance = MatrixComp::Zero(3, 3);
45 admittance =
Complex(0.0, omega) * (**mCapacitance).cast<
Complex>();
57 SPDLOG_LOGGER_INFO(
mSLog,
58 "\nCapacitance [F]: {:s}"
59 "\nAdmittance [S]: {:s}",
const CPS::Attribute< Matrix >::Ptr mCapacitance
Capacitance [F].
void setParameters(Matrix capacitance)
Sets model specific parameters.
MatrixComp buildInitialInputFromNodes(Real frequency) override final
Capacitor(String uid, String name, Logger::Level logLevel=Logger::Level::off)
SimPowerComp< Real >::Ptr clone(String name) override final
Returns a modified copy of the component with the given suffix added to the name and without.
void setParameters(Matrix capacitance)
TwoTerminalITypeSSNComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
void setParameters(const Matrix &A, const Matrix &B, const Matrix &C, const Matrix &D)
String uid()
Returns unique id.
AttributeList::Ptr mAttributes
Attribute List.
spdlog::level::level_enum Level
static String matrixCompToString(const MatrixComp &mat)
static String matrixToString(const Matrix &mat)
std::shared_ptr< SimPowerComp< VarType > > Ptr
Complex initialSingleVoltage(UInt index)
Logger::Level mLogLevel
Component logger control for internal variables.
Logger::Log mSLog
Component logger.
static std::shared_ptr< Capacitor > make(Args &&...args)
#define RMS3PH_TO_PEAK1PH
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.
std::complex< Real > Complex
Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > MatrixComp
Dense matrix for complex numbers.