cfdpre 0.1__tar.gz → 0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cfdpre-0.2/PKG-INFO ADDED
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.1
2
+ Name: cfdpre
3
+ Version: 0.2
4
+ Summary: CFD PreProcessing Library
5
+ Author: Pushkar Sheth
6
+ Author-email: siglyserdev@gmail.com
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: numpy
9
+ Requires-Dist: CoolProp
10
+
11
+ # CFDPre
12
+
13
+
14
+ What is CFDPre?
15
+ ================
16
+
17
+ CFDPre is an open-source collection of object-oriented software tools for
18
+ calculating boundary layer mesh dimensions for Computational Fluid Dynamics simulations.
19
+ Among other things, it can be used to:
20
+
21
+ * Calculate First Layer Thickness, Growth Ratio and Final Layer Thickess
22
+
23
+
24
+ Installation
25
+ ============
26
+
27
+ [![PyPI Downloads](https://img.shields.io/pypi/v/cfdpre?label=PyPI%20downloads)](
28
+ https://pypi.org/project/cfdpre/)
29
+
30
+ pip install cfdpre
31
+
32
+ - The Python module can also be installed using pip on Windows, macOS, and Linux.
33
+
34
+ Documentation
35
+ =============
36
+
37
+ In progress - not yet made!
38
+
39
+ Users' Group
40
+ ============
41
+
42
+ - **Users Group:** https://groups.google.com/g/cfdpre
43
+
44
+ Source Code
45
+ ===========
46
+
47
+ - **Source code:** https://github.com/phsheth/cfdpre
48
+
49
+ Call for Contributions
50
+ ----------------------
51
+
52
+ The CFDPre project welcomes your expertise and enthusiasm! Better to discuss before strarting to contribute!
53
+
54
+
55
+ ## Project Log
56
+ January 2025:
57
+ 1. Created Library
58
+
59
+
60
+ ## Project Road Map:
61
+
62
+ 1. Documentation for existing functionality.
63
+ 2. Include example data within library.
64
+
65
+
66
+
67
+
68
+
69
+
cfdpre-0.2/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # CFDPre
2
+
3
+
4
+ What is CFDPre?
5
+ ================
6
+
7
+ CFDPre is an open-source collection of object-oriented software tools for
8
+ calculating boundary layer mesh dimensions for Computational Fluid Dynamics simulations.
9
+ Among other things, it can be used to:
10
+
11
+ * Calculate First Layer Thickness, Growth Ratio and Final Layer Thickess
12
+
13
+
14
+ Installation
15
+ ============
16
+
17
+ [![PyPI Downloads](https://img.shields.io/pypi/v/cfdpre?label=PyPI%20downloads)](
18
+ https://pypi.org/project/cfdpre/)
19
+
20
+ pip install cfdpre
21
+
22
+ - The Python module can also be installed using pip on Windows, macOS, and Linux.
23
+
24
+ Documentation
25
+ =============
26
+
27
+ In progress - not yet made!
28
+
29
+ Users' Group
30
+ ============
31
+
32
+ - **Users Group:** https://groups.google.com/g/cfdpre
33
+
34
+ Source Code
35
+ ===========
36
+
37
+ - **Source code:** https://github.com/phsheth/cfdpre
38
+
39
+ Call for Contributions
40
+ ----------------------
41
+
42
+ The CFDPre project welcomes your expertise and enthusiasm! Better to discuss before strarting to contribute!
43
+
44
+
45
+ ## Project Log
46
+ January 2025:
47
+ 1. Created Library
48
+
49
+
50
+ ## Project Road Map:
51
+
52
+ 1. Documentation for existing functionality.
53
+ 2. Include example data within library.
54
+
55
+
56
+
57
+
58
+
59
+
@@ -69,30 +69,42 @@ def yhgrcalc(fluid, temperature_c, pressure_bar, massflow_kgpersec, hydraulicdia
69
69
  tau_wall = 0.5 * density_kgperm3 * np.square(flowvelocity_mpersec) * cf # wall shear stress
70
70
  u_tau = np.sqrt(tau_wall/density_kgperm3) #friction velocity
71
71
  yp_m = (target_yplus * dynvisc_nsm2) /(u_tau * density_kgperm3)
72
- yh_m = yp_m * 2
73
-
74
-
75
-
72
+ yh_m = yp_m * 2
76
73
 
77
74
  if reynolds < 5e5:
78
-
79
75
  delta99 = 4.91 * hydraulicdia_m / np.sqrt(reynolds)
80
-
81
76
  else:
82
-
83
77
  delta99 = 0.38 * hydraulicdia_m * reynolds**(-1/5)
84
78
 
85
-
86
79
  growth_ratio = newton_raphson(num_layers, delta99, yh_m)
87
80
  final_layer_thickness_m = yh_m * growth_ratio**(num_layers - 1)
88
- propdict = [density_kgperm3, specific_heat_cp_jperkgk, thermal_conductivity_wpermk, dynvisc_nsm2]
89
81
 
90
- return yh_m, growth_ratio, final_layer_thickness_m, reynolds, propdict
91
-
92
-
93
82
 
83
+ result = {
84
+ 'fluid' : fluid,
85
+ 'temperature [C]' : temperature_c,
86
+ 'pressure [bar]' : pressure_bar,
87
+ 'massflow [kg/sec]' : massflow_kgpersec,
88
+ 'hydraulicdia [mm]' : hydraulicdia_mm,
89
+ 'target yplus' : target_yplus,
90
+ 'number of layers' : num_layers,
91
+ 'dynvisc [N-sec/m^2]' : dynvisc_nsm2,
92
+ 'thermal conductivity [W/m-k]' : thermal_conductivity_wpermk,
93
+ 'specific heat [cp] [J/kg-k]' : specific_heat_cp_jperkgk,
94
+ 'density [kg/m^3]' : density_kgperm3,
95
+ 'kinematic viscosity [m^2/s]' : kinevisc_m2s,
96
+ 'flow velocity [m/sec]' : flowvelocity_mpersec,
97
+ 'reynolds number' : reynolds,
98
+ 'prandtl number' : prandtl,
99
+ 'skin friction coefficient [cf]' : cf,
100
+ 'wall shear stress [tau_wall]' : tau_wall,
101
+ 'yplus [m]' : yp_m,
102
+ 'first layer height [m]' : yh_m,
103
+ 'Growth Ratio' : growth_ratio,
104
+ 'Final Layer Thickness [m]' : final_layer_thickness_m
105
+ }
94
106
 
95
-
107
+ return result
96
108
 
97
109
 
98
110
 
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.1
2
+ Name: cfdpre
3
+ Version: 0.2
4
+ Summary: CFD PreProcessing Library
5
+ Author: Pushkar Sheth
6
+ Author-email: siglyserdev@gmail.com
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: numpy
9
+ Requires-Dist: CoolProp
10
+
11
+ # CFDPre
12
+
13
+
14
+ What is CFDPre?
15
+ ================
16
+
17
+ CFDPre is an open-source collection of object-oriented software tools for
18
+ calculating boundary layer mesh dimensions for Computational Fluid Dynamics simulations.
19
+ Among other things, it can be used to:
20
+
21
+ * Calculate First Layer Thickness, Growth Ratio and Final Layer Thickess
22
+
23
+
24
+ Installation
25
+ ============
26
+
27
+ [![PyPI Downloads](https://img.shields.io/pypi/v/cfdpre?label=PyPI%20downloads)](
28
+ https://pypi.org/project/cfdpre/)
29
+
30
+ pip install cfdpre
31
+
32
+ - The Python module can also be installed using pip on Windows, macOS, and Linux.
33
+
34
+ Documentation
35
+ =============
36
+
37
+ In progress - not yet made!
38
+
39
+ Users' Group
40
+ ============
41
+
42
+ - **Users Group:** https://groups.google.com/g/cfdpre
43
+
44
+ Source Code
45
+ ===========
46
+
47
+ - **Source code:** https://github.com/phsheth/cfdpre
48
+
49
+ Call for Contributions
50
+ ----------------------
51
+
52
+ The CFDPre project welcomes your expertise and enthusiasm! Better to discuss before strarting to contribute!
53
+
54
+
55
+ ## Project Log
56
+ January 2025:
57
+ 1. Created Library
58
+
59
+
60
+ ## Project Road Map:
61
+
62
+ 1. Documentation for existing functionality.
63
+ 2. Include example data within library.
64
+
65
+
66
+
67
+
68
+
69
+
@@ -8,7 +8,7 @@ with open("README.md", "r") as f:
8
8
 
9
9
  setup(
10
10
  name='cfdpre',
11
- version='0.1',
11
+ version='0.2',
12
12
  description='CFD PreProcessing Library',
13
13
  author='Pushkar Sheth',
14
14
  author_email='siglyserdev@gmail.com',
cfdpre-0.1/PKG-INFO DELETED
@@ -1,28 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: cfdpre
3
- Version: 0.1
4
- Summary: CFD PreProcessing Library
5
- Author: Pushkar Sheth
6
- Author-email: siglyserdev@gmail.com
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: numpy
9
- Requires-Dist: CoolProp
10
-
11
- # CFD-Pre
12
- CFD PreProcessing Library.
13
-
14
- Provides the following functionality:
15
- 1. Calculate Boundary Layer Mesh dimensions.
16
-
17
-
18
-
19
-
20
- ## Project Log
21
- January 2025:
22
- 1. Created Library
23
-
24
-
25
- ## Project Road Map:
26
-
27
- 1. Documentation for existing functionality.
28
- 2. Include example data within library.
cfdpre-0.1/README.md DELETED
@@ -1,18 +0,0 @@
1
- # CFD-Pre
2
- CFD PreProcessing Library.
3
-
4
- Provides the following functionality:
5
- 1. Calculate Boundary Layer Mesh dimensions.
6
-
7
-
8
-
9
-
10
- ## Project Log
11
- January 2025:
12
- 1. Created Library
13
-
14
-
15
- ## Project Road Map:
16
-
17
- 1. Documentation for existing functionality.
18
- 2. Include example data within library.
@@ -1,28 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: cfdpre
3
- Version: 0.1
4
- Summary: CFD PreProcessing Library
5
- Author: Pushkar Sheth
6
- Author-email: siglyserdev@gmail.com
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: numpy
9
- Requires-Dist: CoolProp
10
-
11
- # CFD-Pre
12
- CFD PreProcessing Library.
13
-
14
- Provides the following functionality:
15
- 1. Calculate Boundary Layer Mesh dimensions.
16
-
17
-
18
-
19
-
20
- ## Project Log
21
- January 2025:
22
- 1. Created Library
23
-
24
-
25
- ## Project Road Map:
26
-
27
- 1. Documentation for existing functionality.
28
- 2. Include example data within library.
File without changes
File without changes
File without changes
File without changes
File without changes