Skip to content

Commit

Permalink
Added deafult profile locations
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudHurkmans committed Jun 20, 2022
1 parent 81fb85b commit 463ae0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion delft3dfmpy/core/dfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def __init__(self, dflowfmmodel):
self.dflowfmmodel = dflowfmmodel

self.default_definition = None
self.default_locations = None
self.default_definition_shift = 0.0

self.get_roughnessname = self.dflowfmmodel.network.get_roughness_description
Expand All @@ -373,7 +374,13 @@ def set_default_definition(self, definition, shift=0.0):

self.default_definition = definition
self.default_definition_shift = shift

def set_default_locations(self, locations):
"""
Add default profile locations
"""

self.default_locations = locations

def add_yz_definition(self, yz=None, thalweg=None, roughnesstype=None, roughnessvalue=None, name=None):
"""
Add xyz crosssection
Expand Down
2 changes: 1 addition & 1 deletion delft3dfmpy/io/dflowfmwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, dflowfmmodel, output_dir, name):
with open(os.path.join(self.output_dir, 'boundaries.bc'), 'w') as f:
self._write_header(f, 'boundConds', 1.01, extra_linebreak=False)

def write_all(self, add_default_crosssections=None): # write all fm files from HyDAMO
def write_all(self): # write all fm files from HyDAMO
"""
Wrapper to write all components to DFM. Remove existing files and create new ones. Note that the old format ext-file is not used anymore,.
"""
Expand Down

0 comments on commit 463ae0c

Please sign in to comment.