<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "en"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) Copyright 2020"/><meta name = "DC.rights.owner" content = "(C) Copyright 2020"/><meta name = "DC.type" content = "concept"/><meta name = "abstract" content = "The analysis model for the optimization with SIMULIA Tosca Structure and ANSYS® can be generated in /PREP7 in the standard way."/><meta name = "description" content = "The analysis model for the optimization with SIMULIA Tosca Structure and ANSYS® can be generated in /PREP7 in the standard way."/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "tso-c-usr-model-ansysprepPreProc"/><meta name = "DC.language" content = "en"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>About Preprocessing with ANSYS®/Prep7</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "tso-c-usr-model-ansysprepPreProc">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>About Preprocessing with <span class = "ph">ANSYS®</span>/Prep7</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3" colspan = "2"><table class = "DocThemeIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
<span class = "shortdesc">The analysis model for the optimization with <span class = "ph">SIMULIA Tosca Structure</span>
and <span class = "ph">ANSYS®</span>
can be generated in /PREP7 in the standard way. </span>

</p>
<p>This page discusses: </p><ul><li><a href = "#tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-inpFileGeneration" id = "toc_rg" title = "">Generation of the Finite Element Input File</a></li><li><a href = "#tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-lc" id = "toc_rg" title = "">Load Cases</a></li><li><a href = "#tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-batchInpFileCheck" id = "toc_rg" title = "">Check of the Batch Input File</a></li><li><a href = "#tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-groupGeneration" id = "toc_rg" title = "">Generation of Groups</a></li></ul>
</p></td></tr></table></td></tr></table>




<div class = "body conbody">
<p>For the batch processing of <span class = "ph">ANSYS®</span>,
   the <span class = "ph">ANSYS®</span> CDB, inp, and dat format can be used. 
   An <span class = "ph">ANSYS®</span> CDB file contains the complete finite 
   element information without the solution strategy (/SOLU). You must add the solution strategy manually.</p>

<div class = "section" id = "tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-inpFileGeneration"><h2 class = "title sectiontitle">Generation of the Finite Element Input File</h2>

<p>The CDB File is generated in <span class = "ph">ANSYS®</span>/PREP/
with the following command:</p>
<pre class = "codeblock">
<code class = "ph codeph">
CDWRITE, Option, Fname, Ext, Dir, Fnamei, Exti, Fmat
</code>
</pre>
<p>Use the option DB to ensure that the complete finite element information is written to the file.
    The file name (Fname) and the extension (Ext) must also be specified. In the
    examples of the <span class = "ph">SIMULIA Tosca Structure</span>
	installation, the extension <code class = "ph codeph">cdb</code> is used.</p>
<p>A complete command for the generation of a CDB file looks as follows:</p>
<pre class = "codeblock">
<code class = "ph codeph">
CDWRITE, DB, holeplate, ans
</code>
</pre>
<p>This file does not contain the solution strategy.</p>
</div>


<div class = "section" id = "tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-lc"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Load Cases</h2>

<p>If only one <span class = "ph">load case</span>
should be calculated, the <span class = "ph">load case</span>
information is already included in the CDB file. In this case, only the
solution strategy must be added:</p>
<pre class = "codeblock">
<code class = "ph codeph">
/SOLU
SOLVE
FINISH
</code></pre>
<p>If multiple <span class = "ph">load cases</span>
are used, the <span class = "ph">load cases</span>
can be stored in <span class = "ph">load case</span>
files (file.s01, file.s02, ...). These files are generated using the
following command:</p>
<pre class = "codeblock">
<code class = "ph codeph">
lswrite, lsnum
</code>
</pre>
<p>The solution strategy for multiple <span class = "ph">load cases</span>
must be added to the CDB file:</p>
<pre class = "codeblock">
<code class = "ph codeph">
/SOLU
LSREAD, 1
SOLVE
LSREAD, 2
SOLVE
...
FINISH
</code>
</pre>
</div>


<div class = "section" id = "tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-batchInpFileCheck"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Check of the Batch Input File</h2>

<p>To check if the CDB file is running correctly in batch mode, an analysis
should be started on the command line before starting the optimization
with <span class = "ph">SIMULIA Tosca Structure</span>.
Using the <span class = "ph">ANSYS®</span>
14.5 solver, the command line looks as follows:</p>
<ul class = "ul">
<li class = "li"><span class = "ph">Windows</span> <pre class = "codeblock">ansys145 -b -i [input file] -o [output file] -p[productvar]
</pre></li>
<li class = "li"><span class = "ph">Linux</span> <pre class = "codeblock">ansys145 -p -p[productvar] &lt; [input file] &gt; [output
file]
</pre></li>
</ul>
<p>Errors are reported to the *.err file. In case of errors, the input file
must be modified.</p>
</div>


<div class = "section" id = "tso-c-usr-model-ansysprepPreProc__tso-c-usr-model-ansysprepPreProc-groupGeneration"><p><map name = "FPMap1"><area href = "#hj-top" title = "Back to Top" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title sectiontitle">Generation of Groups</h2>

<p>The node and element groups (assemblies and components) are generated
using the "component manager" or with the following commands:</p>
<pre class = "codeblock">
<code class = "ph codeph">
CM, Cname, Entity
CMGRP, Aname, Cnam1, Cnam2, Cnam3, Cnam4, Cnam5, Cnam6,
Cnam7, Cnam8
</code>
</pre>
<p>These components or assemblies are treated as node and element groups in
  <span class = "ph">SIMULIA Tosca Structure</span>. 
  These groups are extracted from the <code class = "ph codeph">cdb</code> file and are accessible
  with the group name in the optimization preprocessor. If node and element groups are
  generated with the same name, the groups get the suffix "_NODE" and "_ELEM" during
  the import to keep the group names unique.</p>
</div>

</div>

</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
