Setting Up Constraint with Combined Reponses DRESP2

LacieF_20734
LacieF_20734 New Altair Community Member
edited April 15 in Altair HyperWorks

In this article you will learn how to set up a constraint based on a summation of responses. In this case, the constraint is based on the sum of the x and y force components through a CBUSH element. This process can be generalized to other operations for creating constraints from a combination of responses.

Note: If you are having trouble finding any of these solver cards, remember that you can use CTRL + F and search for the card name (DRESP2, DEQATN, etc.).

1. Setup the responses for Fx and Fy as usual:

image

 

2. Setup a DRESP2 definition. The DRESP2 card identifies the function definition and inputs(responses).

In response list, we refer to the responses Force_x and Force_y.

image


OPTION A: Use built-in functions

This definition shown above uses this built-in SUM function on the DRESP2 card, but there is a full list of built-in functions:

image


OPTION B: Define custom equation with DEQATN

If you want to add your own function outside of those defined above, you would have to setup DEQATN and specify ‘dequation’ in the function entry on the DRESP2 card.

image

 

The order in which the responses are fed into the equation are determined by the order they are listed in the DRESP2 card. You can check this by card editing (right click > card edit).

In this case, response ID 5 would be variable “a” and response ID 6 would be variable “b” in the function definition.

image


3. Reference this DRESP2 response to set a constraint on the summation:

image

 

4. Run optimization.