Skip to content

Commit

Permalink
Introduce Periodic BC with Original/Duplicate Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaGhaffari committed Jun 20, 2024
1 parent b0bde50 commit 770f25c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/cube/cube_periodic.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"Model":
{
"Mesh": "mesh/cube_periodic.mesh",
"Mesh": "mesh/cube_periodic.msh",
"L0": 1.0e-2, // cm
"Refinement":
{
Expand Down Expand Up @@ -38,6 +38,15 @@
},
"Boundaries":
{
"Periodic":
{
"OriginalAttributes": [1, 2],
"DuplicateAttributes": [6, 4]
},
"PEC":
{
"Attributes": [3, 5]
}
},
"Solver":
{
Expand Down
30 changes: 30 additions & 0 deletions scripts/schema/config/boundaries.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,22 @@
}
}
},
"Periodic":
{
"type": "array",
"additionalItems": false,
"items":
{
"type": "object",
"additionalProperties": false,
"required": ["OriginalAttributes", "DuplicateAttributes"],
"properties":
{
"OriginalAttributes": { "$ref": "#/$defs/OriginalAttributes" },
"DuplicateAttributes": { "$ref": "#/$defs/DuplicateAttributes" }
}
}
},
"Postprocessing":
{
"type": "object",
Expand Down Expand Up @@ -284,6 +300,20 @@
"items": { "type": "integer"},
"minItems": 1
},
"OriginalAttributes":
{
"type": "array",
"additionalItems": false,
"items": { "type": "integer"},
"minItems": 1
},
"DuplicateAttributes":
{
"type": "array",
"additionalItems": false,
"items": { "type": "integer"},
"minItems": 1
},
"Direction":
{
"anyOf":
Expand Down

0 comments on commit 770f25c

Please sign in to comment.