Skip to content

Commit 022f8dc

Browse files
committed
initial stab at schema for pfhub use case
1 parent 7da2e1b commit 022f8dc

File tree

1 file changed

+158
-0
lines changed

1 file changed

+158
-0
lines changed

working-examples/pfhub.yaml

+158
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# Use here
2+
# - PhaseField: would be our new schema standard
3+
# - test with schema.org validator
4+
# Also, see https://pages.nist.gov/material-schema/
5+
---
6+
type: Simulaton
7+
context: "http://schema.org/"
8+
id: "https://phasefieldschema.org/#Simulation"
9+
10+
keywords: ???
11+
12+
dateCreated: ???
13+
14+
description: a
15+
16+
contributor:
17+
- type: Person
18+
...
19+
20+
problemSpecification: # type???
21+
type: MathSolver # ????????
22+
abstract: "blah"
23+
description: ""
24+
keywords:
25+
- type: DefinedTerm
26+
name: cahnHilliard
27+
inDefinedTermSet: https://phasefieldschema.org/equationTerms
28+
application: none
29+
identifier: https://pages.nist.gov/benchmark1.a
30+
version: "1.a"
31+
mathExpression: # from https://schema.org/MathSolver and takes LaTex or Ascii-Math
32+
33+
implementation:
34+
codeRepository:
35+
36+
softwareDependencies:
37+
- type: SoftwareSourceCode # from codemeta.json spec
38+
description:
39+
name:
40+
codeRespository:
41+
42+
inputFiles:
43+
- type: SoftwareSourceCode # https://schema.org/Code
44+
name: run.py
45+
url:
46+
- type: SoftwareSourceCode
47+
name: initial_conditions.npz
48+
type: application/zip
49+
url:
50+
51+
descriptors:
52+
- type: PropertyValue
53+
name: orderOfAccuracy
54+
valueReference:
55+
type: DefinedTerm
56+
inDefinedTermSet: https://phasefieldschema.org/accuracyTerms
57+
value: 2
58+
59+
- type: PropetryValue
60+
name: finiteVolume
61+
valueReference:
62+
type: DefinedTerm
63+
inDefinedTermSet: https://phasefieldschema.org/discretizationTerms
64+
65+
- type: PropertyValue
66+
name: adaptiveMeshing
67+
description: >-
68+
"This simulation uses adaptive gridding. The max and min
69+
values refer to the degress of freedeom"
70+
valueRefernence:
71+
type: DefinedTerm
72+
inDefinedTermSet: https://phasefieldschema.org/meshingTerms
73+
maxValue: 1000000
74+
minValue: 10000
75+
76+
- type: PropertyValue
77+
name: diffusionCoefficient
78+
valueReference:
79+
type: DefinedTerm
80+
inDefinedTermSet: https://phasefieldschema.org/materialTerms
81+
description: "the diffusion coefficient is unity for this problem"
82+
value: 1.0
83+
unitCode: null
84+
85+
- type: PropertyValue
86+
name: "initial conditions"
87+
valueReference:
88+
type: DefinedTerm
89+
inDefinedTermSet: https://phasefieldschema.org/variables
90+
name: PhaseField
91+
value: 0.0
92+
93+
summary: a
94+
95+
schema:
96+
url: ...
97+
98+
contributors:
99+
- type: Person
100+
...
101+
102+
103+
104+
105+
# See
106+
# - https://github.com/ESIPFed/science-on-schema.org/blob/master/examples/dataset/variableMeasured-gridDataset.jsonld
107+
# - https://github.com/ESIPFed/science-on-schema.org/blob/master/examples/dataset/variableMeasured-gridDataset.jsonld
108+
# - https://earth-env-data-science.github.io/lectures/data.html
109+
datasets: # See https://github.com/ESIPFed/science-on-schema.org/blob/master/guides/Dataset.md
110+
- type: Dataset
111+
name: "Free energy versus time"
112+
description: "Post-processed extensive values for solid fraction and free energy"
113+
url: https://zenondo.org/records/1234/data.csv
114+
variableMeasured:
115+
- type: PropertyValue
116+
name: free_energy
117+
valueReference:
118+
inDefinedTermSet: https://phasefieldschema.org/variables
119+
name: FreeEnergy
120+
unitText: "seconds"
121+
- type: PropertyValue
122+
name: time
123+
valueReference:
124+
inDefinedTermSet: https://phasefieldschema.org/variables
125+
name: Time
126+
unitCode:
127+
- type: PropertyValue
128+
name: solid_fraction
129+
valueReference:
130+
inDefinedTermSet: https://phasefieldschema.org/variables
131+
name: SolidFraction
132+
unitText:
133+
- type: Dataset
134+
name: "Initial Conditions"
135+
description: "Field of initial conditions used in this simulation"
136+
url: https://zenondo.org/records/1234/data.??? # netcdf file for example
137+
variableMeasured:
138+
- type: PropertyValue
139+
name: phi
140+
valueReference:
141+
inDefinedTermSet: https://phasefieldschema.org/variables
142+
name: PhaseField
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+

0 commit comments

Comments
 (0)