Skip to content

Material properties #3051

Answered by BBBBBbruce
Torubara-Oleg asked this question in Q&A
May 27, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I am not sure which part your got confused. Below I added how I set the Real2Sim parameters to the material.
I put two materials with same property.

   double Young = 1.0e+8;
   double Poisson = 0.4;

   Lambda = Young * Poisson / (1 + Poisson) / (1 - 2 * Poisson);
   Mu = 0.5 * Young / (1 + Poisson);

   Vector lambda(mesh->attributes.Max());
   lambda = 1.0 * Lambda;
   PWConstCoefficient lambda_func(lambda);
   Vector mu(mesh->attributes.Max());
   mu = 1.0 * Mu;
   PWConstCoefficient mu_func(mu);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Torubara-Oleg
Comment options

Answer selected by Torubara-Oleg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants