| Message |
|---|
FEA Forums » FEA Forums
Batch File Ansys Ver 11.0
-
Posted 2 weeks ago #
-
Hi,
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./batch
!
!BRAND NEW ANALYSIS Basic setup schtuff
!
/clear
/CWD,'trabecula'
/filname, trabecula, 0
resume
/CWD,'Healthy_Bone/const_compression'
!
!Make sure to modify title and input temp data, constraints forces etc. for each run
!
/TITLE,'Healthy_Bone, YM 8.14 GPa, z_constraints & 3000_microstrain in compression'
/NERR
/PREP7
/NOPR
/PMETH,OFF,0
KEYW,PR_SET,1
KEYW,PR_STRUC,1
KEYW,PR_THERM,1
KEYW,PR_FLUID,0
KEYW,PR_ELMAG,0
KEYW,MAGNOD,0
KEYW,MAGEDG,0
KEYW,MAGHFE,0
KEYW,MAGELC,0
KEYW,PR_MULTI,1
KEYW,PR_CFD,0
/GO
!
!Change element type to thermal (70)
!
ETCHG,STT
!
!With following material properties
!
MP, KXX, 1, 100
!
!Apply the nodal temperature data now in /solu
!
/NOPR
/INPUT,'const_temp_input_file','txt'
/GO
!
!Writing the physics environment 'Thermal'
!
PHYSICS,WRITE,thermal, , ,
!
!Clear physics environment
!
PHYSICS,CLEAR
!
!Change element type from thermal to structural
!
ETCHG,TTS
!
!Set the temp dependant isotropic youngs modulus (EX) & Poissons Ratio (PRXY)
!Should there be MPDELETE's here?
MPTEMP,,,,,,,,
MPTEMP,1,700
MPTEMP,2,1200
MPDATA,EX,1,,7.00e3
MPDATA,EX,1,,12.00e3
MPDATA,PRXY,1,,0.3
MPDATA,PRXY,1,,0.3
!
!Setting coeff. of thermal expansion as 0
!
MPTEMP,,,,,,,,
MPTEMP,1,0
UIMP,1,REFT,,,
MPDATA,ALPX,1,,0
MPTEMP,,,,,,,,
MPTEMP,1,0
UIMP,1,REFT,,,
!
!Apply loads and contraints
!
/NOPR
/INPUT,'z_constraints','inp'
/INPUT,'3000_micro_strain','inp'
/GO
!
!Write new physics environment 'struct' with these material properties, then clear physics environment
!
PHYSICS,WRITE,struct, , ,
PHYSICS,CLEAR
!
!Time to finish up in /prep7
!
FINISH
!
!Go to solution, analysis type 0 (static)
!
/SOLU
ANTYPE,0
!
!Read in 'thermal' physics data
!
PHYSICS,READ,THERMAL
!
!and solve it thermally
!
SOLVE
!
!Finish to avoid messing up other stuff
!
FINISH
!
!Go back to /solu
!
/SOLU
!
!Read in 'struct' physics data
!
PHYSICS,READ,STRUCT
!
!read in 'insert model name' thermal results file
!
LDREAD,TEMP,,,,,'trabecula','rth',
!
!Just insert WHATEVER number you want (within temp range of course) for tref as no thermal expansion in model
!
!!TREF,810
!
!solve it and finish
!
SOLVE
FINISH
!
!Enter postprocessor to get results
!NOTE: From here on has not been modified for newanalysis
/POST1
/EFACET,1
!
!Plot nodal soultion stress? (S), 1st 2nd 3rd principal (1 2 3), dont overlay original shape (0)
!
PLNSOL,S,1,0
/VIEW,1,1
/ANG,1
/AUTO,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
!
PLNSOL,S,2,0
/VIEW,1,1
/ANG,1
/AUTO,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
!
PLNSOL,S,3,0
/VIEW,1,1
/ANG,1
/AUTO,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
!
!Plot nodal soultion principal strain (EPTO), ??? (1), dont overlay original shape (0)
!
PLNSOL,EPTO,1,0,1.0
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
/ANG,1,45,YS,1
/REP,FAST
/UI,COPY,SAVE,JPEG,GRAPH,COLOR,NORM,LANDSCAPE,75
!
!Now I'm gonna make some cutting surfaces so we can see what is going on within the model
!
!Done
!
FINISHPosted 2 years ago #
|
|
RSS feed for this topic |
Reply
You must log in to post.
