The invention discloses a
grid optimization generation method and device of a one-dimensional and two-dimensional
coupling hydrodynamic model, a medium and a product, and relates to the field of
data processing.The method comprises the steps that after a grid
river network digital elevation model is generated based on original
terrain data, a river channel center line and boundary lines of the two banks of a river channel are determined; a hydrodynamic
simulation system is used for obtaining an unstructured grid unit information file based on a riverway center line and riverway two-
bank boundary lines, a
coupling point
processing module is written through a
python language, and unstructured grid unit information is received and preprocessed; and a python script is operated, a cross
product function and a straddling condition are utilized, the
verification model is calibrated based on the preprocessed unstructured grid unit information, and
grid optimization of the one-two-dimensional
coupling hydrodynamic model is completed. According to the method and the device, the
grid optimization of the one-two-dimensional coupled hydrodynamic model can be completed under the condition of not depending on third-party hydrodynamic
modeling software, so that the accuracy of generating the coupling point of the one-two-dimensional coupled hydrodynamic model and the grid optimization generation speed are improved.