Skip to main content

EpanetConsoleCore

Overview

EpanetConsoleCore is the main executable application that orchestrates hydraulic simulations and data management within the HydroTrek DWD Suite.

Technical Specifications

  • Target Framework: .NET 8.0
  • Platform: x64
  • Architecture: Console Application
  • Version: 1.0.0-alpha.0

Dependencies

NuGet Packages

  • Entity Framework Core (v6.0.25)
  • Microsoft.Extensions.Configuration.Json (v8.0.0)
  • StyleCop.Analyzers (v1.1.118)

Internal Project References

  • EpanetWrapper
  • EPANET_OWA
  • EN2PostgresContext
  • HTContext
  • HTModels
  • HTLogger
  • SDPostgresContext
  • ScadaInfo

Core Features

1. Simulation Management

  • EPANET integration
  • Hydraulic calculations
  • Water quality analysis
  • Results processing

2. Data Management

  • Database operations
  • File handling
  • Data validation
  • Results storage

3. Configuration

  • Settings management
  • Environment configuration
  • Logging setup
  • Error handling

Key Components

Program Structure

  • Main entry point for simulation execution
  • Configuration loading and validation
  • Database context management
  • SCADA data integration
  • Results processing and storage

Data Flow

  1. Input Processing

    • Configuration files (JSON)
    • Network model files (INP)
    • SCADA data
  2. Simulation Execution

    • Hydraulic calculations
    • Water quality analysis
    • Time-step management
  3. Results Management

    • Database storage
    • Report generation
    • Real-time monitoring

Security Considerations

Database Access

  • Connection string management
  • Secure credential storage
  • Access control

Configuration Management

  • Sensitive data protection
  • Environment-specific settings
  • Secure file handling

Deployment Requirements

System Requirements

  • Windows x64 platform
  • .NET 8.0 Runtime
  • PostgreSQL database server
  • EPANET native libraries

Dependencies

  • Entity Framework Core
  • Configuration management libraries
  • Logging framework
  • EPANET runtime files

Best Practices

Data Management

  • Efficient operations
  • Data validation
  • Error handling
  • Performance optimization

Error Handling

  • Exception management
  • Error reporting
  • Recovery procedures
  • Logging

Performance

  • Resource management
  • Memory optimization
  • Operation efficiency
  • Error handling

Integration Guidelines

Database Integration

  • Connection management
  • Query optimization
  • Error handling
  • Performance tuning

File System Integration

  • File operations
  • Path handling
  • Error handling
  • Performance optimization

Logging Integration

  • Log configuration
  • Error logging
  • Performance logging
  • Log rotation

Future Considerations

Enhancements

  • Additional features
  • Performance improvements
  • Error handling
  • Documentation

Integration

  • Additional platforms
  • Extended functionality
  • Enhanced error handling
  • Improved performance