Skip to content

Instantly share code, notes, and snippets.

@jmarrec
Created January 28, 2025 17:24
Show Gist options
  • Save jmarrec/f86c5dd911568cb08aa293479d1a59a3 to your computer and use it in GitHub Desktop.
Save jmarrec/f86c5dd911568cb08aa293479d1a59a3 to your computer and use it in GitHub Desktop.
Prepare test data for #10916 - Broken_Format_CurveManager
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "7403d80e",
"metadata": {},
"outputs": [],
"source": [
"import openstudio\n",
"from openstudio.openstudiomodel import *"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "60988f36",
"metadata": {},
"outputs": [],
"source": [
"factory = openstudio.IddFileAndFactoryWrapper(openstudio.IddFileType(\"EnergyPlus\"))"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "3aea6ff5",
"metadata": {},
"outputs": [],
"source": [
"curve_objects = [o for o in factory.objects() if 'Curve:' in o.name()]"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "3199dfcb",
"metadata": {},
"outputs": [],
"source": [
"num_dims = {}\n",
"for iddObject in curve_objects:\n",
" n_dims = 0\n",
" for i in range(iddObject.numFields()):\n",
" field_name = iddObject.getField(i).get().name()\n",
" if field_name.startswith('Minimum') and 'of' in field_name:\n",
" n_dims += 1\n",
" num_dims[iddObject.name()] = n_dims"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "d6fe7129",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'Curve:Functional:PressureDrop': 0,\n",
" 'Curve:Linear': 1,\n",
" 'Curve:Quadratic': 1,\n",
" 'Curve:Cubic': 1,\n",
" 'Curve:Quartic': 1,\n",
" 'Curve:Exponent': 1,\n",
" 'Curve:ExponentialSkewNormal': 1,\n",
" 'Curve:Sigmoid': 1,\n",
" 'Curve:RectangularHyperbola1': 1,\n",
" 'Curve:RectangularHyperbola2': 1,\n",
" 'Curve:ExponentialDecay': 1,\n",
" 'Curve:DoubleExponentialDecay': 1,\n",
" 'Curve:Bicubic': 2,\n",
" 'Curve:Biquadratic': 2,\n",
" 'Curve:QuadraticLinear': 2,\n",
" 'Curve:CubicLinear': 2,\n",
" 'Curve:FanPressureRise': 2,\n",
" 'Curve:Triquadratic': 3,\n",
" 'Curve:ChillerPartLoadWithLift': 3,\n",
" 'Curve:QuadLinear': 4,\n",
" 'Curve:QuintLinear': 5}"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"num_dims = {k: v for k, v in sorted(num_dims.items(), key=lambda item: item[1])}\n",
"num_dims"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "1f7ff0f5",
"metadata": {},
"outputs": [],
"source": [
"def format_object_for_cpp(o):\n",
" return f\"delimited_string({{\\n \\\"{'\",\\n \"'.join(o.__str__().split('\\n')[:-2])}\\\",\\n}})\""
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "18e30cc2",
"metadata": {},
"outputs": [],
"source": [
"def make_test(object_name: str, num_dim: int = 1):\n",
" iddObject = factory.getObject(object_name).get()\n",
" \n",
" o = openstudio.IdfObject(iddObject)\n",
" wrong_field_names = []\n",
" \n",
" n_dims = 1\n",
" for i in range(iddObject.numFields()):\n",
" field_name = iddObject.getField(i).get().name()\n",
" if field_name == 'Name':\n",
" o.setString(i, iddObject.name())\n",
" continue\n",
" if field_name.startswith('Coef'):\n",
" o.setDouble(i, 1.0)\n",
" continue\n",
" if field_name.startswith('Minimum') and 'of' in field_name:\n",
" if n_dims == num_dim:\n",
" o.setDouble(i, 0.8)\n",
" wrong_field_names = [field_name]\n",
" wrong_dim_name = field_name.split('of ')[1]\n",
" else:\n",
" o.setDouble(i, 0.0)\n",
"\n",
" if field_name.startswith('Maximum') and 'of' in field_name:\n",
" if n_dims == num_dim:\n",
" o.setDouble(i, 0.5)\n",
" wrong_field_names.append(field_name)\n",
" else:\n",
" o.setDouble(i, 1.0)\n",
" n_dims += 1\n",
" o.setString(i, o.getString(i, True).value_or(\"\"))\n",
" return o, wrong_dim_name, wrong_field_names\n",
"\n",
"def make_single_gtest(object_name, num_dim):\n",
" o, wrong_dim_name, (fn1, fn2) = make_test(object_name=object_name, num_dim=num_dim)\n",
" error_msg = f\"{fn1} [0.80] > {fn2} [0.50]\"\n",
" print(f'CurveTestParam{{\"{object_name}\", \"{wrong_dim_name}\", {format_object_for_cpp(o)}, \"{error_msg}\"}},')"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "08c085ec",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"// Curve:Functional:PressureDrop: 0 dimensions\n",
"\n",
"// Curve:Linear: 1 dimensions\n",
"CurveTestParam{\"Curve:Linear\", \"x\", delimited_string({\n",
" \"Curve:Linear,\",\n",
" \" Curve:Linear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:Quadratic: 1 dimensions\n",
"CurveTestParam{\"Curve:Quadratic\", \"x\", delimited_string({\n",
" \"Curve:Quadratic,\",\n",
" \" Curve:Quadratic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:Cubic: 1 dimensions\n",
"CurveTestParam{\"Curve:Cubic\", \"x\", delimited_string({\n",
" \"Curve:Cubic,\",\n",
" \" Curve:Cubic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 x**3\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:Quartic: 1 dimensions\n",
"CurveTestParam{\"Curve:Quartic\", \"x\", delimited_string({\n",
" \"Curve:Quartic,\",\n",
" \" Curve:Quartic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 x**3\",\n",
" \" 1, !- Coefficient5 x**4\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:Exponent: 1 dimensions\n",
"CurveTestParam{\"Curve:Exponent\", \"x\", delimited_string({\n",
" \"Curve:Exponent,\",\n",
" \" Curve:Exponent, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 Constant\",\n",
" \" 1, !- Coefficient3 Constant\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:ExponentialSkewNormal: 1 dimensions\n",
"CurveTestParam{\"Curve:ExponentialSkewNormal\", \"x\", delimited_string({\n",
" \"Curve:ExponentialSkewNormal,\",\n",
" \" Curve:ExponentialSkewNormal, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:Sigmoid: 1 dimensions\n",
"CurveTestParam{\"Curve:Sigmoid\", \"x\", delimited_string({\n",
" \"Curve:Sigmoid,\",\n",
" \" Curve:Sigmoid, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 1, !- Coefficient5 C5\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:RectangularHyperbola1: 1 dimensions\n",
"CurveTestParam{\"Curve:RectangularHyperbola1\", \"x\", delimited_string({\n",
" \"Curve:RectangularHyperbola1,\",\n",
" \" Curve:RectangularHyperbola1, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:RectangularHyperbola2: 1 dimensions\n",
"CurveTestParam{\"Curve:RectangularHyperbola2\", \"x\", delimited_string({\n",
" \"Curve:RectangularHyperbola2,\",\n",
" \" Curve:RectangularHyperbola2, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:ExponentialDecay: 1 dimensions\n",
"CurveTestParam{\"Curve:ExponentialDecay\", \"x\", delimited_string({\n",
" \"Curve:ExponentialDecay,\",\n",
" \" Curve:ExponentialDecay, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:DoubleExponentialDecay: 1 dimensions\n",
"CurveTestParam{\"Curve:DoubleExponentialDecay\", \"x\", delimited_string({\n",
" \"Curve:DoubleExponentialDecay,\",\n",
" \" Curve:DoubleExponentialDecay, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 1, !- Coefficient5 C5\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A3}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A3}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"\n",
"// Curve:Bicubic: 2 dimensions\n",
"CurveTestParam{\"Curve:Bicubic\", \"x\", delimited_string({\n",
" \"Curve:Bicubic,\",\n",
" \" Curve:Bicubic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 y**2\",\n",
" \" 1, !- Coefficient6 x*y\",\n",
" \" 1, !- Coefficient7 x**3\",\n",
" \" 1, !- Coefficient8 y**3\",\n",
" \" 1, !- Coefficient9 x**2*y\",\n",
" \" 1, !- Coefficient10 x*y**2\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:Bicubic\", \"y\", delimited_string({\n",
" \"Curve:Bicubic,\",\n",
" \" Curve:Bicubic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 y**2\",\n",
" \" 1, !- Coefficient6 x*y\",\n",
" \" 1, !- Coefficient7 x**3\",\n",
" \" 1, !- Coefficient8 y**3\",\n",
" \" 1, !- Coefficient9 x**2*y\",\n",
" \" 1, !- Coefficient10 x*y**2\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"\n",
"// Curve:Biquadratic: 2 dimensions\n",
"CurveTestParam{\"Curve:Biquadratic\", \"x\", delimited_string({\n",
" \"Curve:Biquadratic,\",\n",
" \" Curve:Biquadratic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 y**2\",\n",
" \" 1, !- Coefficient6 x*y\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:Biquadratic\", \"y\", delimited_string({\n",
" \"Curve:Biquadratic,\",\n",
" \" Curve:Biquadratic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 y**2\",\n",
" \" 1, !- Coefficient6 x*y\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"\n",
"// Curve:QuadraticLinear: 2 dimensions\n",
"CurveTestParam{\"Curve:QuadraticLinear\", \"x\", delimited_string({\n",
" \"Curve:QuadraticLinear,\",\n",
" \" Curve:QuadraticLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 x*y\",\n",
" \" 1, !- Coefficient6 x**2*y\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:QuadraticLinear\", \"y\", delimited_string({\n",
" \"Curve:QuadraticLinear,\",\n",
" \" Curve:QuadraticLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 x*y\",\n",
" \" 1, !- Coefficient6 x**2*y\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"\n",
"// Curve:CubicLinear: 2 dimensions\n",
"CurveTestParam{\"Curve:CubicLinear\", \"x\", delimited_string({\n",
" \"Curve:CubicLinear,\",\n",
" \" Curve:CubicLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 x**3\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 x*y\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:CubicLinear\", \"y\", delimited_string({\n",
" \"Curve:CubicLinear,\",\n",
" \" Curve:CubicLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x\",\n",
" \" 1, !- Coefficient3 x**2\",\n",
" \" 1, !- Coefficient4 x**3\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 x*y\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"\n",
"// Curve:FanPressureRise: 2 dimensions\n",
"CurveTestParam{\"Curve:FanPressureRise\", \"Qfan\", delimited_string({\n",
" \"Curve:FanPressureRise,\",\n",
" \" Curve:FanPressureRise, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 0.8, !- Minimum Value of Qfan {m3/s}\",\n",
" \" 0.5, !- Maximum Value of Qfan {m3/s}\",\n",
" \" 0, !- Minimum Value of Psm {Pa}\",\n",
" \" 1, !- Maximum Value of Psm {Pa}\",\n",
" \" , !- Minimum Curve Output {Pa}\",\n",
" \" ; !- Maximum Curve Output {Pa}\",\n",
"}), \"Minimum Value of Qfan [0.80] > Maximum Value of Qfan [0.50]\"},\n",
"CurveTestParam{\"Curve:FanPressureRise\", \"Psm\", delimited_string({\n",
" \"Curve:FanPressureRise,\",\n",
" \" Curve:FanPressureRise, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 0, !- Minimum Value of Qfan {m3/s}\",\n",
" \" 1, !- Maximum Value of Qfan {m3/s}\",\n",
" \" 0.8, !- Minimum Value of Psm {Pa}\",\n",
" \" 0.5, !- Maximum Value of Psm {Pa}\",\n",
" \" , !- Minimum Curve Output {Pa}\",\n",
" \" ; !- Maximum Curve Output {Pa}\",\n",
"}), \"Minimum Value of Psm [0.80] > Maximum Value of Psm [0.50]\"},\n",
"\n",
"// Curve:Triquadratic: 3 dimensions\n",
"CurveTestParam{\"Curve:Triquadratic\", \"x\", delimited_string({\n",
" \"Curve:Triquadratic,\",\n",
" \" Curve:Triquadratic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x**2\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y**2\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z**2\",\n",
" \" 1, !- Coefficient7 z\",\n",
" \" 1, !- Coefficient8 x**2*y**2\",\n",
" \" 1, !- Coefficient9 x*y\",\n",
" \" 1, !- Coefficient10 x*y**2\",\n",
" \" 1, !- Coefficient11 x**2*y\",\n",
" \" 1, !- Coefficient12 x**2*z**2\",\n",
" \" 1, !- Coefficient13 x*z\",\n",
" \" 1, !- Coefficient14 x*z**2\",\n",
" \" 1, !- Coefficient15 x**2*z\",\n",
" \" 1, !- Coefficient16 y**2*z**2\",\n",
" \" 1, !- Coefficient17 y*z\",\n",
" \" 1, !- Coefficient18 y*z**2\",\n",
" \" 1, !- Coefficient19 y**2*z\",\n",
" \" 1, !- Coefficient20 x**2*y**2*z**2\",\n",
" \" 1, !- Coefficient21 x**2*y**2*z\",\n",
" \" 1, !- Coefficient22 x**2*y*z**2\",\n",
" \" 1, !- Coefficient23 x*y**2*z**2\",\n",
" \" 1, !- Coefficient24 x**2*y*z\",\n",
" \" 1, !- Coefficient25 x*y**2*z\",\n",
" \" 1, !- Coefficient26 x*y*z**2\",\n",
" \" 1, !- Coefficient27 x*y*z\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A4}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A5}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A5}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless, !- Input Unit Type for Z\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:Triquadratic\", \"y\", delimited_string({\n",
" \"Curve:Triquadratic,\",\n",
" \" Curve:Triquadratic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x**2\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y**2\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z**2\",\n",
" \" 1, !- Coefficient7 z\",\n",
" \" 1, !- Coefficient8 x**2*y**2\",\n",
" \" 1, !- Coefficient9 x*y\",\n",
" \" 1, !- Coefficient10 x*y**2\",\n",
" \" 1, !- Coefficient11 x**2*y\",\n",
" \" 1, !- Coefficient12 x**2*z**2\",\n",
" \" 1, !- Coefficient13 x*z\",\n",
" \" 1, !- Coefficient14 x*z**2\",\n",
" \" 1, !- Coefficient15 x**2*z\",\n",
" \" 1, !- Coefficient16 y**2*z**2\",\n",
" \" 1, !- Coefficient17 y*z\",\n",
" \" 1, !- Coefficient18 y*z**2\",\n",
" \" 1, !- Coefficient19 y**2*z\",\n",
" \" 1, !- Coefficient20 x**2*y**2*z**2\",\n",
" \" 1, !- Coefficient21 x**2*y**2*z\",\n",
" \" 1, !- Coefficient22 x**2*y*z**2\",\n",
" \" 1, !- Coefficient23 x*y**2*z**2\",\n",
" \" 1, !- Coefficient24 x**2*y*z\",\n",
" \" 1, !- Coefficient25 x*y**2*z\",\n",
" \" 1, !- Coefficient26 x*y*z**2\",\n",
" \" 1, !- Coefficient27 x*y*z\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A4}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A5}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A5}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless, !- Input Unit Type for Z\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"CurveTestParam{\"Curve:Triquadratic\", \"z\", delimited_string({\n",
" \"Curve:Triquadratic,\",\n",
" \" Curve:Triquadratic, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 x**2\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y**2\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z**2\",\n",
" \" 1, !- Coefficient7 z\",\n",
" \" 1, !- Coefficient8 x**2*y**2\",\n",
" \" 1, !- Coefficient9 x*y\",\n",
" \" 1, !- Coefficient10 x*y**2\",\n",
" \" 1, !- Coefficient11 x**2*y\",\n",
" \" 1, !- Coefficient12 x**2*z**2\",\n",
" \" 1, !- Coefficient13 x*z\",\n",
" \" 1, !- Coefficient14 x*z**2\",\n",
" \" 1, !- Coefficient15 x**2*z\",\n",
" \" 1, !- Coefficient16 y**2*z**2\",\n",
" \" 1, !- Coefficient17 y*z\",\n",
" \" 1, !- Coefficient18 y*z**2\",\n",
" \" 1, !- Coefficient19 y**2*z\",\n",
" \" 1, !- Coefficient20 x**2*y**2*z**2\",\n",
" \" 1, !- Coefficient21 x**2*y**2*z\",\n",
" \" 1, !- Coefficient22 x**2*y*z**2\",\n",
" \" 1, !- Coefficient23 x*y**2*z**2\",\n",
" \" 1, !- Coefficient24 x**2*y*z\",\n",
" \" 1, !- Coefficient25 x*y**2*z\",\n",
" \" 1, !- Coefficient26 x*y*z**2\",\n",
" \" 1, !- Coefficient27 x*y*z\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" 0.8, !- Minimum Value of z {BasedOnField A4}\",\n",
" \" 0.5, !- Maximum Value of z {BasedOnField A4}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A5}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A5}\",\n",
" \" Dimensionless, !- Input Unit Type for X\",\n",
" \" Dimensionless, !- Input Unit Type for Y\",\n",
" \" Dimensionless, !- Input Unit Type for Z\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of z [0.80] > Maximum Value of z [0.50]\"},\n",
"\n",
"// Curve:ChillerPartLoadWithLift: 3 dimensions\n",
"CurveTestParam{\"Curve:ChillerPartLoadWithLift\", \"x\", delimited_string({\n",
" \"Curve:ChillerPartLoadWithLift,\",\n",
" \" Curve:ChillerPartLoadWithLift, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 1, !- Coefficient5 C5\",\n",
" \" 1, !- Coefficient6 C6\",\n",
" \" 1, !- Coefficient7 C7\",\n",
" \" 1, !- Coefficient8 C8\",\n",
" \" 1, !- Coefficient9 C9\",\n",
" \" 1, !- Coefficient10 C10\",\n",
" \" 1, !- Coefficient11 C11\",\n",
" \" 1, !- Coefficient12 C12\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A4}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A5}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A5}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless, !- Input Unit Type for z\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:ChillerPartLoadWithLift\", \"y\", delimited_string({\n",
" \"Curve:ChillerPartLoadWithLift,\",\n",
" \" Curve:ChillerPartLoadWithLift, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 1, !- Coefficient5 C5\",\n",
" \" 1, !- Coefficient6 C6\",\n",
" \" 1, !- Coefficient7 C7\",\n",
" \" 1, !- Coefficient8 C8\",\n",
" \" 1, !- Coefficient9 C9\",\n",
" \" 1, !- Coefficient10 C10\",\n",
" \" 1, !- Coefficient11 C11\",\n",
" \" 1, !- Coefficient12 C12\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A4}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A5}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A5}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless, !- Input Unit Type for z\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"CurveTestParam{\"Curve:ChillerPartLoadWithLift\", \"z\", delimited_string({\n",
" \"Curve:ChillerPartLoadWithLift,\",\n",
" \" Curve:ChillerPartLoadWithLift, !- Name\",\n",
" \" 1, !- Coefficient1 C1\",\n",
" \" 1, !- Coefficient2 C2\",\n",
" \" 1, !- Coefficient3 C3\",\n",
" \" 1, !- Coefficient4 C4\",\n",
" \" 1, !- Coefficient5 C5\",\n",
" \" 1, !- Coefficient6 C6\",\n",
" \" 1, !- Coefficient7 C7\",\n",
" \" 1, !- Coefficient8 C8\",\n",
" \" 1, !- Coefficient9 C9\",\n",
" \" 1, !- Coefficient10 C10\",\n",
" \" 1, !- Coefficient11 C11\",\n",
" \" 1, !- Coefficient12 C12\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A3}\",\n",
" \" 0.8, !- Minimum Value of z {BasedOnField A4}\",\n",
" \" 0.5, !- Maximum Value of z {BasedOnField A4}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A5}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A5}\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless, !- Input Unit Type for z\",\n",
" \" Dimensionless; !- Output Unit Type\",\n",
"}), \"Minimum Value of z [0.80] > Maximum Value of z [0.50]\"},\n",
"\n",
"// Curve:QuadLinear: 4 dimensions\n",
"CurveTestParam{\"Curve:QuadLinear\", \"w\", delimited_string({\n",
" \"Curve:QuadLinear,\",\n",
" \" Curve:QuadLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 w\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 z\",\n",
" \" 0.8, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of w [0.80] > Maximum Value of w [0.50]\"},\n",
"CurveTestParam{\"Curve:QuadLinear\", \"x\", delimited_string({\n",
" \"Curve:QuadLinear,\",\n",
" \" Curve:QuadLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 w\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 z\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:QuadLinear\", \"y\", delimited_string({\n",
" \"Curve:QuadLinear,\",\n",
" \" Curve:QuadLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 w\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 z\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"CurveTestParam{\"Curve:QuadLinear\", \"z\", delimited_string({\n",
" \"Curve:QuadLinear,\",\n",
" \" Curve:QuadLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 w\",\n",
" \" 1, !- Coefficient3 x\",\n",
" \" 1, !- Coefficient4 y\",\n",
" \" 1, !- Coefficient5 z\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0.8, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 0.5, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of z [0.80] > Maximum Value of z [0.50]\"},\n",
"\n",
"// Curve:QuintLinear: 5 dimensions\n",
"CurveTestParam{\"Curve:QuintLinear\", \"v\", delimited_string({\n",
" \"Curve:QuintLinear,\",\n",
" \" Curve:QuintLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 v\",\n",
" \" 1, !- Coefficient3 w\",\n",
" \" 1, !- Coefficient4 x\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z\",\n",
" \" 0.8, !- Minimum Value of v {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of v {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for v\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of v [0.80] > Maximum Value of v [0.50]\"},\n",
"CurveTestParam{\"Curve:QuintLinear\", \"w\", delimited_string({\n",
" \"Curve:QuintLinear,\",\n",
" \" Curve:QuintLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 v\",\n",
" \" 1, !- Coefficient3 w\",\n",
" \" 1, !- Coefficient4 x\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z\",\n",
" \" 0, !- Minimum Value of v {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of v {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 0.5, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for v\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of w [0.80] > Maximum Value of w [0.50]\"},\n",
"CurveTestParam{\"Curve:QuintLinear\", \"x\", delimited_string({\n",
" \"Curve:QuintLinear,\",\n",
" \" Curve:QuintLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 v\",\n",
" \" 1, !- Coefficient3 w\",\n",
" \" 1, !- Coefficient4 x\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z\",\n",
" \" 0, !- Minimum Value of v {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of v {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0.8, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 0.5, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for v\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of x [0.80] > Maximum Value of x [0.50]\"},\n",
"CurveTestParam{\"Curve:QuintLinear\", \"y\", delimited_string({\n",
" \"Curve:QuintLinear,\",\n",
" \" Curve:QuintLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 v\",\n",
" \" 1, !- Coefficient3 w\",\n",
" \" 1, !- Coefficient4 x\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z\",\n",
" \" 0, !- Minimum Value of v {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of v {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0.8, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 0.5, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 1, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for v\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of y [0.80] > Maximum Value of y [0.50]\"},\n",
"CurveTestParam{\"Curve:QuintLinear\", \"z\", delimited_string({\n",
" \"Curve:QuintLinear,\",\n",
" \" Curve:QuintLinear, !- Name\",\n",
" \" 1, !- Coefficient1 Constant\",\n",
" \" 1, !- Coefficient2 v\",\n",
" \" 1, !- Coefficient3 w\",\n",
" \" 1, !- Coefficient4 x\",\n",
" \" 1, !- Coefficient5 y\",\n",
" \" 1, !- Coefficient6 z\",\n",
" \" 0, !- Minimum Value of v {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of v {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of w {BasedOnField A2}\",\n",
" \" 1, !- Maximum Value of w {BasedOnField A2}\",\n",
" \" 0, !- Minimum Value of x {BasedOnField A3}\",\n",
" \" 1, !- Maximum Value of x {BasedOnField A3}\",\n",
" \" 0, !- Minimum Value of y {BasedOnField A4}\",\n",
" \" 1, !- Maximum Value of y {BasedOnField A4}\",\n",
" \" 0.8, !- Minimum Value of z {BasedOnField A5}\",\n",
" \" 0.5, !- Maximum Value of z {BasedOnField A5}\",\n",
" \" , !- Minimum Curve Output {BasedOnField A4}\",\n",
" \" , !- Maximum Curve Output {BasedOnField A4}\",\n",
" \" Dimensionless, !- Input Unit Type for v\",\n",
" \" Dimensionless, !- Input Unit Type for w\",\n",
" \" Dimensionless, !- Input Unit Type for x\",\n",
" \" Dimensionless, !- Input Unit Type for y\",\n",
" \" Dimensionless; !- Input Unit Type for z\",\n",
"}), \"Minimum Value of z [0.80] > Maximum Value of z [0.50]\"},\n",
"\n"
]
}
],
"source": [
"for object_name, tot_dims in num_dims.items():\n",
" print(f\"// {object_name}: {tot_dims} dimensions\")\n",
" if tot_dims == 0:\n",
" print(\"\")\n",
" continue\n",
" for num_dim in range(1, tot_dims+1):\n",
" make_single_gtest(object_name=object_name, num_dim=num_dim)\n",
" print(\"\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment