Skip to content

Commit fc26d3d

Browse files
pressure boundary
1 parent 220126b commit fc26d3d

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

data/default_rules.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,51 @@
817817
"type": "list",
818818
"doc": "//TODO"
819819
},
820+
{
821+
"pointer":"/boundary_conditions/pressure_boundary/*",
822+
"type":"object",
823+
"default": null,
824+
"required":[
825+
"id",
826+
"value"
827+
],
828+
"optional":[
829+
"dimension"
830+
],
831+
"doc": "Pressure boundary condition"
832+
},
833+
{
834+
"pointer":"/boundary_conditions/pressure_boundary/*/id",
835+
"type":"int",
836+
"doc": "id of Pressure boundary condition"
837+
},
838+
{
839+
"pointer":"/boundary_conditions/pressure_boundary/*/value",
840+
"type":"list",
841+
"doc": "values of Pressure boundary condition for each dimension"
842+
},
843+
{
844+
"pointer":"/boundary_conditions/pressure_boundary/*/value/*",
845+
"type":"string",
846+
"doc": "values of Pressure boundary condition for each dimension"
847+
},
848+
{
849+
"pointer":"/boundary_conditions/pressure_boundary/*/value/*",
850+
"type":"float",
851+
"doc": "values of Pressure boundary condition for each dimension"
852+
},
853+
{
854+
"pointer":"/boundary_conditions/pressure_boundary/*/dimension",
855+
"type":"list",
856+
"default": [true, true, true],
857+
"doc": "If the dimension is under Pressure boundary condition"
858+
},
859+
{
860+
"pointer":"/boundary_conditions/pressure_boundary/*/dimension/*",
861+
"type":"bool",
862+
"default": true,
863+
"doc": "If the dimension is under Pressure boundary condition"
864+
},
820865
{
821866
"pointer": "/boundary_conditions/obstacle_displacements",
822867
"default": [],

data/rule_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def parse(default:json, prepending = ''):
1818
if type(v) == dict:
1919
key = prepending + "/" + k
2020
tmp = {}
21-
tmp["pointers"] = key
21+
tmp["pointer"] = key
2222
tmp['default'] = None
2323
tmp['type'] = 'object'
2424
tmp['optional'] = [*v.keys()]

0 commit comments

Comments
 (0)