乍得,
對於有關「內置」的Dymola的命令,請注意,您可以通過使用document(...)
功能得到一些基本的文檔有疑問(顯然,help
太行人和elucidate
是太自命不凡了?)。該命令可以從Dymola的「Simulation」選項卡底部的命令行調用。它將一個函數名字符串作爲參數。因此,要回答你的問題:
document("openModel");
function openModel "open a Modelica-file"
input String path "File-path to open";
input Boolean mustRead := true "If false we can skip reading the file";
output Boolean result "true if successful";
"Opens a Modelica-file and pops up a window with the model in it"
end openModel;
document("openModelFile");
function openModelFile "open a Modelica-model from a file"
input String model "Model to open";
input String path := "" "File-path to open (can be the empty string)";
input String version := "" "Version to open (can be the empty string)";
output Boolean result "true if successful";
"Opens a Modelica-file and pops up a window with the given model in it"
end openModelFile;
可悲的是,我不認爲文檔相當這裏捕獲的差異。事實上,如果你仔細想想,我會爭辯說這些名字真的很落後。 openModel
將文件作爲參數並打開包含在該文件中的定義(通常是package
,但不一定)。另一方面,openModelFile
需要模型名稱作爲參數,並在模型瀏覽器中打開該模型(搜索MODELICAPATH,如有必要,查找並打開模型)。
我希望有幫助。
這些命令是Dymola特定的,所以應該編輯這個問題來反映(並且肯定沒有openmodelica標籤)。 –