I have a Modelica model that has a RealInput
connector. Usually, a constant source block with value 0 is connected to that input, but sometimes (not often) different values or time varying signals are used.
Is there a possibility/solution to not connect a constant source block and change the model to use a default value if there is no signal coming (i.e. the RealInput is not connected from outside)? Currently, I get a warning that the model is not balanced if the RealInput is not connected from outside.
I am looking for a similar solution like Modelica functions, where a default value can be defined for inputs, or parameters, that can have a default value if nothing else is specified.