- Author:
- finbar <farg967@aucklanduni.ac.nz>
- Date:
- 2021-08-01 15:55:25+12:00
- Desc:
- created files for modifying cellml files with flow and resistance params
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/673/rawfile/3973d8384668023c136aca8af28618aa1f4d69f7/modify_ADAN_wR_T.sh
echo "Start"
IFS=''
while read p; do
echo $p
while read n; do
m="${n/R_T_/}"
if [[ $p == *"name=\"$m\""* ]]; then
echo "<variable name=\"R_T\" private_interface=\"in\" units=\"Js_per_m6\"/>"
fi
if [[ $p == *"component_1=\"$m\""* ]]; then
echo "<map_variables variable_1=\"R_T\" variable_2=\"R_T\"/>"
fi
done <R_T_names.txt
done <main_ADAN-218.cellml >main_ADAN-218_new.cellml