Skip to content

Commit eba1d4b

Browse files
committed
change 'thermstep_ansi' to 'thermstep_anis'
1 parent 3cb408e commit eba1d4b

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

src/HyperFSI.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export BBTMaterial, BBTMMaterial, BBTTMaterial, BBTTAMaterial, BBTMAMaterial, BB
3131
export hsource_bc!, hsource_databc!, temperature_ic!, temperature_bc!, temperature_databc!, second_bcs!, find_sec_bcs_points
3232

3333
# Running simulations
34-
export Thermstep, Thermomechstep, Dualstep, Thermstep_ablation, Thermomechstep_ablation, Dualstep_ablation, Thermstep_ansi,
34+
export Thermstep, Thermomechstep, Dualstep, Thermstep_ablation, Thermomechstep_ablation, Dualstep_ablation, Thermstep_anis,
3535
Flowstep, FSI_job, FSI_submit, IBM2D, Bcstruct
3636

3737

src/structure/physics/anisotropic/bond_based_thermal_diffusion.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,43 +124,43 @@ end
124124
@pointfield hsource::Matrix{Float64}
125125
end
126126

127-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:position})
127+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:position})
128128
return copy(system.position)
129129
end
130130

131-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:displacement})
131+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:displacement})
132132
return zeros(3, Peridynamics.get_n_loc_points(system))
133133
end
134134

135-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:velocity})
135+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:velocity})
136136
return zeros(3, Peridynamics.get_n_loc_points(system))
137137
end
138138

139-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:velocity_half})
139+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:velocity_half})
140140
return zeros(3, Peridynamics.get_n_loc_points(system))
141141
end
142142

143-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:acceleration})
143+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:acceleration})
144144
return zeros(3, Peridynamics.get_n_loc_points(system))
145145
end
146146

147-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:b_int})
147+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:b_int})
148148
return zeros(3, Peridynamics.get_n_loc_points(system))
149149
end
150150

151-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:b_ext})
151+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:b_ext})
152152
return zeros(3, Peridynamics.get_n_loc_points(system))
153153
end
154154

155-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:temperature})
155+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:temperature})
156156
return zeros(1, Peridynamics.size(system.position, 2))
157157
end
158158

159-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:pflux})
159+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:pflux})
160160
return zeros(1, Peridynamics.get_n_loc_points(system))
161161
end
162162

163-
function Peridynamics.init_field_solver(::Thermstep_ansi, system::Peridynamics.AbstractSystem, ::Val{:hsource})
163+
function Peridynamics.init_field_solver(::Thermstep_anis, system::Peridynamics.AbstractSystem, ::Val{:hsource})
164164
return zeros(1, Peridynamics.get_n_loc_points(system))
165165
end
166166

src/structure/time_solvers/thermstep_anis.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
2-
Thermstep_ansi(; kwargs...) for Anisotropic_thermal_timestep.
2+
Thermstep_anis(; kwargs...) for Anisotropic_thermal_timestep.
33
"""
4-
mutable struct Thermstep_ansi <: Peridynamics.AbstractTimeSolver
4+
mutable struct Thermstep_anis <: Peridynamics.AbstractTimeSolver
55
end_time::Float64
66
n_steps::Int
77
Δt::Float64
88
safety_factor::Float64
99

10-
function Thermstep_ansi(; time::Real=-1, steps::Int=-1, stepsize::Real=-1, safety_factor::Real=0.7)
10+
function Thermstep_anis(; time::Real=-1, steps::Int=-1, stepsize::Real=-1, safety_factor::Real=0.7)
1111
if time < 0 && steps < 0
1212
msg = "specify either time or number of steps!"
1313
throw(ArgumentError(msg))
@@ -23,7 +23,7 @@ mutable struct Thermstep_ansi <: Peridynamics.AbstractTimeSolver
2323
end
2424
end
2525

26-
function Base.show(io::IO, @nospecialize(vv::Thermstep_ansi))
26+
function Base.show(io::IO, @nospecialize(vv::Thermstep_anis))
2727
print(io, typeof(vv))
2828
fields = Vector{Symbol}()
2929
for field in fieldnames(typeof(vv))
@@ -36,7 +36,7 @@ function Base.show(io::IO, @nospecialize(vv::Thermstep_ansi))
3636
return nothing
3737
end
3838

39-
function Base.show(io::IO, ::MIME"text/plain", @nospecialize(vv::Thermstep_ansi))
39+
function Base.show(io::IO, ::MIME"text/plain", @nospecialize(vv::Thermstep_anis))
4040
if get(io, :compact, false)
4141
show(io, vv)
4242
else
@@ -53,7 +53,7 @@ function Base.show(io::IO, ::MIME"text/plain", @nospecialize(vv::Thermstep_ansi)
5353
return nothing
5454
end
5555

56-
function Peridynamics.init_time_solver!(vv::Thermstep_ansi, dh::Peridynamics.AbstractDataHandler)
56+
function Peridynamics.init_time_solver!(vv::Thermstep_anis, dh::Peridynamics.AbstractDataHandler)
5757
if vv.Δt < 0
5858
vv.Δt = calc_stable_timestep_th(dh, vv.safety_factor)
5959
else
@@ -74,7 +74,7 @@ function Peridynamics.init_time_solver!(vv::Thermstep_ansi, dh::Peridynamics.Abs
7474
return nothing
7575
end
7676

77-
function Thermstep_check(vv::Thermstep_ansi)
77+
function Thermstep_check(vv::Thermstep_anis)
7878
if vv.end_time < 0
7979
error("`end_time` of Thermstep smaller than zero!\n")
8080
end
@@ -130,20 +130,20 @@ function thermstep_pd!(dh::Peridynamics.AbstractThreadsBodyDataHandler, options:
130130
return nothing
131131
end
132132

133-
function Peridynamics.req_point_data_fields_timesolver(::Type{<:Thermstep_ansi})
133+
function Peridynamics.req_point_data_fields_timesolver(::Type{<:Thermstep_anis})
134134
fields = (:position, :temperature, :pflux, :hsource)
135135
return fields
136136
end
137137

138-
function Peridynamics.req_bond_data_fields_timesolver(::Type{<:Thermstep_ansi})
138+
function Peridynamics.req_bond_data_fields_timesolver(::Type{<:Thermstep_anis})
139139
return ()
140140
end
141141

142-
function Peridynamics.req_data_fields_timesolver(::Type{<:Thermstep_ansi})
142+
function Peridynamics.req_data_fields_timesolver(::Type{<:Thermstep_anis})
143143
return ()
144144
end
145145

146-
function Peridynamics.log_timesolver(options::Peridynamics.AbstractJobOptions, vv::Thermstep_ansi)
146+
function Peridynamics.log_timesolver(options::Peridynamics.AbstractJobOptions, vv::Thermstep_anis)
147147
msg = "VELOCITY VERLET TIME SOLVER\n"
148148
msg *= Peridynamics.msg_qty("number of time steps", vv.n_steps)
149149
msg *= Peridynamics.msg_qty("time step size", vv.Δt)

0 commit comments

Comments
 (0)