Optimization Response using function and equation commands
Hi all,
I am using Hypermesh for a topology optimization and have to define a function response for my dconstraint.
Three questions came up and I were unable to find anything in the Internet:
1. Which Syntax is used for the dequation? Or has anybody a list with commands? I can not figure out how to apply a power because this is not working: ^
2. I created two responses x and y, which I would like to include into a third response using a function. When I define a equation f(x,y) = sqrt(x^2+y^2) and create a response with this equation, how do I link the responses x and y to the equation?
3. What is the diffrence between DRESP2, DRESP2V and DRESP2LV?
Thank you all in advance and please excuse my lack of knoowledge, I am still learning.
Best,
Timo
Answers
-
Hi Timo,
1. The syntax for the dequations should be presented in the HyperWorks documentation. Make sure to always call the responses you are using in the beginning, like you did: f(x,y)
There are some other function such as 'ABS()' which creates positive values, for example. It should all be in the HyperWorks Help data.For your question regarding the power, the right way to do it is using '**', like a double-multiply.
f(x,y) = sqrt(x**2+y**2)
I am unsure if sqrt() is a valid command, but I suspect it is. Otherwise just use **0.52. In the card for the response you can define a response list and define 'optiresponses'. Those have to be the ones you are calling in the DEQ. However I am pretty sure the names of the responses and how you call them in the DEQ have to be the same. (Be wary, some characters do not work and confuse the DEQ, such as '_'.)
Simply click on your function response in the model browser and edit the Response List.
3. I have no idea, I am sorry.
I hope this was helpful in some ways.
Best Regards,
Lennart
0 -
Very helpful, Thank you!
0