Skip to content

Commit e4aaecf

Browse files
committed
Update Sphere.conf and Square.json
1 parent c4a407d commit e4aaecf

2 files changed

Lines changed: 120 additions & 0 deletions

File tree

doc/config/Sphere.conf

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[Config]
2+
3+
# How to use:
4+
# 1) Compile the DGalerkin sources (cmake && make)
5+
# 2) ./DGalerkin mymesh.msh myconfig.conf
6+
# -> First args = mesh file, Second arg = config file
7+
8+
# Initial, final time and time step(t>0)
9+
timeStart=0
10+
timeEnd=0.2
11+
timeStep=0.00001
12+
13+
# Saving rate:
14+
timeRate=0.001
15+
16+
# Element Type:
17+
# ["Lagrange", "IsoParametric", ...]
18+
elementType=Lagrange
19+
20+
# Time integration method:
21+
# ["Euler1", "Euler2", "Runge-Kutta"...]
22+
timeIntMethod=Euler1
23+
24+
# Boundary condition:
25+
# /!\ The physical group name must match the Gmsh name (case sensitive)
26+
Reflecting = Reflecting
27+
Absorbing = Absorbing
28+
MyPhysicalName = Absorbing
29+
30+
# Number of thread
31+
numThreads=12
32+
33+
# Mean Flow parameters
34+
v0_x = 30
35+
v0_y = 0
36+
v0_z = 0
37+
rho0 = 1.225
38+
c0 = 100
39+
40+
# Source:
41+
# name = fct,x,y,z,size,intensity,frequency,phase,duration
42+
# - fct supported = [monopole, dipole, quadrupole, udf]
43+
# - if fct = formula => name = fct,"formula expr",x,y,z,size,duration (ex: formula = 0.1 * sin(2 * pi * 50 * t))
44+
# - (x,y,z) = source position
45+
# - intensity = source intensity
46+
# - frequency = source frequency
47+
# NB: Extended source or Multiple sources are supported.
48+
# (source1 = ..., source2 = ...) indice must change.
49+
# source1 = monopole, 0.0,0.0,0.0, 0.1, 0.1,50,0,0.1
50+
source1 = formula, "0.1 * sin(2 * pi * 50 * t)", 0.0,0.0,0.0, 0.1, 0.2
51+
# source2 = udf, "-0.1 * sin(2 * pi * 50 * t)", -0.5,0.0,0.0, 0.1, 0.1
52+
53+
# Initial condition:
54+
# name = gaussian,x,y,z, size, amplitude
55+
# - fct supported = [gaussian]
56+
# - (x,y,z) = position
57+
# - amplitude = initial amplitude
58+
# NB: Multiple CI are supported and recursively added.
59+
# (initial condition1 = ..., initial condition = ...)
60+
# initialCondtition1 = gaussian, 0,0,0,1,1
61+
62+
63+

doc/config/Square.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"mesh": {
3+
"File": "doc/2d/square2.msh",
4+
"BC": {
5+
"number": 1,
6+
"boundary1": {
7+
"name": "Abs",
8+
"type": "Absorbing"
9+
}
10+
}
11+
},
12+
"solver": {
13+
"time": {
14+
"start": 0.0,
15+
"end": 0.05,
16+
"step": 5e-05,
17+
"rate": 0.001
18+
},
19+
"elementType": "Lagrange",
20+
"timeIntMethod": "Runge-Kutta",
21+
"numThreads": 12
22+
},
23+
"initialization": {
24+
"meanFlow": {
25+
"vx": 30.0,
26+
"vy": 0.0,
27+
"vz": 0.0,
28+
"rho": 1.225,
29+
"c": 100.0
30+
},
31+
"number": 0
32+
},
33+
"observers": {
34+
"number": 1,
35+
"observer1": {
36+
"x": 2.11792,
37+
"y": 0.00340081,
38+
"z": 0.0,
39+
"size": 0.1
40+
}
41+
},
42+
"sources": {
43+
"number": 1,
44+
"source1": {
45+
"type": "formula",
46+
"fct": "0.1 * sin(2 * pi * 50 * t)",
47+
"x": 0.0,
48+
"y": 0.0,
49+
"z": 0.0,
50+
"size": 0.1,
51+
"amplitude": 0.0,
52+
"frequency": 0.0,
53+
"phase": 0.0,
54+
"duration": 0.05
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)