ANSYS - sending parameters from workbench to APDL
ANSYS - sending parameters from workbench to APDL
(OP)
Hi all,
I've been stuck trying to do this for a while. Is there an easy way to pass design point parameters within the Workbench environment to APDL command scripts within Mechanical?
I've got a model built in Workbench that I want to run a number of design points on so I've created the appropriate parameters (lets call them CR and YR - corrosion rate and year). I've got a Command object in Mechanical to select an appropriate set of nodes and apply a real constant for the thickness as a function (lets call it thick = tnom - CR*YR).
I figured there 'should' be an easy way to pass the design parameters (CR,YR) defined in Workbench to the APDL script but for all my looking on this forum, google and the manuals I can't figure it out. Has anyone tried the same thing, and if so can you tell me how?
Thanks
Graham
I've been stuck trying to do this for a while. Is there an easy way to pass design point parameters within the Workbench environment to APDL command scripts within Mechanical?
I've got a model built in Workbench that I want to run a number of design points on so I've created the appropriate parameters (lets call them CR and YR - corrosion rate and year). I've got a Command object in Mechanical to select an appropriate set of nodes and apply a real constant for the thickness as a function (lets call it thick = tnom - CR*YR).
I figured there 'should' be an easy way to pass the design parameters (CR,YR) defined in Workbench to the APDL script but for all my looking on this forum, google and the manuals I can't figure it out. Has anyone tried the same thing, and if so can you tell me how?
Thanks
Graham





RE: ANSYS - sending parameters from workbench to APDL
Within the command snippet, there is an option for input arguments. Tick the box to set these to parameters and they'll be put into the parameter set. They can now be used as normal.