You can define one, both, or neither of these modules. The Abaqus
component executes the preprocessing module,
The call to the
if os.path.exists('userscript_cae_pre.py'): import userscript_cae_pre userscript_cae_pre.runUserScript(mdb, values) where mdb is the model database and values is a name:value array of inputs. The call to the
if os.path.exists('userscript_cae_post.py'): import userscript_cae_post userscript_cae_post.runUserScript(mdb, values) where mdb is the model database and values is a name:value array of inputs. An Example of a Preprocessing User ScriptYou can execute a preprocessing user-supplied module called
If the
An example of
from abaqus import * from abaqusConstants import * import __main__ import section import regionToolset import displayGroupMdbToolset as dgm import part import material import assembly import step import interaction import load import mesh import job import sketch import visualization import xyPlot import displayGroupOdbToolset as dgo import connectorBehavior def runUserScript(mdb, values): models = mdb.models p = models['Model-1'].parts['Part-1'] p.features['Round-3'].setValues(radius=(float(values['Model_1__Part_1_ _Round_2__radius']) - 0.4)) p.regenerate() In this example preprocessing script the value of
|