Skip to content

Commit c88070a

Browse files
[FreeSurface] Remove unused options in the Free Surface Application (#955)
* Hide unused options * Remove more unused options
1 parent 729e152 commit c88070a

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

kratos.gid/apps/FreeSurface/xml/Main.spd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
<include n="SolutionStrategy" active="1" path="apps/Fluid/xml/SolutionStrategy.spd"/>
1010
<include n="Results" active="1" un="FLResults" path="apps/Common/xml/Results.spd"/>
1111
<include n="GenericSubModelPart" active="1" path="apps/Common/xml/GenericSubModelPart.spd"/>
12-
<include n="Materials" active="1" path="apps/Fluid/xml/Materials.spd"/>
13-
</container>
12+
<include n="Materials" active="0" path="apps/Fluid/xml/Materials.spd"/>
13+
</container>

kratos.gid/apps/FreeSurface/xml/Parts.spd

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,5 @@
22

33
<condition n="FluidParts" pn="Parts" ov="[CheckGeometry 1]" icon="reservoir16" help="Select your group" un="FLParts" update_proc="UpdateParts">
44
<value n="Element" pn="Element" v="" dict="[GetElements]" actualize="1" values="" state="hidden">
5-
<dependencies node="../value[@n!='Material']" actualize="1"/>
6-
</value>
7-
<value n="ConstitutiveLaw" pn="Fluid type" v="" actualize_tree="1" values="[GetConstitutiveLaws]" state="hidden" dict="[GetAllConstitutiveLaws]">
8-
<dependencies node="../value[@n!='Material']" actualize="1"/>
9-
</value>
10-
<value n="Material" pn="Material" state="hidden" help="Choose a material from the database" v="Air" values="[GetMaterialsList]">
11-
<edit_command n="Edit materials" pn="Edit materials" icon="refresh.png" proc='EditDatabaseList'/>
125
</value>
136
</condition>

kratos.gid/apps/FreeSurface/xml/XmlController.tcl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ proc ::FreeSurface::xml::Init { } {
2020
Model::getConditions Conditions.xml
2121

2222

23-
# Remove No splip
23+
# Remove No slip
2424
Model::ForgetCondition NoSlip2D
2525
Model::ForgetCondition NoSlip3D
26+
# Remove Wall Law
27+
Model::ForgetCondition WallLaw2D
28+
Model::ForgetCondition WallLaw3D
2629
}
2730

2831
proc ::FreeSurface::xml::getUniqueName {name} {
@@ -40,7 +43,7 @@ proc ::FreeSurface::xml::CustomTree { args } {
4043
spdAux::SetValueOnTreeItem v 9.8 FLGravity GravityValue
4144

4245
set root [customlib::GetBaseRoot]
43-
foreach {n pn} [list LIN_DARCY_COEF "Linear darcy coefficient" NONLIN_DARCY_COEF "Nonlinear darcy coefficient" POROSITY "Porosity" BODY_FORCE "Body force"] {
46+
foreach {n pn} [list LIN_DARCY_COEF "Linear darcy coefficient" NONLIN_DARCY_COEF "Nonlinear darcy coefficient" POROSITY "Porosity"] {
4447
if {[$root selectNodes "[spdAux::getRoute NodalResults]/value\[@n='$n'\]"] eq ""} {
4548
gid_groups_conds::addF [spdAux::getRoute NodalResults] value [list n $n pn $pn v Yes values "Yes,No"]
4649
}

0 commit comments

Comments
 (0)