Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Static Step for FSI #101

Merged
merged 3 commits into from
Jul 29, 2022
Merged

Conversation

MatthiasFreimuth
Copy link
Contributor

@MatthiasFreimuth MatthiasFreimuth commented Jul 21, 2022

Enable basic Static Step for FSI

One use case could be a one-way coupled static precalculation to take a deformation due to steady loads into account before the real instationary fully coupled simulation starts. One can therefore use the restart capabilities of CalculiX.

related to #63

Enable basic Static Step
@MatthiasFreimuth MatthiasFreimuth changed the title Update ccx_2.19.c Enable Static Step for FSI Jul 21, 2022
@boris-martin
Copy link
Collaborator

boris-martin commented Jul 21, 2022

I tried testing this by modifying the elastic-tube-3d tutorial.
I added a static step before the dynamic step:

*INCLUDE, INPUT=all.msh
*INCLUDE, INPUT=inlet.nam
*INCLUDE, INPUT=outlet.nam
*INCLUDE, INPUT=wall.nam
*INCLUDE, INPUT=interface.nam
*INCLUDE, INPUT=interface.sur
*MATERIAL, Name=EL
*ELASTIC
300000.0, 0.3
*DENSITY
1200.0
*SOLID SECTION, Elset=Eall, Material=EL

** This is wh acuat I added
*STEP, NLGEOM
*STATIC
1, 1
*END STEP


*STEP, INC=1000000
*DYNAMIC,DIRECT,NLGEOM
 0.0001,0.01
*RESTART,WRITE,FREQUENCY=1
*BOUNDARY
 Ninlet,1,3,0
 Noutlet,1,3,0
*CLOAD
 Ninterface,1,0.0
 Ninterface,2,0.0
 Ninterface,3,0.0
*NODE FILE
 U
*EL FILE
 S, E
*END STEP
I get an error without this PR (as expected), but with a segfault during the static step (before connecting to the other participant but after setting the mesh). Any idea where it comes from ? Is it because I used a bad configuration or would it be a problem in the code ? (I assume having 2 coupled steps without a good usage of RESTART is doomed anyways) It actually crashed because I didn't define the required forces. Everything OK on my side then! (Though I wonder why I didn't get the proper error message in this case)

@MakisH
Copy link
Member

MakisH commented Jul 22, 2022

Thanks a lot for the contribution! Are you also preparing a PR to the website/documentation?

@MatthiasFreimuth
Copy link
Contributor Author

I'm currently not preparing a PR to the website/documentation, but may do so if I find the time at some point.

@boris-martin boris-martin merged commit 3ca686f into precice:develop Jul 29, 2022
boris-martin added a commit that referenced this pull request Nov 17, 2022
* Improved error message (for missing mesh) (#88)

* Added error message for missing faces mesh
* Improved error message for missing nodes mesh

* 2D simulations major overhaul (#92)

Fixed 2D simulations being unusable with Temperature BC. Arbitrary number of elements on the Z-axis is now allowed and handled assuming data independant of the Z-axis.

* Added Pressure ExchangeData, hexaedral elements and Modal Dynamic Modus (#91)

* Added Pressure ExchangeData, hexaedral elements and Modal Dynamic Modus

* Update dyna_precice.c

Co-authored-by: Matthias Freimuth <matzefreim@gmail.com>
Co-authored-by: Boris Martin <84379125+boris-martin@users.noreply.github.com>

* format

* Added warning of broken implicit coupling when using modal dynamic simulations

* Fixed mesh configuration 2D coupling with Face meshes (#94)

* Fixed mesh config for face mesh

* Removed dead code

* Fixed missing include

* Fixed crash when using face meshes and element IDs don't start to 0 (#95)

* Fixed crashing simulation when using face meshes and element IDs don't start to 0

* Typo

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Typo

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Typo

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Update adapter/CCXHelpers.h

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* format

* reverted fallow-argument-mismatch

* format

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Revert "Fixed crash when using face meshes and element IDs don't start to 0 (#95)" (#96)

This reverts commit 9cfc0cf.

* Update packaging script to Ubuntu 22.04 LTS (#98)

* added ubuntu 22.04 to the list of OSes in Github action

* updated to 2 Ubuntu LTS only, added fflags

* fixed wrong distribution name

* added preivous Ubuntu non-LTS

* fixd missing os

* typo

* removed non LTS

* Fixed face mesh config(correct PR) (#97)

* Fixed crashing simulation when using face meshes and element IDs don't start to 0

* Typo

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Typo

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Typo

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* Update adapter/CCXHelpers.h

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>

* format

* format

* restored script

* Fixed implicit coupling in modal dynamic simulation. (#99)

* Fixed missing checkpointing

* fixed extra output in implicit coupling

* removed deprecated warnings

* Fixed crash when freeing unused pointers (#102)

* init NULL pointers

* Enable Static Step for FSI (#101)

* Update ccx_2.19.c

Enable basic Static Step

* Update ccx_2.19.c

* Update ccx_2.19.c

* Add error messages when reading invalid data in modal dynamic simulations (#103)

* registering modal dynamic

* added forbidden reading types to modal dynamic sims

* added actual error

* Update adapter/PreciceInterface.c

Co-authored-by: Gerasimos Chourdakis <makishourdakis@gmail.com>

* Update adapter/PreciceInterface.h

Co-authored-by: Gerasimos Chourdakis <makishourdakis@gmail.com>

Co-authored-by: Gerasimos Chourdakis <makishourdakis@gmail.com>

* basic infrastructure for proper checkpointingin dyna_precice

* seemingly working implict + subcycling modal dynamic simulations

* Prototype output buffer

* added C API

* added missing function

* improved Buffer

* Actual usage of the buffer, seemingly working

* added short description of the buffer mechanism

* cleanup

* refactoring

* format

* removed dead code

* renamed for consistency

* no longer asking for length when loading data

* cleanup

* documentation

* removed apparently useless memcpy (#104)

* Make read/write data name parsing consistent (#108)

* Update for CalculiX v2.20 (#109)

Co-authored-by: Boris Martin <84379125+boris-martin@users.noreply.github.com>
Co-authored-by: MatthiasFreimuth <34025080+MatthiasFreimuth@users.noreply.github.com>
Co-authored-by: Matthias Freimuth <matzefreim@gmail.com>
Co-authored-by: Boris Martin <boris.martin.be@gmail.com>
Co-authored-by: Ishaan Desai <ishaandesai@gmail.com>
Co-authored-by: Kyle Davis <kyle.davis@ipvs.uni-stuttgart.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants