MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / GiDOutputProcess

Class GiDOutputProcess

kratos/python_scripts/gid_output_process.py:20–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 return GiDOutputProcess(model_part, output_name, postprocess_parameters)
19
20class GiDOutputProcess(KM.OutputProcess):
21
22 defaults = KM.Parameters('''{
23 "result_file_configuration": {
24 "gidpost_flags": {
25 "GiDPostMode": "GiD_PostBinary",
26 "WriteDeformedMeshFlag": "WriteUndeformed",
27 "WriteConditionsFlag": "WriteElementsOnly",
28 "MultiFileFlag": "SingleFile"
29 },
30 "file_label": "time",
31 "time_label_format": "{:.12f}",
32 "output_control_type": "step",
33 "output_interval": 1.0,
34 "flush_after_output": false,
35 "body_output": true,
36 "node_output": false,
37 "skin_output": false,
38 "plane_output": [],
39 "nodal_results": [],
40 "nodal_nonhistorical_results": [],
41 "nodal_flags_results": [],
42 "elemental_conditional_flags_results": [],
43 "gauss_point_results": [],
44 "additional_list_files": []
45 },
46 "point_data_configuration": []
47 }''')
48
49 default_plane_output_data = KM.Parameters('''{
50 "normal": [0.0, 0.0, 0.0],
51 "point" : [0.0, 0.0, 0.0]
52 }''')
53
54 __post_mode = {
55 # JSON input
56 "GiD_PostAscii": KM.GiDPostMode.GiD_PostAscii,
57 "GiD_PostAsciiZipped": KM.GiDPostMode.GiD_PostAsciiZipped,
58 "GiD_PostBinary": KM.GiDPostMode.GiD_PostBinary,
59 "GiD_PostHDF5": KM.GiDPostMode.GiD_PostHDF5,
60 # Legacy
61 "Binary": KM.GiDPostMode.GiD_PostBinary,
62 "Ascii": KM.GiDPostMode.GiD_PostAscii,
63 "AsciiZipped": KM.GiDPostMode.GiD_PostAsciiZipped,
64 }
65
66 __write_deformed_mesh = {
67 # JSON input
68 "WriteDeformed": KM.WriteDeformedMeshFlag.WriteDeformed,
69 "WriteUndeformed": KM.WriteDeformedMeshFlag.WriteUndeformed,
70 # Legacy
71 True: KM.WriteDeformedMeshFlag.WriteDeformed,
72 False: KM.WriteDeformedMeshFlag.WriteUndeformed,
73 }
74
75 __write_conditions = {
76 # JSON input
77 "WriteConditions": KM.WriteConditionsFlag.WriteConditions,

Callers 11

read_stl.pyFile · 0.90
PostProcessFunction · 0.90
post_process_gidFunction · 0.90
PostProcessMethod · 0.90
post_process_gidFunction · 0.90
__WriteOutputMethod · 0.90
PostProcessFunction · 0.90
__post_processMethod · 0.90
GidDebugFunction · 0.90
FactoryFunction · 0.70

Calls 1

ParametersMethod · 0.45

Tested by 9

PostProcessFunction · 0.72
post_process_gidFunction · 0.72
PostProcessMethod · 0.72
post_process_gidFunction · 0.72
__WriteOutputMethod · 0.72
PostProcessFunction · 0.72
__post_processMethod · 0.72
GidDebugFunction · 0.72