🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Topology Optimization - DRESP2 - DEQTN

User: "Adele"
Altair Community Member

Is it possible to perform a topology optimization (obj=min mass) by setting as constraint the difference between two nodes? I understood that I have to use a DRESP2 and an dequation to link the nodes: the function I wrote is f(x1,x2)=x1-x2 I have many couples of nodes to monitor. If there is an example/tutorial how to write DTABLE and what I have to put as DESVAR will be very useful.

Thank you!

Adele

nodi.jpg dresp2.jpg
Sort by:
1 - 2 of 21

    i'm not sure if DTABLE would help you here, as it defines a bunch of constant values.

    For your purpose, for each pair of nodes, i believe you will need to create 2 DRESP1, and 1 DRESP2 + DCONST for applying constraints.

    I'd say the best way to do that, for many nodes, is:

    • by building a script in HM to automate this task
    • or doing it directly in the solver deck, by copying the syntax and adjusting it to your nodes.
    • or just use an LLM to generate a python code to automate your inputs..

    But in essence>

    DEQUATION> f(x1,x2) = x1 - x2

    DRESP1 of type DISP, defining the component (X,Y,Z, or total) and node ID1

    DRESP1 of type DISP, defining the component (X,Y,Z, or total) and node ID2

    DRESP2, calling DEQUATION, and DRESP1's in ordered manner » if this is applied to a specific loadcase, this could be specified right away.

    DCONSTR calling the DRESP2 and assigning the lower and upper boundaries.

    …repeat

    depending on the setup, a DCONADD should also be created to combine the multiple constraints.

    User: "Adele"
    Altair Community Member
    OP
    Accepted Answer

    Thank you!! I'll try, I think I understand.