Contents  
Functions  
Index
 
 PDF |
Interface between ANSYS and SDT (part of FEMLink)
Syntax
ans2sdt('read FileName') % FileName : .rst or .cdb
ans2sdt('write FileName') % FileName' : .cdb
ans2sdt('BuildUp FileName')
def=ans2sdt('def FileName.rst')
Description
ans2sdt('BuildUp FileName') reads the binary files FileName.rst for model defition and FileName.emat for element matrices. The result is stored in Up (a type 3 superelement handled by upcom). FileName.mat is used to store the superelement. Valid calls are
Up=ans2sdt('buildup file');
[m,k]=upcom(Up,'assemble not');
% or
clear all
mo1=ans2sdt('buildup file');
global('Up'); Up=mo1; % set global variable
[m,k]=upcom('assemble not');
For recent versions of ANSYS, you may have to manually add the ematwrite,yes command to the input file to make sure that all element matrices are written. This command is not accessible from the ANSYS menu.
There is a partial attempt to fill in element properties in Up.il. You can also use data=stack_get(model,'info','RealConstants','getdata') to obtain the cell array containing the ANSYS real constants for various elements. The index in this cell array corresponds to element ProId values.
This command lists conversion tables for elements, topologies, face topologies. You can redefine (enhance) these tables by setting preferences of the form setpref('FEMLink', 'ansys.elist',value), but please also request enhancements so that the quality of our translators is improved.
This reads files based on their standard ANSYS extension.
.matrix files are read assuming ASCII Harwell Boeing format obtained with HBMAT, Fname,Ext,--,ASCII,STIFF. RHS vectors or binary matrices are not read yet.
.mode files contain deformations which are read into the usual SDT format. .rst files contains model information and the function attempts to run the BuildUp command.
.cdb input files also written by ANSYS using the CDWRITE ALL,FileName,cdb command. Please also request enhancements on the support of this format so that the quality of our translators is improved.
def=ans2sdt('def FileName.rst') or def=ans2sdt('def FileName.mode') reads deformations in .rst or .mode files
ANSYS does not store boundary conditions in the .rst files so that these cannot be imported. If you only have fixed boundary conditions, you can easily generate those with
model=ans2sdt('buildup test'); % read model
def=ans2sdt('def test.rst'); % read deformations
model = fe_case(model,'fixdof','Fixed_Dofs', ...
fe_c(model.DOF,def.DOF,'dof',2));
cf=feplot; cf.model=model; cf.def=def; % display
ans2sdt('write FileName.cdb',model) is the current prototype for the ANSYS writing capability. In ANSYS .cdb files are written with the CDWRITE ALL, FileName, cdb command.
See also
©1991-2008 by SDTools