Skip to content

Commit f9ab966

Browse files
committed
Adding doc tests
Added some more doc tests for coverage
1 parent f1c0bb7 commit f9ab966

1 file changed

Lines changed: 78 additions & 2 deletions

File tree

docs/src/plume.md

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,47 @@ the initial concentration is calculated from the mass flowrate and volumetric fl
285285

286286
Suppose we wish to model the dispersion of gaseous propane using the same scenario, `scn`, worked out above.
287287

288-
```jldoctest gaussplume; output = true, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***"
288+
```jldoctest gaussplume; output = false, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***"
289289
j = plume(scn, SimpleJet())
290+
291+
# output
292+
293+
Plume model - subtype simple_jet:
294+
k2: 6.0
295+
k3: 5.0
296+
angle: -0.0 rad
297+
Substance: propane
298+
MW: 0.044096 kg/mol
299+
P_v: GasDispersion.Antoine{Float64}(9.773719865868816, 2257.9247634130143, 0.0) Pa
300+
ρ_g: 1.864931992847327 kg/m^3
301+
ρ_l: 526.13 kg/m^3
302+
T_ref: 288.15 K
303+
P_ref: 101325.0 Pa
304+
k: 1.142
305+
T_b: 231.02 K
306+
Δh_v: 425740 J/kg
307+
Cp_g: 1678 J/kg/K
308+
Cp_l: 2520 J/kg/K
309+
HorizontalJet release:
310+
ṁ: 0.08991798763471508 kg/s
311+
Δt: Inf s
312+
d: 0.01 m
313+
u: 208.10961399327573 m/s
314+
h: 3.5 m
315+
P: 288765.2212333958 Pa
316+
T: 278.3846872082166 K
317+
f_l: 0.0
318+
SimpleAtmosphere atmosphere:
319+
P: 101325.0 Pa
320+
T: 298.15 K
321+
u: 1.5 m/s
322+
h: 10.0 m
323+
rh: 0.0 %
324+
stability: ClassF()
325+
326+
```
327+
328+
```jldoctest gaussplume; output = true, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***"
290329
j(100,0,2)
291330
292331
# output
@@ -394,9 +433,46 @@ SimpleAtmosphere atmosphere:
394433

395434
Generating a solution using the Britter-McQuaid model is quite simple
396435

397-
```jldoctest burro; output = true, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***"
436+
```jldoctest burro; output = false, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***"
398437
bm = plume(scn, BritterMcQuaidPlume())
399438
439+
# output
440+
441+
Plume model - subtype brittermcquaid:
442+
Substance: LNG
443+
MW: 0.01604 kg/mol
444+
P_v: GasDispersion.Antoine{Float64}(8.814018574933064, 983.6444729625298, 0.0) Pa
445+
ρ_g: 1.76 kg/m^3
446+
ρ_l: 425.6 kg/m^3
447+
T_ref: 111.14999999999998 K
448+
P_ref: 101325.0 Pa
449+
k: 1.4
450+
T_b: 111.6 K
451+
Δh_v: 509880.0 J/kg
452+
Cp_g: 2240.0 J/kg/K
453+
Cp_l: 3349.0 J/kg/K
454+
HorizontalJet release:
455+
ṁ: 97.888 kg/s
456+
Δt: 174.0 s
457+
d: 1.0 m
458+
u: 70.81526849717933 m/s
459+
h: 0.0 m
460+
P: 101325.0 Pa
461+
T: 111.14999999999998 K
462+
f_l: 0.0
463+
SimpleAtmosphere atmosphere:
464+
P: 101325.0 Pa
465+
T: 298.0 K
466+
u: 10.9 m/s
467+
h: 10.0 m
468+
rh: 0.0 %
469+
stability: ClassF()
470+
471+
472+
```
473+
474+
```jldoctest burro; output = true, filter = r"(\d*)\.(\d{4})\d+" => s"\1.\2***"
475+
400476
bm(367,0,0)
401477
402478
# output

0 commit comments

Comments
 (0)