Skip to content

Commit

Permalink
Modified force output to test implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloseleson committed Feb 4, 2025
1 parent 527a208 commit 72e4dc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/mechanics/inputs/dogbone_tensile_test_lead.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"horizon" : {"value": 0.00199, "unit": "m"},
"yield_stress" : {"value": 7e4, "unit": "Pa"},
"grip_velocity" : {"value": 0.01, "unit": "m/s"},
"final_time" : {"value": 1.0, "unit": "s"},
"final_time" : {"value": 5e-5, "unit": "s"},
"timestep" : {"value": 4.45e-7, "unit": "s"},
"timestep_safety_factor" : {"value": 0.85},
"output_frequency" : {"value": 10000},
"output_frequency" : {"value": 10},
"output_reference" : {"value": false}
}
6 changes: 4 additions & 2 deletions src/CabanaPD_OutputProfiles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ struct updateField

auto operator()( const int p ) const
{
return Kokkos::sqrt( f( p, 0 ) * f( p, 0 ) + f( p, 1 ) * f( p, 1 ) +
f( p, 2 ) * f( p, 2 ) );
return f( p, 0 );
// return Kokkos::sqrt( f( p, 0 ) * f( p, 0 ) + f( p, 1 ) * f( p, 1 )
// +
// f( p, 2 ) * f( p, 2 ) );
}
};

Expand Down

0 comments on commit 72e4dc9

Please sign in to comment.