更新v2版本适配skill
This commit is contained in:
1 parent
7611f13208
commit
2f3f7d00ec
58 files changed
+180419
-526
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<System name="closed-tank" schemaVersion="3" unitSystem="SI">
|
||||
<Simulation tStart="0" tStop="0.02" sampleStep="0.01" maxStep="0.001" method="BDF"/>
|
||||
<Components>
|
||||
<Component id="air" type="amesim_ideal_air_medium" modelVersion="0.2.0">
|
||||
<Parameter name="gi" value="1"/>
|
||||
<Parameter name="property_model" value="0"/>
|
||||
</Component>
|
||||
<Component id="tank" type="amesim_pnch023" modelVersion="0.1.0">
|
||||
<Parameter name="gi" value="1"/>
|
||||
<Parameter name="cvol" value="0.057"/>
|
||||
<Parameter name="kth" value="0"/>
|
||||
<Parameter name="sth" value="0.1"/>
|
||||
<Parameter name="extemp" value="293.15"/>
|
||||
<Parameter name="p0" value="250000"/>
|
||||
<Parameter name="T0" value="293.15"/>
|
||||
</Component>
|
||||
<Component id="left_cap" type="amesim_pnpl01" modelVersion="0.1.0"/>
|
||||
<Component id="right_cap" type="amesim_pnpl01" modelVersion="0.1.0"/>
|
||||
</Components>
|
||||
<Connections>
|
||||
<Connection id="left">
|
||||
<Endpoint component="left_cap" port="port_1"/>
|
||||
<Endpoint component="tank" port="port_1"/>
|
||||
</Connection>
|
||||
<Connection id="right">
|
||||
<Endpoint component="tank" port="port_2"/>
|
||||
<Endpoint component="right_cap" port="port_1"/>
|
||||
</Connection>
|
||||
</Connections>
|
||||
</System>
|
||||
@@ -0,0 +1 @@
|
||||
{"validation":{"valid":true,"errorCount":0,"warningCount":0,"issues":[],"system":{"schemaVersion":"3","unitSystem":"SI","componentCount":4,"connectionCount":2,"name":"closed-tank"}},"simulation":{"t_start":0,"t_stop":0.02,"sample_step":0.01,"max_step":0.001,"method":"BDF"},"model":{"name":"closed-tank","components":[{"id":"tank","type":"amesim_pnch023","parameters":[{"name":"gi","label":"介质物性模型(gi)","quantity":"dimensionless","unit":"","default":0,"minimumExclusive":false,"minimum":0,"maximum":99,"editor":"amesimGasReference","description":"选择本元件使用的气体介质定义索引;0 表示内置空气,1–99 引用画布中的介质定义组件。","value":1},{"name":"cvol","label":"气室容积","quantity":"volume","unit":"m3","default":0.057,"minimumExclusive":true,"minimum":0,"description":"气室内部用于储存气体的固定有效容积。","value":0.057},{"name":"kth","label":"换热系数","quantity":"heat_transfer_coefficient","unit":"W/(m2*K)","default":0,"minimumExclusive":false,"minimum":0,"description":"气室与环境之间的对流换热系数,与换热面积共同决定换热功率。","value":0},{"name":"sth","label":"换热面积","quantity":"area","unit":"m2","default":0.1,"minimumExclusive":false,"minimum":0,"description":"气室与环境进行热交换的有效表面积。","value":0.1},{"name":"extemp","label":"外部温度","quantity":"temperature","unit":"K","default":293.15,"minimumExclusive":true,"minimum":0,"description":"气室外部环境的绝对温度,用于计算气体与环境之间的换热。","value":293.15},{"name":"p0","label":"初始压力","quantity":"pressure","unit":"Pa","default":100000,"minimumExclusive":true,"minimum":0,"description":"仿真开始时气室内气体的绝对压力。","value":250000},{"name":"T0","label":"初始温度","quantity":"temperature","unit":"K","default":293.15,"minimumExclusive":true,"minimum":0,"description":"仿真开始时气室内气体的绝对温度。","value":293.15}],"ports":[{"name":"port_1","kind":"physical","domain":"pneumatic","nominalRole":"bidirectional","positiveFlowDirection":"intoComponent","variables":[{"name":"p","role":"effort","connectionRule":"equal","label":"压力","quantity":"pressure","unit":"Pa","resultVisible":true,"order":10},{"name":"m_flow","role":"flow","connectionRule":"sumToZero","label":"质量流量","quantity":"mass_flow","unit":"kg/s","resultVisible":true,"order":20},{"name":"h_outflow","role":"stream","connectionRule":"streamMix","label":"流出比焓","quantity":"specific_enthalpy","unit":"J/kg","resultVisible":true,"order":30},{"name":"volume","role":"signal","connectionRule":"directed","label":"外部容积","quantity":"volume","unit":"m3","resultVisible":false,"order":40},{"name":"volume_flow","role":"signal","connectionRule":"directed","label":"外部容积变化率","quantity":"volume_flow","unit":"m3/s","resultVisible":false,"order":50}],"computation":{"mode":"equation","inputs":["m_flow","H_flow"],"outputs":["p","T"]}},{"name":"port_2","kind":"physical","domain":"pneumatic","nominalRole":"bidirectional","positiveFlowDirection":"intoComponent","variables":[{"name":"p","role":"effort","connectionRule":"equal","label":"压力","quantity":"pressure","unit":"Pa","resultVisible":true,"order":10},{"name":"m_flow","role":"flow","connectionRule":"sumToZero","label":"质量流量","quantity":"mass_flow","unit":"kg/s","resultVisible":true,"order":20},{"name":"h_outflow","role":"stream","connectionRule":"streamMix","label":"流出比焓","quantity":"specific_enthalpy","unit":"J/kg","resultVisible":true,"order":30},{"name":"volume","role":"signal","connectionRule":"directed","label":"外部容积","quantity":"volume","unit":"m3","resultVisible":false,"order":40},{"name":"volume_flow","role":"signal","connectionRule":"directed","label":"外部容积变化率","quantity":"volume_flow","unit":"m3/s","resultVisible":false,"order":50}],"computation":{"mode":"equation","inputs":["m_flow","H_flow"],"outputs":["p","T"]}}],"resultVariables":[{"key":"tank.m","componentId":"tank","componentType":"amesim_pnch023","scope":"component","portName":null,"name":"m","label":"质量","quantity":"mass","unit":"kg","category":"state","order":10},{"key":"tank.U","componentId":"tank","componentType":"amesim_pnch023","scope":"component","portName":null,"name":"U","label":"内能","quantity":"internal_energy","unit":"J","category":"state","order":20},{"key":"tank.p","componentId":"tank","componentType":"amesim_pnch023","scope":"component","portName":null,"name":"p","label":"压力","quantity":"pressure","unit":"Pa","category":"thermodynamic","order":30},{"key":"tank.T","componentId":"tank","componentType":"amesim_pnch023","scope":"component","portName":null,"name":"T","label":"温度","quantity":"temperature","unit":"K","category":"thermodynamic","order":40},{"key":"tank.rho","componentId":"tank","componentType":"amesim_pnch023","scope":"component","portName":null,"name":"rho","label":"密度"Line truncated
|
||||
@@ -0,0 +1,210 @@
|
||||
{
|
||||
"projectSchemaVersion": 2,
|
||||
"name": "closed-tank",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "air",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 220
|
||||
},
|
||||
"data": {
|
||||
"label": "air",
|
||||
"componentType": "amesim_ideal_air_medium",
|
||||
"modelType": "amesim_ideal_air_medium",
|
||||
"modelVersion": "0.2.0",
|
||||
"ports": [],
|
||||
"parameters": {
|
||||
"gi": 1,
|
||||
"property_model": 0
|
||||
},
|
||||
"parameterUnits": {
|
||||
"gi": "",
|
||||
"property_model": ""
|
||||
},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 0,
|
||||
"mirrored": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tank",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 0
|
||||
},
|
||||
"data": {
|
||||
"label": "tank",
|
||||
"componentType": "amesim_pnch023",
|
||||
"modelType": "amesim_pnch023",
|
||||
"modelVersion": "0.1.0",
|
||||
"ports": [
|
||||
{
|
||||
"name": "port_1",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"positiveFlowDirection": "intoComponent",
|
||||
"side": "left",
|
||||
"computation": {
|
||||
"mode": "equation",
|
||||
"inputs": [
|
||||
"m_flow",
|
||||
"H_flow"
|
||||
],
|
||||
"outputs": [
|
||||
"p",
|
||||
"T"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "port_2",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"positiveFlowDirection": "intoComponent",
|
||||
"side": "right",
|
||||
"computation": {
|
||||
"mode": "equation",
|
||||
"inputs": [
|
||||
"m_flow",
|
||||
"H_flow"
|
||||
],
|
||||
"outputs": [
|
||||
"p",
|
||||
"T"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"gi": 1,
|
||||
"cvol": 0.057,
|
||||
"kth": 0,
|
||||
"sth": 0.1,
|
||||
"extemp": 293.15,
|
||||
"p0": 2.5,
|
||||
"T0": 20
|
||||
},
|
||||
"parameterUnits": {
|
||||
"cvol": "m3",
|
||||
"kth": "W/(m2*K)",
|
||||
"sth": "m2",
|
||||
"extemp": "K",
|
||||
"p0": "bar",
|
||||
"T0": "degC",
|
||||
"gi": ""
|
||||
},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 0,
|
||||
"mirrored": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "left_cap",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"data": {
|
||||
"label": "left_cap",
|
||||
"componentType": "amesim_pnpl01",
|
||||
"modelType": "amesim_pnpl01",
|
||||
"modelVersion": "0.1.0",
|
||||
"ports": [
|
||||
{
|
||||
"name": "port_1",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"positiveFlowDirection": "intoComponent",
|
||||
"side": "left",
|
||||
"computation": {
|
||||
"mode": "equation",
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
"m_flow",
|
||||
"H_flow"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {},
|
||||
"parameterUnits": {},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 180,
|
||||
"mirrored": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "right_cap",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 600,
|
||||
"y": 0
|
||||
},
|
||||
"data": {
|
||||
"label": "right_cap",
|
||||
"componentType": "amesim_pnpl01",
|
||||
"modelType": "amesim_pnpl01",
|
||||
"modelVersion": "0.1.0",
|
||||
"ports": [
|
||||
{
|
||||
"name": "port_1",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"positiveFlowDirection": "intoComponent",
|
||||
"side": "left",
|
||||
"computation": {
|
||||
"mode": "equation",
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
"m_flow",
|
||||
"H_flow"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {},
|
||||
"parameterUnits": {},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 0,
|
||||
"mirrored": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"id": "left",
|
||||
"source": "left_cap",
|
||||
"target": "tank",
|
||||
"sourceHandle": "port_1",
|
||||
"targetHandle": "port_1",
|
||||
"data": {
|
||||
"isContactEdge": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "right",
|
||||
"source": "tank",
|
||||
"target": "right_cap",
|
||||
"sourceHandle": "port_2",
|
||||
"targetHandle": "port_1",
|
||||
"data": {
|
||||
"isContactEdge": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"simulation": {
|
||||
"t_start": 0,
|
||||
"t_stop": 0.02,
|
||||
"step": 0.01,
|
||||
"max_step": 0.001,
|
||||
"method": "BDF"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"browser": "152.0.7977.83",
|
||||
"components": 4,
|
||||
"connections": 2,
|
||||
"simulatedUntil": 0.02,
|
||||
"sampleCount": 3,
|
||||
"pressureKey": "tank.p",
|
||||
"browserImport": "passed",
|
||||
"browserExport": "passed",
|
||||
"simulation": "passed",
|
||||
"errors": []
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="540" viewBox="0 0 1000 540">
|
||||
<rect width="100%" height="100%" fill="#ffffff"/>
|
||||
<style>text{font-family:Arial,"Microsoft YaHei",sans-serif;fill:#1f2937}.axis{stroke:#64748b;stroke-width:1}.grid{stroke:#e2e8f0;stroke-width:1}.curve{fill:none;stroke-width:2}</style>
|
||||
<line class="grid" x1="82.00" y1="60.00" x2="82.00" y2="470.00"/>
|
||||
<line class="grid" x1="82.00" y1="60.00" x2="968.00" y2="60.00"/>
|
||||
<text x="82.00" y="492.00" text-anchor="middle" font-size="12">-0.001</text>
|
||||
<text x="72.00" y="64.00" text-anchor="end" font-size="12">2.625e+05</text>
|
||||
<line class="grid" x1="259.20" y1="60.00" x2="259.20" y2="470.00"/>
|
||||
<line class="grid" x1="82.00" y1="142.00" x2="968.00" y2="142.00"/>
|
||||
<text x="259.20" y="492.00" text-anchor="middle" font-size="12">0.0034</text>
|
||||
<text x="72.00" y="146.00" text-anchor="end" font-size="12">2.575e+05</text>
|
||||
<line class="grid" x1="436.40" y1="60.00" x2="436.40" y2="470.00"/>
|
||||
<line class="grid" x1="82.00" y1="224.00" x2="968.00" y2="224.00"/>
|
||||
<text x="436.40" y="492.00" text-anchor="middle" font-size="12">0.0078</text>
|
||||
<text x="72.00" y="228.00" text-anchor="end" font-size="12">2.525e+05</text>
|
||||
<line class="grid" x1="613.60" y1="60.00" x2="613.60" y2="470.00"/>
|
||||
<line class="grid" x1="82.00" y1="306.00" x2="968.00" y2="306.00"/>
|
||||
<text x="613.60" y="492.00" text-anchor="middle" font-size="12">0.0122</text>
|
||||
<text x="72.00" y="310.00" text-anchor="end" font-size="12">2.475e+05</text>
|
||||
<line class="grid" x1="790.80" y1="60.00" x2="790.80" y2="470.00"/>
|
||||
<line class="grid" x1="82.00" y1="388.00" x2="968.00" y2="388.00"/>
|
||||
<text x="790.80" y="492.00" text-anchor="middle" font-size="12">0.0166</text>
|
||||
<text x="72.00" y="392.00" text-anchor="end" font-size="12">2.425e+05</text>
|
||||
<line class="grid" x1="968.00" y1="60.00" x2="968.00" y2="470.00"/>
|
||||
<line class="grid" x1="82.00" y1="470.00" x2="968.00" y2="470.00"/>
|
||||
<text x="968.00" y="492.00" text-anchor="middle" font-size="12">0.021</text>
|
||||
<text x="72.00" y="474.00" text-anchor="end" font-size="12">2.375e+05</text>
|
||||
<line class="axis" x1="82.00" y1="470.00" x2="968.00" y2="470.00"/>
|
||||
<line class="axis" x1="82.00" y1="60.00" x2="82.00" y2="470.00"/>
|
||||
<text x="525.00" y="513.00" text-anchor="middle" font-size="13">time [s]</text>
|
||||
<polyline class="curve" stroke="#2563eb" points="122.27,265.00 525.00,265.00 927.73,265.00"/>
|
||||
<line x1="82.0" y1="23" x2="110.0" y2="23" stroke="#2563eb" stroke-width="3"/>
|
||||
<text x="118.0" y="28" font-size="14">tank.压力</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,10 @@
|
||||
{"event": "progress", "progress": 0, "phase": "validation", "message": "正在校验 System XML", "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "compilation", "message": "正在解析组件与连接关系", "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "initialization", "message": "连接关系已解析,正在准备原生模型", "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "native-generation", "message": "正在生成原生模型代码", "simulatedTime": 0.0, "totalTime": 0.02, "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "native-cache-check", "message": "正在检查已编译模型缓存", "simulatedTime": 0.0, "totalTime": 0.02, "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "native-compilation", "message": "正在编译模型与缺失的原生模块", "simulatedTime": 0.0, "totalTime": 0.02, "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "native-linking", "message": "正在链接模型可执行文件", "simulatedTime": 0.0, "totalTime": 0.02, "activitySequence": 0, "activityKind": "idle", "currentTrialTime": null, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": null, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 0, "phase": "integrating", "message": "正在进行时间积分与压力流量求解", "simulatedTime": 0.0, "totalTime": 0.02, "activitySequence": 1, "activityKind": "solver_initialization", "currentTrialTime": 0.0, "rhsCallCount": 0, "acceptedStepSequence": 0, "acceptedTime": 0.0, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "progress", "progress": 100, "phase": "complete", "message": "正在汇总仿真结果", "simulatedTime": 0.02, "totalTime": 0.02, "activitySequence": 3, "activityKind": "native_solver", "currentTrialTime": 0.02, "rhsCallCount": 26, "acceptedStepSequence": 21, "acceptedTime": 0.02, "solverStepSequence": 0, "jacobianEvaluationCount": 0, "thermofluidClosureCount": 0}
|
||||
{"event": "result", "simulationId": "bf94979994f14753a40e1eddb9dacc31", "status": "completed", "success": true, "actualEndTime": 0.02, "sampleCount": 3, "resultVariableCount": 19, "fullResult": "result.json"}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,4 @@
|
||||
time,tank.m,tank.U,tank.p,tank.T,tank.rho,tank.u,tank.h,tank.port_1.p,tank.port_1.m_flow,tank.port_1.h_outflow,tank.port_2.p,tank.port_2.m_flow,tank.port_2.h_outflow,left_cap.port_1.p,left_cap.port_1.m_flow,left_cap.port_1.h_outflow,right_cap.port_1.p,right_cap.port_1.m_flow,right_cap.port_1.h_outflow
|
||||
0.0,0.1693725667550772,35649.82578397213,249999.99999999997,293.1499999999999,2.9714485395627577,210481.69999999995,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994
|
||||
0.01,0.1693725667550772,35649.82578397213,249999.99999999997,293.1499999999999,2.9714485395627577,210481.69999999995,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994
|
||||
0.02,0.1693725667550772,35649.82578397213,249999.99999999997,293.1499999999999,2.9714485395627577,210481.69999999995,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994,249999.99999999997,0.0,294615.74999999994
|
||||
|
@@ -0,0 +1,172 @@
|
||||
{
|
||||
"projectSchemaVersion": 2,
|
||||
"name": "closed-tank",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "air",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 220
|
||||
},
|
||||
"data": {
|
||||
"label": "air",
|
||||
"componentType": "amesim_ideal_air_medium",
|
||||
"modelType": "amesim_ideal_air_medium",
|
||||
"modelVersion": "0.2.0",
|
||||
"ports": [],
|
||||
"parameters": {
|
||||
"gi": 1,
|
||||
"property_model": 0.0
|
||||
},
|
||||
"parameterUnits": {
|
||||
"gi": "",
|
||||
"property_model": ""
|
||||
},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 0,
|
||||
"mirrored": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tank",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 0
|
||||
},
|
||||
"data": {
|
||||
"label": "tank",
|
||||
"componentType": "amesim_pnch023",
|
||||
"modelType": "amesim_pnch023",
|
||||
"modelVersion": "0.1.0",
|
||||
"ports": [
|
||||
{
|
||||
"name": "port_1",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"side": "left",
|
||||
"positiveFlowDirection": "intoComponent"
|
||||
},
|
||||
{
|
||||
"name": "port_2",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"side": "right",
|
||||
"positiveFlowDirection": "intoComponent"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"gi": 1,
|
||||
"cvol": 0.057,
|
||||
"kth": 0.0,
|
||||
"sth": 0.1,
|
||||
"extemp": 293.15,
|
||||
"p0": 2.5,
|
||||
"T0": 20
|
||||
},
|
||||
"parameterUnits": {
|
||||
"gi": "",
|
||||
"cvol": "m3",
|
||||
"kth": "W/(m2*K)",
|
||||
"sth": "m2",
|
||||
"extemp": "K",
|
||||
"p0": "bar",
|
||||
"T0": "degC"
|
||||
},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 0,
|
||||
"mirrored": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "left_cap",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"data": {
|
||||
"label": "left_cap",
|
||||
"componentType": "amesim_pnpl01",
|
||||
"modelType": "amesim_pnpl01",
|
||||
"modelVersion": "0.1.0",
|
||||
"ports": [
|
||||
{
|
||||
"name": "port_1",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"side": "left",
|
||||
"positiveFlowDirection": "intoComponent"
|
||||
}
|
||||
],
|
||||
"parameters": {},
|
||||
"parameterUnits": {},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 180,
|
||||
"mirrored": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "right_cap",
|
||||
"type": "simulationComponent",
|
||||
"position": {
|
||||
"x": 600,
|
||||
"y": 0
|
||||
},
|
||||
"data": {
|
||||
"label": "right_cap",
|
||||
"componentType": "amesim_pnpl01",
|
||||
"modelType": "amesim_pnpl01",
|
||||
"modelVersion": "0.1.0",
|
||||
"ports": [
|
||||
{
|
||||
"name": "port_1",
|
||||
"kind": "physical",
|
||||
"domain": "pneumatic",
|
||||
"nominalRole": "bidirectional",
|
||||
"side": "left",
|
||||
"positiveFlowDirection": "intoComponent"
|
||||
}
|
||||
],
|
||||
"parameters": {},
|
||||
"parameterUnits": {},
|
||||
"parameterScientificNotation": {},
|
||||
"rotation": 0,
|
||||
"mirrored": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"id": "left",
|
||||
"source": "left_cap",
|
||||
"sourceHandle": "port_1",
|
||||
"target": "tank",
|
||||
"targetHandle": "port_1",
|
||||
"data": {
|
||||
"isContactEdge": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "right",
|
||||
"source": "tank",
|
||||
"sourceHandle": "port_2",
|
||||
"target": "right_cap",
|
||||
"targetHandle": "port_1",
|
||||
"data": {
|
||||
"isContactEdge": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"simulation": {
|
||||
"t_start": 0,
|
||||
"t_stop": 0.02,
|
||||
"step": 0.01,
|
||||
"max_step": 0.001,
|
||||
"method": "BDF"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<System schemaVersion="3" unitSystem="SI" name="closed-tank">
|
||||
<Simulation tStart="0.0" tStop="0.02" sampleStep="0.01" maxStep="0.001" method="BDF" />
|
||||
<Components>
|
||||
<Component id="air" type="amesim_ideal_air_medium" modelVersion="0.2.0">
|
||||
<Parameter name="gi" value="1.0" />
|
||||
<Parameter name="property_model" value="0.0" />
|
||||
</Component>
|
||||
<Component id="tank" type="amesim_pnch023" modelVersion="0.1.0">
|
||||
<Parameter name="gi" value="1.0" />
|
||||
<Parameter name="cvol" value="0.057" />
|
||||
<Parameter name="kth" value="0.0" />
|
||||
<Parameter name="sth" value="0.1" />
|
||||
<Parameter name="extemp" value="293.15" />
|
||||
<Parameter name="p0" value="250000.0" />
|
||||
<Parameter name="T0" value="293.15" />
|
||||
</Component>
|
||||
<Component id="left_cap" type="amesim_pnpl01" modelVersion="0.1.0" />
|
||||
<Component id="right_cap" type="amesim_pnpl01" modelVersion="0.1.0" />
|
||||
</Components>
|
||||
<Connections>
|
||||
<Connection id="left">
|
||||
<Endpoint component="left_cap" port="port_1" />
|
||||
<Endpoint component="tank" port="port_1" />
|
||||
</Connection>
|
||||
<Connection id="right">
|
||||
<Endpoint component="tank" port="port_2" />
|
||||
<Endpoint component="right_cap" port="port_1" />
|
||||
</Connection>
|
||||
</Connections>
|
||||
</System>
|
||||
@@ -0,0 +1 @@
|
||||
4552
|
||||
Reference in new issue
Block a user