をOMEditを使用している場合は、パラメータに限定されるものではありません。ここでは、Modelica.Mechanics.Translational.Examples.SignConventionを複製し、mass1以外のすべてを保護する例を示します。 PedymanticモードでDymola 2017FD01でテストされています(OpenModelicaでも同様に動作するはずです)。それはうまく動作し、シミュレーション結果にのみ質量1のパラメータと変数を与えます
model SignConvention "Examples for the used sign conventions."
extends Modelica.Icons.Example;
Modelica.Mechanics.Translational.Components.Mass mass1(
L=1,
s(fixed=true),
v(fixed=true),
m=1) a;
protected
Modelica.Mechanics.Translational.Sources.Force force1
a;
Modelica.Blocks.Sources.Constant constant1(k=1) a;
Modelica.Mechanics.Translational.Components.Mass mass2(
L=1,
s(fixed=true),
v(fixed=true),
m=1) a;
Modelica.Mechanics.Translational.Sources.Force force2
a;
Modelica.Blocks.Sources.Constant constant2(k=1) a;
Modelica.Mechanics.Translational.Components.Mass mass3(
L=1,
s(fixed=true),
v(fixed=true),
m=1) a;
Modelica.Mechanics.Translational.Sources.Force force3(useSupport=true)
a;
Modelica.Blocks.Sources.Constant constant3(k=1) a;
Modelica.Mechanics.Translational.Components.Fixed fixed
a;
equation
...
あなたのお返事ありがとう!私はそれが "フィルタ変数"と呼ばれるのを見た後、私はこのリンク[https://openmodelica.org/forum/default-topic/1227-filtering-variables-in-simulation]を見てきました。 しかし、私はまだそれを実際に動作させるように見えることができません。私が欲しい変数をPとしましょう。コンポーネントabcでは、フィルタ変数の行にabc.Pを書くことが期待されます。私がそうするならば、単にすべての変数を削除するだけです(ただしパラメータは削除しません)。 – Bart