-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elias Ruemmler
committed
Mar 7, 2019
1 parent
d2fa87a
commit e0adada
Showing
13 changed files
with
543 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FlowCalc.PoolSystem | ||
{ | ||
/// <summary> | ||
/// Rohrbogen | ||
/// </summary> | ||
public abstract class BaseFitting | ||
{ | ||
/// <summary> | ||
/// Name der Armatur bzw. des Formstückes | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Innendurchmesser | ||
/// in [mm] | ||
/// </summary> | ||
public double Diameter { get; set; } | ||
|
||
/// <summary> | ||
/// Rohrrauheit | ||
/// in [mm] | ||
/// </summary> | ||
public double Roughness { get; set; } | ||
|
||
/// <summary> | ||
/// Druckverlustbeiwert | ||
/// </summary> | ||
public abstract double Zeta { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FlowCalc.PoolSystem | ||
{ | ||
public class Elbow : BaseFitting | ||
{ | ||
#region Member | ||
|
||
|
||
#endregion Member | ||
|
||
#region Properties | ||
/// <summary> | ||
/// Mittlerer Krümmungsradius des Rohrbogens | ||
/// in [mm] | ||
/// </summary> | ||
public double Radius { get; set; } | ||
|
||
/// <summary> | ||
/// Krümmungswinkel des Rohrbogens | ||
/// in [Grad] | ||
/// </summary> | ||
public double Angle { get; set; } | ||
|
||
/// <summary> | ||
/// Druckverlustbeiwert | ||
/// </summary> | ||
public override double Zeta | ||
{ | ||
get | ||
{ | ||
var x = Radius / Diameter; | ||
if (x < 1 || x > 10) | ||
throw new IndexOutOfRangeException("Gültigkeitsbereich für Zeta-Berechnung verletzt!"); | ||
|
||
return 0; | ||
} | ||
} | ||
#endregion Properties | ||
|
||
#region Constructor | ||
/// <summary> | ||
/// Empty constructor for Elbow | ||
/// </summary> | ||
public Elbow() | ||
{ | ||
|
||
} | ||
|
||
#endregion Constructor | ||
|
||
#region Services | ||
|
||
|
||
#endregion Services | ||
|
||
#region Internal services | ||
|
||
|
||
#endregion Internal services | ||
|
||
#region Events | ||
|
||
|
||
#endregion Events | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FlowCalc.PoolSystem | ||
{ | ||
[AttributeUsage(AttributeTargets.Field)] | ||
public class FittingDetailAttribute : Attribute | ||
{ | ||
public string DisplayName { get; set; } | ||
|
||
public int NominalDiameter { get; set; } | ||
|
||
public double InnerDiameter { get; set; } | ||
|
||
public double Zeta { get; set; } | ||
|
||
public FittingDetailAttribute(string name, int dn, double zeta, double diameter) | ||
{ | ||
DisplayName = name; | ||
NominalDiameter = dn; | ||
Zeta = zeta; | ||
InnerDiameter = diameter; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FlowCalc.PoolSystem | ||
{ | ||
public enum Fittings | ||
{ | ||
[FittingDetail("Bogen 90°", 40, 0.191, 42.6)] | ||
Dn40Elbow90, | ||
[FittingDetail("Winkel 90°", 40, 0.565, 50)] | ||
Dn40Angle90, | ||
[FittingDetail("Winkel 45°", 40, 0.565, 50)] | ||
Dn40Angle45, | ||
Dn40TPipe90, | ||
Dn40TPipe45, | ||
Dn40YPipe | ||
} | ||
} |
Oops, something went wrong.