|
| 1 | +""" |
| 2 | +Bond-Based dualstep_thermomechanics Module with Temperature-Dependent Properties and Ablation |
| 3 | +
|
| 4 | +This module extends the bond-based dualstep_thermomechanics model |
| 5 | +by incorporating Ablation Behavior. |
| 6 | +
|
| 7 | +··This module provides functionality for ablation, primarily for material point removal. |
| 8 | +··Uses an 'exist' state to indicate ablation status, which relates to ablation amount. |
| 9 | +··Specific chemical processes are configured in the ablation file, with flexible complexity. |
| 10 | +··Core functionality identifies new boundary points, |
| 11 | + and more critically, establishes new watertight boundaries for subsequent fluid-structure interaction. |
| 12 | +··Ablated points can be modeled to describe subsequent effects. |
| 13 | +··The variation of properties with temperature is under consideration. |
| 14 | +
|
| 15 | +··Basically, Materials model are as same as BBTMAMaterial, only times itergral is different. |
| 16 | +""" |
| 17 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:position}) |
| 18 | + return copy(system.position) |
| 19 | +end |
| 20 | + |
| 21 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:displacement}) |
| 22 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 23 | +end |
| 24 | + |
| 25 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:velocity}) |
| 26 | + return zeros(3,size(system.position, 2)) |
| 27 | +end |
| 28 | + |
| 29 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:velocity_half}) |
| 30 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 31 | +end |
| 32 | + |
| 33 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:velocity_half_old}) |
| 34 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 35 | +end |
| 36 | + |
| 37 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:acceleration}) |
| 38 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 39 | +end |
| 40 | + |
| 41 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:b_int}) |
| 42 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 43 | +end |
| 44 | + |
| 45 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:b_int_old}) |
| 46 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 47 | +end |
| 48 | + |
| 49 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:b_ext}) |
| 50 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 51 | +end |
| 52 | + |
| 53 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:density_matrix}) |
| 54 | + return zeros(3, Peridynamics.get_n_loc_points(system)) |
| 55 | +end |
| 56 | + |
| 57 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:temperature}) |
| 58 | + return zeros(1, Peridynamics.size(system.position, 2)) |
| 59 | +end |
| 60 | + |
| 61 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:pflux}) |
| 62 | + return zeros(1, Peridynamics.get_n_loc_points(system)) |
| 63 | +end |
| 64 | + |
| 65 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:hsource}) |
| 66 | + return zeros(1, Peridynamics.get_n_loc_points(system)) |
| 67 | +end |
| 68 | + |
| 69 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:ablation_deep}) |
| 70 | + return zeros(1, Peridynamics.get_n_loc_points(system)) |
| 71 | +end |
| 72 | + |
| 73 | +function Peridynamics.init_field_solver(::Dualstep_ablation, system::Peridynamics.AbstractSystem, ::Val{:exist}) |
| 74 | + return ones(Int, 1, size(system.position, 2)) |
| 75 | +end |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
0 commit comments