forked from idaholab/blackbear
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test for concrete thermal/moisture transport closes idaholab#216
1) Delete the existing 2D test 2) Add a coarse, fast-running 1D test of the MAQBETH experiment. This runs with larger time steps and a coarser mesh than we would prefer, but the results are reasonably close to a more refined version, and reasonably close to the published experimental results. 3) Add a Python script for plotting the results of this test at various times reported in the paper on this experiment.
- Loading branch information
Showing
8 changed files
with
153 additions
and
65 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,19 @@ | ||
## /Applications/Cubit-15.2/Cubit.app/Contents/MacOS/cubitclx | ||
## Cubit Version 15.2 | ||
## Cubit Build 405468 | ||
## Revised 2016-09-23 10:47:14 -0600 (Fri, 23 Sep 2016) | ||
## Running 05/03/2021 03:26:23 PM | ||
## Command Options: | ||
create vertex 0.5 0 0 | ||
create vertex 1.1 0 0 | ||
create curve vertex 1 2 | ||
curve 1 scheme dualbias fine size 0.015 coarse size 0.03 | ||
mesh curve 1 | ||
|
||
block 1 curve 1 | ||
block 1 element type BAR2 | ||
|
||
nodeset 1 vertex 1 | ||
nodeset 2 vertex 2 | ||
|
||
export mesh 'maqbeth_1d.e' overwrite |
44 changes: 44 additions & 0 deletions
44
test/tests/concrete_moisture_heat_transfer/temp_rh_plots.py
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,44 @@ | ||
#!/usr/bin/env python | ||
|
||
import pandas | ||
import mooseutils | ||
import matplotlib.pyplot as plt | ||
|
||
f1 = plt.figure(1, figsize=(6,4.5)) | ||
ax = plt.gca() | ||
data = mooseutils.VectorPostprocessorReader('csv/out_profiles_*.csv') | ||
|
||
t_times = [19.5, 30.5, 41.8, 61.3, 125.0, 194.6] | ||
rh_times = [33.4, 58.4, 66.7, 77.9, 152.8, 194.5] | ||
|
||
#T = data('T', time = 0) | ||
#print(T) | ||
#print(data.data.keys().values) | ||
|
||
#Plot a line for every output time: | ||
#for time in data.data.data.keys().values: | ||
# data.data.data[time].plot(ax=ax,x='x',y='T') | ||
|
||
#Plot lines for selected interpolated output times: | ||
for t_hr in t_times: | ||
t = t_hr * 3600 | ||
data.update(time=t) | ||
data.data.data.plot(ax=ax,x='id',y='T',label=str(t_hr)+' hr') | ||
|
||
plt.xlabel('Radial Position (m)') | ||
plt.ylabel('Temperature ($\degree$C)') | ||
|
||
plt.savefig('temp_plot.pdf') | ||
|
||
f2 = plt.figure(2, figsize=(6,4.5)) | ||
ax = plt.gca() | ||
|
||
for t_hr in rh_times: | ||
t = t_hr * 3600 | ||
data.update(time=t) | ||
data.data.data.plot(ax=ax,x='id',y='rh',label=str(t_hr)+' hr') | ||
|
||
plt.xlabel('Radial Position (m)') | ||
plt.ylabel('$h_r$') | ||
|
||
plt.savefig('rh_plot.pdf') |
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