Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80135505
patch_test_linear_heat_transfer_fixture.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
Fri, Aug 30, 02:10
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Sep 1, 02:10 (2 d)
Engine
blob
Format
Raw Data
Handle
20291463
Attached To
rAKA akantu
patch_test_linear_heat_transfer_fixture.hh
View Options
/* -------------------------------------------------------------------------- */
#include "heat_transfer_model.hh"
/* -------------------------------------------------------------------------- */
#include "patch_test_linear_fixture.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_PATCH_TEST_LINEAR_HEAT_TRANSFER_FIXTURE_HH__
#define __AKANTU_PATCH_TEST_LINEAR_HEAT_TRANSFER_FIXTURE_HH__
/* -------------------------------------------------------------------------- */
template <typename type>
class TestPatchTestHTMLinear
: public TestPatchTestLinear<type, HeatTransferModel> {
using parent = TestPatchTestLinear<type, HeatTransferModel>;
public:
void applyBC() override {
parent::applyBC();
auto & temperature = this->model->getTemperature();
this->applyBConDOFs(temperature);
}
void checkAll() {
auto & temperature = this->model->getTemperature();
Matrix<Real> C = this->model->get("conductivity");
this->checkDOFs(temperature);
this->checkGradient(this->model->getTemperatureGradient(this->type),
temperature);
this->checkResults([&](const Matrix<Real> & grad_T) { return C * grad_T.transpose(); },
this->model->getKgradT(this->type), temperature);
}
};
using types = gtest_list_t<TestElementTypes>;
TYPED_TEST_CASE(TestPatchTestHTMLinear, types);
#endif /* __AKANTU_PATCH_TEST_LINEAR_HEAT_TRANSFER_FIXTURE_HH__ */
Event Timeline
Log In to Comment