Hi @ms z,
Upon reviewing the code, the primary issue lies in the use of the equality operator (==) instead of the assignment operator (=) when assigning values to the node properties. In Simscape, the correct operator for assigning values is =, while == is used for comparisons. This misuse leads to the equations not being properly defined, resulting in the error. So, to resolve the issue, replace the equality operator (==) with the assignment operator (=) in the equations section of the code. Here is the corrected code snippet:
equations assert(density > 0, 'Density must be positive');
    % Assign input and parameter values to the node
    G.density = density;  
    G.viscosity_kin = viscosity_kin;
    G.bulk = bulk;
    G.alpha = alpha;
    G.range_error = range_error; 
    assert(viscosity_kin > 0, 'Kinematic viscosity must be positive');
    assert(bulk > 0, 'Bulk modulus must be positive');
    assert(alpha >= 0, 'Alpha must be non-negative');
    assert(alpha < 1, 'Alpha must be less than 1');
  endHope this helps.




