Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multi-material #119

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Enable multi-material #119

wants to merge 7 commits into from

Conversation

streeve
Copy link
Collaborator

@streeve streeve commented Jul 17, 2024

Add type lists to new force models, with averaged properties for cross terms

  • Still missing explicit cross terms

Closes #109

@streeve streeve added the enhancement New feature or request label Jul 17, 2024
@streeve streeve requested a review from pabloseleson July 17, 2024 19:41
@streeve streeve marked this pull request as draft July 17, 2024 19:41
@streeve streeve force-pushed the interaction_lists branch 2 times, most recently from 57d4112 to 45d0c32 Compare July 23, 2024 16:32
@streeve streeve marked this pull request as ready for review July 23, 2024 16:33
@streeve streeve force-pushed the interaction_lists branch from 3f6efe0 to 315f5cb Compare August 9, 2024 15:46
@streeve streeve force-pushed the interaction_lists branch 3 times, most recently from 332546b to 8686675 Compare August 20, 2024 19:49
@streeve streeve force-pushed the interaction_lists branch from 8686675 to c089abf Compare August 20, 2024 20:41

KOKKOS_INLINE_FUNCTION void operator()( const int i ) const
{
c( i, i ) = micromodulus( i );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should move this to a separate loop

exec_space(), low_corner, high_corner, num_cells, halo_width );

std::array<double, 2> same_d = { delta, delta };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't modify the Kalthoff Winkler example. If this is just for testing, we need to create a new example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, I will remove when you push a new example

"density" : {"value": 3980, "unit": "kg/m^3"},
"elastic_modulus" : {"value": 370e+9, "unit": "Pa"},
"elastic_modulus" : {"value": [370e+9, 100e+9, 10e+9], "unit": "Pa", "note": "11, 22, 12"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have 3 values here? I believe we only need for a bimaterial the elastic modulus of material 1 and material 2.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this to draft. But until we have a bi-material example, I need places to test things are working

@@ -82,7 +82,8 @@ void thermalDeformationExample( const std::string filename )
// Force model
// ====================================================
auto force_model = CabanaPD::createForceModel(
model_type{}, CabanaPD::Elastic{}, *particles, delta, K, alpha, temp0 );
model_type{}, CabanaPD::Elastic{}, CabanaPD::TemperatureDependent{},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem related to bimaterial models.

@streeve streeve marked this pull request as draft December 18, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple Materials
2 participants