Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91717226
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
Wed, Nov 13, 19:36
Size
826 B
Mime Type
text/x-c++
Expires
Fri, Nov 15, 19:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22313366
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