Exporting a demand scaling object

A demand scaling object can be exported to Event files (*.csv) from InfoWorks WS Pro.

Demand scaling allows adjustment of a group of demands and transfer flows by a constant percentage and/or by a time varying profile.

Demand scaling is applied to a model by including a Demand Scaling object when setting up a simulation in the Schedule Hydraulic Run view.

To export a demand scaling object:

  1. Right-click the Demand Scaling Group in the Model Group window.
  2. Choose Export| Demand Scaling from the context menu. This displays the Save As dialog.
  3. On the dialog, select the location where you want to save the exported file and enter a file name. The file will be exported as an Event files (*.csv).
  4. Click Save and the file will be exported.

If the file name of the demand scaling to be exported already exists, successive integers are added until a unique name is generated.

Demand Scaling CSV format

An example of an exported Demand Scaling CSV format is shown below.

**** wn_dsc_settings

transfer

1

**** wn_dsc_field_area

area_id,transfer,enable_areaTVDsc,linear,profile_type,multiply_by_static

Industry,0.5,1,0,24HOUR,0

Unknown,1.,0,0,24HOUR,0

**** wn_dsc_field_area_tv_demand

area_id,date_time,demandfactor

Industry,00:00:00,1.

Industry,03:00:00,5.

Industry,06:00:00,7.

**** wn_dsc_field_demand_factor

area_id,category_id,linear,mode,static_demand,profile_type,multiply_by_static

Industry,UNSPECIFIED,0,STATIC,1.,24HOUR,0

Industry,AutoCamp,0,TIMVAR,1.,24HOUR,0

**** wn_dsc_field_demand_factor_tv_demand

area_id,category_id,date_time,demandfactor

Industry,AutoCamp,00:00:00,1.

Industry,AutoCamp,03:00:00,5.

Industry,AutoCamp,06:00:00,7.

The file is divided into sections. Each section starts with **** with the table name appended, followed by the table header line and the table data rows. Each table is described in detail below:

wn_dsc_settings

Field Type Description
transfer

Boolean

Enable Transfer Flows

wn_dsc_field_area

Field Type Description
area_id

Text

Area
transfer Double Transfer Flow Factor
enable_areaTVDsc Boolean Enable Time-Varying Demand Scaling
linear Boolean Linear Scaling
profile_type Text

Profile Type

Possible options are:

  • 24HOUR

  • 7DAY

  • ABSOLUTE

multiply_by_static Boolean Multiply by static

wn_dsc_field_area_tv_demand

Field Type Description
area_id

Text

Area
date_time Date / time Date / Time
demandfactor Double Demand Factor

wn_dsc_field_demand_factor

Field Type Description
area_id

Text

Area
category_id Text Category
linear Boolean Linear Scaling
mode Text

Mode

Possible options are:

  • STATIC

  • TIMVAR

static_demand Double Static Demand Scaling factor
profile_type Text

Profile Type

Possible options are:

  • 24HOUR

  • 7DAY

  • ABSOLUTE

multiply_by_static Boolean Multiply by static

wn_dsc_field_demand_factor_tv_demand

Field Type Description
area_id

Text

Area
category_id Text Category
date_time Date / time Date / Time
demandfactor Double Demand Factor

 


About demand scaling

Importing a demand scaling object

Creating a new demand scaling object

Demand Scaling Editor

Schedule Hydraulic Run view