Skip to content

Commit c29f7b7

Browse files
authored
Added files for tutorial
Added the tutorial notebook (TutorialForGenericAI.ipynb) together with all the needed files. These should serve as a demonstration on how to use methods available in the ROMApp to build machine learning applications.
1 parent 1ad4569 commit c29f7b7

File tree

5 files changed

+2577
-0
lines changed

5 files changed

+2577
-0
lines changed
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"problem_data" : {
3+
"problem_name" : "beam_si",
4+
"parallel_type" : "OpenMP",
5+
"echo_level" : 1,
6+
"start_time" : 0.0,
7+
"end_time" : 1.0
8+
},
9+
"solver_settings" : {
10+
"time_stepping" : {
11+
"time_step" : 1.1
12+
},
13+
"solver_type" : "Static",
14+
"model_part_name" : "Structure",
15+
"domain_size" : 2,
16+
"echo_level" : 0,
17+
"analysis_type" : "non_linear",
18+
"model_import_settings" : {
19+
"input_type" : "mdpa",
20+
"input_filename" : "beam_si"
21+
},
22+
"material_import_settings" : {
23+
"materials_filename" : "StructuralMaterials.json"
24+
},
25+
"line_search" : false,
26+
"convergence_criterion" : "residual_criterion",
27+
"displacement_relative_tolerance" : 0.0001,
28+
"displacement_absolute_tolerance" : 1e-9,
29+
"residual_relative_tolerance" : 1e-9,
30+
"residual_absolute_tolerance" : 1e-9,
31+
"max_iteration" : 100,
32+
"use_old_stiffness_in_first_iteration" : false,
33+
"rotation_dofs" : false,
34+
"volumetric_strain_dofs" : false
35+
},
36+
"processes" : {
37+
"constraints_process_list" : [{
38+
"python_module" : "assign_vector_variable_process",
39+
"kratos_module" : "KratosMultiphysics",
40+
"process_name" : "AssignVectorVariableProcess",
41+
"Parameters" : {
42+
"model_part_name" : "Structure.DISPLACEMENT_Displacement_Auto1",
43+
"variable_name" : "DISPLACEMENT",
44+
"interval" : [0.0,"End"],
45+
"constrained" : [true,true,true],
46+
"value" : [0.0,0.0,0.0]
47+
}
48+
}],
49+
"loads_process_list" : [{
50+
"python_module" : "assign_vector_by_direction_to_condition_process",
51+
"kratos_module" : "KratosMultiphysics",
52+
"check" : "DirectorVectorNonZero direction",
53+
"process_name" : "AssignVectorByDirectionToConditionProcess",
54+
"Parameters" : {
55+
"model_part_name" : "Structure.PointLoad2D_Load_on_points_Auto1",
56+
"variable_name" : "POINT_LOAD",
57+
"interval" : [0.0,"End"],
58+
"modulus" : 1000000000.0,
59+
"direction" : [0.0,-1,0.0]
60+
}
61+
}],
62+
"list_other_processes" : []
63+
},
64+
"output_processes" : {
65+
"gid_output" : [{
66+
"python_module" : "gid_output_process",
67+
"kratos_module" : "KratosMultiphysics",
68+
"process_name" : "GiDOutputProcess",
69+
"Parameters" : {
70+
"model_part_name" : "Structure",
71+
"postprocess_parameters" : {
72+
"result_file_configuration" : {
73+
"gidpost_flags" : {
74+
"GiDPostMode" : "GiD_PostBinary",
75+
"WriteDeformedMeshFlag" : "WriteDeformed",
76+
"WriteConditionsFlag" : "WriteConditions",
77+
"MultiFileFlag" : "SingleFile"
78+
},
79+
"file_label" : "step",
80+
"output_control_type" : "step",
81+
"output_interval" : 1,
82+
"body_output" : true,
83+
"node_output" : false,
84+
"skin_output" : false,
85+
"plane_output" : [],
86+
"nodal_results" : ["DISPLACEMENT","REACTION"],
87+
"nodal_nonhistorical_results" : [],
88+
"gauss_point_results" : ["VON_MISES_STRESS"]
89+
},
90+
"point_data_configuration" : []
91+
},
92+
"output_name" : "gid_output/beam_si"
93+
}
94+
}],
95+
"vtk_output" : [{
96+
"python_module" : "vtk_output_process",
97+
"kratos_module" : "KratosMultiphysics",
98+
"process_name" : "VtkOutputProcess",
99+
"Parameters" : {
100+
"model_part_name" : "Structure",
101+
"output_control_type" : "step",
102+
"output_interval" : 1,
103+
"file_format" : "ascii",
104+
"output_precision" : 7,
105+
"output_sub_model_parts" : false,
106+
"output_path" : "vtk_output",
107+
"save_output_files_in_folder" : true,
108+
"nodal_solution_step_data_variables" : ["DISPLACEMENT","REACTION"],
109+
"nodal_data_value_variables" : [],
110+
"element_data_value_variables" : [],
111+
"condition_data_value_variables" : [],
112+
"gauss_point_variables_extrapolated_to_nodes" : ["VON_MISES_STRESS"]
113+
}
114+
}]
115+
},
116+
"analysis_stage" : "KratosMultiphysics.StructuralMechanicsApplication.structural_mechanics_analysis"
117+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"properties": [{"model_part_name": "Structure.Parts_Solid_Solid_Auto1", "properties_id": 1, "Material": {"constitutive_law": {"name": "LinearElasticPlaneStrain2DLaw"}, "Variables": {"DENSITY": 7850.0, "YOUNG_MODULUS": 280012634876.6566, "POISSON_RATIO": 0.29}, "Tables": null}}]}

0 commit comments

Comments
 (0)