parameter Boolean have_occSen=false
"Set to true if zones have occupancy sensor";
CDL.Interfaces.IntegerInput nOcc if have_occSen
"Number of occupants"
annotation (__cdl(default = 0));
CDL.Continuous.Sources.Constant con(
k = VOutPerPer_flow) if have_occSen
"Outdoor air per person";
equation
connect(nOcc, con.u);
The instance con should instantiate CDL.Continuous.gain.
In Eexample code
The instance
con
should instantiateCDL.Continuous.gain
.