Repository navigation
Conversation
|
@pelesh this fix is also ready to be merged I forgot to make a PR for this one. |
509506c to
e2c07d8
Compare
pelesh
left a comment
There was a problem hiding this comment.
The logic governing changing differential into algebraic equations and vice versa does not seem to be sustainable. This requires more offline discussion.
e2c07d8 to
bab57ad
Compare
8bbbad6 to
090289b
Compare
|
I have rebased and adjusted the formulation to align with #463 . |
755ee20 to
282fc1d
Compare
nkoukpaizan
left a comment
There was a problem hiding this comment.
I have a few comments here. Perhaps worth discussing at our next meeting.
| using Variable = typename ModelDataT::MonitorableVariables; | ||
| monitor_->set(Variable::vss, [this] | ||
| { return y_[11]; }); | ||
| auto index = [](IeeestInternalVariables variable) |
There was a problem hiding this comment.
I've seen this pattern a few times. Consider defining once if it is really needed. I would argue it's less readable.
282fc1d to
579b3c1
Compare
|
Testing Ground for template parameters |
579b3c1 to
9fb15fa
Compare
|
general implementation of the template parameter done |
7336d1f to
1104b91
Compare
d0dc95a to
d2be200
Compare
|
@nkoukpaizan what are your thoughts on my template implementation? |
The model implementation is cleaner with the |
|
@nkoukpaizan we could possibly require the order to be passed as a parameter of IEEEST model, would that resolve your concern? "Order" is not usually directly exposed as a model parameter and so would require some knowledge of how IEEEST works to pass valid parameters. Can you give an example where the runtime comparison is bad/fails? I might be able to resolve both our concerns if I understand better. |
Yes, exposing the order as a parameter to the model is what I had in mind. Understood that that's not the domain practice. That's why as was asking whether this is possible as a question. Floating point values are stored with limited precision. We'd have to guarantee that the value returned by the parser is bit-for-bit equal to zero. That may be the case for nlohmann-json, but considering #227 and the possibility of using a different parser, that's not guaranteed. |
|
@nkoukpaizan i see the issue now thank you, that was very clarifying. After reflecting on my past experience and discussing with others at TAMU, I think deriving the order from the parameters alone is not intuitive or safe, either. As discussed, we should add an integer parameter to the IEEEST model, "order" and use that for the StabilizerFactory (rename to IeeestFactory). Then, our parameter validation can gate for zero division relevant to each static order (e.g. I will make this change then we can reasess. |
d2be200 to
47a31f1
Compare
bf71cd5 to
07d0236
Compare
07d0236 to
dc2215f
Compare
| void initializeMonitor(); | ||
| void setDerivedParameters(); | ||
|
|
||
| static constexpr RealT TIME_CONSTANT_MINIMUM = static_cast<RealT>(1.0e-3); |
There was a problem hiding this comment.
it looks like this same constant is duplicated across many header files. is there any reason it cannot be placed in a more "global" place so we aren't copy-pasting it all over?
There was a problem hiding this comment.
Consolidating is desirable and possible. But at this point, it's still not clear that we want to maintain this minimum time constant.
1d70ce7 to
87c2bd1
Compare
a7c98fd to
258187d
Compare
superwhiskers
left a comment
There was a problem hiding this comment.
nothing significant, just some additional comments & suggestions
| template <typename scalar_type, typename index_type> | ||
| class SignalNode; | ||
|
|
There was a problem hiding this comment.
why are we forward declaring this here?
|
|
||
| Ieeest(); | ||
| Ieeest(const ModelDataT& data); | ||
| explicit Ieeest(const ModelDataT& data); |
There was a problem hiding this comment.
just curious what motivated this adjustment here
| auto check = [&](bool condition, const char* message) | ||
| { | ||
| if (!condition) | ||
| { | ||
| Log::error() << "Ieeest: " << message << '\n'; | ||
| ret += 1; | ||
| } | ||
| }; |
There was a problem hiding this comment.
may be worthwhile building on top of your #566 pull request. could rebase this upon that branch
1a1c488 to
0c6efb2
Compare
0c6efb2 to
06cb926
Compare
Description
Fixes and cleans up the
IEEESTstabilizer implementation and documentation.This updates the older initial implementation style so that reduced-order notch filters and zero denominator time constants are handled consistently
Proposed changes
IEEESTfrom the attached input signal instead of forcing all states to zero.Checklist
-Wall -Wpedantic -Wconversion -Wextra.Changelog changes N/A
Further comments
This is cleanup/correction work for the existing
IEEESTmodel, not a new model