@@ -25,7 +25,7 @@ RebarBondSlipConstraint::validParams()
2525{
2626 InputParameters params = EqualValueEmbeddedConstraint ::validParams ();
2727 params .addClassDescription (
28- "This is a constraint enforcing the bodslip behavior between concrete and rebar" );
28+ "This is a constraint enforcing the bod-slip behavior between concrete and rebar" );
2929 params .addRequiredParam < unsigned int > ("component" ,
3030 "An integer corresponding to the direction "
3131 "the variable this kernel acts in. (0 for x, "
@@ -100,12 +100,11 @@ bool
100100RebarBondSlipConstraint ::shouldApply ()
101101{
102102 if (_debug )
103- if (_current_node -> id () == 144 )
104- {
105- std ::cout << "===========================================\n" ;
106- std ::cout << "node id: " << _current_node -> id () << std ::endl ;
107- std ::cout << "at coord: " << (Point )* _current_node << std ::endl ;
108- }
103+ {
104+ std ::cout << "===========================================\n" ;
105+ std ::cout << "node id: " << _current_node -> id () << std ::endl ;
106+ std ::cout << "at coord: " << (Point )* _current_node << std ::endl ;
107+ }
109108 auto it = _secondary_to_primary_map .find (_current_node -> id ());
110109
111110 if (it != _secondary_to_primary_map .end ())
@@ -157,8 +156,7 @@ RebarBondSlipConstraint::computeTangent()
157156 _current_elem_volume /= elems .size ();
158157
159158 if (_debug )
160- if (_current_node -> id () == 144 )
161- std ::cout << "tangent: " << _secondary_tangent << std ::endl ;
159+ std ::cout << "tangent: " << _secondary_tangent << std ::endl ;
162160}
163161
164162void
@@ -176,10 +174,9 @@ RebarBondSlipConstraint::reinitConstraint()
176174 RealVectorValue slip_axial = slip * _secondary_tangent ;
177175 RealVectorValue slip_normal = relative_disp - slip_axial ;
178176 Real slip_ratio = std ::abs (slip ) / _transitional_slip [0 ];
179- // Real bond_stress;
177+
180178 if (_debug )
181- if (_current_node -> id () == 144 )
182- std ::cout << "Slip = " << slip << ".\n" ;
179+ std ::cout << "Slip = " << slip << ".\n" ;
183180
184181 const Node * node = _current_node ;
185182 auto it = _bondslip .find (node -> id ());
@@ -190,17 +187,16 @@ RebarBondSlipConstraint::reinitConstraint()
190187 bond_slip .slip_max = std ::max (bond_slip .slip_max_old , slip );
191188
192189 if (_debug )
193- if (_current_node -> id () == 144 )
194- {
195- std ::cout << "Slip_min = " << bond_slip .slip_min << ".\n" ;
196- std ::cout << "Slip_min_old = " << bond_slip .slip_min_old << ".\n" ;
197- std ::cout << "Slip_max = " << bond_slip .slip_max << ".\n" ;
198- std ::cout << "Slip_max_old = " << bond_slip .slip_max_old << ".\n" ;
199- std ::cout << "Bondstress_min = " << bond_slip .bondstress_min << ".\n" ;
200- std ::cout << "Bondstress_min_old = " << bond_slip .bondstress_min_old << ".\n" ;
201- std ::cout << "Bondstress_max = " << bond_slip .bondstress_max << ".\n" ;
202- std ::cout << "Bondstress_max_old = " << bond_slip .bondstress_max_old << ".\n" ;
203- }
190+ {
191+ std ::cout << "Slip_min = " << bond_slip .slip_min << ".\n" ;
192+ std ::cout << "Slip_min_old = " << bond_slip .slip_min_old << ".\n" ;
193+ std ::cout << "Slip_max = " << bond_slip .slip_max << ".\n" ;
194+ std ::cout << "Slip_max_old = " << bond_slip .slip_max_old << ".\n" ;
195+ std ::cout << "Bondstress_min = " << bond_slip .bondstress_min << ".\n" ;
196+ std ::cout << "Bondstress_min_old = " << bond_slip .bondstress_min_old << ".\n" ;
197+ std ::cout << "Bondstress_max = " << bond_slip .bondstress_max << ".\n" ;
198+ std ::cout << "Bondstress_max_old = " << bond_slip .bondstress_max_old << ".\n" ;
199+ }
204200
205201 Real slope = 5.0 * _max_bondstress / _transitional_slip [0 ];
206202 Real plastic_slip_max = bond_slip .slip_max - bond_slip .bondstress_max / slope ;
@@ -212,10 +208,6 @@ RebarBondSlipConstraint::reinitConstraint()
212208 {
213209 if (std ::abs (slip ) < _transitional_slip [0 ])
214210 {
215- if (_debug )
216- if (_current_node -> id () == 144 )
217- std ::cout << "Calculating bondstress for Case Ia"
218- << ".\n" ;
219211 _bond_stress = _max_bondstress * MathUtils ::sign (slip ) *
220212 (5.0 * slip_ratio - 4.5 * slip_ratio * slip_ratio +
221213 1.4 * slip_ratio * slip_ratio * slip_ratio );
@@ -225,49 +217,21 @@ RebarBondSlipConstraint::reinitConstraint()
225217 1.4 * 3.0 * slip_ratio * slip_ratio / _transitional_slip [0 ]);
226218 }
227219 else if (slip >= _transitional_slip [0 ] && slip < _ultimate_slip )
228- {
229- if (_debug )
230- if (_current_node -> id () == 144 )
231- std ::cout << "Calculating bondstress for Case Ib"
232- << ".\n" ;
233220 _bond_stress = 1.9 * _max_bondstress ;
234- }
235221 else if (slip <= - _transitional_slip [0 ] && slip > - _ultimate_slip )
236- {
237- if (_debug )
238- if (_current_node -> id () == 144 )
239- std ::cout << "Calculating bondstress for Case Ic"
240- << ".\n" ;
241222 _bond_stress = -1.9 * _max_bondstress ;
242- }
243223 else
244- {
245- if (_debug )
246- if (_current_node -> id () == 144 )
247- std ::cout << "Calculating bondstress for Case Id"
248- << ".\n" ;
249224 _bond_stress = _frictional_bondstress * MathUtils ::sign (slip );
250- }
251225 }
252226 else if (slip > plastic_slip_max && slip < bond_slip .slip_max )
253227 {
254- if (_debug )
255- if (_current_node -> id () == 144 )
256- std ::cout << "Calculating bondstress for Case II"
257- << ".\n" ;
258-
259228 _bond_stress = (slip - plastic_slip_max ) * bond_slip .bondstress_max /
260229 (bond_slip .slip_max - plastic_slip_max );
261230
262231 _bond_stress_deriv = bond_slip .bondstress_max / (bond_slip .slip_max - plastic_slip_max );
263232 }
264233 else if (slip < plastic_slip_min && slip > bond_slip .slip_min )
265234 {
266- if (_debug )
267- if (_current_node -> id () == 144 )
268- std ::cout << "Calculating bondstress for Case III"
269- << ".\n" ;
270-
271235 _bond_stress = (slip - plastic_slip_min ) * bond_slip .bondstress_min /
272236 (bond_slip .slip_min - plastic_slip_min );
273237 _bond_stress_deriv = bond_slip .bondstress_min / (bond_slip .slip_min - plastic_slip_min );
@@ -276,11 +240,10 @@ RebarBondSlipConstraint::reinitConstraint()
276240 _bond_stress = _frictional_bondstress ;
277241
278242 if (_debug )
279- if (_current_node -> id () == 144 )
280- {
281- std ::cout << "Bondstress = " << _bond_stress << "\n" ;
282- std ::cout << "Bondstress Derivative = " << _bond_stress_deriv << "\n" ;
283- }
243+ {
244+ std ::cout << "Bondstress = " << _bond_stress << "\n" ;
245+ std ::cout << "Bondstress Derivative = " << _bond_stress_deriv << "\n" ;
246+ }
284247
285248 Real bond_force = 2.0 * libMesh ::pi * _bar_radius * _current_elem_volume * _bond_stress ;
286249 Real bond_force_deriv =
@@ -292,14 +255,6 @@ RebarBondSlipConstraint::reinitConstraint()
292255 _constraint_residual = constraint_force_axial + constraint_force_normal ;
293256 _constraint_jacobian_axial = bond_force_deriv * _secondary_tangent ;
294257
295- if (_debug )
296- if (_current_node -> id () == 144 )
297- {
298- std ::cout << "Constraint Residual Axial = " << constraint_force_axial << "\n" ;
299- std ::cout << "Constraint Residual Normal = " << constraint_force_normal << "\n" ;
300- std ::cout << "Constraint Residual = " << _constraint_residual << "\n" ;
301- }
302-
303258 bond_slip .bondstress_min = std ::min (bond_slip .bondstress_min_old , _bond_stress );
304259 bond_slip .bondstress_max = std ::max (bond_slip .bondstress_max_old , _bond_stress );
305260
0 commit comments