From f3db35bd89c59d2a50483d300d6be88d405c6ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag=20Br=C3=BCck?= Date: Wed, 3 Jul 2024 13:50:23 +0200 Subject: [PATCH] Added parameter for master file name. --- examples/MasterParameter/MasterParameter/Test.mo | 3 ++- examples/MasterParameter/masterfile2.txt | 1 + examples/MasterParameter/parfile2.txt | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 examples/MasterParameter/masterfile2.txt create mode 100644 examples/MasterParameter/parfile2.txt diff --git a/examples/MasterParameter/MasterParameter/Test.mo b/examples/MasterParameter/MasterParameter/Test.mo index ba4b68c..e5e5472 100644 --- a/examples/MasterParameter/MasterParameter/Test.mo +++ b/examples/MasterParameter/MasterParameter/Test.mo @@ -1,6 +1,7 @@ within MasterParameter; model Test "Use package parameter" - parameter MasterParameter.ParSet par=InitializeParameters("masterfile.txt") + parameter String master="masterfile.txt" "Name of master file"; + parameter MasterParameter.ParSet par=InitializeParameters(master) annotation (Evaluate=false); extends Modelica.Mechanics.Rotational.Examples.CoupledClutches( J1(J=par.J[1]), diff --git a/examples/MasterParameter/masterfile2.txt b/examples/MasterParameter/masterfile2.txt new file mode 100644 index 0000000..3556926 --- /dev/null +++ b/examples/MasterParameter/masterfile2.txt @@ -0,0 +1 @@ +parfile2.txt diff --git a/examples/MasterParameter/parfile2.txt b/examples/MasterParameter/parfile2.txt new file mode 100644 index 0000000..85f4d79 --- /dev/null +++ b/examples/MasterParameter/parfile2.txt @@ -0,0 +1,4 @@ +1.4 +1.5 +1.1 +1.2