17 #ifndef _FUELCELL__APP_THERMAL_TEST__H
18 #define _FUELCELL__APP_THERMAL_TEST__H
27 namespace InitialSolution
53 virtual double value (
const Point<dim> &p,
54 const unsigned int component = 0)
const;
91 AppThermalTest (boost::shared_ptr<FuelCell::ApplicationCore::ApplicationData>
data = boost::shared_ptr<FuelCell::ApplicationCore::ApplicationData> ());
112 const std::vector<double>& value_dvar,
113 ParameterHandler& param){};
124 virtual void initialize(ParameterHandler& param);
130 std::shared_ptr<Function<dim> > initial_function = std::shared_ptr<Function<dim> >());
186 virtual void data_out(
const std::string& basename,
208 boost::shared_ptr< FuelCellShop::Layer::GasDiffusionLayer<dim> >
test_layer;
227 #endif //_FUELCELL__AppThermalTest_H
virtual void set_parameters(const std::vector< std::string > &name_dvar, const std::vector< double > &value_dvar, ParameterHandler ¶m)
Function called by optimization loop in order to set the values in the ParameterHandler to the new de...
Definition: app_thermal_test.h:111
virtual void bdry_residual(FuelCell::ApplicationCore::FEVector &bdry_vector, const typename DoFApplication< dim >::FaceInfo &bdry_info)
Assemble local boundary residual.
virtual void data_out(const std::string &basename, const FuelCell::ApplicationCore::FEVectors &vectors)
Reimplementation of the routine in the base class BaseApplication in namespace AppFrame so that the r...
boost::shared_ptr< FuelCellShop::Layer::GasDiffusionLayer< dim > > test_layer
Definition: app_thermal_test.h:208
virtual void cell_residual(FuelCell::ApplicationCore::FEVector &cell_vector, const typename DoFApplication< dim >::CellInfo &cell)
Integration of the rhs of the equations.
virtual void initialize_solution(FuelCell::ApplicationCore::FEVector &initial_guess, std::shared_ptr< Function< dim > > initial_function=std::shared_ptr< Function< dim > >())
Initialize nonlinear solution.
This class is used when solving the problem using Newton's method to provide an initial solution...
Definition: app_thermal_test.h:35
virtual void declare_parameters(ParameterHandler ¶m)
Declare all parameters that are needed for:
virtual double estimate(const FuelCell::ApplicationCore::FEVectors &sol)
Estimate error per cell.
This class deals with Thermal Transport Equation.
Definition: thermal_transport_equation.h:187
AppThermalTest(boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData > data=boost::shared_ptr< FuelCell::ApplicationCore::ApplicationData >())
Constructor.
virtual void initialize(ParameterHandler ¶m)
Call the other initialize routines from the inherited classes.
virtual double value(const Point< dim > &p, const unsigned int component=0) const
This is the member function that computes the value of the initial solution for a given point...
This class is created for the objects handed to the mesh loops.
Definition: mesh_loop_info_objects.h:544
std::string case_type
Definition: app_thermal_test.h:58
virtual ~AppThermalTestIC()
Destructor.
Definition: app_thermal_test.h:47
virtual ~AppThermalTest()
Destructor.
Definition: app_thermal_test.h:96
AppThermalTestIC(const std::string &type)
Constructor.
std::vector< MatrixBlock< FullMatrix< double > > > MatrixVector
The matrix vector used in the mesh loops.
Definition: matrix_block.h:102
std::map< unsigned int, double > boundary_values
Variable to store boundary values, so they only need to be computed once per mesh refinement...
Definition: block_matrix_application.h:321
std::string case_type
String to determine the case type.
Definition: app_thermal_test.h:220
This class is used to test thermal transport equation (fourier equation) against analytical solutions...
Definition: app_thermal_test.h:76
virtual void global_responses(std::vector< double > &resp, const FuelCell::ApplicationCore::FEVector &sol)
This class is used to evaluate all responses that do not require looping over cells.
Definition: app_thermal_test.h:199
virtual void bdry_matrix(FuelCell::ApplicationCore::MatrixVector &bdry_matrices, const typename DoFApplication< dim >::FaceInfo &bdry_info)
Assemble local boundary matrix.
virtual void dirichlet_bc(std::map< unsigned int, double > &boundary_values) const
Member function used to set dirichlet boundary conditions.
BlockVector< double > FEVector
The vector class used by applications.
Definition: application_data.h:46
The data type used in function calls of Application.
Definition: fe_vectors.h:59
virtual void cell_responses(std::vector< double > &resp, const typename DoFApplication< dim >::CellInfo &info, const FuelCell::ApplicationCore::FEVector &sol)
Compute the value of all objective function and constraints.
Definition: app_thermal_test.h:192
Application handling matrices and assembling the linear system to solve the sensitivity equations...
Definition: optimization_block_matrix_application.h:49
virtual void cell_matrix(FuelCell::ApplicationCore::MatrixVector &cell_matrices, const typename DoFApplication< dim >::CellInfo &cell)
Integration of local bilinear form.
FuelCellShop::Equation::ThermalTransportEquation< dim > thermal_transport
ThermalTransportEquation object.
Definition: app_thermal_test.h:216
boost::shared_ptr< ApplicationData > data
Object for auxiliary data.
Definition: application_base.h:348
void initialize_triangulation(ParameterHandler ¶m)
Initilize and create the grid Determines whether reading from a grid file or creating new...