replace tabs and remove trailing whitespace in lib folder with updated script
This commit is contained in:
@ -13,28 +13,28 @@
|
||||
#include "ATC_TypeDefs.h"
|
||||
#include "Utility.h"
|
||||
|
||||
namespace ATC
|
||||
namespace ATC
|
||||
{
|
||||
class ATC_Coupling;
|
||||
//-------------------------------------------------------------------
|
||||
// @class PhysicsModel
|
||||
//-------------------------------------------------------------------
|
||||
/**
|
||||
* @brief An adaptor for the FE_Engine of the specific weak form of
|
||||
* @brief An adaptor for the FE_Engine of the specific weak form of
|
||||
* the continuum PDE for the FE_Engine.
|
||||
* It is assumed that the PDE fits this template:
|
||||
* DENSITY(FIELDS) FIELD_RATE
|
||||
* DENSITY(FIELDS) FIELD_RATE
|
||||
* = DIV FLUX(FIELDS, GRAD_FIELDS) + SOURCE(FIELDS,GRAD_FIELDS)
|
||||
* + PRESCRIBED_SOURCE(X,t) + EXTRINSIC_SOURCE(FIELDS,GRAD_FIELDS)
|
||||
* Also it is important to understand that the physics model only handles
|
||||
* extrinsic fields or surrogates of intrinsic fields
|
||||
*/
|
||||
class PhysicsModel
|
||||
class PhysicsModel
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
// constructor
|
||||
// constructor
|
||||
PhysicsModel(std::string fileName);
|
||||
|
||||
// destructor
|
||||
@ -44,7 +44,7 @@ namespace ATC
|
||||
void parse_material_file(std::string fileName);
|
||||
|
||||
/** initialize */
|
||||
void initialize(void);
|
||||
void initialize(void);
|
||||
|
||||
// set timescale parameters based on a given lengthscale
|
||||
virtual void set_timescales(const double /* lengthscale */) {};
|
||||
@ -59,20 +59,20 @@ namespace ATC
|
||||
const Material * material(const int index) const {return materials_[index];}
|
||||
|
||||
/** access to parameter values */
|
||||
bool parameter_value(const std::string& name, double& value,
|
||||
bool parameter_value(const std::string& name, double& value,
|
||||
const int imat = 0) const ;
|
||||
|
||||
/** return fields ids and length */
|
||||
void num_fields(std::map<FieldName,int> & fieldSizes,
|
||||
void num_fields(std::map<FieldName,int> & fieldSizes,
|
||||
Array2D<bool> & rhsMask) const;
|
||||
|
||||
/** is the material model linear */
|
||||
bool is_linear(FieldName name) const {
|
||||
bool is_linear(FieldName name) const {
|
||||
std::vector< Material* >::const_iterator iter;
|
||||
for (iter = materials_.begin(); iter != materials_.end(); iter++) {
|
||||
Material * mat = *iter;
|
||||
bool linear = mat->linear_flux(name)
|
||||
&& mat->linear_source(name)
|
||||
bool linear = mat->linear_flux(name)
|
||||
&& mat->linear_source(name)
|
||||
&& mat->constant_density(name);
|
||||
if (! linear) return linear;
|
||||
}
|
||||
@ -80,7 +80,7 @@ namespace ATC
|
||||
}
|
||||
|
||||
/** is rhs linear */
|
||||
bool has_linear_rhs(FieldName name) const {
|
||||
bool has_linear_rhs(FieldName name) const {
|
||||
std::vector< Material* >::const_iterator iter;
|
||||
for (iter = materials_.begin(); iter != materials_.end(); iter++) {
|
||||
Material * mat = *iter;
|
||||
@ -91,7 +91,7 @@ namespace ATC
|
||||
}
|
||||
|
||||
/** is mass matrix constant */
|
||||
bool has_constant_mass(FieldName name) const {
|
||||
bool has_constant_mass(FieldName name) const {
|
||||
std::vector< Material* >::const_iterator iter;
|
||||
for (iter = materials_.begin(); iter != materials_.end(); iter++) {
|
||||
Material * mat = *iter;
|
||||
@ -103,21 +103,21 @@ namespace ATC
|
||||
|
||||
/** access to weak equations */
|
||||
const WeakEquation * weak_equation(FieldName field) const
|
||||
{
|
||||
{
|
||||
std::map<FieldName,WeakEquation *>::const_iterator itr = weakEqns_.find(field);
|
||||
if (itr == weakEqns_.end()) return nullptr;
|
||||
return (weakEqns_.find(field))->second;
|
||||
}
|
||||
|
||||
/** requires ics */
|
||||
bool is_dynamic(FieldName field) const
|
||||
bool is_dynamic(FieldName field) const
|
||||
{
|
||||
return (weak_equation(field)->type() == WeakEquation::DYNAMIC_PDE);
|
||||
}
|
||||
|
||||
/** query null weak equations per material */
|
||||
bool null(FieldName field, int matID) const
|
||||
{
|
||||
{
|
||||
return null_(field,matID);
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ namespace ATC
|
||||
std::map<std::string, double> parameterValues_;
|
||||
|
||||
/** material models */
|
||||
std::vector<Material *> materials_;
|
||||
std::vector<Material *> materials_;
|
||||
std::map<std::string,int> materialNameToIndexMap_;// maps tag to index
|
||||
|
||||
/** weak equations */
|
||||
@ -149,7 +149,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelThermal : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelThermal(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -157,7 +157,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelElastic : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelElastic(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -165,16 +165,16 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelThermoElastic : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelThermoElastic(std::string filename);
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// @class PhysicsModelShear
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelShear : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelShear(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -182,7 +182,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelThermoShear : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelThermoShear(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -190,7 +190,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelSpecies : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelSpecies(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -198,7 +198,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelTwoTemperature : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelTwoTemperature(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -206,7 +206,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusion : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusion(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -214,7 +214,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusionEquilibrium : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusionEquilibrium(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -222,7 +222,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusionSchrodinger : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusionSchrodinger(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -230,7 +230,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusionConvection : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusionConvection(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -238,7 +238,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusionConvectionEquilibrium : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusionConvectionEquilibrium(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -246,7 +246,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusionConvectionSchrodinger : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusionConvectionSchrodinger(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -254,7 +254,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelDriftDiffusionSchrodingerSlice : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelDriftDiffusionSchrodingerSlice(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -262,7 +262,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelElectrostatic : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelElectrostatic(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -270,7 +270,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelElectrostaticEquilibrium : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelElectrostaticEquilibrium(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -278,7 +278,7 @@ namespace ATC
|
||||
//-------------------------------------------------------------------
|
||||
class PhysicsModelSpeciesElectrostatic : public PhysicsModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsModelSpeciesElectrostatic(std::string filename);
|
||||
};
|
||||
//-------------------------------------------------------------------
|
||||
@ -314,7 +314,7 @@ namespace ATC
|
||||
FIELDS & fields_;
|
||||
FieldName fieldName_;
|
||||
int dof_;
|
||||
SPAR_MAT stiffness_;
|
||||
SPAR_MAT stiffness_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user