Page MenuHomec4science

compute_temperature.hh
No OneTemporary

File Metadata

Created
Wed, Nov 13, 19:36

compute_temperature.hh

#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