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
2e51eb99
Commit
2e51eb99
authored
9 months ago
by
Alexandre Gangloff
Browse files
Options
Downloads
Patches
Plain Diff
Add a space order 2 br computation function
parent
a21f0b20
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/Order2AcousticSolver.cpp
+883
-0
883 additions, 0 deletions
src/scheme/Order2AcousticSolver.cpp
src/scheme/Order2AcousticSolver.hpp
+84
-0
84 additions, 0 deletions
src/scheme/Order2AcousticSolver.hpp
with
968 additions
and
0 deletions
src/scheme/CMakeLists.txt
+
1
−
0
View file @
2e51eb99
...
@@ -14,6 +14,7 @@ add_library(
...
@@ -14,6 +14,7 @@ add_library(
FluxingAdvectionSolver.cpp
FluxingAdvectionSolver.cpp
HyperelasticSolver.cpp
HyperelasticSolver.cpp
PolynomialReconstruction.cpp
PolynomialReconstruction.cpp
Order2AcousticSolver.cpp
)
)
target_link_libraries
(
target_link_libraries
(
...
...
This diff is collapsed.
Click to expand it.
src/scheme/Order2AcousticSolver.cpp
0 → 100644
+
883
−
0
View file @
2e51eb99
This diff is collapsed.
Click to expand it.
src/scheme/Order2AcousticSolver.hpp
0 → 100644
+
84
−
0
View file @
2e51eb99
#ifndef ORDER2_ACOUSTIC_SOLVER_HPP
#define ORDER2_ACOUSTIC_SOLVER_HPP
#include
<mesh/MeshTraits.hpp>
#include
<memory>
#include
<tuple>
#include
<vector>
class
DiscreteFunctionVariant
;
class
IBoundaryConditionDescriptor
;
class
MeshVariant
;
class
ItemValueVariant
;
class
SubItemValuePerItemVariant
;
class
Order2AcousticSolverHandler
{
public:
enum
class
SolverType
{
Glace
,
Eucclhyd
};
private
:
struct
IOrder2AcousticSolver
{
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
>&
c
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
u
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
p
,
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
>>
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
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
>>
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
>&
c
,
const
std
::
shared_ptr
<
const
DiscreteFunctionVariant
>&
p
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
)
const
=
0
;
IOrder2AcousticSolver
()
=
default
;
IOrder2AcousticSolver
(
IOrder2AcousticSolver
&&
)
=
default
;
IOrder2AcousticSolver
&
operator
=
(
IOrder2AcousticSolver
&&
)
=
default
;
virtual
~
IOrder2AcousticSolver
()
=
default
;
};
template
<
MeshConcept
MeshType
>
class
Order2AcousticSolver
;
std
::
unique_ptr
<
IOrder2AcousticSolver
>
m_acoustic_solver
;
public
:
const
IOrder2AcousticSolver
&
solver
()
const
{
return
*
m_acoustic_solver
;
}
Order2AcousticSolverHandler
(
const
std
::
shared_ptr
<
const
MeshVariant
>&
mesh_v
);
};
#endif // ACOUSTIC_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
register
or
sign in
to comment