<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>October</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>CREATING A TOOL FOR STRESS COMPUTATION WITH RESPECT TO SURFACE DEFECTS</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>O. Sedova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>O. Iakushkin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A. Kondratiuk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olga Sedova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleg Iakushkin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anna Kondratiuk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>117997</institution>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Plekhanov Russian University of Economics Stremyanny lane</institution>
          ,
          <addr-line>36, Moscow</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <volume>4</volume>
      <issue>2019</issue>
      <fpage>371</fpage>
      <lpage>375</lpage>
      <abstract>
        <p>Consider the problem of calculating the stresses of a sphere with surface defects for a set of different initial conditions of the problem at hand. Varying materials, size and shape of defects have to be considered. We developed a system form open source components that combines CAD and CAE functions inside one user interface hosted inside portable Docker image.</p>
      </abstract>
      <kwd-group>
        <kwd>CAE</kwd>
        <kwd>CAD</kwd>
        <kwd>FEM</kwd>
        <kwd>Docker</kwd>
        <kwd>Jupyter</kwd>
        <kwd>IDE</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1 St Petersburg University</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>Surface defects frequently lead to stress concentration in various devices and structures. The
reasons for their appearance may be aggressive environmental impact during operation, as well as
heavy workloads, some of the defects come as a result of the production process.</p>
      <p>Local damage on the surface and inside the bodies acts as a stress concentrator, it accelerates
the destruction of structural elements, leading to premature failure and / or the need for repairs.</p>
      <p>To ensure the strength and reliability of any given structure, it is necessary to take into
account the stress concentration near the defects. In this regard, a lot of theoretical, experimental and
numerical studies are carried out that consider the effects of various defects on the stresses that arise in
structures under various loads and boundary conditions.</p>
      <p>A significant part of the work in this area is devoted to plates and rods with single defect in the
form of a crack or periodic defects. Note that if there are several damages, but they are located far
enough from each other, their number may not significantly affect the stress distribution compared to
the case of a single defect. In such situations, it is allowed to consider each defect separately, in other
words considering it to be unique in its vicinity.</p>
      <p>For micro- and nanoscale products, the stress state in the body affects the change in the shape
of the surface, which leads to the appearance of roughness, then the relief of the formed surface can be
considered as a set of surface defects. It is important to take into account the effect of surface stresses
on the physical properties of the material in case of nanoscale defects.</p>
      <p>The finite element method is widely used for the numerical estimation of the stress-strain state
in the vicinity of defects and in structures as a whole. It is important to note that some problems are
solved analytically.</p>
      <p>Our research is trying to bridge the gap between iterative analytical experiments, technical
limitations of freely available production tools and opensource packages. To achieve this we are
developing a Jupyter based CAE environment capable of covering analytical and practical tasks in this
area.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Our CAE Environment</title>
      <p>We develop a parametric approach to the creation and processing of geometry. Featuring a
CAE ecosystem that provides FEM tools for working with GPGPU that allows minimization of the
time needed to test an engineering idea under widely varying initial and boundary conditions.</p>
      <p>For the end user experience, the system provides an interface that combines interactive web
components based on the Jupyter Notebook platform and a programming environment based on the
Python language. The system is opensource and can be deployed on to any Linux compatible system
thanks to Docker containerization technology.</p>
      <p>
        We build a Docker image environment composed of Conda with Jupyter and a set of
OpenSource Python libraries for CAD and CAE with FEM operations [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1-3</xref>
        ]. Capabileties of our
environment are shown in Table 1.
      </p>
      <p>
        Creating geometry. We bundle Open Cascade [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] to allow user to input any geometry in form
of program code. We have developed tools that provide facilities for in-place rendering.
      </p>
      <p>
        Meshing geometry. We utilize GMSH and FEniCS-dolfin [
        <xref ref-type="bibr" rid="ref5 ref6">5-6</xref>
        ] to generate meshed geometry
triangulation.
      </p>
      <p>Applying forces. We bundle FEniCS to allow user to apply the forces needed for an
experiment in form of program code. We have developed tools that provide facilities for in-place
rendering.</p>
      <p>Testing our system. We consider a linearly elastic thin-walled spherical vessel with an inner
radius r and an outer one, R, to the inner surface of which pressure p is applied. On the inner surface of
the vessel there are defects - spherical recesses of radius δ, which are immersed in the surface of the
vessel to a depth of h, where h≤δ. The number of recesses on the surface is n. Defects are located
along one of the circles of a large circle of the sphere, while they are evenly distributed around this
circle. The considered values of n are in the range from 4 to 348.</p>
      <p>We performed a task of assessing the stress state of the body near the defects for different
numbers of defects n, different notch radii δ, and different depths h.</p>
      <p>A finite element model of a thin-walled hollow sphere with radii r = 340 mm and R = 350 mm
was constructed in our CAD environment. Spherical recesses were carved on the inner surface. The
following notch radii were considered: δ = 4, δ = 6 and δ = 8mm; depths: h = 2, h = 3 and h = 4mm;
the number of defects: n - in the range from 4 to 348. For each fixed radius of the notch, a model was
first built with the minimum number of defects (n = 4), after which their number gradually increased
to such n = N (depending on the radius of the notch δ: N = N(δ)), at which the intersection of
neighboring recesses was observed.</p>
      <p>Since the recesses were located evenly along the circumference of a large circle, by virtue of
