Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Field Output From Fields

Status
Not open for further replies.

cbPVme

Mechanical
Joined
Sep 21, 2015
Messages
76
Location
CA
Is there a way of creating a field output that is only applied to a specific part instance in the assembly?
 
I don’t think it’s possible in CAE. You can only create this custom field output and hide remaining instances using Display Group options.
 
Thanks, I guess I would have to write a python script to do this
 
I was able to write a script to do this for one part instance, however, I can't get it to work with multiple parts. It throws the following error: OdbError: addData() not valid for an orphaned object.

Python:
DOME = odb.rootAssembly.instances['DOME-1']
SHELL = odb.rootAssembly.instances['SHELL-1']

S = odb.steps[LocalLimitStepName].frames[-1].fieldOutputs['S'].getSubset(region=RING, position=CENTROID)
LocalLimitField1 = S.getScalarField(invariant=MIN_PRINCIPAL)+S.getScalarField(invariant=MID_PRINCIPAL)+S.getScalarField(invariant=MAX_PRINCIPAL)
	
S1 = odb.steps[LocalLimitStepName].frames[-1].fieldOutputs['S'].getSubset(region=DOME, position=CENTROID)
LocalLimitField2 = S1.getScalarField(invariant=MIN_PRINCIPAL)+S1.getScalarField(invariant=MID_PRINCIPAL)+S1.getScalarField(invariant=MAX_PRINCIPAL)

LocalLimitField1.addData(LocalLimitField2)
 
addData command requires more input. Its syntax is:

field.addData(position=..., instance=..., labels=..., data=...)

Check Abaqus Scripting Reference Guide for more details.
 
FEAway I think it would be much appreciated by cbPvme if you could show how to do this instead of referring to manuals.
Otherwise if you cannot, Mustaine3 will hopefully have some more feedback on how to do this correctly.
Unfortunately I am not that good with Python or the Abaqus API

Not sure if this helps:
 
The scripting manual seems to indicate that i can use the command with only passing FIELD as an argument.

61.7.7 addData(...)

This method adds the data from a field created using the getSubset method and mathematical operators to the database. The user must create a field to contain the new data and then use the addData method to assign the data from the fields.

Prototype
void
addData(const odb_FieldOutput& field);
Required argument

field
A FieldOutput object specifying the data to add.

Optional arguments

None.
Return value

None
 
In another part it states that all these parameters that I’ve listed are required and the remaining ones are optional. If I were you I would try this way since you’ve got the error regarding that command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top