![]() |
v0.16.0 |
#include <MoFEM.hpp>#include <MatrixFunction.hpp>#include <IntegrationRules.hpp>#include <cstdlib>#include <phg-quadrule/quad.h>#include <HenckyOps.hpp>#include <PlasticOps.hpp>#include <PlasticNaturalBCs.hpp>#include <ThermoElasticOps.hpp>#include <FiniteThermalOps.hpp>#include <ThermoPlasticOps.hpp>#include <ThermalOps.hpp>#include <EdgeFlippingOps.hpp>#include <SolutionMapping.hpp>#include <ThermalConvection.hpp>#include <ThermalRadiation.hpp>Go to the source code of this file.
Classes | |
| struct | ElementsAndOps< 2 > |
| struct | ElementsAndOps< 3 > |
| struct | TSPrePostProc |
| Set of functions called by PETSc solver used to refine and update mesh. More... | |
| struct | ResizeCtx |
| struct | Example |
| [Example] More... | |
| struct | Example::ScaledTimeScale |
| struct | SetUpSchur |
| [Push operators to pipeline] More... | |
| struct | MyTsCtx |
| struct | SetUpSchurImpl |
Macros | |
| #define | EXECUTABLE_DIMENSION 3 |
Enumerations | |
| enum | ICType { IC_UNIFORM , IC_GAUSSIAN , IC_LINEAR } |
| enum | ThermoPlasticityBits { COMPUTATION_BIT = 0 , FLIPPED_BIT = 1 , FIRST_REF_BIT = 2 , REFINED_EDGES_BIT = BITREFLEVEL_SIZE - 4 , PREVIOUS_BIT = BITREFLEVEL_SIZE - 3 , VIRGIN_BIT = BITREFLEVEL_SIZE - 2 , STORAGE_BIT = BITREFLEVEL_SIZE - 1 } |
| #define EXECUTABLE_DIMENSION 3 |
Definition at line 13 of file thermoplastic.cpp.
| using AssemblyDomainEleOp = FormsIntegrators<DomainEleOp>::Assembly<AT>::OpBase |
Definition at line 71 of file thermoplastic.cpp.
Definition at line 64 of file thermoplastic.cpp.
Definition at line 65 of file thermoplastic.cpp.
| using BoundaryLhsBCs = NaturalBC<BoundaryEleOp>::Assembly<AT>::BiLinearForm<IT> |
Definition at line 590 of file thermoplastic.cpp.
| using BoundaryNaturalBC = NaturalBC<BoundaryEleOp>::Assembly<AT>::LinearForm<IT> |
[Body and heat source]
[Natural boundary conditions]
Definition at line 605 of file thermoplastic.cpp.
| using BoundaryRhsBCs = NaturalBC<BoundaryEleOp>::Assembly<AT>::LinearForm<IT> |
Definition at line 587 of file thermoplastic.cpp.
| using DomainEle = ElementsAndOps<SPACE_DIM>::DomainEle |
Definition at line 62 of file thermoplastic.cpp.
Definition at line 63 of file thermoplastic.cpp.
| using DomainNaturalBCLhs = NaturalBC<DomainEleOp>::Assembly<AT>::BiLinearForm<IT> |
Definition at line 600 of file thermoplastic.cpp.
| using DomainNaturalBCRhs = NaturalBC<DomainEleOp>::Assembly<AT>::LinearForm<IT> |
[Body and heat source]
Definition at line 595 of file thermoplastic.cpp.
| using DomainRhsBCs = NaturalBC<DomainEleOp>::Assembly<AT>::LinearForm<IT> |
Definition at line 584 of file thermoplastic.cpp.
| using EntData = EntitiesFieldData::EntData |
Definition at line 61 of file thermoplastic.cpp.
| using OpBodyForce = DomainNaturalBCRhs::OpFlux<NaturalMeshsetType<BLOCKSET>, 1, SPACE_DIM> |
Definition at line 596 of file thermoplastic.cpp.
| using OpBoundaryLhsBCs = BoundaryLhsBCs::OpFlux<PlasticOps::BoundaryBCs, 1, SPACE_DIM> |
Definition at line 591 of file thermoplastic.cpp.
| using OpBoundaryRhsBCs = BoundaryRhsBCs::OpFlux<PlasticOps::BoundaryBCs, 1, SPACE_DIM> |
Definition at line 588 of file thermoplastic.cpp.
| using OpDomainRhsBCs = DomainRhsBCs::OpFlux<PlasticOps::DomainBCs, 1, SPACE_DIM> |
Definition at line 585 of file thermoplastic.cpp.
| using OpEssentialFluxLhs = EssentialBC<BoundaryEleOp>::Assembly< AT>::BiLinearForm<IT>::OpEssentialLhs<HeatFluxCubitBcData, 3, SPACE_DIM> |
Definition at line 615 of file thermoplastic.cpp.
| using OpEssentialFluxRhs = EssentialBC<BoundaryEleOp>::Assembly<AT>::LinearForm< IT>::OpEssentialRhs<HeatFluxCubitBcData, 3, SPACE_DIM> |
[Natural boundary conditions]
[Essential boundary conditions (Least square approach)]
Definition at line 613 of file thermoplastic.cpp.
| using OpForce = BoundaryNaturalBC::OpFlux<NaturalForceMeshsets, 1, SPACE_DIM> |
Definition at line 607 of file thermoplastic.cpp.
| using OpHeatSource = DomainNaturalBCRhs::OpFlux<NaturalMeshsetType<BLOCKSET>, 1, 1> |
Definition at line 598 of file thermoplastic.cpp.
| using OpSetTemperatureLhs = DomainNaturalBCLhs::OpFlux<SetTargetTemperature, 1, 1> |
Definition at line 621 of file thermoplastic.cpp.
| using OpSetTemperatureRhs = DomainNaturalBCRhs::OpFlux<SetTargetTemperature, 1, 1> |
[Essential boundary conditions (Least square approach)]
Definition at line 619 of file thermoplastic.cpp.
Definition at line 608 of file thermoplastic.cpp.
| using PostProcEle = PostProcBrokenMeshInMoab<DomainEle> |
Definition at line 66 of file thermoplastic.cpp.
| using ScalerFunThreeArgs = boost::function<double(const double, const double, const double)> |
Definition at line 74 of file thermoplastic.cpp.
| using ScalerFunTwoArgs = boost::function<double(const double, const double)> |
Definition at line 73 of file thermoplastic.cpp.
Definition at line 69 of file thermoplastic.cpp.
| using SideEle = ElementsAndOps<SPACE_DIM>::SideEle |
Definition at line 68 of file thermoplastic.cpp.
Definition at line 67 of file thermoplastic.cpp.
| enum ICType |
| enum ThermoPlasticityBits |
| Enumerator | |
|---|---|
| COMPUTATION_BIT | |
| FLIPPED_BIT | |
| FIRST_REF_BIT | |
| REFINED_EDGES_BIT | |
| PREVIOUS_BIT | |
| VIRGIN_BIT | |
| STORAGE_BIT | |
Definition at line 323 of file thermoplastic.cpp.
|
inline |
|
inline |
Definition at line 198 of file thermoplastic.cpp.
|
inline |
Definition at line 205 of file thermoplastic.cpp.
Definition at line 170 of file thermoplastic.cpp.
|
inline |
Kinematic hardening
Definition at line 223 of file thermoplastic.cpp.
|
inline |
Definition at line 237 of file thermoplastic.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
[Register MoFEM discrete manager in PETSc]
[Register MoFEM discrete manager in PETSc
[Create MoAB]
< mesh database
< mesh database interface
[Create MoAB]
[Create MoFEM]
< finite element database
< finite element database interface
[Create MoFEM]
[Load mesh]
[Load mesh]
[Example]
[Example]
Definition at line 5743 of file thermoplastic.cpp.
| PetscErrorCode MyTSResizeSetup | ( | TS | ts, |
| PetscInt | nstep, | ||
| PetscReal | time, | ||
| Vec | sol, | ||
| PetscBool * | resize, | ||
| void * | ctx | ||
| ) |
Definition at line 4216 of file thermoplastic.cpp.
|
extern |
Definition at line 4224 of file thermoplastic.cpp.
| auto postProcessHere | ( | MoFEM::Interface & | m_field, |
| SmartPetscObj< DM > & | dm, | ||
| std::string | output_name, | ||
| int & | counter = *(new int(0)) |
||
| ) |
Definition at line 413 of file thermoplastic.cpp.
| auto postProcessPETScHere | ( | MoFEM::Interface & | m_field, |
| SmartPetscObj< DM > & | dm, | ||
| Vec | sol, | ||
| std::string | output_name | ||
| ) |
Definition at line 495 of file thermoplastic.cpp.
| auto printOnAllCores | ( | MoFEM::Interface & | m_field, |
| const std::string & | out_put_string, | ||
| const auto & | out_put_quantity | ||
| ) |
Definition at line 563 of file thermoplastic.cpp.
Definition at line 161 of file thermoplastic.cpp.
| MoFEMErrorCode SNESIterationMonitor | ( | SNES | snes, |
| PetscInt | its, | ||
| PetscReal | norm, | ||
| void * | ctx | ||
| ) |
Definition at line 4208 of file thermoplastic.cpp.
Definition at line 177 of file thermoplastic.cpp.
| MoFEMErrorCode TSIterationPreStage | ( | TS | ts, |
| PetscReal | stagetime | ||
| ) |
Definition at line 4200 of file thermoplastic.cpp.
Definition at line 152 of file thermoplastic.cpp.
| double alpha_damping = 0 |
Definition at line 315 of file thermoplastic.cpp.
|
constexpr |
Definition at line 51 of file thermoplastic.cpp.
| int atom_test = 0 |
Definition at line 307 of file thermoplastic.cpp.
| double b_iso = 63.69 |
Saturation exponent.
Definition at line 272 of file thermoplastic.cpp.
| double C1_k = 0 |
Kinematic hardening.
Definition at line 273 of file thermoplastic.cpp.
| double cn0 = 1 |
Definition at line 275 of file thermoplastic.cpp.
| double cn1 = 1 |
Definition at line 276 of file thermoplastic.cpp.
| BitRefLevel comp_mesh_bit = BitRefLevel().set(COMPUTATION_BIT) |
Definition at line 333 of file thermoplastic.cpp.
|
constexpr |
Definition at line 59 of file thermoplastic.cpp.
| double default_coeff_expansion = 1e-5 |
Definition at line 287 of file thermoplastic.cpp.
| double default_heat_capacity = 10*2.332 |
Definition at line 291 of file thermoplastic.cpp.
| double default_heat_capacity_scale = 1. |
Definition at line 260 of file thermoplastic.cpp.
| double default_heat_conductivity |
Definition at line 288 of file thermoplastic.cpp.
| double default_ref_temp = 20.0 |
Definition at line 278 of file thermoplastic.cpp.
| double default_thermal_conductivity_scale = 1. |
Definition at line 259 of file thermoplastic.cpp.
| PetscBool do_eval_field = PETSC_FALSE |
Evaluate field.
Definition at line 251 of file thermoplastic.cpp.
| double edge_growth_thresh = 0.2 |
Definition at line 320 of file thermoplastic.cpp.
| int ep_order = order - 1 |
Order of ep field.
Definition at line 302 of file thermoplastic.cpp.
| double exp_C = -6.284 |
Definition at line 174 of file thermoplastic.cpp.
| double exp_D = -1.024 |
Definition at line 175 of file thermoplastic.cpp.
| BitRefLevel flipped_bit = BitRefLevel().set(FLIPPED_BIT) |
Definition at line 334 of file thermoplastic.cpp.
| int flux_order = order |
| auto Gaussian_distribution |
Definition at line 340 of file thermoplastic.cpp.
| int geom_order = 2 |
| auto get_string_from_vector |
Definition at line 633 of file thermoplastic.cpp.
| double H = 584.3 |
| ScalerFunTwoArgs heat_capacity_scaling |
Definition at line 262 of file thermoplastic.cpp.
|
static |
[Solve]
Definition at line 5741 of file thermoplastic.cpp.
| ICType ic_type = IC_UNIFORM |
Definition at line 283 of file thermoplastic.cpp.
| const char* const ICTypes[] |
Definition at line 280 of file thermoplastic.cpp.
| double inelastic_heat_fraction |
fraction of plastic dissipation converted to heat
Definition at line 296 of file thermoplastic.cpp.
| ScalerFunThreeArgs inelastic_heat_fraction_scaling |
Definition at line 263 of file thermoplastic.cpp.
| double init_dt = 0.05 |
Definition at line 316 of file thermoplastic.cpp.
| auto init_T |
Initialisation function for temperature field.
Definition at line 360 of file thermoplastic.cpp.
| double init_temp = 20.0 |
Definition at line 284 of file thermoplastic.cpp.
| PetscBool is_distributed_mesh = PETSC_TRUE |
Definition at line 256 of file thermoplastic.cpp.
|
constexpr |
Definition at line 48 of file thermoplastic.cpp.
| const bool is_large_strains |
Definition at line 248 of file thermoplastic.cpp.
| PetscBool is_quasi_static = PETSC_TRUE |
Definition at line 313 of file thermoplastic.cpp.
|
constexpr |
Definition at line 54 of file thermoplastic.cpp.
| auto linear_distribution |
Definition at line 349 of file thermoplastic.cpp.
| double min_dt = 1e-12 |
Definition at line 317 of file thermoplastic.cpp.
| int num_refinement_levels = 0 |
Definition at line 321 of file thermoplastic.cpp.
| double omega_0 = 2e-3 |
| double omega_h = 2e-3 |
| int order = 2 |
Order displacement.
Definition at line 300 of file thermoplastic.cpp.
| PetscBool order_edge = PETSC_FALSE |
Definition at line 309 of file thermoplastic.cpp.
| PetscBool order_face = PETSC_FALSE |
Definition at line 310 of file thermoplastic.cpp.
| PetscBool order_volume = PETSC_FALSE |
Definition at line 311 of file thermoplastic.cpp.
| double peak_temp = 1000.0 |
Definition at line 285 of file thermoplastic.cpp.
| double poisson_ratio = 0.31 |
Poisson ratio.
Definition at line 266 of file thermoplastic.cpp.
| int post_processing_counter = 0 |
Definition at line 411 of file thermoplastic.cpp.
| BitRefLevel prev_mesh_bit = BitRefLevel().set(PREVIOUS_BIT) |
Definition at line 336 of file thermoplastic.cpp.
| double Qinf = 174.2 |
Saturation yield stress.
Definition at line 271 of file thermoplastic.cpp.
| double qual_thresh = 0.1 |
Definition at line 319 of file thermoplastic.cpp.
| double qual_tol = 0 |
Definition at line 318 of file thermoplastic.cpp.
| BitRefLevel refined_bit = BitRefLevel().set(FIRST_REF_BIT) |
Definition at line 335 of file thermoplastic.cpp.
| char restart_file[255] |
Definition at line 252 of file thermoplastic.cpp.
| PetscBool restart_flg = PETSC_TRUE |
Definition at line 253 of file thermoplastic.cpp.
| int restart_step = 0 |
Definition at line 255 of file thermoplastic.cpp.
| double restart_time = 0 |
Definition at line 254 of file thermoplastic.cpp.
| double rho = 0.0 |
Definition at line 314 of file thermoplastic.cpp.
| auto save_range |
Definition at line 624 of file thermoplastic.cpp.
| double scale = 1. |
Definition at line 258 of file thermoplastic.cpp.
| PetscBool set_timer = PETSC_FALSE |
Set timer.
Definition at line 250 of file thermoplastic.cpp.
| double sigmaY = 936.2 |
Yield stress.
Definition at line 267 of file thermoplastic.cpp.
Definition at line 46 of file thermoplastic.cpp.
|
constexpr |
| BitRefLevel storage_bit = BitRefLevel().set(STORAGE_BIT) |
Definition at line 338 of file thermoplastic.cpp.
| int T_order = order - 1 |
| int tau_order = order - 2 |
Order of tau field.
Definition at line 301 of file thermoplastic.cpp.
| double temp_0 = 20 |
reference temperature for thermal softening
Definition at line 298 of file thermoplastic.cpp.
| ScalerFunTwoArgs thermal_conductivity_scaling |
Definition at line 261 of file thermoplastic.cpp.
| Example* thermoplastic_raw_ptr = nullptr |
Definition at line 4472 of file thermoplastic.cpp.
|
static |
Definition at line 4198 of file thermoplastic.cpp.
|
static |
Definition at line 703 of file thermoplastic.cpp.
|
static |
Definition at line 689 of file thermoplastic.cpp.
| auto uniform_distribution |
| BitRefLevel virgin_mesh_bit = BitRefLevel().set(VIRGIN_BIT) |
Definition at line 337 of file thermoplastic.cpp.
| double visH = 0 |
Viscous hardening.
Definition at line 269 of file thermoplastic.cpp.
| double width = 10.0 |
Width of Gaussian distribution.
Definition at line 286 of file thermoplastic.cpp.
| double young_modulus = 115000 |
Young modulus.
Definition at line 265 of file thermoplastic.cpp.
| double zeta = 5e-2 |
regularisation parameter
Definition at line 270 of file thermoplastic.cpp.