You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using fmi4j read BouncingBall.fmu : AbstractFmu fmu = AbstractFmu.from(fmuFile); ModelDescriptionProvider md = fmu.getModelDescription(); ModelVariables variables = md.getModelVariables(); List<TypedScalarVariable<?>> scalarVariables = variables.getVariables();
But it seems like scalarVarables dose not contains variables which causality attribute is independent and local. Is this intentional or a bug?
The text was updated successfully, but these errors were encountered:
I can't be sure without a deep dive into the code, but what use do you have for accessing the independent variable?
Using a for loop like: AbstractFmu fmu = AbstractFmu.from(fmuFile); ModelDescriptionProvider md = fmu.getModelDescription(); ModelVariables variables = md.getModelVariables(); List<TypedScalarVariable<?>> scalarVariables = variables.getVariables(); for (TypedScalarVariable<?> var : scalarVariables){ Causality varCausality = var.getCausality(); if(varCausality == Causality.Local){ //no variable which causality is local } }
The BouncingBall.fmu has a local variable der(h) and der(v), but using code above can't read the two variables.
Using fmi4j read BouncingBall.fmu :
AbstractFmu fmu = AbstractFmu.from(fmuFile); ModelDescriptionProvider md = fmu.getModelDescription(); ModelVariables variables = md.getModelVariables(); List<TypedScalarVariable<?>> scalarVariables = variables.getVariables();
But it seems like scalarVarables dose not contains variables which causality attribute is independent and local. Is this intentional or a bug?
The text was updated successfully, but these errors were encountered: