Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection type: Radiation #1

Closed
dynapack opened this issue Oct 30, 2024 · 4 comments
Closed

Connection type: Radiation #1

dynapack opened this issue Oct 30, 2024 · 4 comments

Comments

@dynapack
Copy link

Great work!

I have played around but have difficulties to Run the model when choosing Connection type: Radiation. Can you help me here?

Thanks in advance// -:)

@robinovitch61
Copy link
Owner

Great work!

I have played around but have difficulties to Run the model when choosing Connection type: Radiation. Can you help me here?

Thanks in advance// -:)

Can you provide the model input that's failing? You can click "copy model" and paste it into this issue

@dynapack
Copy link
Author

Hi!

Great with fast response! It’s very easy, it is your simple example model where I just added one radiation connection between the existing nods. After that push the button and wait, but the graph just plot new dots at time 0 and then nothing more happens. If I change the simulation time the graph update just the time axis.

best//

@robinovitch61
Copy link
Owner

Sounds like you're not running a model that represents a reasonable situation. Here is an example model (also not representing reality) that works with radiation.

{
  "timing": {
    "timeStepS": 0.1,
    "totalTimeS": 600
  },
  "nodes": [
    {
      "id": "LR2V9CHYAQDEN",
      "name": "Apartment Air",
      "temperatureDegC": 22.5,
      "capacitanceJPerDegK": 600000,
      "powerGenW": 0,
      "isBoundary": false,
      "center": {
        "x": 321.00664890072096,
        "y": 336.9913564290627
      },
      "isActive": false,
      "textDirection": "D",
      "nodeNotes": ""
    },
    {
      "id": "LR2V9CHYA3LD6",
      "name": "Heated Cat Bed",
      "temperatureDegC": 40,
      "capacitanceJPerDegK": 10000,
      "powerGenW": 4,
      "isBoundary": false,
      "center": {
        "x": 481,
        "y": 135
      },
      "isActive": false,
      "textDirection": "R",
      "nodeNotes": ""
    },
    {
      "id": "LR2V9CHYFDF0T",
      "name": "Jerry the Cat",
      "temperatureDegC": 38.3,
      "capacitanceJPerDegK": 16200,
      "powerGenW": 100,
      "isBoundary": false,
      "center": {
        "x": 187,
        "y": 132
      },
      "isActive": false,
      "textDirection": "L",
      "nodeNotes": "Jerry is the best cat."
    }
  ],
  "connections": [
    {
      "id": "LR2V9CHY8WSL4",
      "firstNode": {
        "id": "LR2V9CHYAQDEN",
        "name": "Apartment Air",
        "temperatureDegC": 22.5,
        "capacitanceJPerDegK": 600000,
        "powerGenW": 0,
        "isBoundary": false,
        "center": {
          "x": 321.00664890072096,
          "y": 336.9913564290627
        },
        "isActive": true,
        "textDirection": "D",
        "nodeNotes": ""
      },
      "secondNode": {
        "id": "LR2V9CHYA3LD6",
        "name": "Heated Cat Bed",
        "temperatureDegC": 40,
        "capacitanceJPerDegK": 10000,
        "powerGenW": 4,
        "isBoundary": false,
        "center": {
          "x": 481,
          "y": 135
        },
        "isActive": true,
        "textDirection": "R",
        "nodeNotes": ""
      },
      "resistanceDegKPerW": 1000,
      "kind": "rad",
      "firstNodeId": "LR2V9CHYAQDEN",
      "secondNodeId": "LR2V9CHYA3LD6",
      "connectionNotes": "",
      "isActive": false
    },
    {
      "id": "LR2V9CHYBQ210",
      "firstNode": {
        "id": "LR2V9CHYA3LD6",
        "name": "Heated Cat Bed",
        "temperatureDegC": 40,
        "capacitanceJPerDegK": 10000,
        "powerGenW": 4,
        "isBoundary": false,
        "center": {
          "x": 481,
          "y": 135
        },
        "isActive": true,
        "textDirection": "R",
        "nodeNotes": ""
      },
      "secondNode": {
        "id": "LR2V9CHYFDF0T",
        "name": "Jerry the Cat",
        "temperatureDegC": 38.3,
        "capacitanceJPerDegK": 16200,
        "powerGenW": 100,
        "isBoundary": false,
        "center": {
          "x": 187,
          "y": 132
        },
        "isActive": true,
        "textDirection": "L",
        "nodeNotes": "Jerry is the best cat."
      },
      "resistanceDegKPerW": 2.5,
      "kind": "cond",
      "firstNodeId": "LR2V9CHYA3LD6",
      "secondNodeId": "LR2V9CHYFDF0T",
      "connectionNotes": ""
    },
    {
      "id": "LR2V9CHYGR2LL",
      "firstNode": {
        "id": "LR2V9CHYAQDEN",
        "name": "Apartment Air",
        "temperatureDegC": 22.5,
        "capacitanceJPerDegK": 600000,
        "powerGenW": 0,
        "isBoundary": false,
        "center": {
          "x": 321.00664890072096,
          "y": 336.9913564290627
        },
        "isActive": true,
        "textDirection": "D",
        "nodeNotes": ""
      },
      "secondNode": {
        "id": "LR2V9CHYFDF0T",
        "name": "Jerry the Cat",
        "temperatureDegC": 38.3,
        "capacitanceJPerDegK": 16200,
        "powerGenW": 100,
        "isBoundary": false,
        "center": {
          "x": 187,
          "y": 132
        },
        "isActive": true,
        "textDirection": "L",
        "nodeNotes": "Jerry is the best cat."
      },
      "resistanceDegKPerW": 0.33,
      "kind": "conv",
      "firstNodeId": "LR2V9CHYAQDEN",
      "secondNodeId": "LR2V9CHYFDF0T",
      "connectionNotes": ""
    }
  ],
  "canvasViewState": {
    "scale": 1.0006653324450372,
    "offset": {
      "x": 49.72141105979017,
      "y": -3.2287221848023364
    }
  },
  "savedCanvasState": {
    "offset": {
      "x": 0,
      "y": 0
    },
    "scale": 1
  },
  "panelSizes": {
    "editorWidthFraction": 0.45,
    "canvasHeightFraction": 0.6180339887498547,
    "tableHeightFraction": 0.5
  }
}

Feel free to reopen this if you are making a model that represents a real situation and there is a bug with radiation.

@dynapack
Copy link
Author

dynapack commented Nov 8, 2024

Thanks! It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants