-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fluid/div-stable-element-p2-p1
- Loading branch information
Showing
214 changed files
with
125,280 additions
and
118,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
applications/GeoMechanicsApplication/custom_conditions/thermal_point_flux_condition.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// KRATOS___ | ||
// // ) ) | ||
// // ___ ___ | ||
// // ____ //___) ) // ) ) | ||
// // / / // // / / | ||
// ((____/ / ((____ ((___/ / MECHANICS | ||
// | ||
// License: geo_mechanics_application/license.txt | ||
// | ||
// | ||
// Main authors: Mohamed Nabi | ||
// John van Esch | ||
// | ||
|
||
#include "custom_conditions/thermal_point_flux_condition.h" | ||
|
||
namespace Kratos | ||
{ | ||
|
||
template <unsigned int TDim, unsigned int TNumNodes> | ||
GeoThermalPointFluxCondition<TDim, TNumNodes>::GeoThermalPointFluxCondition() | ||
: GeoTCondition<TDim, TNumNodes>() | ||
{ | ||
} | ||
|
||
template <unsigned int TDim, unsigned int TNumNodes> | ||
GeoThermalPointFluxCondition<TDim, TNumNodes>::GeoThermalPointFluxCondition(IndexType NewId, | ||
GeometryType::Pointer pGeometry) | ||
: GeoTCondition<TDim, TNumNodes>(NewId, pGeometry) | ||
{ | ||
} | ||
|
||
template <unsigned int TDim, unsigned int TNumNodes> | ||
GeoThermalPointFluxCondition<TDim, TNumNodes>::GeoThermalPointFluxCondition(IndexType NewId, | ||
GeometryType::Pointer pGeometry, | ||
PropertiesType::Pointer pProperties) | ||
: GeoTCondition<TDim, TNumNodes>(NewId, pGeometry, pProperties) | ||
{ | ||
} | ||
|
||
template <unsigned int TDim, unsigned int TNumNodes> | ||
void GeoThermalPointFluxCondition<TDim, TNumNodes>::CalculateRHS(Vector& rRightHandSideVector, const ProcessInfo&) | ||
{ | ||
rRightHandSideVector[0] = this->GetGeometry()[0].FastGetSolutionStepValue(NORMAL_HEAT_FLUX); | ||
} | ||
|
||
template class GeoThermalPointFluxCondition<2, 1>; | ||
template class GeoThermalPointFluxCondition<3, 1>; | ||
|
||
} // namespace Kratos |
64 changes: 64 additions & 0 deletions
64
applications/GeoMechanicsApplication/custom_conditions/thermal_point_flux_condition.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// KRATOS___ | ||
// // ) ) | ||
// // ___ ___ | ||
// // ____ //___) ) // ) ) | ||
// // / / // // / / | ||
// ((____/ / ((____ ((___/ / MECHANICS | ||
// | ||
// License: geo_mechanics_application/license.txt | ||
// | ||
// | ||
// Main authors: Mohamed Nabi | ||
// John van Esch | ||
// | ||
|
||
#pragma once | ||
|
||
#include "custom_conditions/T_condition.h" | ||
#include "includes/serializer.h" | ||
|
||
namespace Kratos | ||
{ | ||
|
||
template <unsigned int TDim, unsigned int TNumNodes> | ||
class KRATOS_API(GEO_MECHANICS_APPLICATION) GeoThermalPointFluxCondition | ||
: public GeoTCondition<TDim, TNumNodes> | ||
{ | ||
public: | ||
using GeometryType = Geometry<Node>; | ||
using PropertiesType = Properties; | ||
using NodesArrayType = GeometryType::PointsArrayType; | ||
using BaseType = GeoTCondition<TDim, TNumNodes>; | ||
|
||
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(GeoThermalPointFluxCondition); | ||
|
||
GeoThermalPointFluxCondition(); | ||
|
||
GeoThermalPointFluxCondition(IndexType NewId, GeometryType::Pointer pGeometry); | ||
|
||
GeoThermalPointFluxCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties); | ||
|
||
Condition::Pointer Create(IndexType NewId, const NodesArrayType& rThisNodes, PropertiesType::Pointer pProperties) const override | ||
{ | ||
return Kratos::make_intrusive<GeoThermalPointFluxCondition>( | ||
NewId, this->GetGeometry().Create(rThisNodes), pProperties); | ||
} | ||
|
||
protected: | ||
void CalculateRHS(Vector& rRightHandSideVector, const ProcessInfo& CurrentProcessInfo) override; | ||
|
||
private: | ||
friend class Serializer; | ||
|
||
void save(Serializer& rSerializer) const override | ||
{ | ||
KRATOS_SERIALIZE_SAVE_BASE_CLASS(rSerializer, BaseType) | ||
} | ||
|
||
void load(Serializer& rSerializer) override | ||
{ | ||
KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, BaseType) | ||
} | ||
}; | ||
|
||
} // namespace Kratos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.