Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Why is my 2-way FSI going to take so long to complete? Can I change something to make it go faster?

    • simonhackett
      Subscriber

      So I still have work to do for my simulation but my report is due in a week so I need to get something done to hand in. I ran this simulation before without knowing too much about the Fluent setup and so it was overly simplified, but not much has changed.

      Last night I started the coupled analysis with the changes I made (some minor mesh refinements, enabling the energy equation, and changing a few physics settings) and it's been running for about 9.5 hours now at only 48% complete. Why is it taking so much longer than before? I'm doing the same amount of iterations but now it's going to take nearly 10x as long (it took just under an hour and a half before).

      Is there a single specific setting that would do this? When I was running just Fluent on its own it would solve within a few minutes at the very most for even up to about 100 iterations. I'm only running 250 iterations of system coupling right now.

    • Rob
      Forum Moderator
      The obvious one is parallel for Fluent, but you also want to look at update frequency and what's going on in the refined Fluent model. On the latter, if the solution is mesh dependent small changes in the mesh or settings can have a more significant effect on the solution, this then effects convergence and solver speed. n
    • Steve
      Ansys Employee
      I agree withArray, running the refined Fluent only case should give more insight into what's happening.nSome further information:nIt is very important to build up the FSI simulation in stages as opposed to setting up the 2-way FSI right at the start. This document Best Practices for Coupled Fluid-Structure Interaction (FSI) describes this process and is available here:https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v202/en/sysc_ug/sysc_bestpractices_fsi.html, System Coupling User's Guide \\ Best Practices for System Coupling \\ Best Practices for Coupled Fluid-Structure Interaction (FSI)nFSI simulations with very soft materials or membranes are prone to numerical instabilities. In 2020R1 we have introduced a stabilization method in System Coupling called the Quasi-Newton Stabilization Algorithm. Note that this has to be used with the new System Coupling GUI or Command Line Interface that is run outside of Workbench. More information here:https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v202/en/sysc_ug/sysc_gen_scservice_dt_supplemental_iqnils.html, System Coupling User's Guide \\ System Coupling Data Transfers \\ Supplemental Processing Algorithms \\ Quasi-Newton Stabilization AlgorithmnYou can also look at the following tutorial run with the System Coupling GUI or Command Line Interface that is run outside of Workbench:https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v202/en/sysc_tut/sysc_tut_oscplate_cli_fluent.html, System Coupling Tutorials \\ Tutorials with Command-Line Interface (CLI) Workflows \\ Oscillating Plate FSI with Fluent and Mechanical
    • simonhackett
      Subscriber
      Arraywhat do you mean by parallel for Fluent and update frequency? About the mesh dependency, I do have a dynamic mesh enabled at the fluid-solid interface but that was enabled before when I did not encounter this problem with the run-time (is this what you mean?). nArray, prior to running this coupled system I had done a lot of work with just the Fluent system alone in a separate project and it was giving me no such problems in regards to how long it took to solve. I essentially replicated all the things I did in that Fluent system for this FSI simulation, and only now is it taking so long. I had previously ran a very similar FSI but with some different Fluent settings and it took an hour and a half to solve. n
    • Rob
      Forum Moderator
      Fluent runs on a single core by default, to accelerate simulations we run in parallel, ie on many cores. I think you can use about 16 for a standard academic seat, but please check. Similarly, if you update the mech model every step it takes time, I'll leave to comment, but it may be possible to update Mechanical less frequently. If deformation is low you may find the FSI bit isn't too tightly coupled. nAs an aside, have a look at the intrinsic FSI in Fluent in the 2020 release, that avoids Mechanical entirely but doesn't have all the features. n
    • simonhackett
      Subscriber
      ,I run using 6 cores (I'm pretty sure my CPU only has 6). I haven't changed any of those settings and it was running just fine before tweaking those things in Fluent that were in my other discussion thread. nI noticed something in a tutorial about FSI just using Fluent, but it was very different from what I'm used to dealing with so I figured it would be best to try and stick with making it as similar as the one-way case (that uses CFX) as possible. nCan you think of any other settings I should check? Maybe I accidentally enabled (or disabled) something I shouldn't have? I don't see why adding viscous heating and those other things would be an issue only with the coupled system, my standalone Fluent model would solve in less than a few minutes.n
    • Rob
      Forum Moderator
      Not sure then, there shouldn't be any change in Fluent behaviour when hooked up to FSI but check your RAM & cpu load incase you're holding Mech or system coupling in the background. knows a lot more about this, I seem to cover multiphase & weird stuff in Fluent and have very little knowledge about how structures bend (I'm a Chemical Engineer so didn't do much solids at Uni). n
    • Steve
      Ansys Employee
      Hi Simon,nSo to recap, there are three cases that are being discussed. nFluent only case with some minor mesh refinements, enabling the energy equation, and changing a few physics settingsnFSI case with Fluent setup from 1.nInitial FSI case that runs in 1.5 hours.nIt's important to note that these cases are all very different and comparing the run times for them can be misleading without comparing the all the setup differences. If you attach some images of your geometry and list all changes between cases, it might be more clear why there are run time differences. There are many settings that can affect runtime so the investigation needs to start with comparing the differences between cases. Also at the end of the System Coupling log file there is a timing summary. This should give more information.n+============================================================================+n|               Timing Summary [s]               |n+============================================================================+n| Coupling Engine Time :                     2.8753E+00 |n| Coupling Participant Time                         |n|  Fluid Flow (CFX) :                      1.7293E+01 |n|  Transient Structural :                    4.2373E+00 |n| Total Time :                          2.4406E+01 |n+============================================================================+nn
    • simonhackett
      Subscriber
      ,I think I understand what you mean. I probably don?t have time to get to it today but I?ll do my best to go through it once I do have the time. n(The FSI is being done partially academic project and also for a student engineering team. The academic project report has been finished and I?m just at the end of my term which is concentrated with midterms, assignments, and group project deadlines.)nI have a preliminary project report which predates the updates I made in Fluent and describes the setup. I think I glossed over a few things but going off of that and my memory, I should be able to list everything that?s different. I may even have an archive of the FSI project when it ran in 1.5 hours too.n
    • simonhackett
      Subscriber
      Hi again nI finished my final academic term in December so I took a bit of a break but I am going to be working on this again for a couple weeks before handing it off to another member of the student team. nI'm working at getting a full license, I believe the sponsorship for it has been completed, we're just waiting to get the information for the license key. nCan you remind me what you wanted me to check for the three cases? nI'll try and access the simulation which completed in 1.5 hours but I think I may have made the changes directly to it. I have a .wbpz file saved but I forget what stage it was at, I'm hoping it will be the one that solved quickly. I'll need to look into reopening a .wbpz archive before I can do much with this as I am not experienced with it.nI still have the project which was just the Fluent case with no FSI attached which solves (albeit without convergence) with no issues, and the final FSI project which solved over about a full day if I remember correctly, with the same Fluent settings. n
Viewing 9 reply threads
  • The topic ‘Why is my 2-way FSI going to take so long to complete? Can I change something to make it go faster?’ is closed to new replies.