Jump to content

Scenarios in ecf

Recommended Posts

I have tried to set up a model using the Scenario options, however it appears that you cannot use the If Scenario command in the ecf file. Is this correct?


We were trying to specify different network and cross-section files depending upon the scenario (such as blockages), however TUFLOW appears to try and read all networks listed, ignoring the If Scenario and Else If...  statements.


Is the only option to create a range of ecf files for each scenario and read the relevant file from the tcf using the If Scenario commands?





Share this post

Link to post
Share on other sites

Hi Gillian,


You should be able to use an If Scenario in the .ecf


try something like this (to model an existing 1D network and then test new features, say mitigation options):


Read MI Network == ..\model\mi\1d_nwk_existing.mif


  If scenario == mitigation1

      Read MI Network==..\model\mi\1d_nwk_mit1.mif


  else if Scenario == mitigation2

      Read MI Network ==..\model\mi\1d_nwk_mit2.mif


  End If


...continue on with .ecf commands

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...