File tree Expand file tree Collapse file tree
kratos.gid/apps/CompressibleFluid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ proc ::CompressibleFluid::examples::Step::AssignGroups2D {args} {
8080 GiD_Groups edit color Obstacle " #3b3b3bff"
8181 GiD_EntitiesGroups assign Obstacle lines 2
8282
83+ GiD_Groups create Corner
84+ GiD_Groups edit color Corner " #3b3b3bff"
85+ GiD_EntitiesGroups assign Corner point 2
86+
8387}
8488proc ::CompressibleFluid::examples::Step::AssignGroups3D {args} {
8589 # To be implemented
@@ -175,7 +179,18 @@ proc ::CompressibleFluid::examples::Step::TreeAssignation2D {args} {
175179 $energy setAttribute ov line
176180 set props [list ByFunction No value 8.8 Interval Total]
177181 spdAux::SetValuesOnBaseNode $energy $props
182+ }
178183
184+ set momentum " $fluidConditions /condition\[ @n='MomentumConstraints$nd '\] "
185+ foreach gr [list Corner] {
186+ GiD_Groups create " $gr //Total"
187+ GiD_Groups edit state " $gr //Total" hidden
188+ spdAux::AddIntervalGroup $gr " $gr //Total"
189+
190+ set momentum [customlib::AddConditionGroupOnXPath $momentum " $gr //Total" ]
191+ $momentum setAttribute ov point
192+ set props [list value_component_X 0.0 value_component_Y 0.0]
193+ spdAux::SetValuesOnBaseNode $momentum $props
179194 }
180195
181196 # Time parameters
Original file line number Diff line number Diff line change 103103 WorkingSpaceDimension =" 2D"
104104 LocalSpaceDimension =" 2"
105105 SkinConditions =" True"
106- ElementType =" Line"
106+ ElementType =" Point, Line"
107107 App =" CompressibleFluid"
108108 ProcessName =" AssignVectorVariableProcess"
109109 help =" Choose a momentum to enforce at the boundary"
113113 unit_magnitude =" M/T/L^2" >
114114 <TopologyFeatures >
115115 <item GeometryType =" Line" nodes =" 2" KratosName =" WallCondition2D2N" />
116+ <item GeometryType =" Point" nodes =" 1" KratosName =" WallCondition2D1N" />
116117 </TopologyFeatures >
117118 <DegreesOfFreedom ></DegreesOfFreedom >
118119 <inputs ></inputs >
You can’t perform that action at this time.
0 commit comments