Skip to content

Commit f09067d

Browse files
Added various input files to support examples (#395)
1 parent f098042 commit f09067d

File tree

25 files changed

+377570
-0
lines changed

25 files changed

+377570
-0
lines changed

pyfluent/adjoint_cylinder_tutorial/cylinder_tutorial.cas

Lines changed: 10229 additions & 0 deletions
Large diffs are not rendered by default.
2.19 MB
Binary file not shown.
4.15 MB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:959368412dbab50118522ef4c41b34b0797de5d757f493d91fbe01d8315e33f4
3+
size 2103259
4.48 MB
Binary file not shown.
2.26 MB
Binary file not shown.
774 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:ebb116cf1563defddac0aabf5784f11924a8331a2b970db1254b9774ce2fad3f
3+
size 3193087
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#include "udf.h"
2+
3+
4+
#define OMEGA 7.26E-3
5+
#define K_F0 0.0257
6+
#define K_S0 1.0
7+
8+
real
9+
k_solid(real e_gas)
10+
{
11+
real k_sol;
12+
real a = K_S0/K_F0;
13+
real b = 1.25*pow((1.-e_gas)/e_gas, 10./9.);
14+
real t1 = (a-1.)/pow((1.-b/a),2.0)*(b/a)*log(a/b);
15+
real t2 = -((b-1.)/(1.-b/a))-0.5*(b+1.);
16+
real gm = (2./(1.-b/a))*(t1+t2);
17+
real k_bs = K_F0*(OMEGA*a + (1.-OMEGA)*gm);
18+
k_sol = k_bs/sqrt(1.-e_gas);
19+
return (k_sol);
20+
}
21+
22+
DEFINE_PROPERTY(conduct_gas,cell,thread)
23+
{
24+
real k_bf, k_gas;
25+
k_bf = K_F0*(1.-sqrt(1.-C_VOF(cell,thread)));
26+
k_gas = k_bf/C_VOF(cell, thread);
27+
return (k_gas);
28+
}
29+
30+
31+
DEFINE_PROPERTY(conduct_solid,cell,thread)
32+
{
33+
real k_sol;
34+
real epsi_max = 1.-10*SD_EPS;
35+
real epsi = MIN( epsi_max, (1.-C_VOF(cell,thread)));
36+
k_sol = k_solid(epsi);
37+
return (k_sol);
38+
}
39+

0 commit comments

Comments
 (0)