Jump to content

writing DRESP3-Card (here: Tresca-Stress)

Recommended Posts



as suggested in another thread in this Forum, i tried the usage of dresp3-Card.


What i want to do:

- let excel calculate the tresca-stress (Input: max principle, min principle, output: stress (=difference between both input variables).

- get the tresca stress back and use it for an "minmax-" or "min-objective" in optimisation


What i wrote until today:


LOADLIB DRESP3  GR01    tresca.xlsx


DRESP1  1       MAX_PR1 STRESS  PSOLID          SMAP
DRESP1  1       MAX_PR3 STRESS  PSOLID          SMIP


DRESP3  20      TRESCA  GR01    MYFUNC  1       2
+       DRESP1  1       2
+       CELLIN  C2      C3 
+       CELOUT  D1


I also use a small excel-file, which calculates the difference beween "cell C2" and "cell C3" in "cell D1".



- would it work like that ? (I can't test it at the moment)

- What do I get with the DRESP1 / DRESP3 ? When using DRESP1 with "ELEM" and enter an element-ID, it would give ONE value to the excel-file, which seems to be pretty clear. But when I use PSOLID as the PTYPE, there might be hundrets or thousands of values (here: principal stresses). At that point I do not understand my own programmed code..


Maybe someone can help?

I read the Tutorial OS-4095 and also a lot of manual pages.


Thanks a lot 


Share this post

Link to post
Share on other sites

I got a running Model now, but I didn't use dresp3 but dresp2 with dequation. With dreport I get the right values now in my outputfile.

But i can't use these values for constraints / objectives. Optistruct unfortunately understands, that an equation with two stresses as input always results in a stress, so my resp2 is a stress-response (even though it is a "formula"-response..). Due to this fact i get error 1800, which tells me to use the stress-constraints in the desvar-panel instead...


Any thoughts?


What i want to do is to reduce the maximum stress (=objective). That means I only need the greatest stress as ONE response and not as many responses as myy number of elements... Any help on this point?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...