<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>FEA Forums &#187; Topic: Batch File Ansys Ver 11.0</title>
<link>http://www.FEA-Forums.com/</link>
<description>FEA Forums &#187; Topic: Batch File Ansys Ver 11.0</description>
<language>en</language>
<pubDate>Thu, 11 Mar 2010 14:09:59 +0000</pubDate>

<item>
<title>duffyem on "Batch File Ansys Ver 11.0"</title>
<link>http://www.FEA-Forums.com/topic/34#post-43</link>
<pubDate>Sat, 05 Apr 2008 13:07:15 +0000</pubDate>
<dc:creator>duffyem</dc:creator>
<guid isPermaLink="false">43@http://www.FEA-Forums.com/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
I have been using Ansys ver 11.0. I have created a batch file that I see to be correct but for some reason Ansys freezes up and does not complete the simulation. The other input files are all in the one directory so I really cannot seem to find a proble. I was wondering if anyone knew of a reason why this kept happening and maybe offer a solution. Please help. Below is the batch file i have created. &#60;/p&#62;
&#60;p&#62;/batch&#60;br /&#62;
!&#60;br /&#62;
!BRAND NEW ANALYSIS Basic setup schtuff&#60;br /&#62;
!&#60;br /&#62;
/clear&#60;br /&#62;
/CWD,'trabecula'&#60;br /&#62;
/filname, trabecula, 0&#60;br /&#62;
resume&#60;br /&#62;
/CWD,'Healthy_Bone/const_compression'&#60;br /&#62;
!&#60;br /&#62;
!Make sure to modify title and input temp data, constraints forces etc. for each run&#60;br /&#62;
!&#60;br /&#62;
/TITLE,'Healthy_Bone, YM 8.14 GPa, z_constraints &#38;#38; 3000_microstrain in compression'&#60;br /&#62;
/NERR&#60;br /&#62;
/PREP7&#60;br /&#62;
/NOPR&#60;br /&#62;
/PMETH,OFF,0&#60;br /&#62;
KEYW,PR_SET,1&#60;br /&#62;
KEYW,PR_STRUC,1&#60;br /&#62;
KEYW,PR_THERM,1&#60;br /&#62;
KEYW,PR_FLUID,0&#60;br /&#62;
KEYW,PR_ELMAG,0&#60;br /&#62;
KEYW,MAGNOD,0&#60;br /&#62;
KEYW,MAGEDG,0&#60;br /&#62;
KEYW,MAGHFE,0&#60;br /&#62;
KEYW,MAGELC,0&#60;br /&#62;
KEYW,PR_MULTI,1&#60;br /&#62;
KEYW,PR_CFD,0&#60;br /&#62;
/GO&#60;br /&#62;
!&#60;br /&#62;
!Change element type to thermal (70)&#60;br /&#62;
!&#60;br /&#62;
ETCHG,STT&#60;br /&#62;
!&#60;br /&#62;
!With following material properties&#60;br /&#62;
!&#60;br /&#62;
MP, KXX, 1, 100&#60;br /&#62;
!&#60;br /&#62;
!Apply the nodal temperature data now in /solu&#60;br /&#62;
!&#60;br /&#62;
/NOPR&#60;br /&#62;
/INPUT,'const_temp_input_file','txt'&#60;br /&#62;
/GO&#60;br /&#62;
!&#60;br /&#62;
!Writing the physics environment 'Thermal'&#60;br /&#62;
!&#60;br /&#62;
PHYSICS,WRITE,thermal, , ,&#60;br /&#62;
!&#60;br /&#62;
!Clear physics environment&#60;br /&#62;
!&#60;br /&#62;
PHYSICS,CLEAR&#60;br /&#62;
!&#60;br /&#62;
!Change element type from thermal to structural&#60;br /&#62;
!&#60;br /&#62;
ETCHG,TTS&#60;br /&#62;
!&#60;br /&#62;
!Set the temp dependant isotropic youngs modulus (EX) &#38;#38; Poissons Ratio (PRXY)&#60;br /&#62;
!Should there be MPDELETE's here?&#60;br /&#62;
MPTEMP,,,,,,,,&#60;br /&#62;
MPTEMP,1,700&#60;br /&#62;
MPTEMP,2,1200&#60;br /&#62;
MPDATA,EX,1,,7.00e3&#60;br /&#62;
MPDATA,EX,1,,12.00e3&#60;br /&#62;
MPDATA,PRXY,1,,0.3&#60;br /&#62;
MPDATA,PRXY,1,,0.3&#60;br /&#62;
!&#60;br /&#62;
!Setting coeff. of thermal expansion as 0&#60;br /&#62;
!&#60;br /&#62;
MPTEMP,,,,,,,,&#60;br /&#62;
MPTEMP,1,0&#60;br /&#62;
UIMP,1,REFT,,,&#60;br /&#62;
MPDATA,ALPX,1,,0&#60;br /&#62;
MPTEMP,,,,,,,,&#60;br /&#62;
MPTEMP,1,0&#60;br /&#62;
UIMP,1,REFT,,,&#60;br /&#62;
!&#60;br /&#62;
!Apply loads and contraints&#60;br /&#62;
!&#60;br /&#62;
/NOPR&#60;br /&#62;
/INPUT,'z_constraints','inp'&#60;br /&#62;
/INPUT,'3000_micro_strain','inp'&#60;br /&#62;
/GO&#60;br /&#62;
!&#60;br /&#62;
!Write new physics environment 'struct' with these material properties, then clear physics environment&#60;br /&#62;
!&#60;br /&#62;
PHYSICS,WRITE,struct, , ,&#60;br /&#62;
PHYSICS,CLEAR&#60;br /&#62;
!&#60;br /&#62;
!Time to finish up in /prep7&#60;br /&#62;
!&#60;br /&#62;
FINISH&#60;br /&#62;
!&#60;br /&#62;
!Go to solution, analysis type 0 (static)&#60;br /&#62;
!&#60;br /&#62;
/SOLU&#60;br /&#62;
ANTYPE,0&#60;br /&#62;
!&#60;br /&#62;
!Read in 'thermal' physics data&#60;br /&#62;
!&#60;br /&#62;
PHYSICS,READ,THERMAL&#60;br /&#62;
!&#60;br /&#62;
!and solve it thermally&#60;br /&#62;
!&#60;br /&#62;
SOLVE&#60;br /&#62;
!&#60;br /&#62;
!Finish to avoid messing up other stuff&#60;br /&#62;
!&#60;br /&#62;
FINISH&#60;br /&#62;
!&#60;br /&#62;
!Go back to /solu&#60;br /&#62;
!&#60;br /&#62;
/SOLU&#60;br /&#62;
!&#60;br /&#62;
!Read in 'struct' physics data&#60;br /&#62;
!&#60;br /&#62;
PHYSICS,READ,STRUCT&#60;br /&#62;
!&#60;br /&#62;
!read in 'insert model name' thermal results file&#60;br /&#62;
!&#60;br /&#62;
LDREAD,TEMP,,,,,'trabecula','rth',&#60;br /&#62;
!&#60;br /&#62;
!Just insert WHATEVER number you want (within temp range of course) for tref as no thermal expansion in model&#60;br /&#62;
!&#60;br /&#62;
!!TREF,810&#60;br /&#62;
!&#60;br /&#62;
!solve it and finish&#60;br /&#62;
!&#60;br /&#62;
SOLVE&#60;br /&#62;
FINISH&#60;br /&#62;
!&#60;br /&#62;
!Enter postprocessor to get results&#60;br /&#62;
!NOTE: From here on has not been modified for newanalysis&#60;br /&#62;
/POST1&#60;br /&#62;
/EFACET,1&#60;br /&#62;
!&#60;br /&#62;
!Plot nodal soultion stress? (S), 1st 2nd 3rd principal (1 2 3), dont overlay original shape (0)&#60;br /&#62;
!&#60;br /&#62;
PLNSOL,S,1,0&#60;br /&#62;
/VIEW,1,1&#60;br /&#62;
/ANG,1&#60;br /&#62;
/AUTO,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
!&#60;br /&#62;
PLNSOL,S,2,0&#60;br /&#62;
/VIEW,1,1&#60;br /&#62;
/ANG,1&#60;br /&#62;
/AUTO,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
!&#60;br /&#62;
PLNSOL,S,3,0&#60;br /&#62;
/VIEW,1,1&#60;br /&#62;
/ANG,1&#60;br /&#62;
/AUTO,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
!&#60;br /&#62;
!Plot nodal soultion principal strain (EPTO), ??? (1), dont overlay original shape (0)&#60;br /&#62;
!&#60;br /&#62;
PLNSOL,EPTO,1,0,1.0&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
/ANG,1,45,YS,1&#60;br /&#62;
/REP,FAST&#60;br /&#62;
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75&#60;br /&#62;
!&#60;br /&#62;
!Now I'm gonna make some cutting surfaces so we can see what is going on within the model&#60;br /&#62;
!&#60;br /&#62;
!Done&#60;br /&#62;
!&#60;br /&#62;
FINISH
&#60;/p&#62;</description>
</item>

</channel>
</rss>
