Analysis of assemblies dynamic thermal performance behaviour under ISO 13786-2023
- January 26, 2025
- 1 reply
- 2912 views
Thanks to the community members for being patient with my questions.
Although a lot of guys in the PTC community gave me valuable tips,
I still want to improve my code slightly (perfectionism).
So, I'll try to list of what do I want to get from my code:
- Define all the calculus dependencies in the first step.
- Define the variables' range (each layer generally has its range). The idea is to account for all possible permutations.
- The k1 and f functions should be figured out for each set of thicknesses (variable) iteration of my multilayered assembly (I have no idea how to assign a specific range of thickness to a particular layer; this is my weak point; I’m not confident in this area).
- To sort out what of the total k1 and f values fit the restriction condition and arrange the result in a matrix with headers (for convenience, with aggregated values’ Names) (the particular matrix components should be plottable afterwards).
- The number of layers varies, so I need to script the sequence of each iteration by indexing (I'm a bit frustrated in this regard right now).
- The desired code has to be as compact and optimised ( in terms of machine time consumerance) as possible (the maxima goal).
Firstly, I tried to make it more generalised (with indexing), but the understanding of the leakage of base coding skills became evident very quickly.
I also understand that poor code is better than its absence.
For clarification, I attached my code in MathCAD Prime 10.0.0 and asked for assistance (advice, somehow) on how to deal with it.
I would appreciate any help.
I've attached my modified code and working sample for two layers.
PS. I also cannot understand why Chat GPT always creates JS-based code for my appropriate MathCAD prompt.
Best regards and thanks in advance.



