- Author:
- WeiweiAi <wai484@aucklanduni.ac.nz>
- Date:
- 2022-04-20 20:29:47+12:00
- Desc:
- Correct the models and rebuild;
Status: the model output is not correct, need to check the parameters.
- Permanent Source URI:
- https://models.cellml.org/workspace/83f/rawfile/2342955c5f054b3ddf8883e245b20b574acfa8d2/Components/txt2cellml.ps1
## Convert .txt to .cellml
# go to the OpenCOR folder
$dpath= 'C:\Users\wai484\Documents\OpenCOR'
cd $dpath
# model path
$mpath='C:\Users\wai484\Documents\SinglePASMC\Components'
$txtfiles="JVOCCi", "JNCXi", "JSERCAi", "JCICRi", "JPMCAi", "Jleaki", "JNKAi","JCli","JKi","Para","Cai","Casr","Vm","PASMC"
foreach ($txtfile in $txtfiles)
{
./OpenCOR -c CellMLTextView::export $mpath\$txtfile.txt | out-file $mpath\$txtfile.cellml -encoding utf8
}