Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61436193
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
Mon, May 6, 16:19
Size
1 KB
Mime Type
text/x-c++
Expires
Wed, May 8, 16:19 (2 d)
Engine
blob
Format
Raw Data
Handle
17512598
Attached To
R7571 SP4E-TB-TL-FR
compute_temperature.hh
View Options
#ifndef __COMPUTE_TEMPERATURE__HH__
#define __COMPUTE_TEMPERATURE__HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
//! Compute contact interaction between ping-pong balls
class
ComputeTemperature
:
public
Compute
{
public
:
//! temperature evolution implementation
void
compute
(
System
&
system
)
override
;
//! return the heat conductivity
Real
&
getConductivity
(){
return
conductivity
;};
//! return the heat capacity
Real
&
getCapacity
(){
return
capacity
;};
//! return the heat capacity
Real
&
getDensity
(){
return
density
;};
//! return the characteristic length of the square
Real
&
getL
(){
return
L
;};
//! return the characteristic length of the square
Real
&
getDeltat
(){
return
delta_t
;};
//! return the heat conductivity
void
setConductivity
(
Real
conductivity
){
this
->
conductivity
=
conductivity
;};
//! return the heat capacity
void
setCapacity
(
Real
capacity
){
this
->
capacity
=
capacity
;};
//! return the heat capacity
void
setDensity
(
Real
density
){
this
->
density
=
density
;};
//! return the characteristic length of the square
void
setL
(
Real
L
){
this
->
L
=
L
;};
//! return the characteristic length of the square
void
setDeltat
(
Real
delta_t
){
this
->
delta_t
=
delta_t
;};
bool
implicit
=
true
;
private
:
Real
conductivity
;
Real
capacity
;
Real
density
;
//! side length of the problem
Real
L
;
Real
delta_t
;
};
/* -------------------------------------------------------------------------- */
#endif
//__COMPUTE_TEMPERATURE__HH__
Event Timeline
Log In to Comment