User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2016-07-02 21:15:47

sajjad
User
Registered: 2014-10-01
Posts: 101

Coupling a baseplane and a basechain through source coupling

Hi,

I am trying to couple a street model of 2d flow with a 1d sewer model (basechain) through source coupling. I have defined a source block in  2d containing two external_source blocks. One ext_source block is for rainfall over the street and another is coupling_source_discharge. Then in 1d basechain, I have a coupling_off_channel. I want the flow from 2d street model towards the 1d sewer model and vice versa. I have a coupling block at the end in which, i am perplexed about 'Hydraulics' because there are no interfaces which connect (i have left it out, as can be seen below). When the basement v 2.6 is launched, the program gets stuck and has to be closed. No error message is generated.

I am reproducing the relevant blocks in the 2d baseplain and 1d basechain as explained above.

2D baseplain (subdomain : street)
***********
            SOURCE     {
                  EXTERNAL_SOURCE
            { type = source_discharge
               file    =rain.txt
               element_ids=( 6571 6572 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6623 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6725 6730 6732 6733 6734 6740 6742 6743 6744 6745 6746    )
             } // rainfall generating discharge
             EXTERNAL_SOURCE
            { type = coupling_source_discharge
               element_ids    = (2309 2524 2862 4190 4695 5585 6479 8981 9477)  //cells corresponding to street inlets which exchange flow b/w the two //subdomains
             }
        }

1D basechain (subdomain : sewerchan)
**********
            SOURCE     {
                  EXTERNAL_SOURCE  {
                 type = coupling_off_channel
             }
             }
Coupling
**********
        COUPLINGS {
        COUPLING {
            type                 = sequential
            upstream_subdomain   = street
            downstream_subdomain = sewerchan
            two_way_coupling     = yes
            average_steps        = 1
            print_series         = no
            espilon              = 1E-6
            HYDRAULICS {
            //    upstream_interface   = left_down
            //    downstream_interface = inflow_left1
            }
        }
        }

Any help would be greatly appreciated.

Regards

Last edited by sajjad (2016-07-02 21:22:51)

Offline

#2 2016-07-05 10:35:07

sajjad
User
Registered: 2014-10-01
Posts: 101

Re: Coupling a baseplane and a basechain through source coupling

Hi,

I have been able to run the model. I am reproducing the relevant parts from the run files suitably amended with comments to explain what not to do. Anyone can compare it with relevant parts from the run file in previous post to see what error has been committed and should avoid it.

2d subdomain 'street'
****************
            SOURCE     {
                  EXTERNAL_SOURCE
            { type = source_discharge
               file    =rain.txt
               element_ids=( 6571 6572 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6623 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6725 6730 6732 6733 6734 6740 6742 6743 6744 6745 6746
                )
             }
             EXTERNAL_SOURCE
            { type = coupling_source_discharge
               element_ids    = (2309 )//earlier, i coupled many cells in the 2d subdomain 'street' to 1d subdom 'sewer'. Wrong. for each cell in  2d subdom  //add    a separate   ext_source block
                name= 2d_rain_prod  // always give name. This will be required while defining coupling interfaces.
             }
        }
1D sudomain 'sewer'
***************
            SOURCE     {
                  EXTERNAL_SOURCE  {
                 type = coupling_off_channel
                 name = 1d_receptor // always give name. This will be required while defining coupling interfaces.
                 cross_sections =(CS7_lft CS8_lft) // define the 1d compartment which will be coupled to '2d_rain_prod'. earlier missed
             }
             }
Coupling block
*************
        COUPLINGS {
            COUPLING {
            type                 = sequential
            upstream_subdomain   = street
            downstream_subdomain = sewerchan
            two_way_coupling     = yes
            espilon              = 1E-6
            HYDRAULICS {
                upstream_interface   = 2d_rain_prod
                downstream_interface = 1d_receptor
        }
        }
}

Offline

Board footer

Powered by FluxBB