NuTo
Numerics Tool
|
Heat Conduction in 1D, with one Dirichlet and one Neumann boundary condition. More...
#include <iostream>
#include "nuto/math/SparseMatrixCSRGeneral.h"
#include "nuto/math/SparseDirectSolverMUMPS.h"
#include "nuto/mechanics/MechanicsEnums.h"
#include "nuto/mechanics/constraints/ConstraintCompanion.h"
#include "nuto/mechanics/dofSubMatrixStorage/BlockScalar.h"
#include "nuto/mechanics/mesh/MeshGenerator.h"
#include "nuto/mechanics/structures/unstructured/Structure.h"
#include "nuto/mechanics/sections/SectionTruss.h"
#include "nuto/mechanics/structures/StructureOutputBlockVector.h"
#include "nuto/visualize/VisualizeEnum.h"
Functions | |
int | main () |
Heat Conduction in 1D, with one Dirichlet and one Neumann boundary condition.
Solve the heat equation in 1D, \( ρ c_T \dot{u} - k u,_{xx} = 0 \), under the boundary conditions \(u|_{x = 0} = 20\) and \(q|_{x=l} = 10 \).
int main | ( | ) |
create one-dimensional structure