symmetry, instead of the entire sphere, one eighth of the part was considered, enclosed between three
mutually perpendicular planes passing through the center of the shell.</p>
      <p>The constructed model geometry was prepared for finite element analysis such as applying
loads, finite element breakdowns, and subsequent calculations.</p>
      <p>Load is carried out by pressure p, which is applied to the inner surface of the shell: p = 1 MPa.
As boundary conditions, symmetry conditions are imposed on all side faces of the element under
consideration.</p>
      <p>Young's modulus of the used material E = 2.1 ∙ 10 ^ 5MPa, Poisson's ratio ϑ = 0.3.</p>
      <p>It was shown that for all considered δ, with an increase in the number of recesses on the
surface, the stresses increase. Moreover, with an increase in the number of defects, the growth of
stresses becomes more rapid. However, this pattern is violated with such a large number, at which
neighboring recesses intersect.</p>
      <p>This results obtained correlate with behavior predicted by analytical calculations and
previously performed experiments in closed source alternative software packages, showing correctness
of our CAE system behavior. In the Table 2 we compare our opensource solution with commercial
alternatives.</p>
    </sec>
    <sec id="sec-4">
      <title>3. Drawbacks</title>
      <p>For a user of WYSIWYG IDE such tool where coding is required for any shape creation may seem too
complicated. Yet for any complicated scenario ability to create objects in a reproducible manner from
code may be beneficial.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusion</title>
      <p>The system we presented allows creation of complex CAD and CAE scenarios. It is easily
deployable and allows processing of simple and complicated geometry.</p>
      <sec id="sec-5-1">
        <title>Pipe geometry</title>
      </sec>
      <sec id="sec-5-2">
        <title>Simple geometry</title>
      </sec>
      <sec id="sec-5-3">
        <title>Complex geometry</title>
        <p>+
+</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Acknowledgement</title>
      <p>This research was partially supported by the Russian Foundation for Basic Research grants
(projects no. 18-71-00071). The authors would like to acknowledge the Reviewers for the valuable
recommendations that helped in the improvement of this paper.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Malevanniy</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sedova</surname>
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Iakushkin</surname>
            <given-names>O</given-names>
          </string-name>
          .
          <article-title>Controlled Remote Usage of Private Shared Resources via Docker and NoVNC</article-title>
          . In: Misra S. et al. (
          <article-title>eds) Computational Science</article-title>
          and
          <string-name>
            <surname>Its</surname>
            <given-names>Applications - ICCSA</given-names>
          </string-name>
          <year>2019</year>
          .
          <source>ICCSA 2019. Lecture Notes in Computer Science</source>
          , vol
          <volume>11622</volume>
          . Springer, pp.
          <fpage>782</fpage>
          -
          <lpage>791</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Iakushkin</surname>
            , Oleg, Anna Kondratiuk, Alexey S. Eremin, and
            <given-names>Olga</given-names>
          </string-name>
          <string-name>
            <surname>Sedova</surname>
          </string-name>
          .
          <article-title>"Development of a containerized system to build geometric models and perform their strength analysis</article-title>
          .
          <source>" In 3rd International Conference on Applications in Information Technology, ICAIT 2018</source>
          , pp.
          <fpage>146</fpage>
          -
          <lpage>149</lpage>
          . Association for Computing Machinery,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Iakushkin</surname>
            ,
            <given-names>Oleg O.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Olga</surname>
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Sedova</surname>
          </string-name>
          .
          <article-title>"Creating CAD designs and performing their subsequent analysis using opensource solutions in Python."</article-title>
          <source>In AIP Conference Proceedings</source>
          , vol.
          <year>1922</year>
          , no.
          <issue>1</issue>
          , p.
          <fpage>140011</fpage>
          . AIP Publishing,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T.</given-names>
            <surname>Paviot</surname>
          </string-name>
          , pythonOCC, 3D CAD/
          <article-title>CAE/PLM programming language, PythonOCC - 3D CAD Python development framework for the Python</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Alnaes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Blechta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hake</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Johansson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Kehlet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Logg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Richardson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ring</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. E.</given-names>
            <surname>Rognes</surname>
          </string-name>
          and
          <string-name>
            <given-names>G. N.</given-names>
            <surname>Wells</surname>
          </string-name>
          ,
          <source>The FEniCS Project Version 1.5, Archive of Numerical Software</source>
          , vol.
          <volume>3</volume>
          , 2015
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Logg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. N.</given-names>
            <surname>Wells</surname>
          </string-name>
          and J.
          <string-name>
            <surname>Hake</surname>
            <given-names>DOLFIN</given-names>
          </string-name>
          :
          <string-name>
            <surname>a</surname>
            <given-names>C</given-names>
          </string-name>
          +
          <article-title>+/Python Finite Element Library in Automated Solution of Differential Equations by the Finite Element Method</article-title>
          , Volume
          <volume>84</volume>
          of Lecture Notes in Computational Science and Engineering, Edited by
          <string-name>
            <given-names>A.</given-names>
            <surname>Logg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.-A.</given-names>
            <surname>Mardal</surname>
          </string-name>
          and
          <string-name>
            <given-names>G. N.</given-names>
            <surname>Wells</surname>
          </string-name>
          , Springer, chapter
          <volume>10</volume>
          ,
          <year>2012</year>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>