Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Looking for m-files for Thermodynamics

Subject: Looking for m-files for Thermodynamics

From: Myron Washington

Date: 7 Dec, 2010 22:24:06

Message: 1 of 5

Anyone have any mfiles for Therodynamics. Any files will do ,trying to use Matlab with each of my classes.

Subject: Looking for m-files for Thermodynamics

From: Matt Fig

Date: 7 Dec, 2010 22:38:05

Message: 2 of 5

Look on the FEX. Having taken them both, I would advise you to clarify whether you are looking for Thermodynamics as taught in a Physics class or in an Engineering class. Very different!

Subject: Looking for m-files for Thermodynamics

From: Sean de

Date: 7 Dec, 2010 22:41:05

Message: 3 of 5

"Myron Washington" <mkwash1955@hotmail.com> wrote in message <idmc66$6hq$1@fred.mathworks.com>...
> Anyone have any mfiles for Therodynamics. Any files will do ,trying to use Matlab with each of my classes.

save this as Qcalc.m

function Q = Qcalc(m,c,dt)
  Q = m.*c./dt
end

Subject: Looking for m-files for Thermodynamics

From: Walter Roberson

Date: 7 Dec, 2010 22:53:32

Message: 4 of 5

On 10-12-07 04:41 PM, Sean de wrote:
> "Myron Washington" <mkwash1955@hotmail.com> wrote in message
> <idmc66$6hq$1@fred.mathworks.com>...
>> Anyone have any mfiles for Therodynamics. Any files will do ,trying to
>> use Matlab with each of my classes.
>
> save this as Qcalc.m
>
> function Q = Qcalc(m,c,dt)
> Q = m.*c./dt
> end

And this as PVnRT.m

function result = PVnRT(P,V,n,R,T)
   if isempty(P)
     result = n.*R.*.T./V;
   elseif isempty(V)
     result = n.*R.*T./P;
   elseif isempty(n)
     result = P.*V./R./T;
   elseif isempty(R)
     result = P.*V./n./T;
   elseif isempty(T)
     result = P.*V./n./R;
   else
     result = abs(P.*V - n.*R.*T) <= 2*eps(max(abs([P,V,n,R,T])));
   end
end

Subject: Looking for m-files for Thermodynamics

From: Alexander

Date: 8 Dec, 2010 16:24:06

Message: 5 of 5

"Myron Washington" <mkwash1955@hotmail.com> wrote in message <idmc66$6hq$1@fred.mathworks.com>...
> Anyone have any mfiles for Therodynamics. Any files will do ,trying to use Matlab with each of my classes.

Hi Myron,

have a look to www.thermolib.de, which is a toolbox for Simulink for "Engineering Thermodynamics".

Best regards
Alex

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us