Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61114956
compute_temperature.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 4, 15:24
Size
826 B
Mime Type
text/x-c++
Expires
Mon, May 6, 15:24 (2 d)
Engine
blob
Format
Raw Data
Handle
17421496
Attached To
R7581 SP4E Homework
compute_temperature.hh
View Options
#ifndef __COMPUTE_TEMPERATURE__HH__
#define __COMPUTE_TEMPERATURE__HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
#include "my_types.hh"
//! Compute temperature
class
ComputeTemperature
:
public
Compute
{
// Virtual implementation
public
:
// Constructor
ComputeTemperature
();
void
compute
(
System
&
system
)
override
;
// Adding variables
public
:
Real
dt
=
0.05
;
Real
k
=
1.0
;
Real
C
=
1.0
;
Real
rho
=
1.0
;
UInt
Dim
=
2
;
// The dimention in space
/*!
\dt: The stable time step for the explicit solver.
\rho: Mass density
\C: Specific heat capacity
\k: Heat conductivity
\Dim The dimentions of the space
*/
};
/* -------------------------------------------------------------------------- */
#endif
//__COMPUTE_TEMPERATURE__HH__
Event Timeline
Log In to Comment