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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
f378a5f7
Commit
f378a5f7
authored
2 years ago
by
Emmanuel Labourasse
Browse files
Options
Downloads
Patches
Plain Diff
interface for the language
parent
cee83072
No related branches found
No related tags found
1 merge request
!163
Hyperelastic Lagrangian solver (Eucclhyd or Glace-type).
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/language/modules/SchemeModule.cpp
+50
-0
50 additions, 0 deletions
src/language/modules/SchemeModule.cpp
src/scheme/HyperelasticSolver.cpp
+1
-0
1 addition, 0 deletions
src/scheme/HyperelasticSolver.cpp
with
51 additions
and
0 deletions
src/language/modules/SchemeModule.cpp
+
50
−
0
View file @
f378a5f7
...
@@ -370,6 +370,56 @@ SchemeModule::SchemeModule()
...
@@ -370,6 +370,56 @@ SchemeModule::SchemeModule()
));
));
this
->
_addBuiltinFunction
(
"hyperelastic_eucclhyd_solver"
,
std
::
function
(
[](
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
rho
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
u
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
E
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
CG
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
aL
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
aT
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
sigma
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
,
const
double
&
dt
)
->
std
::
tuple
<
std
::
shared_ptr
<
const
IMesh
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>>
{
return
HyperelasticSolverHandler
{
getCommonMesh
({
rho
,
u
,
E
,
CG
,
aL
,
aT
,
sigma
})}
.
solver
()
.
apply
(
HyperelasticSolverHandler
::
SolverType
::
Eucclhyd
,
dt
,
rho
,
u
,
E
,
CG
,
aL
,
aT
,
sigma
,
bc_descriptor_list
);
}
));
this
->
_addBuiltinFunction
(
"hyperelastic_glace_solver"
,
std
::
function
(
[](
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
rho
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
u
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
E
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
CG
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
aL
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
aT
,
const
std
::
shared_ptr
<
const
IDiscreteFunction
>&
sigma
,
const
std
::
vector
<
std
::
shared_ptr
<
const
IBoundaryConditionDescriptor
>>&
bc_descriptor_list
,
const
double
&
dt
)
->
std
::
tuple
<
std
::
shared_ptr
<
const
IMesh
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>
,
std
::
shared_ptr
<
const
IDiscreteFunction
>>
{
return
HyperelasticSolverHandler
{
getCommonMesh
({
rho
,
u
,
E
,
CG
,
aL
,
aT
,
sigma
})}
.
solver
()
.
apply
(
HyperelasticSolverHandler
::
SolverType
::
Glace
,
dt
,
rho
,
u
,
E
,
CG
,
aL
,
aT
,
sigma
,
bc_descriptor_list
);
}
));
this
->
_addBuiltinFunction
(
"apply_acoustic_fluxes"
,
this
->
_addBuiltinFunction
(
"apply_acoustic_fluxes"
,
std
::
function
(
std
::
function
(
...
...
This diff is collapsed.
Click to expand it.
src/scheme/HyperelasticSolver.cpp
+
1
−
0
View file @
f378a5f7
...
@@ -78,6 +78,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
...
@@ -78,6 +78,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
class
FixedBoundaryCondition
;
class
FixedBoundaryCondition
;
class
PressureBoundaryCondition
;
class
PressureBoundaryCondition
;
class
NormalStressBoundaryCondition
;
class
SymmetryBoundaryCondition
;
class
SymmetryBoundaryCondition
;
class
VelocityBoundaryCondition
;
class
VelocityBoundaryCondition
;
...
...
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