Method and device for realizing automatic operation of HEC-RAS hydrodynamic simulation process
By using Java engineering and JACOB DLL and COM interface in HEC-RAS, the hydrodynamic simulation process is automated, which solves the problem of insufficient integration capabilities of HEC-RAS in the automation system, and realizes efficient and accurate hydrodynamic simulation, improving The efficiency and accuracy of water resource management and engineering design.
Patent Information
- Application Number
- CN202411136232.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-10
AI Technical Summary
The HEC-RAS hydrodynamic simulation process has time-consuming and labor-intensive problems in manual configuration and execution of model calculations in practical applications, and the lack of direct automation interfaces or APIs limits its integration capabilities in automation systems.
By building Java projects, using JACOB DLL and COM interfaces, the connection with HEC-RAS and API calls are realized, and the hydrodynamic simulation process is automated, including data reception, interface initialization, simulation operations and result analysis.
The automatic operation of the HEC-RAS hydrodynamic simulation process is realized, reducing human errors, improving the efficiency and accuracy of water resource management and engineering design, and enhancing the integration capabilities in the automated system.
Smart Images

Figure CN119106637A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method and a device for realizing automatic operation of a HEC-RAS hydrodynamic simulation process, belonging to the technical field of water resource management. Background Art
[0002] With the increasing complexity of global water resources management and the large-scale development of water conservancy infrastructure, the importance of hydrological analysis and hydrodynamic simulation in water resources engineering has become increasingly prominent. HEC-RAS is a widely used hydrological model software for watersheds and rivers. Its functions cover complex water flow and hydraulic analysis, including but not limited to flood simulation, water dynamics and water quality analysis.
[0003] Although HEC-RAS provides powerful analytical capabilities, it has some limitations in practical applications. Traditionally, operators need to manually configure and perform model calculations, which is not only time-consuming and labor-intensive, but also prone to operator errors and limits its integration capabilities in automated systems. In particular, HEC-RAS itself does not provide a direct automation interface or API, which makes it difficult for developers to directly control and manage the model calculation process programmatically.
[0004] In order to improve the wide application of automation technology in water conservancy projects, the present invention proposes a method and a device for realizing the automated operation of a HEC-RAS hydrodynamic simulation process. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes a method and device for realizing automated operation of HEC-RAS hydrodynamic simulation process, which can enable the hydraulic simulation process to be seamlessly integrated into a wider automation system, thereby improving the efficiency and accuracy of water resources management and engineering design.
[0006] The technical solution adopted by the present invention to solve the technical problem is:
[0007] In a first aspect, an embodiment of the present invention provides a method for realizing automated operation of a HEC-RAS hydrodynamic simulation process, comprising the following steps:
[0008] Step S1, build a development environment for the Java project and set development environment parameters;
[0009] Step S2, receiving data input from the business system and passing the data to the COM interface of HEC-RAS through the Java interface;
[0010] Step S3, create a Java project, set the JACOB DLL path and add the JACOB.jar package;
[0011] Step S4, initializing the HEC-RAS COM interface and establishing a connection with the COM object of HEC-RAS;
[0012] Step S5, calling the HEC-RAS API to perform simulation operations of the HEC-RAS hydrodynamic simulation process.
[0013] As a possible implementation of this embodiment, the step S1, building a development environment for a Java project and setting development environment parameters, includes:
[0014] Link to the JACOB (Java COM Bridge, java com bridge) official website, download the JACOB installation package and install it. The JACOB installation package includes a JACOB.dll library file compiled by a C++ program. The JACOB.dll library file implements communication with local COM components. The JACOB software calls and controls COM components on the Java platform by accessing dynamic libraries through the Java Native Interface;
[0015] Unzip the JACOB installation package, copy the dll file in the JACOB installation package to the bin folder under the jre directory of the local machine, and copy the JACOB.jar file to the lib folder under the jre directory;
[0016] Set development environment parameters.
[0017] As a possible implementation of this embodiment, linking to the JACOB official website, downloading the JACOB installation package and installing it includes:
[0018] Select the JACOB version according to the Java platform version and requirements;
[0019] Download the JACOB installation package from the official website https: / / danadler.com / tech-articles / JACOB-2 / ;
[0020] Install the JACOB software and check whether the connection with the COM component is stable.
[0021] As a possible implementation of this embodiment, in step S2, receiving data input from the business system includes:
[0022] Verify and check the existence and accessibility of HEC-RAS model file paths;
[0023] Verify whether the parameter name format passed by the business system meets the requirements;
[0024] Format and control parameters of data input into the business system.
[0025] As a possible implementation of this embodiment, the step S3, creating a Java project, setting the JACOB DLL path and adding the JACOB.jar package, includes:
[0026] Create a Java project;
[0027] Use System.setProperty method to set the JACOB DLL path;
[0028] Import the JACOB jar package into the Java project and verify whether the JACOB DLL path is configured correctly.
[0029] As a possible implementation of this embodiment, the step S4, initializing the HEC-RAS COM interface and establishing a connection with the HEC-RAS COM object, includes:
[0030] Initialize the HEC-RAS COM interface using the ActiveXComponent class;
[0031] Create an ActiveX component object and establish a connection with the HEC-RAS COM object.
[0032] As a possible implementation of this embodiment, the step S5, calling the HEC-RAS API to perform a simulation operation of the HEC-RAS hydrodynamic simulation process, includes:
[0033] Open the HEC-RAS project file and load the project file into HEC-RAS;
[0034] Start the steady flow simulation calculation of HEC-RAS and continuously check the progress of the calculation through a loop mechanism;
[0035] The loop mechanism continuously checks the progress of the calculation, including: calling
[0036] The Compute_IsStillRunning method determines whether the HEC-RAS calculation is still in progress. If the calculation is not completed, check it once a second until the calculation is completed and exit the loop.
[0037] As a possible implementation of this embodiment, the method further includes the following steps:
[0038] Step S6, after performing the simulation operation of the HEC-RAS hydrodynamic simulation process, analyzing the simulation operation results.
[0039] As a possible implementation of this embodiment, the simulation operation result analysis includes:
[0040] If the simulation calculation is completed successfully, the simulation results are obtained and output to the business system;
[0041] When simulation calculation fails, record the failure information and reasons;
[0042] Safely close the HEC-RAS program by calling the HEC-RAS API.
[0043] In a second aspect, an embodiment of the present invention provides a device for realizing automated operation of a HEC-RAS hydrodynamic simulation process, comprising:
[0044] The development environment building module is used to build the development environment of the Java project and set the development environment parameters;
[0045] Data transfer module, used to receive data input from the business system and transfer the data to the COM interface of HEC-RAS through the Java interface;
[0046] Java project creation module, used to create a Java project, set the JACOB DLL path and add the JACOB.jar package;
[0047] The connection establishment module is used to initialize the HEC-RAS COM interface and establish a connection with the HEC-RAS COM object;
[0048] The simulation operation module is used to call the HEC-RAS API to perform simulation operations on the HEC-RAS hydrodynamic simulation process.
[0049] As a possible implementation of this embodiment, the device further includes:
[0050] The result analysis module is used to analyze the simulation operation results after the simulation operation of the HEC-RAS hydrodynamic simulation process.
[0051] The beneficial effects of the technical solution of the embodiment of the present invention are as follows:
[0052] A method for realizing the automated operation of the HEC-RAS hydrodynamic simulation process according to the technical solution of the embodiment of the present invention comprises the following steps: step S1, building a development environment for a Java project and setting development environment parameters; step S2, receiving data input from a business system and passing the data to the COM interface of HEC-RAS through a Java interface; step S3, creating a Java project, setting the JACOB DLL path and adding the JACOB.jar package; step S4, initializing the HEC-RAS COM interface and establishing a connection with the COM object of HEC-RAS; step S5, calling the API of HEC-RAS to perform simulation operation of the HEC-RAS hydrodynamic simulation process. The present invention not only realizes the automated operation of the HEC-RAS hydrodynamic simulation process and reduces the errors caused by human operation, but also plays an important role in real-time monitoring and large-scale simulation analysis; and enables the hydraulic simulation process to be seamlessly integrated in a wider range of automation systems, thereby improving the efficiency and accuracy of water resources management and engineering design.
[0053] The invention provides the integration capability of HEC-RAS simulation in an automation system, and an operator can efficiently and accurately realize the automated operation of the HEC-RAS hydrodynamic simulation process in a Java environment, thereby reducing the need for manual intervention, improving the automation level and reliability of the simulation work, and being applicable to multiple fields such as hydrological analysis and river research. The invention introduces an automated operation method based on JACOB, so that an operator can configure and manage the HEC-RAS model calculation process in a programmatic manner. As a method widely used in software integration and automated control, JACOB technology provides a reliable technical basis for the automated operation of HEC-RAS, and realizes efficient management and precise control of model calculation.
[0054] A device for realizing automated operation of a HEC-RAS hydrodynamic simulation process according to a technical solution of an embodiment of the present invention has the same beneficial effects as a method for realizing automated operation of a HEC-RAS hydrodynamic simulation process according to a technical solution of an embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 is a flow chart of a method for realizing automated operation of a HEC-RAS hydrodynamic simulation process according to an exemplary embodiment;
[0056] Figure 2 is a schematic diagram of a device structure for realizing automated operation of a HEC-RAS hydrodynamic simulation process according to an exemplary embodiment;
[0057] Figure 3It is a specific implementation flow chart showing an automated operation of a hec-ras hydrodynamic simulation process based on JACOB according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] In order to more clearly illustrate the technical features of the solution of the present invention, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings.
[0059] like Figure 1 As shown, a method for realizing automatic operation of a HEC-RAS hydrodynamic simulation process provided by an embodiment of the present invention comprises the following steps:
[0060] Step S1, build a development environment for the Java project and set development environment parameters;
[0061] Step S2, receiving data input from the business system and passing the data to the COM interface of HEC-RAS through the Java interface;
[0062] Step S3, create a Java project, set the JACOB DLL path and add the JACOB.jar package;
[0063] Step S4, initializing the HEC-RAS COM interface and establishing a connection with the COM object of HEC-RAS;
[0064] Step S5, calling the HEC-RAS API to perform simulation operations of the HEC-RAS hydrodynamic simulation process.
[0065] As a possible implementation of this embodiment, the step S1, building a development environment for a Java project and setting development environment parameters, includes:
[0066] Link to the JACOB official website, download the JACOB installation package and install it. The JACOB installation package includes a JACOB.dll library file compiled by a C++ program. The JACOB.dll library file implements communication with the local COM component. The JACOB software calls and controls the COM component on the Java platform by accessing the dynamic library through the Java Native Interface;
[0067] Unzip the JACOB installation package, copy the dll file in the JACOB installation package to the bin folder under the jre directory of the local machine, and copy the JACOB.jar file to the lib folder under the jre directory;
[0068] Set development environment parameters.
[0069] As a possible implementation of this embodiment, linking to the JACOB official website, downloading the JACOB installation package and installing it includes:
[0070] Select the appropriate JACOB version according to the Java platform version and requirements;
[0071] Download the JACOB installation package from the official website https: / / danadler.com / tech-articles / JACOB-2 / ;
[0072] Install the JACOB software and check whether the connection with the COM component is stable.
[0073] When downloading the JACOB installation package, select the appropriate JACOB version according to the Java platform version and requirements to ensure compatibility with JDK.
[0074] During use, check whether the connection with the COM component is stable. If there is a connection problem, adjust the environment configuration in time and retest to ensure the continuity and reliability of hec-ras automated operation.
[0075] As a possible implementation of this embodiment, in step S2, receiving data input from the business system includes:
[0076] Verify and check the existence and accessibility of HEC-RAS model file paths;
[0077] Verify whether the parameter name format passed by the business system meets the requirements;
[0078] Format and control parameters of data input into the business system.
[0079] As a possible implementation of this embodiment, the step S3, creating a Java project, setting the JACOB DLL path and adding the JACOB.jar package, includes:
[0080] Create a Java project;
[0081] Use System.setProperty method to set the JACOB DLL path;
[0082] Import the JACOB jar package into the Java project and verify whether the JACOB DLL path is configured correctly.
[0083] Verify that the JACOB DLL path is configured correctly, especially when multiple versions of JACOB coexist or are upgraded, to ensure that the Java program can correctly access the required JACOB dynamic link library.
[0084] As a possible implementation of this embodiment, the step S4, initializing the HEC-RAS COM interface and establishing a connection with the HEC-RAS COM object, includes:
[0085] Initialize the HEC-RAS COM interface using the ActiveXComponent class;
[0086] Create an ActiveX component object and establish a connection with the HEC-RAS COM object.
[0087] As a possible implementation of this embodiment, the step S5, calling the HEC-RAS API to perform a simulation operation of the HEC-RAS hydrodynamic simulation process, includes:
[0088] Open the HEC-RAS project file and load the project file into HEC-RAS;
[0089] Start the steady flow simulation calculation of HEC-RAS and continuously check the progress of the calculation through a loop mechanism;
[0090] The loop mechanism continuously checks the progress of the calculation, including: calling
[0091] The Compute_IsStillRunning method determines whether the HEC-RAS calculation is still in progress. If the calculation is not completed, check it once a second until the calculation is completed and exit the loop.
[0092] As a possible implementation of this embodiment, the method further includes the following steps:
[0093] Step S6, after performing the simulation operation of the HEC-RAS hydrodynamic simulation process, analyzing the simulation operation results.
[0094] As a possible implementation of this embodiment, the simulation operation result analysis includes:
[0095] If the simulation calculation is completed successfully, the simulation results are obtained and output to the business system;
[0096] When simulation calculation fails, record the failure information and reasons;
[0097] By calling the HEC-RAS API, the HEC-RAS program can be safely closed to ensure resource release and system status recovery.
[0098] like Figure 2 As shown, an embodiment of the present invention provides a device for realizing automatic operation of a HEC-RAS hydrodynamic simulation process, comprising:
[0099] The development environment building module is used to build the development environment of the Java project and set the development environment parameters;
[0100] Data transfer module, used to receive data input from the business system and transfer the data to the COM interface of HEC-RAS through the Java interface;
[0101] Java project creation module, used to create a Java project, set the JACOB DLL path and add the JACOB.jar package;
[0102] The connection establishment module is used to initialize the HEC-RAS COM interface and establish a connection with the HEC-RAS COM object;
[0103] The simulation operation module is used to call the HEC-RAS API to perform simulation operations on the HEC-RAS hydrodynamic simulation process.
[0104] As a possible implementation of this embodiment, the device further includes:
[0105] The result analysis module is used to analyze the simulation operation results after the simulation operation of the HEC-RAS hydrodynamic simulation process.
[0106] like Figure 3 As shown, the specific implementation process of realizing the automated operation of the hec-ras hydrodynamic simulation process based on JACOB is as follows.
[0107] 1. Download and install the JACOB installation package.
[0108] Download the JACOB installation package from the official website https: / / danadler.com / tech-articles / JACOB-2 / . Since different versions support different JDKs, if there are problems with calling and connecting components after installation, you first need to confirm whether JACOB is the latest version.
[0109] 2. Prepare the development and execution environment.
[0110] You need to copy the dll file in the unzipped JACOB project package to the bin folder under the jre directory of the local machine, and copy the JACOB.jar file to the lib folder under the jre directory. And import the JACOB jar package into the project.
[0111] 3. Receive data input from the business system.
[0112] A) Verify and check the existence and accessibility of the HEC-RAS model file path to ensure that the model file can be loaded correctly.
[0113] B) Check whether the parameter name format passed by the business system meets the requirements to ensure the legality and accuracy of the business system input parameters.
[0114] C) Format and parameterize the data input into the business system to ensure that the data meets the input conditions for calculations, such as unit conversion, data type conversion, etc., to ensure the integrity and accuracy of the data.
[0115] 4. Create a Java project and set the JACOB DLL path.
[0116] By configuring system properties, ensure that the Java program can access the necessary JACOB dynamic link library.
[0117] The System.setProperty method sets the JACOB DLL path, which is implemented by the following code:
[0118] String JACOBDllPath="Java\\jdk\\bin\\JACOB.dll";
[0119] System.setProperty(LibraryLoader.JACOB_DLL_PATH,JACOBDllPath);
[0120] The JACOB library calls the COM component of the local operating system through the Java Native Interface (JNI), which requires the corresponding DLL file to be loaded correctly. If the DLL path is not configured correctly, the Java program will not be able to find and load the JACOB library, resulting in a failure in interaction with the COM component. Set the JACOB DLL path. This step configures the file path of the JACOB dynamic link library (DLL) to the system properties so that the JACOB library can be correctly loaded and accessed. This is critical to ensure that the Java program can interact with the local COM component. Therefore, setting the correct DLL path is a prerequisite for implementing JACOB-based automation operations.
[0121] 5. Initialize the HEC-RAS COM interface.
[0122] Initialize the HEC-RAS COM interface using the following code:
[0123] ActiveXComponent hecRAS=new ActiveXComponent("RAS5x.HECRASController");
[0124] Use the ActiveXComponent class to initialize the HEC-RAS COM interface and establish a connection with the HEC-RAS COM object. Create an ActiveX component object to interact with the HEC-RAS COM interface. RAS5x.HECRASController is the COM object identifier (ProgID) of HEC-RAS, which is used to identify and instantiate the COM object. Through this object, you can call various API methods provided by HEC-RAS to control and operate HEC-RAS. This step is the basis for realizing the automated operation of HEC-RAS, ensuring that the Java program can communicate with HEC-RAS through the COM interface.
[0125] 6. Automatically complete the simulation operation of HEC-RAS by calling the HEC-RAS API.
[0126] A) Open the HEC-RAS project file and load the project file into HEC-RAS for subsequent simulation operations. This is achieved through the following code:
[0127] String prjPath="C:\\HEC-RAS\\demo.prj";
[0128] hecRAS.invoke("Project_Open",prjPath);
[0129] B) Start the HEC-RAS steady flow simulation calculation, and continuously check the calculation progress through the loop mechanism to ensure that the subsequent operations are performed only after the calculation is completed. This is achieved through the following code:
[0130] hecRAS.invoke("Compute_CurrentPlan",new Variant(0),new Variant(0));
[0131] Specifically, the above code starts the steady flow simulation of the current program of HEC-RAS. Steady flow simulation is a method in hydrodynamic simulation that is used to calculate and analyze the flow characteristics of a river under steady state. By setting the parameter to 0, the method runs silently in the background without displaying any progress window.
[0132] while(true){Variant isStillRunning=hecRAS.invoke("Compute_IsStillRunning");
[0133] if(!isStillRunning.getBoolean()){break;}Thread.sleep(1000);}
[0134] Specifically, the above code determines whether the HEC-RAS calculation is still in progress by calling the Compute_IsStillRunning method. If the calculation is not completed, the program will check once a second until the calculation is completed and exit the loop. This ensures that the HEC-RAS calculation has been successfully completed before continuing to execute subsequent operations.
[0135] 7. After the HEC-RAS simulation operation is completed automatically.
[0136] (1) If the simulation calculation is completed successfully, the simulation results are obtained and output to the business system. This is achieved through the following code:
[0137] Variant output=hecRAS.invoke("OutputDSS_GetStageFlow");
[0138] System.out.println("Simulation output:"+output);
[0139] Specifically, the above code calls the OutputDSS_GetStageFlow method of HEC-RAS to obtain the stage flow data from the simulation results. Finally, it is output to the console. The extracted data can contain information such as water level and flow, which can be used for further analysis, report generation or interaction with other systems.
[0140] (2) When the simulation fails, record the failure information and reasons, which can be achieved through the following code:
[0141] try{...}catch(Exception e){e.printStackTrace();}
[0142] finally{hecRAS.invoke("QuitRas");}
[0143] (3) By calling the HEC-RAS API, the HEC-RAS program is safely closed to ensure resource release and system status recovery, which is achieved through the following code:
[0144] hecRAS.invoke("Project_Close");
[0145] The present invention can also be optimized as follows:
[0146] Provide a user interface or command line interface so that the operator can set the parameters and options of the hec-ras model calculation;
[0147] Before executing the hec-ras model calculation, preprocessing and data preparation are performed, including model initialization, boundary condition setting, and input data verification;
[0148] Integrated data storage and output functions allow HEC-RAS simulation results to be saved to local or remote storage systems and support export in multiple data formats.
[0149] The present invention provides the integration capability of HEC-RAS simulation in the automation system. The operator can efficiently and accurately realize the automation operation of the HEC-RAS hydrodynamic simulation process in the Java environment, which reduces the need for manual intervention, improves the automation level and reliability of the simulation work, and is suitable for multiple fields such as hydrological analysis and river research.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for realizing the automated operation of the HEC-RAS hydrodynamic simulation process, It is characterized in that The steps include: Step S1, build a development environment for the Java project and set development environment parameters; Step S2, receiving data input from the business system and passing the data to the COM interface of HEC-RAS through the Java interface; Step S3, create a Java project, set the JACOB DLL path and add the JACOB.jar package; Step S4, initializing the HEC-RAS COM interface and establishing a connection with the COM object of HEC-RAS; Step S5, calling the HEC-RAS API to perform simulation operations of the HEC-RAS hydrodynamic simulation process.
2. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 1, It is characterized in that The step S1 is to build a development environment for a Java project and set development environment parameters, including: Link to the JACOB official website, download the JACOB installation package and install it. The JACOB installation package includes a JACOB.dll library file compiled by a C++ program. The JACOB.dll library file implements communication with the local COM component. The JACOB software calls and controls the COM component on the Java platform by accessing the dynamic library through the Java Native Interface; Unzip the JACOB installation package, copy the dll file in the JACOB installation package to the bin folder under the jre directory of the local machine, and copy the JACOB.jar file to the lib folder under the jre directory; Set development environment parameters.
3. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 2, It is characterized in that The link to the JACOB official website, downloading the JACOB installation package and installing it includes: Select the JACOB version according to the Java platform version and requirements; Download the JACOB installation package from the official website https: / / danadler.com / tech-articles / JACOB-2 / ; Install the JACOB software and check whether the connection with the COM component is stable.
4. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 1, It is characterized in that In step S2, receiving data input from the business system includes: Verify and check the existence and accessibility of HEC-RAS model file paths; Verify whether the parameter name format passed by the business system meets the requirements; Format and control parameters of data input into the business system.
5. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 1, It is characterized in that The step S3, creating a Java project, setting the JACOB DLL path and adding the JACOB.jar package, includes: Create a Java project; Use System.setProperty method to set the JACOB DLL path; Import the JACOB jar package into the Java project and verify whether the JACOB DLL path is configured correctly.
6. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 1, It is characterized in that The step S4, initializing the HEC-RAS COM interface and establishing a connection with the HEC-RAS COM object, includes: Initialize the HEC-RAS COM interface using the ActiveXComponent class; Create an ActiveX component object and establish a connection with the HEC-RAS COM object.
7. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 1, It is characterized in that The step S5, calling the HEC-RAS API to perform a simulation operation of the HEC-RAS hydrodynamic simulation process, includes: Open the HEC-RAS project file and load the project file into HEC-RAS; Start the steady flow simulation calculation of HEC-RAS and continuously check the progress of the calculation through a loop mechanism; The process of continuously checking the calculation progress through the loop mechanism includes: calling the Compute_IsStillRunning method to determine whether the calculation of HEC-RAS is still in progress, and if the calculation is not completed, checking once per second until the calculation is completed and exiting the loop.
8. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to any one of claims 1 to 7, It is characterized in that The following steps are also included: Step S6, after performing the simulation operation of the HEC-RAS hydrodynamic simulation process, analyzing the simulation operation results.
9. The method for realizing automated operation of HEC-RAS hydrodynamic simulation process according to claim 8, It is characterized in that The simulation operation result analysis includes: If the simulation calculation is completed successfully, the simulation results are obtained and output to the business system; When simulation calculation fails, record the failure information and reasons; Safely close the HEC-RAS program by calling the HEC-RAS API.
10. A device for realizing the automated operation of the HEC-RAS hydrodynamic simulation process, It is characterized in that include: The development environment building module is used to build the development environment of the Java project and set the development environment parameters; Data transfer module, used to receive data input from the business system and transfer the data to the COM interface of HEC-RAS through the Java interface; Java project creation module, used to create a Java project, set the JACOB DLL path and add the JACOB.jar package; The connection establishment module is used to initialize the HEC-RAS COM interface and establish a connection with the HEC-RAS COM object; The simulation operation module is used to call the HEC-RAS API to perform simulation operations on the HEC-RAS hydrodynamic simulation process.
