#Example_92 Gas mixing in a symmetric conducting/LPM respiratory model #This exmaple simulates mixing of sulpherhexafloride with nitrogen #in a full lung model. The model uses a symmetric conducting airway #system, based on Weibel's model A down to generation 16. Because the #model is symmetric, only a single pathway is considered. Attached to #the end of the terminal conducting airway is a lumped parameter model #of a single pulmonary acinus, calibrated using simulations in the #sca-mba model described in example 91. # If the example path is not set, default to current directory if (! defined $example) { $example = "./"; } # Drop off the trailing / in the example path $chopped = chop $example; if ($chopped ne "/") { $example .= $chopped; } $filename = "scalpm"; $RADIUS = 1; $ALVEOLI=2; $INSPIRATION = 1; $EXPIRATION = 2; $dt = 0.05; $T_insp = 1.0; $T_expn = 1.0; $time = 0.0; $flow_in = 0.5; #litres $flow_out = -0.5; #litres $v_t = $flow_in * $T_insp; #in litres $FIXED_NODE = 1; $FLUX_NODE = 1; $initial = 0.0; $concentration = 1.0; $NUM_BREATHS = 10; $NUM_EXPORTS = 1; fem de param;r;"$example/$filename"; fem de coor;r;"$example/$filename"; fem de base;r;"$example/$filename"; #CREATE SYMMETRIC CONDUCTING MODEL AND LUMPED PARAMETER RESPIRATORY MODEL fem de mesh;r;"$example/$filename" as conducting field; fem de;add mesh;c airway lumped_parameter vol 100 rad_field $RADIUS alveolar_field $ALVEOLI; fem evaluate ordering; #CALCULATE RADII AND ALVEOLAR CROSS-SECTIONAL AREA fem update mesh geometry elem conducting radius_field $RADIUS anatomical weibel; #DEFINE THE PROBLEM SETUP FOR INSPIRATION fem de equa;r;"$example/$filename" class $INSPIRATION; fem de mate;r;"$example/$filename" class $INSPIRATION; fem de moti;c lung lumped FRC 3.0; fem de moti;c lung uniform flow_field 3 inlet_flow $flow_in class $INSPIRATION; fem de init;c lung fixed node $FIXED_NODE conc $concentration initial $initial class $INSPIRATION; fem de solve;r;"$example/$filename"; #DEFINE THE PROBLEM SETUP FOR EXPIRATION fem de equa;r;"$example/$filename" class $EXPIRATION; fem de mate;r;"$example/$filename" class $EXPIRATION; fem de moti;c lung uniform flow_field 3 inlet_flow $flow_out class $EXPIRATION; fem de init;c lung flux node $FLUX_NODE class $EXPIRATION; fem de solve;r;"$example/$filename" class $EXPIRATION; #SOLVE FOR FIRST_BREATH $restart = ""; $time_end = 0.0; for (my $j = 0; $j < $NUM_BREATHS; $j++){ for (my $i = 0; $i < $NUM_EXPORTS; $i++){ $time_end = $time_end + $T_insp/$NUM_EXPORTS; print "FEM solve $restart to $time_end delta_t $dt class $INSPIRATION\n"; fem solve $restart to $time_end delta_t $dt class $INSPIRATION; $N++; $restart = "restart"; } fem update solution class $EXPIRATION substitute solution class $INSPIRATION; for (my $i = 0; $i < $NUM_EXPORTS; $i++){ $time_end = $time_end + $T_expn/$NUM_EXPORTS; print "FEM solve $restart to $time_end delta_t $dt class $EXPIRATION\n"; fem solve $restart to $time_end delta_t $dt class $EXPIRATION; $N++; } fem update solution class $INSPIRATION substitute solution class $EXPIRATION; fem update solution class $INSPIRATION nodes $FIXED_NODE substitute constant $concentration; }
FEM list node solution class $INSPIRATION; FEM list node solution class $EXPIRATION;
Name Modified Size
example_92.com 08-Mar-2006 3.2k scalpm.ipbase 10-Apr-2000 893 scalpm.ipcoor 10-Apr-2000 688 scalpm.ipequa 11-Sep-2007 1.7k scalpm.ipmate 23-Oct-2001 239 scalpm.ipmesh 31-Mar-2004 2.4k scalpm.ippara 01-Dec-2006 5.7k scalpm.ipsolv 13-Apr-2007 2.3k test_output.com 07-Jul-2004 85
Name Modified Size
examples_9_92.tar.gz 12-Sep-2007 18k
Status | Tested | Real time (s) | |
i686-linux | |||
cm | Failure | Sun Mar 6 00:05:11 2016 | 1 |
last break | Sun Aug 23 02:05:00 2009 | 0 | |
last success | Sun Aug 16 01:18:00 2009 | 6 | |
cm-debug | Failure | Sun Mar 6 00:05:46 2016 | 0 |
last break | Thu Sep 10 00:11:00 2009 | 0 | |
last success | Fri Aug 21 00:31:00 2009 | 8 | |
mips-irix | |||
cm | Success | Sun Aug 19 02:07:02 2007 | 37 |
cm-debug | Failure | Thu Jun 8 14:44:49 2006 | 130873 |
last break | Wed Jun 7 02:23:00 2006 | 130873 | |
last success | Wed May 31 01:49:00 2006 | 65 | |
cm-debug-clear-malloc | Failure | Mon Mar 27 09:33:29 2006 | 200110 |
last break | Sat Mar 25 01:58:00 2006 | 200110 | |
last success | Sat Mar 11 03:01:00 2006 | 72 | |
cm-debug-clear-malloc7 | Failure | Thu Mar 23 13:24:35 2006 | 213997 |
last break | Thu Mar 23 02:28:00 2006 | 39284 | |
last success | Mon Mar 13 02:44:00 2006 | 73 | |
cm64 | Success | Sun Aug 19 02:04:07 2007 | 36 |
cm64-debug | Failure | Thu Jun 8 12:40:51 2006 | 212159 |
last break | Fri Jun 2 02:00:00 2006 | 378709 | |
last success | Tue May 30 01:47:00 2006 | 65 | |
rs6000-aix | |||
cm | Success | Wed Mar 4 01:09:42 2009 | 3 |
cm-debug | Success | Mon Mar 2 01:11:06 2009 | 10 |
cm64 | Success | Wed Mar 4 01:09:43 2009 | 3 |
cm64-debug | Success | Tue Mar 3 01:16:04 2009 | 10 |
x86_64-linux | |||
cm | Failure | Sun Mar 6 00:01:24 2016 | 0 |
last break | Thu Sep 10 00:10:00 2009 | 1 | |
last success | Sun Aug 16 01:05:00 2009 | 3 | |
cm-debug | Failure | Sun Mar 6 00:01:24 2016 | 0 |
last break | Thu Sep 10 00:13:00 2009 | 1 | |
last success | Fri Aug 21 00:17:00 2009 | 5 |
mips-irix | |||
SIGTERM | cm-debug: | exit due to SIGTERM signal. | |
SIGTERM | cm-debug-clear-malloc: | exit due to SIGTERM signal. | |
SIGTERM | cm-debug-clear-malloc7: | exit due to SIGTERM signal. | |
SIGTERM | cm64-debug: | exit due to SIGTERM signal. |
i686-linux | |||
1 | cm: | error exit status 1. | |
1 | cm-debug: | error exit status 1. | |
x86_64-linux | |||
1 | cm: | error exit status 1. | |
1 | cm-debug: | error exit status 1. |
i686-linux | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
mips-irix | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
Success | cm-debug-clear-malloc: | cmiss_test.log.retain. | |
Success | cm-debug-clear-malloc7: | cmiss_test.log.retain. | |
Success | cm64: | cmiss_test.log.retain. | |
Success | cm64-debug: | cmiss_test.log.retain. | |
rs6000-aix | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
Success | cm64: | cmiss_test.log.retain. | |
Success | cm64-debug: | cmiss_test.log.retain. | |
x86_64-linux | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. |
i686-linux | |||
Missing | cm: | output file not generated for ndiff; generic answer. | |
Missing | cm-debug: | output file not generated for ndiff; generic answer. | |
mips-irix | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Missing | cm-debug: | output file not generated for ndiff; generic answer. | |
Missing | cm-debug-clear-malloc: | output file not generated for ndiff; generic answer. | |
Missing | cm-debug-clear-malloc7: | output file not generated for ndiff; generic answer. | |
Success | cm64: | ndiff test: no significant differences with generic answer. | |
Missing | cm64-debug: | output file not generated for ndiff; generic answer. | |
rs6000-aix | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug: | ndiff test: no significant differences with generic answer. | |
Success | cm64: | ndiff test: no significant differences with generic answer. | |
Success | cm64-debug: | ndiff test: no significant differences with generic answer. | |
x86_64-linux | |||
Missing | cm: | output file not generated for ndiff; generic answer. | |
Missing | cm-debug: | output file not generated for ndiff; generic answer. |
Html last generated: Sun Mar 6 05:50:34 2016
Input last modified: Tue Sep 11 10:52:50 2007