Skip to content

Commit 9c01a13

Browse files
authored
Merge pull request #29 from pvlib/post_gap
Models for post and gap
2 parents 395e085 + 6135cbe commit 9c01a13

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

schema/pvcollada_schema_0.1.xsd

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,32 @@ xmlns:collada="http://www.collada.org/2008/03/COLLADASchema">
6060
<xs:enumeration value="fixed_tilt" />
6161
<xs:enumeration value="tracker" />
6262
</xs:restriction>
63+
</xs:simpleType>
64+
<xs:simpleType name="post_type_enum" final="restriction">
65+
<xs:restriction base="xs:string">
66+
<xs:enumeration value="rack" />
67+
<xs:enumeration value="tracker" />
68+
<xs:enumeration value="fence" />
69+
</xs:restriction>
70+
</xs:simpleType>
71+
<xs:simpleType name="post_shape_enum" final="restriction">
72+
<xs:restriction base="xs:string">
73+
<xs:enumeration value="rectangle" />
74+
<xs:enumeration value="circle" />
75+
<xs:enumeration value="h-shape" />
76+
</xs:restriction>
77+
</xs:simpleType>
78+
<xs:simpleType name="post_inclin_enum" final="restriction">
79+
<xs:restriction base="xs:string">
80+
<xs:enumeration value="vertical" />
81+
<xs:enumeration value="perpendicular" />
82+
</xs:restriction>
83+
</xs:simpleType>
84+
<xs:simpleType name="gap_type_enum" final="restriction">
85+
<xs:restriction base="xs:string">
86+
<xs:enumeration value="motor" />
87+
<xs:enumeration value="joint" />
88+
</xs:restriction>
6389
</xs:simpleType>
6490
<!-- objects for product-level data -->
6591
<xs:complexType name="module_type_object">
@@ -872,6 +898,78 @@ xmlns:collada="http://www.collada.org/2008/03/COLLADASchema">
872898
descendant tags that contain an instance_rack tag.</xs:documentation>
873899
</xs:annotation>
874900
</xs:element>
901+
<xs:element name="post">
902+
<xs:annotation>
903+
<xs:documentation>This tag should only appear in the extra/technique section of a Collada geometry tag to define a model for a
904+
post. A post is a vertical object that supports a rack, tracker or fence. The node may have 1 or more instance_geometry
905+
descendant tags that contain an instance_post tag.</xs:documentation>
906+
</xs:annotation>
907+
<xs:complexType>
908+
<xs:sequence>
909+
<xs:element name="type" type="post_type_enum">
910+
<xs:annotation>
911+
<xs:documentation>The type of post (rack, tracker, fence).</xs:documentation>
912+
</xs:annotation>
913+
</xs:element>
914+
<xs:element name="depth" type="collada:float_type">
915+
<xs:annotation>
916+
<xs:documentation>The nominal underground depth of the post.</xs:documentation>
917+
</xs:annotation>
918+
</xs:element>
919+
<xs:element name="length" type="collada:float_type">
920+
<xs:annotation>
921+
<xs:documentation>The total length of the post including the portion underground.</xs:documentation>
922+
</xs:annotation>
923+
</xs:element>
924+
<xs:element name="diameter" type="collada:float_type">
925+
<xs:annotation>
926+
<xs:documentation>The diameter of the post cross-section.</xs:documentation>
927+
</xs:annotation>
928+
</xs:element>
929+
<xs:element name="inclination" type="post_inclin_enum">
930+
<xs:annotation>
931+
<xs:documentation>The nominal inclination of the post (vertical, perpendicular).</xs:documentation>
932+
</xs:annotation>
933+
</xs:element>
934+
<xs:element name="shape" type="post_shape_enum">
935+
<xs:annotation>
936+
<xs:documentation>The shape of the post cross-section (rectangle, circle, h-shape).</xs:documentation>
937+
</xs:annotation>
938+
</xs:element>
939+
</xs:sequence>
940+
</xs:complexType>
941+
</xs:element>
942+
<xs:element name="gap">
943+
<xs:annotation>
944+
<xs:documentation>This tag should only appear in the extra/technique section of a Collada geometry tag to define a model for a
945+
gap. A gap is a space between two racks on a tracker. The node may have one or more instance_geometry
946+
descendant tags that contain an instance_gap tag.</xs:documentation>
947+
</xs:annotation>
948+
<xs:complexType>
949+
<xs:sequence>
950+
<xs:element name="type" type="gap_type_enum">
951+
<xs:annotation>
952+
<xs:documentation>The type of gap (motor, joint).</xs:documentation>
953+
</xs:annotation>
954+
</xs:element>
955+
<xs:element name="rigid" type="xs:boolean">
956+
<xs:annotation>
957+
<xs:documentation>True of a gap is rigid, false if the gap allows the tracker torque tube to flex.</xs:documentation>
958+
</xs:annotation>
959+
</xs:element>
960+
<xs:element name="width" type="collada:float_type">
961+
<xs:annotation>
962+
<xs:documentation>The nominal width of the gap, i.e., the distance between the two racks.</xs:documentation>
963+
</xs:annotation>
964+
</xs:element>
965+
<xs:element name="joint_angle" type="collada:float_type" minOccurs="0">
966+
<xs:annotation>
967+
<xs:documentation>The maximum angle formed in a flexible gap.</xs:documentation>
968+
</xs:annotation>
969+
</xs:element>
970+
</xs:sequence>
971+
</xs:complexType>
972+
</xs:element>
875973
<!-- instances -->
876974
<xs:element name="circuit" type="circuit_type" />
877975
<xs:element name="instance_terrain">
@@ -935,6 +1033,27 @@ xmlns:collada="http://www.collada.org/2008/03/COLLADASchema">
9351033
</xs:element>
9361034
</xs:sequence>
9371035
</xs:complexType>
1036+
</xs:element>
1037+
<xs:element name="instance_post">
1038+
<xs:annotation>
1039+
<xs:documentation>This tag should only appear in the extra/technique section of a Collada instance_geometry tag to signal the
1040+
instance of a post. The attribute url of the instance_geometry must reference a Collada geometry that is
1041+
a model for a post (has a post tag in its extra/technique tag).</xs:documentation>
1042+
</xs:annotation>
1043+
<xs:complexType>
1044+
<xs:sequence>
1045+
<xs:element name="installed_depth" type="collada:float_type" minOccurs="0">
1046+
<xs:annotation>
1047+
<xs:documentation>Installed depth underground of the post instance.</xs:documentation>
1048+
</xs:annotation>
1049+
</xs:element>
1050+
</xs:sequence>
1051+
<xs:attribute name="id" type="xs:ID">
1052+
<xs:annotation>
1053+
<xs:documentation>Unique id for the post instance (can be referenced in instance_tracker or instance_fence)</xs:documentation>
1054+
</xs:annotation>
1055+
</xs:attribute>
1056+
</xs:complexType>
9381057
</xs:element>
9391058
<!-- geometry objects -->
9401059
<xs:element name="inverter3d">

0 commit comments

Comments
 (0)