-
Notifications
You must be signed in to change notification settings - Fork 0
/
converter_salome_kratos.py
52 lines (40 loc) · 1.46 KB
/
converter_salome_kratos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'''
___ _ _ ___ __ __ ___ _ _____ _ _____ ___ ___
/ __| /_\ | | / _ \| \/ | __|__| |/ / _ \ /_\_ _/ _ \/ __|
\__ \/ _ \| |_| (_) | |\/| | _|___| ' <| / / _ \| || (_) \__ \
|___/_/ \_\____\___/|_| |_|___| |_|\_\_|_\/_/ \_\_| \___/|___/
/ __|___ _ ___ _____ _ _| |_ ___ _ _
| (__/ _ \ ' \ V / -_) '_| _/ -_) '_|
\___\___/_||_\_/\___|_| \__\___|_|
Salome to Kratos Converter
Converts *.dat files that contain mesh information to *.mdpa file to be used as input for Kratos Multiphysics.
Author: Philipp Bucher
Chair of Structural Analysis
June 2017
Intended for non-commercial use in research
Prerequisites: tkinter
Works only with Python 3
Usage: Execute this file with Python 3
File Structure:
converter_salome_kratos.py ### Main File
converter_gui.py ### GUI related Functionalities
converter_gui_utilities.py ### Auxilliary Functions for GUI functions
kratos_utilities.py ### Kratos Related Utilities, also used in other Projects
global_utilities.py ### Global Utilities, also used in other Projects
'''
# Python imports
import tkinter
import logging
# Project imports
import converter_gui as gui
import converter_gui_utilities as utils
import kratos_io_utilities as kratos_utils
def main():
logging.info("Starting Converter")
utils.PrintLogo()
model_part = kratos_utils.MainModelPart()
root = tkinter.Tk()
gui.GUIObject(root, model_part)
root.mainloop()
if __name__ == '__main__':
main()