DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
Sfx_SectionGeometryHandler.h
Go to the documentation of this file.
1
2#pragma once
3
4// SfxBase include
5#include "include/Sfx_DefineTypes.h"
6// Library include
8
9// NOTE this class is definitively not completed and not usable.
10// I ma not sure what i was trying to do but ... still under construction
11// See E. McNeil code (all is code, the whole package)
12// See the code for rectangular section call i guess Legacy code
13// in DevAzure (was migrated in 2024) and compiled with VS19 C++17
14namespace Sfx
15{
16 //
17 // static class
18 //
19 // Design Note: under construction, unit section width
20 // is currently supported;
21 //
23 {
24 // nested type
26 {
27 float64 *H; // water level a each node along section
28 int32 m_NbValeurs; // number of node along section
29
30 float64 Z_thalweg; // minimum bottom node
31 // geometric section property
32 float64* A; // wetted area (more detail)
33 float64* P; // wetted perimeter
34 float64* R; // hydraulic radius
35 float64* B; // section width (at water level)
36 float64* D; // water depth ??? i am not sure
37 // integral of the ... terms
38 float64* P1; // ...
39 float64* P2; // ...
40 };
41 public:
42 static float64 computeWidth( const dbpp::SectionFlow aSection)
43 {
44 if( aSection.isUnitWidth())
45 {
46 return 1.;
47 }
48 else
49 {
50 // compute section width
51 return 0.; // not implemented yet
52 }
53 }
54 private:
55 };
56} // End of namespace
Definition Sfx_SectionGeometryHandler.h:23
static float64 computeWidth(const dbpp::SectionFlow aSection)
Definition Sfx_SectionGeometryHandler.h:42
Cross-sectional flow (2-dimensional).
Definition dbpp_SectionFlow.h:16
constexpr bool isUnitWidth() const noexcept
Check unit width.
Definition dbpp_SectionFlow.h:72
Definition HydUtils.h:15
Definition Sfx_SectionGeometryHandler.h:26
float64 * R
Definition Sfx_SectionGeometryHandler.h:34
float64 * P1
Definition Sfx_SectionGeometryHandler.h:38
float64 * B
Definition Sfx_SectionGeometryHandler.h:35
int32 m_NbValeurs
Definition Sfx_SectionGeometryHandler.h:28
float64 * A
Definition Sfx_SectionGeometryHandler.h:32
float64 * H
Definition Sfx_SectionGeometryHandler.h:27
float64 Z_thalweg
Definition Sfx_SectionGeometryHandler.h:30
float64 * P2
Definition Sfx_SectionGeometryHandler.h:39
float64 * P
Definition Sfx_SectionGeometryHandler.h:33
float64 * D
Definition Sfx_SectionGeometryHandler.h:36