Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ec09d5f
adding boilerplate of TL truss
AlejandroCornejo Dec 24, 2025
888012b
comment old code
AlejandroCornejo Dec 24, 2025
6c77ed0
adding some methods
AlejandroCornejo Dec 24, 2025
31a697c
.
AlejandroCornejo Dec 24, 2025
28e4fc7
current angle
AlejandroCornejo Dec 26, 2025
800e5cc
ref and curr angle
AlejandroCornejo Jan 5, 2026
f426a9c
local dofs vector
AlejandroCornejo Jan 5, 2026
b801d4a
adding K geo
AlejandroCornejo Jan 5, 2026
a4fc303
add CalculateRHS
AlejandroCornejo Jan 5, 2026
7fe3372
Merge branch 'master' into add-TL-truss-elements
AlejandroCornejo Jan 5, 2026
e1f45d3
add rotations
AlejandroCornejo Jan 5, 2026
9f1a828
registering element
AlejandroCornejo Jan 5, 2026
9284593
mistake in registry
AlejandroCornejo Jan 5, 2026
6fae55d
more
AlejandroCornejo Jan 5, 2026
8375147
in 2D ok!
AlejandroCornejo Jan 5, 2026
532ad73
upgrade Frenet-Serret method
AlejandroCornejo Jan 5, 2026
5b479a6
simplifying code
AlejandroCornejo Jan 7, 2026
1d4f3a0
more in 3D
AlejandroCornejo Jan 7, 2026
665d661
.
AlejandroCornejo Jan 7, 2026
1f093e8
adding prints
AlejandroCornejo Jan 7, 2026
a4a40f1
CalculateMass and Damping matrices
AlejandroCornejo Jan 7, 2026
d525b28
add derivatives methods
AlejandroCornejo Jan 7, 2026
5e6ad65
Adding some description in catch
AlejandroCornejo Jan 8, 2026
1e7d356
solving tests 1
AlejandroCornejo Jan 8, 2026
f9422c7
Merge branch 'master' into add-TL-truss-elements
AlejandroCornejo Jan 8, 2026
d7f3af7
undo change in utils for old truss
AlejandroCornejo Jan 9, 2026
6d30704
remove comment
AlejandroCornejo Jan 9, 2026
1a47bb2
adding 3D test
AlejandroCornejo Jan 9, 2026
8154f9d
CI suggestions
AlejandroCornejo Jan 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,11 @@ void LinearTrussElement<TDimension, TNNodes>::CalculateOnIntegrationPoints(
SystemSizeBoundedArrayType B;
const double area = GetProperties()[CROSS_AREA];

double pre_stress = 0.0;
if (GetProperties().Has(TRUSS_PRESTRESS_PK2)) {
pre_stress = GetProperties()[TRUSS_PRESTRESS_PK2];
}

// Loop over the integration points
for (SizeType IP = 0; IP < integration_points.size(); ++IP) {
const double xi = integration_points[IP].X();
Expand All @@ -720,11 +725,6 @@ void LinearTrussElement<TDimension, TNNodes>::CalculateOnIntegrationPoints(

mConstitutiveLawVector[IP]->CalculateMaterialResponsePK2(cl_values);

double pre_stress = 0.0;
if (GetProperties().Has(TRUSS_PRESTRESS_PK2)) {
pre_stress = GetProperties()[TRUSS_PRESTRESS_PK2];
}

rOutput[IP] = (cl_values.GetStressVector()[0] + pre_stress) * area;
}
} else if (rVariable == AXIAL_STRAIN) {
Expand Down
Loading