更新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": []
|
||||
}
|
||||
Reference in new issue
Block a user