Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MoReFEM
CoreLibrary
MoReFEM
Commits
de8343ae
Commit
de8343ae
authored
May 27, 2020
by
GILLES Sebastien
Browse files
#1443
Test load prepartition god of dof: add boundary conditions in Lua.
parent
63660deb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Sources/Test/FiniteElementSpace/LoadPrepartitionedGodOfDof/InputData.hpp
View file @
de8343ae
...
...
@@ -23,6 +23,7 @@
# include "Core/InputData/Instances/FElt/FEltSpace.hpp"
# include "Core/InputData/Instances/Result.hpp"
# include "Core/InputData/Instances/PrepartitionedData.hpp"
# include "Core/InputData/Instances/DirichletBoundaryCondition/DirichletBoundaryCondition.hpp"
namespace
MoReFEM
...
...
@@ -97,6 +98,9 @@ namespace MoReFEM
InputDataNS
::
FEltSpace
<
EnumUnderlyingType
(
FEltSpaceIndex
::
separated
)
>
,
InputDataNS
::
FEltSpace
<
EnumUnderlyingType
(
FEltSpaceIndex
::
mixed
)
>
,
InputDataNS
::
DirichletBoundaryCondition
<
EnumUnderlyingType
(
UnknownIndex
::
scalar
)
>
,
InputDataNS
::
DirichletBoundaryCondition
<
EnumUnderlyingType
(
UnknownIndex
::
vectorial
)
>
,
InputDataNS
::
Petsc
<
original
>
,
InputDataNS
::
Result
,
...
...
Sources/Test/FiniteElementSpace/LoadPrepartitionedGodOfDof/demo_quad.lua
View file @
de8343ae
...
...
@@ -320,6 +320,90 @@ Petsc1 = {
}
-- Petsc1
EssentialBoundaryCondition1
=
{
-- Name of the boundary condition (must be unique).
-- Expected format: "VALUE"
name
=
'scalar'
,
-- Comp1, Comp2 or Comp3
-- Expected format: "VALUE"
-- Constraint: value_in(v, {'Comp1', 'Comp2', 'Comp3', 'Comp12', 'Comp23', 'Comp13', 'Comp123'})
component
=
'Comp1'
,
-- Name of the unknown addressed by the boundary condition.
-- Expected format: "VALUE"
unknown
=
'scalar'
,
-- Values at each of the relevant component.
-- Expected format: { VALUE1, VALUE2, ...}
value
=
{
5
},
-- Index of the domain onto which essential boundary condition is defined.
-- Expected format: VALUE
domain_index
=
1
,
-- Whether the values of the boundary condition may vary over time.
-- Expected format: 'true' or 'false' (without the quote)
is_mutable
=
false
,
-- Whether a dof of this boundary condition may also belong to another one. This highlights an ill-defined
-- model in most cases, but I nonetheless need it for FSI/ALE.
-- Expected format: 'true' or 'false' (without the quote)
may_overlap
=
false
}
-- EssentialBoundaryCondition1
EssentialBoundaryCondition2
=
{
-- Name of the boundary condition (must be unique).
-- Expected format: "VALUE"
name
=
'vectorial'
,
-- Comp1, Comp2 or Comp3
-- Expected format: "VALUE"
-- Constraint: value_in(v, {'Comp1', 'Comp2', 'Comp3', 'Comp12', 'Comp23', 'Comp13', 'Comp123'})
component
=
'Comp123'
,
-- Name of the unknown addressed by the boundary condition.
-- Expected format: "VALUE"
unknown
=
'scalar'
,
-- Values at each of the relevant component.
-- Expected format: { VALUE1, VALUE2, ...}
value
=
{
10
,
20
,
30
},
-- Index of the domain onto which essential boundary condition is defined.
-- Expected format: VALUE
domain_index
=
1
,
-- Whether the values of the boundary condition may vary over time.
-- Expected format: 'true' or 'false' (without the quote)
is_mutable
=
false
,
-- Whether a dof of this boundary condition may also belong to another one. This highlights an ill-defined
-- model in most cases, but I nonetheless need it for FSI/ALE.
-- Expected format: 'true' or 'false' (without the quote)
may_overlap
=
false
}
-- EssentialBoundaryCondition2
Result
=
{
...
...
Sources/Test/FiniteElementSpace/LoadPrepartitionedGodOfDof/demo_tri.lua
View file @
de8343ae
...
...
@@ -320,6 +320,92 @@ Petsc1 = {
}
-- Petsc1
EssentialBoundaryCondition1
=
{
-- Name of the boundary condition (must be unique).
-- Expected format: "VALUE"
name
=
'scalar'
,
-- Comp1, Comp2 or Comp3
-- Expected format: "VALUE"
-- Constraint: value_in(v, {'Comp1', 'Comp2', 'Comp3', 'Comp12', 'Comp23', 'Comp13', 'Comp123'})
component
=
'Comp1'
,
-- Name of the unknown addressed by the boundary condition.
-- Expected format: "VALUE"
unknown
=
'scalar'
,
-- Values at each of the relevant component.
-- Expected format: { VALUE1, VALUE2, ...}
value
=
{
5
},
-- Index of the domain onto which essential boundary condition is defined.
-- Expected format: VALUE
domain_index
=
1
,
-- Whether the values of the boundary condition may vary over time.
-- Expected format: 'true' or 'false' (without the quote)
is_mutable
=
false
,
-- Whether a dof of this boundary condition may also belong to another one. This highlights an ill-defined
-- model in most cases, but I nonetheless need it for FSI/ALE.
-- Expected format: 'true' or 'false' (without the quote)
may_overlap
=
false
}
-- EssentialBoundaryCondition1
EssentialBoundaryCondition2
=
{
-- Name of the boundary condition (must be unique).
-- Expected format: "VALUE"
name
=
'vectorial'
,
-- Comp1, Comp2 or Comp3
-- Expected format: "VALUE"
-- Constraint: value_in(v, {'Comp1', 'Comp2', 'Comp3', 'Comp12', 'Comp23', 'Comp13', 'Comp123'})
component
=
'Comp123'
,
-- Name of the unknown addressed by the boundary condition.
-- Expected format: "VALUE"
unknown
=
'scalar'
,
-- Values at each of the relevant component.
-- Expected format: { VALUE1, VALUE2, ...}
value
=
{
10
,
20
,
30
},
-- Index of the domain onto which essential boundary condition is defined.
-- Expected format: VALUE
domain_index
=
1
,
-- Whether the values of the boundary condition may vary over time.
-- Expected format: 'true' or 'false' (without the quote)
is_mutable
=
false
,
-- Whether a dof of this boundary condition may also belong to another one. This highlights an ill-defined
-- model in most cases, but I nonetheless need it for FSI/ALE.
-- Expected format: 'true' or 'false' (without the quote)
may_overlap
=
false
}
-- EssentialBoundaryCondition2
Result
=
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment