Skip to content

Conversation

@SchetininVitaliy
Copy link
Contributor

No description provided.

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] ,
Copy link
Owner

Choose a reason for hiding this comment

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

Тут форматирование поехало

Copy link
Owner

@dmitryikh dmitryikh left a 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;
Copy link
Owner

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
Copy link
Owner

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;
Copy link
Owner

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.
Copy link
Owner

Choose a reason for hiding this comment

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

мне кажется, этот комментарий копипаста и не нужен

tStrains << alpha*T, alpha*T, alpha*T, 0., 0., 0.;
strainsE = strainsE-tStrains;
}
strainsE = strainsE - strainsE0;
Copy link
Owner

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);
Copy link
Owner

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;

dmitryikh and others added 9 commits October 19, 2018 09:01
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants