Skip to content

Commit 4976d74

Browse files
committed
Fixes related to results based on validate_nexus
1 parent 7c95017 commit 4976d74

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

contributed_definitions/NXmicrostructure_score_results.nxdl.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ https://docs.lammps.org/Howto_triclinic.html NXcg_polyhedron because a parallele
233233
<dim index="1" value="6"/>
234234
</dimensions>
235235
</field>
236-
<field name="boundaries">
236+
<field name="boundaries" optional="true">
237237
<doc>
238238
Name of the boundaries. Left, right, front, back, bottom, top,
239239
The field must have as many entries as there are number_of_boundaries.
@@ -445,9 +445,12 @@ the typically storage-costlier snapshot data-->
445445
<dim index="1" value="n_grains"/>
446446
</dimensions>
447447
</field>
448-
<field name="volume" type="NX_FLOAT" units="NX_VOLUME">
448+
<field name="volume" type="NX_FLOAT" units="NX_UNITLESS">
449449
<doc>
450450
Volume of each grain (partially transformed cells are accounted for).
451+
452+
Values are reported in multiples of cells, needs multiplication with
453+
cell volume!
451454
</doc>
452455
<dimensions rank="1">
453456
<dim index="1" value="n_grains"/>
@@ -560,6 +563,12 @@ the typically storage-costlier snapshot data-->
560563
<dim index="1" value="n_front"/>
561564
</dimensions>
562565
</field>
566+
<field name="recrystallized_fraction" type="NX_FLOAT" optional="true" units="NX_DIMENSIONLESS">
567+
<doc>
568+
The fraction to which the cell is assumed transformed.
569+
</doc>
570+
<dimensions rank="1"/>
571+
</field>
563572
</group>
564573
</group>
565574
</group>

contributed_definitions/nyaml/NXmicrostructure_score_results.yaml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ NXmicrostructure_score_results(NXobject):
144144
rank: 1
145145
dim: (6,)
146146
boundaries:
147+
exists: optional
147148
doc: |
148149
Name of the boundaries. Left, right, front, back, bottom, top,
149150
The field must have as many entries as there are number_of_boundaries.
@@ -331,9 +332,12 @@ NXmicrostructure_score_results(NXobject):
331332
rank: 1
332333
dim: (n_grains,)
333334
volume(NX_FLOAT):
334-
unit: NX_VOLUME
335+
unit: NX_UNITLESS
335336
doc: |
336337
Volume of each grain (partially transformed cells are accounted for).
338+
339+
Values are reported in multiples of cells, needs multiplication with
340+
cell volume!
337341
dimensions:
338342
rank: 1
339343
dim: (n_grains,)
@@ -439,9 +443,16 @@ NXmicrostructure_score_results(NXobject):
439443
dimensions:
440444
rank: 1
441445
dim: (n_front,)
446+
recrystallized_fraction(NX_FLOAT):
447+
exists: optional
448+
unit: NX_DIMENSIONLESS
449+
doc: |
450+
The fraction to which the cell is assumed transformed.
451+
dimensions:
452+
rank: 1
442453

443454
# ++++++++++++++++++++++++++++++++++ SHA HASH ++++++++++++++++++++++++++++++++++
444-
# 89aaa6fe89e36b8ee670588d01185cbf26043f1975cb44415bc5da566ec3b593
455+
# 2ca93fa62100e188ba3c37f8abed4d66fa3177c6916d01f670aba93c65219582
445456
# <?xml version="1.0" encoding="UTF-8"?>
446457
# <?xml-stylesheet type="text/xsl" href="nxdlformat.xsl"?>
447458
# <!--
@@ -677,7 +688,7 @@ NXmicrostructure_score_results(NXobject):
677688
# <dim index="1" value="6"/>
678689
# </dimensions>
679690
# </field>
680-
# <field name="boundaries">
691+
# <field name="boundaries" optional="true">
681692
# <doc>
682693
# Name of the boundaries. Left, right, front, back, bottom, top,
683694
# The field must have as many entries as there are number_of_boundaries.
@@ -889,9 +900,12 @@ NXmicrostructure_score_results(NXobject):
889900
# <dim index="1" value="n_grains"/>
890901
# </dimensions>
891902
# </field>
892-
# <field name="volume" type="NX_FLOAT" units="NX_VOLUME">
903+
# <field name="volume" type="NX_FLOAT" units="NX_UNITLESS">
893904
# <doc>
894905
# Volume of each grain (partially transformed cells are accounted for).
906+
#
907+
# Values are reported in multiples of cells, needs multiplication with
908+
# cell volume!
895909
# </doc>
896910
# <dimensions rank="1">
897911
# <dim index="1" value="n_grains"/>
@@ -1004,6 +1018,12 @@ NXmicrostructure_score_results(NXobject):
10041018
# <dim index="1" value="n_front"/>
10051019
# </dimensions>
10061020
# </field>
1021+
# <field name="recrystallized_fraction" type="NX_FLOAT" optional="true" units="NX_DIMENSIONLESS">
1022+
# <doc>
1023+
# The fraction to which the cell is assumed transformed.
1024+
# </doc>
1025+
# <dimensions rank="1"/>
1026+
# </field>
10071027
# </group>
10081028
# </group>
10091029
# </group>

0 commit comments

Comments
 (0)