Download ABAQUS Scripting User's Manual

Transcript
EXAMPLE PROGRAMS THAT ACCESS DATA FROM AN OUTPUT DATABASE
void rightTrim(odb_String &string,const char* char_set)
{
int length = string.Length();
if (string.Find(char_set)==length)
string.append(odb_String(char_set));
}
void printExecutionSummary()
{
cout << " Code to determine the location and value of the\n"
<< " maximum von-mises stress in an output database.\n"
<< " Usage: abaqus odbMaxMises -odb odbName \n"
<< " -elset(optional), -elsetName\n"
<< " Requirements:\n"
<< " 1. -odb
: Name of the output database.\n"
<< " 2. -elset : Name of the assembly level element set.\n"
<< "
Search will be done only for element \n"
<< "
belonging to this set.\n"
<< "
If this parameter is not provided, search \n"
<< "
will be performed over the entire model.\n"
<< " 3. -help : Print usage\n";
}
9.15.2
Creating an output database
The following example illustrates how you can use the ABAQUS C++ API commands to do the
following:
1. Create a new output database.
2. Add model data.
3. Add field data.
4. Add history data.
5. Read history data.
6. Save the output database.
Use the following command to retrieve the example program:
abaqus fetch job=odbWrite
9–66