Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
acd58f81
Commit
acd58f81
authored
9 months ago
by
Alexandre Gangloff
Browse files
Options
Downloads
Patches
Plain Diff
Add a new class Order2HyperelasticSolver
parent
7fd7d961
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/scheme/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/scheme/CMakeLists.txt
src/scheme/Order2HyperelasticSolver.cpp
+932
-0
932 additions, 0 deletions
src/scheme/Order2HyperelasticSolver.cpp
src/scheme/Order2HyperelasticSolver.hpp
+90
-0
90 additions, 0 deletions
src/scheme/Order2HyperelasticSolver.hpp
with
1023 additions
and
0 deletions
src/scheme/CMakeLists.txt
+
1
−
0
View file @
acd58f81
...
@@ -15,6 +15,7 @@ add_library(
...
@@ -15,6 +15,7 @@ add_library(
HyperelasticSolver.cpp
HyperelasticSolver.cpp
PolynomialReconstruction.cpp
PolynomialReconstruction.cpp
Order2AcousticSolver.cpp
Order2AcousticSolver.cpp
Order2HyperelasticSolver.cpp
)
)
target_link_libraries
(
target_link_libraries
(
...
...
This diff is collapsed.
Click to expand it.
src/scheme/Order2HyperelasticSolver.cpp
0 → 100644
+
932
−
0
View file @
acd58f81
This diff is collapsed.
Click to expand it.
src/scheme/Order2HyperelasticSolver.hpp
0 → 100644
+
90
−
0
View file @
acd58f81
#ifndef ORDER2_HYPERELASTIC_SOLVER_HPP
#define ORDER2_HYPERELASTIC_SOLVER_HPP
#include
<mesh/MeshTraits.hpp>
#include
<memory>
#include
<tuple>
#include
<vector>
class
IBoundaryConditionDescriptor
;
class
MeshVariant
;
class
ItemValueVariant
;
class
SubItemValuePerItemVariant
;
class
DiscreteFunctionVariant
;
class
Order2HyperelasticSolverHandler
{
public:
enum
class
SolverType
{
Glace
,
Eucclhyd
};
private
:
struct
IOrder2HyperelasticSolver
{
virtual
std
::
tuple
<
const
std
::
shared_ptr
<
const
ItemValueVariant
>
,
const
std
::
shared_ptr
<
const
SubItemValuePerItemVariant
>>
compute_fluxes
(
const
SolverType
&
solver_type
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
rho
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
aL
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
aT
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
u
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
sigma
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
=
0
;
virtual
std
::
tuple
<
std
::
shared_ptr
<
const
MeshVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>>
apply_fluxes
(
const
double
&
dt
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
rho
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
u
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
E
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
CG
,
const
std
::
shared_ptr
<
const
ItemValueVariant
>&
ur
,
const
std
::
shared_ptr
<
const
SubItemValuePerItemVariant
>&
Fjr
)
const
=
0
;
virtual
std
::
tuple
<
std
::
shared_ptr
<
const
MeshVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>
,
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>>
apply
(
const
SolverType
&
solver_type
,
const
double
&
dt
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
rho
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
u
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
E
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
CG
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
aL
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
aT
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
p
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
=
0
;
IOrder2HyperelasticSolver
()
=
default
;
IOrder2HyperelasticSolver
(
IOrder2HyperelasticSolver
&&
)
=
default
;
IOrder2HyperelasticSolver
&
operator
=
(
IOrder2HyperelasticSolver
&&
)
=
default
;
virtual
~
IOrder2HyperelasticSolver
()
=
default
;
};
template
<
MeshConcept
MeshType
>
class
Order2HyperelasticSolver
;
std
::
unique_ptr
<
IOrder2HyperelasticSolver
>
m_hyperelastic_solver
;
public
:
const
IOrder2HyperelasticSolver
&
solver
()
const
{
return
*
m_hyperelastic_solver
;
}
Order2HyperelasticSolverHandler
(
const
std
::
shared_ptr
<
const
MeshVariant
>&
mesh
);
};
#endif // HYPERELASTIC_SOLVER_HPP
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment