Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77812283
PhysicsModelThermal.h
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
Fri, Aug 16, 13:29
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Aug 18, 13:29 (2 d)
Engine
blob
Format
Raw Data
Handle
19758654
Attached To
rLAMMPS lammps
PhysicsModelThermal.h
View Options
#ifndef PHYSICS_MODEL_THERMAL_H
#define PHYSICS_MODEL_THERMAL_H
#include "PhysicsModel.h"
namespace ATC{
class PhysicsModelThermal : public PhysicsModel {
public:
// constructor (take material parameter/s)
PhysicsModelThermal(std::string matFileName,
ATC_Transfer * atcTransfer);
// destructor
virtual ~PhysicsModelThermal();
/** checks materials for necessary interfaces */
virtual void initialize(void);
virtual void get_num_fields(map<FieldName,int> & fieldSizes, Array2D<bool> & fieldMask) const
{
fieldSizes[TEMPERATURE] = 1;
fieldMask(TEMPERATURE,FLUX) = true;
}
/** heat capacity */
virtual void M_integrand(const Array<FieldName> & mask,
const FIELDS &fields,
FIELDS &capacity,
const int matIndex = 0) const;
/** energy */
virtual void E_integrand(const Array<FieldName> & mask,
const FIELDS &fields,
const GRAD_FIELDS &grad_fields,
FIELDS &energy,
const int matIndex = 0) const;
/** this model has a B weighted integrand */
virtual bool has_B_integrand() const {return true;};
/** flux that is integrated with Grad N as its weight */
virtual void B_integrand(const Array2D<bool> & mask,
const FIELDS & fields,
const GRAD_FIELDS & grad_fields,
GRAD_FIELDS & flux,
const int matIndex = 0) const;
};
};
#endif
Event Timeline
Log In to Comment