Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

How to Model a thermocouple block in open Modelica

How to Model a thermocouple block in open Modelica

Hi,
Can anyone guide me on how to model a themocouple block in open modelica such tempearture will be an input and voltage as an output..

trying to see wether this code below will work. Got it from here     
https://www.modelica.org/events/worksho … iller2.pdf

model Thermocouple
extends Modelica.Electrical.Analog.Interfaces.OnePort;
parameter Real C[:] "Calibration coefficients";
Modelica.Thermal.Interfaces.Node_c node_c;
equation
v = polyval(C, node_c.T);
node_c.q = zeros(node_c.ndim);
end Thermocouple;

(i use open modelica 1.7.0)

cheers

There are 0 guests and 0 other users also viewing this topic
You are here: