14 : _portName(portName),
_index(location.second), _point(location.first), _sourceAxis(sourceAxis), _sourceType(
sourceType), _signalName(signalName) {}
29 else if (_sourceAxis ==
y_axis)
47 else if (_sourceAxis ==
y_axis)
72 else if (_sourceAxis ==
y_axis)
87 else if (_sourceAxis ==
y_axis)
103 if (_sourceType ==
e)
105 if (_sourceAxis ==
x_axis)
109 else if (_sourceAxis ==
y_axis)
120 if (_sourceAxis ==
x_axis)
124 else if (_sourceAxis ==
y_axis)
144 std::string _portName;
145 std::string _signalName;
157 float EFunc(
float exponent) {
return expf(exponent); }
158 double EFunc(
double exponent) {
return exp(exponent); }
sourceType
Definition SourceTarget.h:4
@ e
Definition SourceTarget.h:4
axis
Definition SourceTarget.h:5
@ x_axis
Definition SourceTarget.h:5
@ y_axis
Definition SourceTarget.h:5
int64_t index_t
Definition SystemDependentDefines.h:13
Definition DegreesOfFreedom3DLoopCPU.h:8
T * GetElectricVoltageXComponent(index_t index) const
Definition DegreesOfFreedom3DLoopCPU.h:97
T * GetElectricVoltageYComponent(index_t index) const
Definition DegreesOfFreedom3DLoopCPU.h:103
T * GetMagneticVoltageYComponent(index_t index) const
Definition DegreesOfFreedom3DLoopCPU.h:121
void SetElectricVoltageZComponentAt(index_t index, T value)
Definition DegreesOfFreedom3DLoopCPU.h:145
T * GetMagneticVoltageXComponent(index_t index) const
Definition DegreesOfFreedom3DLoopCPU.h:115
T * GetElectricVoltageZComponent(index_t index) const
Definition DegreesOfFreedom3DLoopCPU.h:109
void SetElectricVoltageYComponentAt(index_t index, T value)
Definition DegreesOfFreedom3DLoopCPU.h:139
void SetMagneticVoltageZComponentAt(index_t index, T value)
Definition DegreesOfFreedom3DLoopCPU.h:163
void SetMagneticVoltageXComponentAt(index_t index, T value)
Definition DegreesOfFreedom3DLoopCPU.h:151
void SetMagneticVoltageYComponentAt(index_t index, T value)
Definition DegreesOfFreedom3DLoopCPU.h:157
void SetElectricVoltageXComponentAt(index_t index, T value)
Definition DegreesOfFreedom3DLoopCPU.h:133
T * GetMagneticVoltageZComponent(index_t index) const
Definition DegreesOfFreedom3DLoopCPU.h:127
double EFunc(double exponent)
Definition Port.h:158
void ApplySourceHW(DegreesOfFreedom3DLoopCPU< T > &doF, int currentTimeStep, float currentTime)
Definition Port.h:61
T _currentValue
Definition Port.h:153
const std::string GetSignalName() const
Definition Port.h:136
const T GetCurrentValue() const
Definition Port.h:139
virtual T CalculateCurrentValue(float currentTime)=0
Port(std::string portName, std::pair< Point3D, index_t > &location, sourceType sourceType, axis sourceAxis, std::string signalName)
Definition Port.h:13
const int GetCurrentTimestep() const
Definition Port.h:138
void ApplySourceHWDiscreteValueCalc(DegreesOfFreedom3DLoopCPU< T > &doF, int currentTimeStep)
Definition Port.h:98
void ApplySource(DegreesOfFreedom3DLoopCPU< T > &doF, int currentTimeStep, float currentTime)
Definition Port.h:17
const std::string GetPortName() const
Definition Port.h:135
int _currentTimeStep
Definition Port.h:152
const sourceType GetPortTargetField()
Definition Port.h:140
float EFunc(float exponent)
Definition Port.h:157
virtual ~Port()
Definition Port.h:15
const Point3D GetPoint() const
Definition Port.h:137
const axis GetPortTargetAxis()
Definition Port.h:141
index_t _index
Definition Port.h:151