Location: Bond Graph Circulation @ dbdc7c5db2bc / modify_ADAN_wR_T.sh

Author:
finbar <farg967@aucklanduni.ac.nz>
Date:
2021-08-02 22:13:06+12:00
Desc:
Fixed alpha implementation in BG modules so that resistance can be modified globally and locally
Permanent Source URI:
https://staging.physiomeproject.org/workspace/673/rawfile/dbdc7c5db2bca9b0962298928e03cd0e9ecfeddd/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