@@ -1090,51 +1090,6 @@ def check_hyperelasticity(self):
10901090 self .prohibit (model_eqns is not None and model_eqns > 3 ,
10911091 "hyperelasticity is not supported for model_eqns > 3" )
10921092
1093- def check_moving_bc (self ): # pylint: disable=too-many-branches
1094- """Checks moving boundary constraints"""
1095- # Check all directions for moving boundary velocities
1096- for direction in ['x' , 'y' , 'z' ]:
1097- # Check beg velocities
1098- vb1 = self .get (f'bc_{ direction } %vb1' , 0.0 )
1099- vb2 = self .get (f'bc_{ direction } %vb2' , 0.0 )
1100- vb3 = self .get (f'bc_{ direction } %vb3' , 0.0 )
1101- bc_beg_val = self .get (f'bc_{ direction } %beg' )
1102- if not (vb1 == 0 and vb2 == 0 and vb3 == 0 ):
1103- # Determine which velocity components should be zero based on direction
1104- if direction == 'x' :
1105- non_normal = vb2 != 0 or vb3 != 0
1106- elif direction == 'y' :
1107- non_normal = vb3 != 0 or vb1 != 0
1108- else : # z
1109- non_normal = vb1 != 0 or vb2 != 0
1110-
1111- if bc_beg_val == - 15 and non_normal : # BC_SLIP_WALL with non-normal velocities
1112- self .prohibit (True ,
1113- f"bc_{ direction } %beg must be -16 (no-slip wall) if non-normal velocities are set" )
1114- elif bc_beg_val not in [- 15 , - 16 ]: # Not SLIP or NO_SLIP
1115- self .prohibit (True ,
1116- f"bc_{ direction } %beg must be -15 or -16 if velocities are set" )
1117-
1118- # Check end velocities
1119- ve1 = self .get (f'bc_{ direction } %ve1' , 0.0 )
1120- ve2 = self .get (f'bc_{ direction } %ve2' , 0.0 )
1121- ve3 = self .get (f'bc_{ direction } %ve3' , 0.0 )
1122- bc_end_val = self .get (f'bc_{ direction } %end' )
1123- if not (ve1 == 0 and ve2 == 0 and ve3 == 0 ):
1124- if direction == 'x' :
1125- non_normal = ve2 != 0 or ve3 != 0
1126- elif direction == 'y' :
1127- non_normal = ve3 != 0 or ve1 != 0
1128- else : # z
1129- non_normal = ve1 != 0 or ve2 != 0
1130-
1131- if bc_end_val == - 15 and non_normal : # BC_SLIP_WALL with non-normal velocities
1132- self .prohibit (True ,
1133- f"bc_{ direction } %end must be -16 (no-slip wall) if non-normal velocities are set" )
1134- elif bc_end_val not in [- 15 , - 16 ]:
1135- self .prohibit (True ,
1136- f"bc_{ direction } %end must be -15 or -16 if velocities are set" )
1137-
11381093 # ===================================================================
11391094 # Pre-Process Specific Checks
11401095 # ===================================================================
@@ -1636,7 +1591,6 @@ def validate_common(self):
16361591 self .check_stiffened_eos ()
16371592 self .check_surface_tension ()
16381593 self .check_mhd ()
1639- self .check_moving_bc ()
16401594
16411595 def validate_simulation (self ):
16421596 """Validate simulation-specific parameters"""
0 commit comments