MODEL CHANGE- CONTACT PAIR, REMOVE/ADD

Hello everyone and especially Cornelius, :)

I would like to be able to activate and deactivate contacts at a given timestep.

I managed to make *MODEL CHANGE work by means of a custom Step , but it is removing the contact at the beginning of the step.

*MODEL CHANGE,TYPE=CONTACT PAIR,REMOVE
Slave, Master

I’m reviewing the inp file generated by MECWAY when I introduce a prescribed displacement using a table to see how it splits the Nonlinear calculation in more than one Step.

This would "theoretically" allow me to edit the inp file to insert the *MODEL CHANGE card (in-between) at a specific time step. The idea should work but I’m not able to make it work yet as my knowledge of ccx is very limited.

Any help will be appreciated,

Comments

  • Here's an example of an extra *STEP section. It adds another 50 s of time, changing the total period from 100 s to 150 s. It looks like the contact is being released and the parts suddenly move further at 100 s.

    Time-dependent displacement doesn't do that because the constraint is still applied at all times, even when it's 0. If you were to turn a displacement on or off, that would require a separate *STEP section but Mecway doesn't have a way to specify that.
  • Hello disla! I've attached an example file where I start with a regular contact for one step, then turn off the regular and turn on a bonded contact for the next step. I'll provide a quick rundown, but feel free to ask questions.

    - bot/bot_2 and top/top_2 define the same faces, but by using different names I can control when a contact is activated

    - The custom model definition turns off the bonded contact before the main step (the one Mecway provides) starts, so that the pieces don't stick together yet. I believe I had to start with all my contacts on, then deactivate all the ones that I don't want at the start in the custom model definition (not 100% on this)

    - The custom step contents start with an "END STEP", as in Victor's example. This ends the main step and allows a custom step to start

    - The next step is where I disable the old contact and start the new one. The commands there should be pretty clear, since you found "MODEL CHANGE" already. It's set to run for 0.15 seconds in 0.03 second increments, just like the main step.

    - The "amplitude" and "boundary" parts are used to move the cylinder back up during my custom step. CCX manuals should describe how the cards work, and the only annoying part is getting the list of nodes you want. I think I wrote a script to get a list of selected nodes then just selected the ones I wanted, but that might be overkill for what you're doing.

    In short: This should be an example of how to deactivate/activate contacts at will, if you're willing to write a custom time step after every activation change. Feel free to ask questions, and good luck!

  • Thanks’ Victor and ConelisP,

    I will follow the code in detail. Seems to me it opens a whole set of new options.
    I think I could remove Displacement BC too by deleting the constrained elements once they do what I need.

    Thank you very much again.

    NOTE: It doesn’t run with ccx2.19. ccx2.17 provided with Mecway and ccx2.18 Static works fine.
  • Today dichtstoff at the ccx forum provided a solution to remove Displacement BC.

    *BOUNDARY, OP=NEW
  • Use OP=NEW with caution. When you release the boundary condition, the sudden recovery can sometimes mess with convergence. Also, I think there are rules about deleting that are not all that intuitive (to me anyway).

    If I use OP=NEW I always define all BOUNDARY cards over where they should be, which sometimes means knowing what the last AMPLITUDE card did to your values.

    I have attached an example.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!