diff --git a/docs/source/usersguide/mgxs_library.rst b/docs/source/usersguide/mgxs_library.rst index fa7f3115d1..1a3da240a8 100644 --- a/docs/source/usersguide/mgxs_library.rst +++ b/docs/source/usersguide/mgxs_library.rst @@ -168,7 +168,7 @@ attributes/sub-elements required to describe the meta-data: tabular format should be performed or not. A value of ``true`` means the conversion should be performed, ``false`` means it should not. - *Default*: ``True`` + *Default*: ``true`` :num_points: If the conversion is to take place the number of tabular points is diff --git a/src/relaxng/mg_cross_sections.rnc b/src/relaxng/mg_cross_sections.rnc new file mode 100644 index 0000000000..b2aaec4d40 --- /dev/null +++ b/src/relaxng/mg_cross_sections.rnc @@ -0,0 +1,61 @@ +element cross_sections { + + element groups { xsd:int } & + + element group_structure { list { xsd:double+ } } & + + element inverse_velocities { list { xsd:double+ } }? & + + element xsdata { + (element name { xsd:string { maxLength = "15" } } | + attribute name { xsd:string { maxLength = "15" } }) & + (element alias { xsd:string { maxLength = "15" } } | + attribute alias { xsd:string { maxLength = "15" } })? & + (element kT { xsd:double } | attribute kT { xsd:double })? & + (element fissionable { ( "true" | "false" ) } | + attribute fissionable { ( "true" | "false" ) }) & + (element representation { ( "isotropic" | "angle" ) } | + attribute representation { ( "isotropic" | "angle" ) })? & + (element num_azimuthal { xsd:positiveInteger } | + attribute num_azimuthal { xsd:positiveInteger })? & + (element num_polar { xsd:positiveInteger } | + attribute num_polar { xsd:positiveInteger })? & + (element scatt_type { ( "legendre" | "histogram" | "tabular" ) } | + attribute scatt_type { ( "legendre" | "histogram" | "tabular" ) })? & + (element order { xsd:positiveInteger } | + attribute order { xsd:positiveInteger }) & + element tabular_legendre { + (element enable { ( "true" | "false" ) } | + attribute enable { ( "true" | "false" ) })? & + (element num_points { xsd:positiveInteger } | + attribute num_points { xsd:positiveInteger })? + }? & + + (element total { list { xsd:double+ } } | + attribute total { list { xsd:double+ } })? & + + (element absorption { list { xsd:double+ } } | + attribute absorption { list { xsd:double+ } }) & + + (element scatter { list { xsd:double+ } } | + attribute scatter { list { xsd:double+ } }) & + + (element fission { list { xsd:double+ } } | + attribute fission { list { xsd:double+ } })? & + + (element fission { list { xsd:double+ } } | + attribute fission { list { xsd:double+ } })? & + + (element k_fission { list { xsd:double+ } } | + attribute k_fission { list { xsd:double+ } })? & + + (element chi { list { xsd:double+ } } | + attribute chi { list { xsd:double+ } })? & + + (element nu_fission { list { xsd:double+ } } | + attribute nu_fission { list { xsd:double+ } })? + + }* + + +} \ No newline at end of file diff --git a/src/relaxng/mg_cross_sections.rng b/src/relaxng/mg_cross_sections.rng new file mode 100644 index 0000000000..b293cddbe4 --- /dev/null +++ b/src/relaxng/mg_cross_sections.rng @@ -0,0 +1,314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 15 + + + + + 15 + + + + + + + + 15 + + + + + 15 + + + + + + + + + + + + + + + + + + true + false + + + + + true + false + + + + + + + + isotropic + angle + + + + + isotropic + angle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + legendre + histogram + tabular + + + + + legendre + histogram + tabular + + + + + + + + + + + + + + + + + + + + true + false + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +