Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81644546
WeakEquationPhononTemperature.cpp
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, Sep 7, 05:05
Size
4 KB
Mime Type
text/x-c
Expires
Mon, Sep 9, 05:05 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20603929
Attached To
rLAMMPS lammps
WeakEquationPhononTemperature.cpp
View Options
#include "ATC_Transfer.h"
#include "WeakEquationPhononTemperature.h"
#include "Material.h"
#include <iostream>
#include <fstream>
namespace
ATC
{
//==============================================================
// Class WeakEquationElectronTemperature
//==============================================================
//--------------------------------------------------------------
// Constructor
//--------------------------------------------------------------
WeakEquationPhononTemperature
::
WeakEquationPhononTemperature
()
:
WeakEquation
(
DYNAMIC_PDE
,
TEMPERATURE
,
1
)
{}
//--------------------------------------------------------------
// Destructor
//--------------------------------------------------------------
WeakEquationPhononTemperature
::~
WeakEquationPhononTemperature
(
void
)
{}
//---------------------------------------------------------------------
// compute total energy
//---------------------------------------------------------------------
void
WeakEquationPhononTemperature
::
E_integrand
(
const
FIELD_MATS
&
fields
,
const
GRAD_FIELD_MATS
&
gradFields
,
const
Material
*
material
,
DENS_MAT
&
energy
)
const
{
material
->
thermal_energy
(
fields
,
energy
);
}
//---------------------------------------------------------------------
// compute heat capacity
//---------------------------------------------------------------------
void
WeakEquationPhononTemperature
::
M_integrand
(
const
FIELD_MATS
&
fields
,
const
Material
*
material
,
DENS_MAT
&
capacity
)
const
{
material
->
heat_capacity
(
fields
,
capacity
);
}
//--------------------------------------------------------------
// compute heat flux
//--------------------------------------------------------------
void
WeakEquationPhononTemperature
::
B_integrand
(
const
FIELD_MATS
&
fields
,
const
GRAD_FIELD_MATS
&
gradFields
,
const
Material
*
material
,
DENS_MAT_VEC
&
flux
)
const
{
material
->
heat_flux
(
fields
,
gradFields
,
flux
);
}
//==============================================================
// Class WeakEquationPhononTemperatureExchange
//==============================================================
//--------------------------------------------------------------
// Constructor
//--------------------------------------------------------------
WeakEquationPhononTemperatureExchange
::
WeakEquationPhononTemperatureExchange
()
:
WeakEquationPhononTemperature
()
{}
//--------------------------------------------------------------
// Destructor
//---------------------------------------------------------------------
WeakEquationPhononTemperatureExchange
::~
WeakEquationPhononTemperatureExchange
(
void
)
{}
//---------------------------------------------------------------------
// compute energy
//---------------------------------------------------------------------
void
WeakEquationPhononTemperatureExchange
::
E_integrand
(
const
FIELD_MATS
&
fields
,
const
GRAD_FIELD_MATS
&
gradFields
,
const
Material
*
material
,
DENS_MAT
&
energy
)
const
{
WeakEquationPhononTemperature
::
E_integrand
(
fields
,
gradFields
,
material
,
energy
);
}
//---------------------------------------------------------------------
// compute heat capacities
//---------------------------------------------------------------------
void
WeakEquationPhononTemperatureExchange
::
M_integrand
(
const
FIELD_MATS
&
fields
,
const
Material
*
material
,
DENS_MAT
&
density
)
const
{
WeakEquationPhononTemperature
::
M_integrand
(
fields
,
material
,
density
);
}
//---------------------------------------------------------------------
// compute heat fluxes
//---------------------------------------------------------------------
void
WeakEquationPhononTemperatureExchange
::
B_integrand
(
const
FIELD_MATS
&
fields
,
const
GRAD_FIELD_MATS
&
gradFields
,
const
Material
*
material
,
DENS_MAT_VEC
&
flux
)
const
{
WeakEquationPhononTemperature
::
B_integrand
(
fields
,
gradFields
,
material
,
flux
);
}
//---------------------------------------------------------------------
// compute exchange fluxes
//---------------------------------------------------------------------
bool
WeakEquationPhononTemperatureExchange
::
N_integrand
(
const
FIELD_MATS
&
fields
,
const
GRAD_FIELD_MATS
&
gradFields
,
const
Material
*
material
,
DENS_MAT
&
flux
)
const
{
bool
has
=
material
->
electron_phonon_exchange
(
fields
,
flux
);
has
=
has
||
material
->
electron_drag_power
(
fields
,
gradFields
,
flux
);
return
has
;
}
};
// end namespace
Event Timeline
Log In to Comment