fedoo.problem.NonLinear
- class NonLinear(assembly, nlgeom=False, name='MainProblem')
- __init__(assembly, nlgeom=False, name='MainProblem')
Methods
Compute the error of the Newton-Raphson algorithm For Force and Work error criterion, the problem must be updated (Update method).
NonLinear.add_output
(filename, assemblyname, ...)NonLinear.change_assembly
(assembling[, update])Modify the assembly associated to the problem and update the problem (see Assembly.update for more information)
Return the active Problem.
Return the list of all problems.
NonLinear.get_disp
([name])Return the displacement components.
NonLinear.get_dof_solution
([name])NonLinear.get_ext_forces
([name, include_mpc])Return the nodal Forces in global coordinates system.
NonLinear.get_results
(assemb, output_list[, ...])NonLinear.get_rot
([name])Return the rotation components.
Return the nodal temperature field.
Define the problem instance as the active Problem.
NonLinear.nlsolve
([dt, update_dt, tmax, t0, ...])Solve the non linear problem using the newton-raphson algorithm.
NonLinear.save_results
([iterOutput])NonLinear.set_active
(name)Define the active Problem from its name.
NonLinear.set_dof_solution
(name, value)NonLinear.set_nr_criterion
([criterion])Define the convergence criterion of the newton raphson algorith.
NonLinear.set_solver
([solver])Define the solver for the linear system resolution.
NonLinear.set_start
([save_results, callback])NonLinear.solve
(**kargs)NonLinear.update
([compute, updateWeakForm])Assemble the matrix including the following modification:
NonLinear.updateD
([start])Return the number of iterations made to solve the problem.
Return the name of the Problem.
Return the current solver used for the problem.
Return the ModelingSpace associated to the Problem if defined.
Adimensional time used for boundary conditions.
Previous adimensional time for boundary conditions.
Parameters to set the newton raphson algorithm: * 'err0': The reference error. Default is None (automatically computed) * 'criterion': Type of convergence test in ['Displacement', 'Force', 'Work']. Default is 'Displacement'. * 'tol': Error tolerance for convergence. Default is 1e-3. * 'max_subiter': Number of nr iteration before returning a convergence error. Default is 5. * 'norm_type': define the norm used to test the criterion Use numpy.inf for the max value. Default is 2.
Boundary conditions defined on the problem.