Class Section

class core.Section.Section(line, name='')[source]

TODO

computeHydraulicGeometry(WS, dxlat, method, friction='Manning')[source]

Compute the hydraulic parameters for all subdomain defined by the water surface eleavtion and the trnasversal step

Parameters

WSfloat

water surface elevation.

dxlatfloat

lateral discretization step.

methodstring

define method to manage overflowing on floodplain (levee taken into account or not).

Returns

averagedValuedict

Averaged hydraulic characteristic of the section : area, wetted perimeter, surface width

banklist

point of intersection between water surface and bed channel.

hydro_distrdict

hydraulic characteristic of the sub-section : area, wetted perimeter, surface width

manning_distrlsit

manning for each sub-section

copy()[source]

copy section

distanceBord()[source]

compute the distance on (X,Y) plane between each point of the section and the one defined as the reference (self.start)

Returns

None.

equivalentChannel(shape)[source]

Compute the equivalent channel with a given shape considering similar weeted area and perimeter

Parameters

shapestring

shape of the equivalent section

Returns

list

geometrical parameters of the equivalent section.

findBankPoint(WS, method)[source]

Parameters

WSfloat

water surface elevation.

methodstring

define methode to manage overflowing on floodplain (levee taken into account or not).

Returns

dtemplist

point of intersection between water surface and bed channel.

interpDistributionLat(dbank, dxlat)[source]

Resample section in transversal direction with a constant distance step. Lateral boundaries are defined by dbank.

Parameters

dbankList

point of intersection between water surface and bed channel.

dxlatfloat

lateral discretization step.

Returns

dist_distrList

Lateral distance of each center of subdomain.

manning_distrList

friction Coeffcient of each center of subdomain.

WsextentList (Point)

Position of intersection between bank and XS

dist_pointList

transversal position of subdomain limit

z_pointList

elevation interpolated at each subdomain limit

linechannel(param, df_filter)[source]

Create the line in Section corresponding to only the line between two banks

Parameters

paramstring

parmaeter for computation

Returns

list

geometrical parameters of the equivalent section.

modif_line(param, df_filter)[source]

Change the bathymetry of the line section between the 2 banks

Parameters:
  • param (Parameters) – Parameters requires for computation

  • df_filter – result from computation with banks position

originXSLocation(centre=None, d_search=0)[source]

Choose the position of the transversal origin for each section. It could be defined by the point with minimum elevation or the shp file of the streamline.

Parameters

centrestring

DESCRIPTION. The default is None.

Returns

None.

weir_discharge(paramH, ws_downstream=0)[source]

compute the upstream water depth for inline structure section

Parameters:
  • paramH – Hydraulics Parameters requires for computation

  • ws_downstream – water surface at dowsntream (only for submerged condition not implemented yet)