Skip to content

Commit 04288db

Browse files
authored
Merge pull request #52 from MultiSimOLab/cleanup
2 parents 695eaaf + ca15cf2 commit 04288db

5 files changed

Lines changed: 3 additions & 82 deletions

File tree

Project.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "1.0.0-DEV"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
8-
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
98
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
109
DrWatson = "634d3b9d-ee7a-5ddf-bec9-22491ea816e1"
1110
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
@@ -18,10 +17,8 @@ IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"
1817
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1918
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2019
PartitionedArrays = "5a9dfac6-5c52-46f7-8278-5e2210713be9"
21-
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
2220
Profile = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"
2321
ProfileView = "c46f51b8-102a-5cf2-8d2c-8597cb0e0da7"
2422
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
2523
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
26-
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
2724
WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192"

src/ComputationalModels/ComputationalModels.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module ComputationalModels
2-
using DrWatson
32
using HyperFEM.PhysicalModels
43
using HyperFEM.Solvers
54

@@ -13,7 +12,7 @@ import Gridap: solve!
1312

1413
using BlockArrays
1514
using GridapPETSc, GridapPETSc.PETSC
16-
using GridapPETSc: PetscScalar, PetscInt, PETSC, @check_error_code
15+
using GridapPETSc: PetscScalar, PetscInt, PETSC
1716

1817
using GridapDistributed
1918
using GridapDistributed: DistributedDiscreteModel, DistributedTriangulation,
@@ -22,21 +21,18 @@ using GridapDistributed: DistributedDiscreteModel, DistributedTriangulation,
2221
DistributedMultiFieldFEBasis, BlockPMatrix, BlockPVector, change_ghost
2322

2423
using PartitionedArrays
25-
using PartitionedArrays: getany, tuple_of_arrays, matching_ghost_indices
24+
using PartitionedArrays: getany
2625

2726
using GridapSolvers
2827
using GridapSolvers.LinearSolvers, GridapSolvers.NonlinearSolvers, GridapSolvers.BlockSolvers
2928
using GridapSolvers.SolverInterfaces: SolverVerboseLevel, SOLVER_VERBOSE_NONE, SOLVER_VERBOSE_LOW, SOLVER_VERBOSE_HIGH
30-
# using GridapSolvers.SolverInterfaces: init!, update!, finalize!
3129
using GridapSolvers.SolverInterfaces: finished, print_message, converged
3230

3331
using LinearAlgebra
3432
using WriteVTK
3533

3634
using GridapGmsh
3735
using GridapGmsh: GmshDiscreteModel
38-
using GridapGmsh:@check_if_loaded
39-
# using Gmsh: Gmsh, gmsh
4036

4137

4238
include("BoundaryConditions.jl")
@@ -71,7 +67,6 @@ export StaticNonlinearModel
7167
export DynamicNonlinearModel
7268
export StaticLinearModel
7369
export solve!
74-
# export evaluate!
7570
export dirichlet_preconditioning!
7671
export get_state
7772
export get_measure

src/ComputationalModels/GridapExtras.jl

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
11
using Gridap.CellData
22

3-
# function Gridap.CellData.evaluate!(cache,f::CellState,x::CellPoint)
4-
# f.values
5-
# end
6-
7-
# function GridapGmsh.GmshDiscreteModel(mshfile; terminal=1, renumber=true)
8-
9-
# @check_if_loaded
10-
# if !isfile(mshfile)
11-
# error("Msh file not found: $mshfile")
12-
# end
13-
14-
# gmsh.initialize()
15-
# gmsh.option.setNumber("General.Terminal", terminal)
16-
# gmsh.option.setNumber("Mesh.SaveAll", 1)
17-
# gmsh.option.setNumber("Mesh.MedImportGroupsOfNodes", 1)
18-
# gmsh.open(mshfile)
19-
# renumber && gmsh.model.mesh.renumberNodes()
20-
# renumber && gmsh.model.mesh.renumberElements()
21-
# model = GmshDiscreteModel(gmsh)
22-
# gmsh.finalize()
23-
# model
24-
# end
25-
26-
# function Gridap.CellData.evaluate!(cache,f::CellState,x::CellPoint)
27-
# f.values
28-
# end
29-
303

314
function repeat_spaces(nblocks::Integer,U0::FESpace,V0::FESpace)
325
U = MultiFieldFESpace([U0 for i in 1:nblocks];style=BlockMultiFieldStyle())

src/PhysicalModels/PhysicalModels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module PhysicalModels
33
using Gridap
44
using Gridap.CellData
55
using Gridap.Helpers
6-
using DrWatson
76

7+
using DrWatson
88
using ForwardDiff
99
using LinearAlgebra
1010
using ..TensorAlgebra

src/WeakForms/WeakForms.jl

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -422,48 +422,4 @@ function jacobian(physicalmodel::ThermoElectroMech_PINNs, kine::NTuple{2,Kinemat
422422
end
423423

424424

425-
426-
427-
428-
429-
430-
# ===================
431-
# Time Integrators+
432-
# ===================
433-
434-
# abstract type TimeIntegrator end
435-
436-
# struct MidPoint <: TimeIntegrator
437-
# res::A
438-
# jac::B
439-
# params::A
440-
# function MidPoint(res_,jac_, dΩ; αray = 0.4, ρ = 1.0, Δt = 5.0)
441-
442-
# res(u, v) = mass_term(u, v, 2.0 * ρ / Δt^2, dΩ)-
443-
# 0.5 * res_(u, v)+
444-
# 0.5 * res_(u⁻, v)+
445-
446-
447-
# res(t, u⁻, vh) = (u, v) -> mass_term(u, v, 2.0 * ρ / Δt^2, dΩ) -
448-
# mass_term(u⁻, v, 2.0 * ρ / Δt^2, dΩ) -
449-
# mass_term(vh, v, 2.0 * ρ / Δt, dΩ) +
450-
# 0.5 * res_(physmodel, u, v, dΩ) +
451-
# 0.5 * res_(physmodel, u⁻, v, dΩ) +
452-
# mass_term(u, v, αray * ρ / Δt, dΩ) -
453-
# mass_term(u⁻, v, αray * ρ / Δt, dΩ)
454-
455-
456-
# params=(; αray = αray, ρ = ρ, Δt = Δt)
457-
# A,B,C= typeof(res), typeof(jac), typeof(params)
458-
# new{A,B,C}(res,jac,params)
459-
# end
460-
# end
461-
462-
# Midpoint Integrator
463-
# -------------------
464-
# function residual(, (u, φ), (v, vφ), dΩ)
465-
466-
# end
467-
468-
469425
end

0 commit comments

Comments
 (0)