|
1268 | 1268 | },
|
1269 | 1269 | "FluidSpec": {
|
1270 | 1270 | "title": "FluidSpec",
|
1271 |
| - "description": "Fluid medium class for backwards compatibility\n\nParameters\n----------\nattrs : dict = {}\n Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, ``attrs`` are mutable. For example, the following is allowed for setting an ``attr`` ``obj.attrs['foo'] = bar``. Also note that `Tidy3D`` will raise a ``TypeError`` if ``attrs`` contain objects that can not be serialized. One can check if ``attrs`` are serializable by calling ``obj.json()``.\nname : Optional[str] = None\n Optional unique name for medium.", |
| 1271 | + "description": "Fluid medium class for backwards compatibility\n\nParameters\n----------\nattrs : dict = {}\n Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, ``attrs`` are mutable. For example, the following is allowed for setting an ``attr`` ``obj.attrs['foo'] = bar``. Also note that `Tidy3D`` will raise a ``TypeError`` if ``attrs`` contain objects that can not be serialized. One can check if ``attrs`` are serializable by calling ``obj.json()``.\nname : Optional[str] = None\n Optional unique name for medium.\nthermal_conductivity : Optional[NonNegativeFloat] = None\n [units = W/(um*K)]. Thermal conductivity (k) of the fluid.\nviscosity : Optional[NonNegativeFloat] = None\n [units = kg/(um*s)]. Dynamic viscosity (\u03bc) of the fluid.\nspecific_heat : Optional[NonNegativeFloat] = None\n [units = um^2/(s^2*K)]. Specific heat of the fluid at constant pressure.\ndensity : Optional[NonNegativeFloat] = None\n [units = kg/um^3]. Density (\u03c1) of the fluid.\nexpansivity : Optional[NonNegativeFloat] = None\n [units = 1/K]. Thermal expansion coefficient (\u03b2) of the fluid.", |
1272 | 1272 | "type": "object",
|
1273 | 1273 | "properties": {
|
1274 | 1274 | "attrs": {
|
|
1289 | 1289 | "FluidSpec"
|
1290 | 1290 | ],
|
1291 | 1291 | "type": "string"
|
| 1292 | + }, |
| 1293 | + "thermal_conductivity": { |
| 1294 | + "title": "Fluid Thermal Conductivity", |
| 1295 | + "description": "Thermal conductivity (k) of the fluid.", |
| 1296 | + "units": "W/(um*K)", |
| 1297 | + "minimum": 0, |
| 1298 | + "type": "number" |
| 1299 | + }, |
| 1300 | + "viscosity": { |
| 1301 | + "title": "Fluid Dynamic Viscosity", |
| 1302 | + "description": "Dynamic viscosity (\u03bc) of the fluid.", |
| 1303 | + "units": "kg/(um*s)", |
| 1304 | + "minimum": 0, |
| 1305 | + "type": "number" |
| 1306 | + }, |
| 1307 | + "specific_heat": { |
| 1308 | + "title": "Fluid Specific Heat", |
| 1309 | + "description": "Specific heat of the fluid at constant pressure.", |
| 1310 | + "units": "um^2/(s^2*K)", |
| 1311 | + "minimum": 0, |
| 1312 | + "type": "number" |
| 1313 | + }, |
| 1314 | + "density": { |
| 1315 | + "title": "Fluid Density", |
| 1316 | + "description": "Density (\u03c1) of the fluid.", |
| 1317 | + "units": "kg/um^3", |
| 1318 | + "minimum": 0, |
| 1319 | + "type": "number" |
| 1320 | + }, |
| 1321 | + "expansivity": { |
| 1322 | + "title": "Fluid Thermal Expansivity", |
| 1323 | + "description": "Thermal expansion coefficient (\u03b2) of the fluid.", |
| 1324 | + "units": "1/K", |
| 1325 | + "minimum": 0, |
| 1326 | + "type": "number" |
1292 | 1327 | }
|
1293 | 1328 | },
|
1294 | 1329 | "additionalProperties": false
|
|
1397 | 1432 | },
|
1398 | 1433 | "FluidMedium": {
|
1399 | 1434 | "title": "FluidMedium",
|
1400 |
| - "description": "Fluid medium. Heat simulations will not solve for temperature\nin a structure that has a medium with this 'heat_spec'.\n\nParameters\n----------\nattrs : dict = {}\n Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, ``attrs`` are mutable. For example, the following is allowed for setting an ``attr`` ``obj.attrs['foo'] = bar``. Also note that `Tidy3D`` will raise a ``TypeError`` if ``attrs`` contain objects that can not be serialized. One can check if ``attrs`` are serializable by calling ``obj.json()``.\nname : Optional[str] = None\n Optional unique name for medium.\n\nExample\n-------\n>>> solid = FluidMedium()", |
| 1435 | + "description": "Fluid medium. Heat simulations will not solve for temperature\nin a structure that has a medium with this 'heat_spec'.\n\nParameters\n----------\nattrs : dict = {}\n Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, ``attrs`` are mutable. For example, the following is allowed for setting an ``attr`` ``obj.attrs['foo'] = bar``. Also note that `Tidy3D`` will raise a ``TypeError`` if ``attrs`` contain objects that can not be serialized. One can check if ``attrs`` are serializable by calling ``obj.json()``.\nname : Optional[str] = None\n Optional unique name for medium.\nthermal_conductivity : Optional[NonNegativeFloat] = None\n [units = W/(um*K)]. Thermal conductivity (k) of the fluid.\nviscosity : Optional[NonNegativeFloat] = None\n [units = kg/(um*s)]. Dynamic viscosity (\u03bc) of the fluid.\nspecific_heat : Optional[NonNegativeFloat] = None\n [units = um^2/(s^2*K)]. Specific heat of the fluid at constant pressure.\ndensity : Optional[NonNegativeFloat] = None\n [units = kg/um^3]. Density (\u03c1) of the fluid.\nexpansivity : Optional[NonNegativeFloat] = None\n [units = 1/K]. Thermal expansion coefficient (\u03b2) of the fluid.\n\nThe full set of parameters is primarily intended for calculations involving natural\nconvection, where they are used to determine the heat transfer coefficient.\nIn the current version, these specific properties may not be utilized for\nother boundary condition types.\n\nAttributes\n----------\nthermal_conductivity : float, optional\n Thermal conductivity ($k$) of the fluid in $W/(\\mu m \\cdot K)$.\nviscosity : float, optional\n Dynamic viscosity ($\\mu$) of the fluid in $kg/(\\mu m \\cdot s)$.\nspecific_heat : float, optional\n Specific heat ($c_p$) of the fluid in $\\mu m^2/(s^2 \\cdot K)$.\ndensity : float, optional\n Density ($\rho$) of the fluid in $kg/\\mu m^3$.\nexpansivity : float, optional\n Thermal expansion coefficient ($\beta$) of the fluid in $1/K$.\n\nExamples\n--------\n>>> # If you are using a boundary condition without a natural convection model,\n>>> # the specific properties of the fluid are not required. In this common\n>>> # scenario, you can instantiate the class without arguments.\n>>> air = FluidMedium()\n\n>>> # It is most convenient to define the fluid from standard SI units\n>>> # using the `from_si_units` classmethod.\n>>> # The following defines air at approximately 20\u00b0C.\n>>> air_from_si = FluidMedium.from_si_units(\n... thermal_conductivity=0.0257, # Unit: W/(m*K)\n... viscosity=1.81e-5, # Unit: Pa*s\n... specific_heat=1005, # Unit: J/(kg*K)\n... density=1.204, # Unit: kg/m^3\n... expansivity=1/293.15 # Unit: 1/K\n... )\n\n>>> # One can also define the medium directly in Tidy3D units.\n>>> # The following is equivalent to the example above.\n>>> air_direct = FluidMedium(\n... thermal_conductivity=2.57e-8,\n... viscosity=1.81e-11,\n... specific_heat=1.005e+15,\n... density=1.204e-18,\n... expansivity=1/293.15\n... )", |
1401 | 1436 | "type": "object",
|
1402 | 1437 | "properties": {
|
1403 | 1438 | "attrs": {
|
|
1418 | 1453 | "FluidMedium"
|
1419 | 1454 | ],
|
1420 | 1455 | "type": "string"
|
| 1456 | + }, |
| 1457 | + "thermal_conductivity": { |
| 1458 | + "title": "Fluid Thermal Conductivity", |
| 1459 | + "description": "Thermal conductivity (k) of the fluid.", |
| 1460 | + "units": "W/(um*K)", |
| 1461 | + "minimum": 0, |
| 1462 | + "type": "number" |
| 1463 | + }, |
| 1464 | + "viscosity": { |
| 1465 | + "title": "Fluid Dynamic Viscosity", |
| 1466 | + "description": "Dynamic viscosity (\u03bc) of the fluid.", |
| 1467 | + "units": "kg/(um*s)", |
| 1468 | + "minimum": 0, |
| 1469 | + "type": "number" |
| 1470 | + }, |
| 1471 | + "specific_heat": { |
| 1472 | + "title": "Fluid Specific Heat", |
| 1473 | + "description": "Specific heat of the fluid at constant pressure.", |
| 1474 | + "units": "um^2/(s^2*K)", |
| 1475 | + "minimum": 0, |
| 1476 | + "type": "number" |
| 1477 | + }, |
| 1478 | + "density": { |
| 1479 | + "title": "Fluid Density", |
| 1480 | + "description": "Density (\u03c1) of the fluid.", |
| 1481 | + "units": "kg/um^3", |
| 1482 | + "minimum": 0, |
| 1483 | + "type": "number" |
| 1484 | + }, |
| 1485 | + "expansivity": { |
| 1486 | + "title": "Fluid Thermal Expansivity", |
| 1487 | + "description": "Thermal expansion coefficient (\u03b2) of the fluid.", |
| 1488 | + "units": "1/K", |
| 1489 | + "minimum": 0, |
| 1490 | + "type": "number" |
1421 | 1491 | }
|
1422 | 1492 | },
|
1423 | 1493 | "additionalProperties": false
|
|
0 commit comments