Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: MATLAB and ABAQUS in synchrony

  1. MATLAB and ABAQUS in synchrony

    People use MATLAB to carry out optimization by:

    a) importing value of a variable of interest from a .dat/.msg file
    b) using this scalar in a mathematical model
    c) updating the value by changing some parameter in the .inp file and running again until convergence is achieved

    My question is: is it possible to do this in real time without having to wait for a run to finish? After a cursory look, it does not seem like UEXTERNALDB is going to be of much help or is it?

    Your help is appreciated!

    Thanks!

  2. #2
    I've had a quick look at doing something similar to this too, essentially allowing Abaqus to communicate with another process, but never tried anything in too much detail. Something I was considering was using external files and a user subroutine to communicate, but that seems pretty computationally costly and I don't know how you'd tell the Abaqus executable to wait while the external code was updating the file.

    Another option would be using a code coupling interface (i.e. MPCCI) which might be some help for what you need, don't think it'll work for me.

    Would be interested to hear if anyone else had any thoughts on this too...

  3. I do not think updating the INP while ABAQUS is carrying out an analysis is a major roadblock. In fact, as soon as you run an analysis, ABAQUS doesn't even need the original INP. Indeed, one could even delete the INP and not have it interfere with the analysis.

  4. And, although interesting in itself, MpCCI is not the way for me. I do not intend to run two FE simulations in parallel. Instead, I want to run an FE simulation along with an optimization algorithm running in parallel.

    Thanks for your input @lumpwood

  5. Does anyone think NumPy/SciPy could do the job?

  6. #6
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    I am a big fan of NumPy/SciPy. And yes, you should be able to script the external process using Python, and have Python call Abaqus.

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

  7. Thanks Dr. Jorgen. I would like to know a little bit more about NumPy/SciPy before I jump in.

    Let's say I am running an FE simulation wherein a 3D body is being stabilized by a bunch of actuators each of whose activation needs to be optimized by an optimization algorithm. Can NumPy/SciPy allow me to do that? I can do it with MATLAB. However, at the moment, I start with a "guess" and wait for the initial FE simulation to finish. Then, I import the values of interest in to MATLAB, run the code, and then feed the new values of the activations back in to the INP, and run the FE simulation again.

    Can I accomplish this process without having to wait for the simulation to finish? I would like for the optimization code to be able to check the values of interest after every increment, and if they are not what they ought to be, re-run the simulation with new values of the activation parameter.

  8. #8
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    Based on my understanding of what you are trying to do, I think you need to run the optimization step-wise, just like you have. You can replace Matlab with NumPy/SciPy, but you still need to run a complete FE simulation and the iterate.

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

  9. Thanks again, Dr. Jorgen. I have another question, if I may. Perhaps there is something that I may be missing but what is wrong with what I mentioned previously.

    Thanks.

  10. #10
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    I did not quite understand how you planned to iterate from within a UMAT/integration point. Your preferred approach may be OK, I just don't quite follow what you are doing.

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

Similar Threads

  1. Running Abaqus script using DOS command or through Matlab
    By chethangouder in forum Computer Software
    Replies: 4
    Last Post: 2013-04-21, 02:14
  2. Running Abaqus from Matlab script
    By CF in forum Computer Software
    Replies: 14
    Last Post: 2013-03-17, 14:07
  3. How to creat a data file of abaqus which can be readed by Matlab
    By lanfeng in forum Finite Element Modeling
    Replies: 12
    Last Post: 2011-09-23, 13:35
  4. Matlab Integration w Abaqus
    By IceBreaker in forum Computer Software
    Replies: 1
    Last Post: 2010-02-28, 19:41
  5. Abaqus data to Fluent or Matlab
    By rockerbox in forum Computer Software
    Replies: 3
    Last Post: 2009-05-04, 14:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •