Henrik Sönnerlind
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
4 years ago
Aug 17, 2020, 3:02 a.m. EDT
There is still a local tangent plane in each node for which the degree of freedom related to the normal direction ('drilling') rotation needs to be removed in order to avoid the corresponding singularity. There are effectively 5 active DOFs in all nodes, as long as there is not a 'fold line'.
In each node there are thus 3 translational DOFs and 2 rotational DOFs. Which two of the rotational DOFs that are kept in a certain node is determined by an internal scheme which tries to make the best possible constraint elimination from a numerical point of view. Loosely speaking, if the normal points mainly in a certain global direction, the corresponding DOF is removed.
-------------------
Henrik Sönnerlind
COMSOL
There is still a local tangent plane in each node for which the degree of freedom related to the normal direction ('drilling') rotation needs to be removed in order to avoid the corresponding singularity. There are effectively 5 active DOFs in all nodes, as long as there is not a 'fold line'.
In each node there are thus 3 translational DOFs and 2 rotational DOFs. Which two of the rotational DOFs that are kept in a certain node is determined by an internal scheme which tries to make the best possible constraint elimination from a numerical point of view. Loosely speaking, if the normal points mainly in a certain global direction, the corresponding DOF is removed.
Please login with a confirmed email address before reporting spam
Posted:
4 years ago
Nov 16, 2020, 8:52 a.m. EST
Hi Henrik,
Thank you for your reply, now I have another question. Is it possible to export the mass and stiffness matrices with the two rotational DOFs expressed in the global coordinate system? I am using COMSOL to model one part of a larger system. To model the entire system, I need to couple the degrees of freedom of the different parts in a script.
Best regards,
Lucas
Hi Henrik,
Thank you for your reply, now I have another question. Is it possible to export the mass and stiffness matrices with the two rotational DOFs expressed in the global coordinate system? I am using COMSOL to model one part of a larger system. To model the entire system, I need to couple the degrees of freedom of the different parts in a script.
-------------------
Best regards,
Lucas
Remi Magnard
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
4 years ago
Nov 19, 2020, 6:04 a.m. EST
You can use the LiveLink™ for MATLAB® to extract the imformation of the assembled matrices.
With the function MPHMATRIX you can extract the mass and the stiffness matrices of the full problem. Using the function MPHXMESHINFO you can retreive informations for each nodes like dof names or global coordinates.
For instance to get indices in the matrix system of the rotational dof arx, use the following command:
info = mphxmeshinfo(model)
idx = find(strcmp(info.dofs.dofnames,'comp1.arx'))-1;
idx_matrix = find(info.dofs.nameinds==idx);
To get the global coordinates of a specific node index (for instance the ones from the example above, idx_matrix) enter:
info.dofs.coords(:,idx_matrix)
If you need more information about how to use these functions please contact the COMSOL Support.
You can use the LiveLink™ *for* MATLAB® to extract the imformation of the assembled matrices.
With the function MPHMATRIX you can extract the mass and the stiffness matrices of the full problem. Using the function MPHXMESHINFO you can retreive informations for each nodes like dof names or global coordinates.
For instance to get indices in the matrix system of the rotational dof arx, use the following command:
info = mphxmeshinfo(model)
idx = find(strcmp(info.dofs.dofnames,'comp1.arx'))-1;
idx_matrix = find(info.dofs.nameinds==idx);
To get the global coordinates of a specific node index (for instance the ones from the example above, idx_matrix) enter:
info.dofs.coords(:,idx_matrix)
If you need more information about how to use these functions please contact the COMSOL Support.