-
Notifications
You must be signed in to change notification settings - Fork 12
TETRA0 ortotropy, migration to Eigen #52
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
base: master
Are you sure you want to change the base?
TETRA0 ortotropy, migration to Eigen #52
Conversation
| matS.setZero(); | ||
| matS<< 1. , storage->getNode(getNodeNumber(0)).pos[0] , storage->getNode(getNodeNumber(0)).pos[1] , storage->getNode(getNodeNumber(0)).pos[2] , | ||
| 1. , storage->getNode(getNodeNumber(1)).pos[0] , storage->getNode(getNodeNumber(1)).pos[1] , storage->getNode(getNodeNumber(1)).pos[2] , | ||
| 1. , storage->getNode(getNodeNumber(2)).pos[0] , storage->getNode(getNodeNumber(2)).pos[1] , storage->getNode(getNodeNumber(2)).pos[2] , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут форматирование поехало
dmitryikh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
набросал..
| void ElementTETRA0::makeB(Eigen::MatrixXd &B) | ||
| { | ||
| double *B_L = B.ptr(); | ||
| math::Mat<6,12> matB; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
math:Mat оставил. Может не стоит смешивать разные матрицы?
| // Poissons coef. | ||
| double my = 0.0; | ||
|
|
||
| // Ortotropic coefficients |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Многовато коэффециентов вроде, вроде G** можно вывести из первых шести
| void makeT (Eigen::MatrixXd &T); | ||
|
|
||
| //0 - isotropy, 1 - ortotropy | ||
| int anisotropy = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
изменить на bool или завести enum не хочешь тут? int как то совсем по сишному
| } | ||
| } | ||
|
|
||
| // after solution it's handy to calculate stresses, strains and other stuff in elements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мне кажется, этот комментарий копипаста и не нужен
src/lib/elements/TETRA0.cpp
Outdated
| tStrains << alpha*T, alpha*T, alpha*T, 0., 0., 0.; | ||
| strainsE = strainsE-tStrains; | ||
| } | ||
| strainsE = strainsE - strainsE0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-=
| strainsE = strainsE - strainsE0; | ||
| Eigen::Map<Eigen::VectorXd>( strains.ptr(), 6) = strainsE; | ||
|
|
||
| Eigen::VectorXd stressE(6); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему не так:
- Eigen::VectorXd stressE(6);
- stressE.setZero();
- stressE = matC*strainsE;
Eigen::Map<Eigen::VectorXd>( stress.ptr(), 6) = matC*strainsE;
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
Co-Authored-By: SchetininVitaliy <[email protected]>
No description provided.