Skip to content

Question about Initialization Error Regarding Numeric Loop #187

Discussion options

You must be logged in to vote

Answer from Hantao,

The initialization error is caused by the numeric loop when initializing the model. A similar issue occurs in the EXAC1 model (in exac1.py).

Since the FEX is a piece-wise function, the explicit initialization cannot be derived directly. For such variables, we need to solve the initial values by iteration, just like how we solve the DAE. Therefore, we need to assign iteration equations v_iter and start values v_str for them.

In the EXAC1, three variables are involved in the iteration initial values issue, all of them need to be assigned v_iter and v_str:

        self.IN = Algeb(tex_name='I_N',
                        info='Input to FEX',
                        v_str='1'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cuihantao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant