Răsfoiți Sursa

气弹求解

huangxingxing 4 luni în urmă
părinte
comite
ad9740bfda
1 a modificat fișierele cu 122 adăugiri și 0 ștergeri
  1. 122 0
      src/main/resources/templates/cpacs.ftl

+ 122 - 0
src/main/resources/templates/cpacs.ftl

@@ -42,6 +42,128 @@
                         <z mapType="double">${vo.adflow.momz}</z>
                     </point>
                 </reference>
+                    <#if vo.fsi??>
+                     <wings>
+                              <wing uID="wing1">
+                                <name>main wing</name>
+                                <transformation/>
+                                <sections>
+                                  <section uID="wing1section1">
+                                    <name>root section</name>
+                                    <transformation>
+                                      <rotation>
+                                        <x>0.0</x>
+                                        <y>0.0</y>
+                                        <z>0.0</z>
+                                      </rotation>
+                                      <scaling>
+                                        <x>1</x>
+                                        <y>1</y>
+                                        <z>1</z>
+                                      </scaling>
+                                      <translation>
+                                        <x>0.0</x>
+                                        <y>0.0</y>
+                                        <z>0.0</z>
+                                      </translation>
+                                    </transformation>
+                                    <elements>
+                                      <element uID="wing1section1element1">
+                                        <name>wing root element</name>
+                                        <airfoilUID>foil1</airfoilUID>
+                                        <transformation>
+                                          <rotation>
+                                            <x>0.0</x>
+                                            <y>0.0</y>
+                                            <z>0.0</z>
+                                          </rotation>
+                                          <scaling>
+                                            <x>1</x>
+                                            <y>1</y>
+                                            <z>1</z>
+                                          </scaling>
+                                          <translation>
+                                            <x>0.0</x>
+                                            <y>0.0</y>
+                                            <z>0.0</z>
+                                          </translation>
+                                        </transformation>
+                                      </element>
+                                    </elements>
+                                  </section>
+                                  <section uID="wing1section2">
+                                    <name>tip section</name>
+                                    <transformation>
+                                      <rotation>
+                                        <x>0.0</x>
+                                        <y>0.0</y>
+                                        <z>0.0</z>
+                                      </rotation>
+                                      <scaling>
+                                        <x>1</x>
+                                        <y>1</y>
+                                        <z>1</z>
+                                      </scaling>
+                                      <translation>
+                                        <x>0</x>
+                                        <y>0</y>
+                                        <z>0</z>
+                                      </translation>
+                                    </transformation>
+                                    <elements>
+                                      <element uID="wing1section2element1">
+                                        <name>wing tip element</name>
+                                        <airfoilUID>foil1</airfoilUID>
+                                        <transformation>
+                                          <rotation>
+                                            <x>0.0</x>
+                                            <y>0.0</y>
+                                            <z>0.0</z>
+                                          </rotation>
+                                          <scaling>
+                                            <x>1</x>
+                                            <y>1</y>
+                                            <z>1</z>
+                                          </scaling>
+                                          <translation>
+                                            <x>0.0</x>
+                                            <y>0.0</y>
+                                            <z>0.0</z>
+                                          </translation>
+                                        </transformation>
+                                      </element>
+                                    </elements>
+                                  </section>
+                                </sections>
+                                <positionings>
+                                  <positioning uID="W1_Pos1">
+                                    <name>Wing_Position1</name>
+                                    <length>0</length>
+                                    <sweepAngle>0</sweepAngle>
+                                    <dihedralAngle>0.0</dihedralAngle>
+                                    <toSectionUID isLink="True">wing1section1</toSectionUID>
+                                  </positioning>
+                                  <positioning uID="W1_Pos2">
+                                    <name>Wing_Position2</name>
+                                    <length>1</length>
+                                    <sweepAngle>0</sweepAngle>
+                                    <dihedralAngle>0.0</dihedralAngle>
+                                    <fromSectionUID isLink="True">wing1section1</fromSectionUID>
+                                    <toSectionUID isLink="True">wing1section2</toSectionUID>
+                                  </positioning>
+                                </positionings>
+                                <segments>
+                                  <segment uID="wing1segment1">
+                                    <name>wing segment</name>
+                                    <fromElementUID>wing1section1element1</fromElementUID>
+                                    <toElementUID>wing1section2element1</toElementUID>
+                                  </segment>
+                                </segments>
+                              </wing>
+                            </wings>
+                    <#else>
+                    </#if>
+
             </model>
         </aircraft>
         <#else>