Home
last modified time | relevance | path

Searched refs:system_rhs (Results 1 – 25 of 57) sorted by relevance

123

/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-23/
H A Dstep-23.cc135 Vector<double> system_rhs; member in Step23::WaveEquation
341 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
480 mass_matrix.vmult(system_rhs, old_solution_u); in run()
483 system_rhs.add(time_step, tmp); in run()
505 system_rhs.add(theta * time_step, forcing_terms); in run()
537 system_rhs); in run()
549 laplace_matrix.vmult(system_rhs, solution_u); in run()
550 system_rhs *= -theta * time_step; in run()
553 system_rhs += tmp; in run()
556 system_rhs.add(-time_step * (1 - theta), tmp); in run()
[all …]
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-25/
H A Dstep-25.cc133 Vector<double> system_rhs; member in Step25::SineGordonProblem
317 system_rhs.reinit(dof_handler.n_dofs()); in make_grid_and_dofs()
349 system_rhs = 0.; in assemble_system()
353 mass_matrix.vmult(system_rhs, solution); in assemble_system()
355 system_rhs.add(std::pow(time_step * theta, 2), tmp_vector); in assemble_system()
358 system_rhs.add(-1.0, tmp_vector); in assemble_system()
362 system_rhs.add(-time_step, M_x_velocity); in assemble_system()
365 system_rhs.add(std::pow(time_step, 2) * theta, tmp_vector); in assemble_system()
367 system_rhs *= -1.; in assemble_system()
636 initial_rhs_norm = system_rhs.l2_norm(); in run()
[all …]
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/tests/quick_tests/
H A Dstep.cc80 Vector<double> system_rhs; member in LaplaceProblem
108 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
152 system_rhs); in assemble_and_solve()
153 Vector<double> tmp(system_rhs.size()); in assemble_and_solve()
160 system_rhs += tmp; in assemble_and_solve()
163 mean_value_constraints.condense(system_rhs); in assemble_and_solve()
198 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-11/
H A Dstep-11.cc99 Vector<double> system_rhs; member in Step11::LaplaceProblem
136 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
281 system_rhs); in assemble_and_solve()
312 Vector<double> tmp(system_rhs.size()); in assemble_and_solve()
321 system_rhs += tmp; in assemble_and_solve()
339 mean_value_constraints.condense(system_rhs); in assemble_and_solve()
397 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-26/
H A Dstep-26.cc106 Vector<double> system_rhs; member in Step26::HeatEquation
265 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
276 SolverControl solver_control(1000, 1e-8 * system_rhs.l2_norm()); in solve_time_step()
282 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve_time_step()
485 mass_matrix.vmult(system_rhs, old_solution); in run()
488 system_rhs.add(-(1 - theta) * time_step, tmp); in run()
520 system_rhs += forcing_terms; in run()
525 constraints.condense(system_matrix, system_rhs); in run()
546 system_rhs); in run()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/source/fe/
H A Dfe_nedelec.cc853 system_rhs = 0.0; in initialize_restriction()
1694 system_rhs = 0.0; in initialize_restriction()
3235 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3320 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3368 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3516 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3604 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3653 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3775 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
3873 system_rhs = 0; in convert_generalized_support_point_values_to_dof_values()
[all …]
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-15/
H A Dstep-15.cc131 Vector<double> system_rhs; member in Step15::MinimalSurfaceProblem
206 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
236 system_rhs = 0; in assemble_system()
315 system_rhs(local_dof_indices[i]) += cell_rhs(i); in assemble_system()
323 hanging_node_constraints.condense(system_rhs); in assemble_system()
333 system_rhs); in assemble_system()
346 SolverControl solver_control(system_rhs.size(), in solve()
347 system_rhs.l2_norm() * 1e-6); in solve()
353 solver.solve(system_matrix, newton_update, system_rhs, preconditioner); in solve()
663 previous_res = system_rhs.l2_norm(); in run()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-3/
H A Dstep-3.cc129 Vector<double> system_rhs; member in Step3
228 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
474 system_rhs(local_dof_indices[i]) += cell_rhs(i); in assemble_system()
532 system_rhs); in assemble_system()
564 solver.solve(system_matrix, solution, system_rhs, PreconditionIdentity()); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-5/
H A Dstep-5.cc91 Vector<double> system_rhs; member in Step5
147 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
219 system_rhs(local_dof_indices[i]) += cell_rhs(i); in assemble_system()
232 system_rhs); in assemble_system()
272 solver.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-4/
H A Dstep-4.cc91 Vector<double> system_rhs; member in Step4
298 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
419 system_rhs(local_dof_indices[i]) += cell_rhs(i); in assemble_system()
444 system_rhs); in assemble_system()
458 solver.solve(system_matrix, solution, system_rhs, PreconditionIdentity()); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-21/
H A Dstep-21.cc133 BlockVector<double> system_rhs; member in Step21::TwoPhaseFlowProblem
591 system_rhs.reinit(3); in make_grid_and_dofs()
592 system_rhs.block(0).reinit(n_u); in make_grid_and_dofs()
593 system_rhs.block(1).reinit(n_p); in make_grid_and_dofs()
594 system_rhs.block(2).reinit(n_s); in make_grid_and_dofs()
595 system_rhs.collect_sizes(); in make_grid_and_dofs()
619 system_rhs = 0; in assemble_system()
932 m_inverse.vmult(tmp, system_rhs.block(0)); in solve()
934 schur_rhs -= system_rhs.block(1); in solve()
959 tmp += system_rhs.block(0); in solve()
[all …]
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-22/
H A Dstep-22.cc146 BlockVector<double> system_rhs; member in Step22::StokesProblem
596 system_rhs.reinit(2); in setup_dofs()
597 system_rhs.block(0).reinit(n_u); in setup_dofs()
598 system_rhs.block(1).reinit(n_p); in setup_dofs()
599 system_rhs.collect_sizes(); in setup_dofs()
613 system_rhs = 0; in assemble_system()
776 system_rhs); in assemble_system()
825 A_inverse.vmult(tmp, system_rhs.block(0)); in solve()
827 schur_rhs -= system_rhs.block(1); in solve()
890 tmp += system_rhs.block(0); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-20/
H A Dstep-20.cc112 BlockVector<double> system_rhs; member in Step20::MixedLaplaceProblem
434 system_rhs.reinit(2); in make_grid_and_dofs()
435 system_rhs.block(0).reinit(n_u); in make_grid_and_dofs()
436 system_rhs.block(1).reinit(n_p); in make_grid_and_dofs()
437 system_rhs.collect_sizes(); in make_grid_and_dofs()
572 system_rhs(local_dof_indices[i]) += local_rhs(i); in assemble_system()
601 const auto &F = system_rhs.block(0); in solve()
602 const auto &G = system_rhs.block(1); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-17/
H A Dstep-17.cc176 PETScWrappers::MPI::Vector system_rhs; member in Step17::ElasticProblem
377 system_rhs.reinit(locally_owned_dofs, mpi_communicator); in setup_system()
535 system_rhs); in assemble_system()
547 system_rhs.compress(VectorOperation::add); in assemble_system()
582 boundary_values, system_matrix, solution, system_rhs, false); in assemble_system()
622 SolverControl solver_control(solution.size(), 1e-8 * system_rhs.l2_norm()); in solve()
627 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-38/
H A Dstep-38.cc125 Vector<double> system_rhs; member in Step38::LaplaceBeltramiProblem
337 system_rhs.reinit(dof_handler.n_dofs()); in make_grid_and_dofs()
355 system_rhs = 0; in assemble_system()
405 system_rhs(local_dof_indices[i]) += cell_rhs(i); in assemble_system()
414 boundary_values, system_matrix, solution, system_rhs, false); in assemble_system()
426 SolverControl solver_control(solution.size(), 1e-7 * system_rhs.l2_norm()); in solve()
432 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-57/
H A Dstep-57.cc133 BlockVector<double> system_rhs; member in Step57::StationaryNavierStokes
351 system_rhs.reinit(dofs_per_block); in initialize_system()
369 system_rhs = 0; in assemble()
479 system_rhs); in assemble()
485 system_rhs); in assemble()
534 1e-4 * system_rhs.l2_norm(), in solve()
549 gmres.solve(system_matrix, newton_update, system_rhs, preconditioner); in solve()
650 current_res = system_rhs.l2_norm(); in newton_iteration()
673 current_res = system_rhs.l2_norm(); in newton_iteration()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-6/
H A Dstep-6.cc121 Vector<double> system_rhs; member in Step6
180 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
304 cell_matrix, cell_rhs, local_dof_indices, system_matrix, system_rhs); in assemble_system()
343 solver.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-40/
H A Dstep-40.cc180 LA::MPI::Vector system_rhs; member in Step40::LaplaceProblem
265 system_rhs.reinit(locally_owned_dofs, mpi_communicator); in setup_system()
413 system_rhs); in assemble_system()
422 system_rhs.compress(VectorOperation::add); in assemble_system()
484 system_rhs, in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-41/
H A Dstep-41.cc103 TrilinosWrappers::MPI::Vector system_rhs; member in Step41::ObstacleProblem
239 system_rhs.reinit(solution_index_set, MPI_COMM_WORLD); in setup_system()
269 system_rhs = 0; in assemble_system()
313 system_rhs, in assemble_system()
529 solver.solve(system_matrix, solution, system_rhs, precondition); in solve()
603 complete_system_rhs = system_rhs; in run()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-27/
H A Dstep-27.cc124 Vector<double> system_rhs; member in Step27::LaplaceProblem
268 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
366 cell_matrix, cell_rhs, local_dof_indices, system_matrix, system_rhs); in assemble_system()
380 SolverControl solver_control(system_rhs.size(), in solve()
381 1e-12 * system_rhs.l2_norm()); in solve()
387 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-18/
H A Dstep-18.cc471 PETScWrappers::MPI::Vector system_rhs; member in Step18::TopLevel
897 system_rhs.reinit(locally_owned_dofs, mpi_communicator); in setup_system()
919 system_rhs = 0; in assemble_system()
1016 system_rhs); in assemble_system()
1021 system_rhs.compress(VectorOperation::add); in assemble_system()
1075 boundary_values, system_matrix, tmp, system_rhs, false); in assemble_system()
1091 pcout << " norm of rhs is " << system_rhs.l2_norm() << std::endl; in solve_timestep()
1127 1e-16 * system_rhs.l2_norm()); in solve_linear_problem()
1135 system_rhs, in solve_linear_problem()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-45/
H A Dstep-45.cc104 TrilinosWrappers::MPI::BlockVector system_rhs; member in Step45::StokesProblem
537 system_rhs.reinit(owned_partitioning, mpi_communicator); in setup_dofs()
552 system_rhs = 0.; in assemble_system()
640 system_rhs); in assemble_system()
647 system_rhs.compress(VectorOperation::add); in assemble_system()
673 A_inverse.vmult(tmp.block(0), system_rhs.block(0)); in solve()
675 schur_rhs -= system_rhs.block(1); in solve()
703 tmp.block(0) += system_rhs.block(0); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-8/
H A Dstep-8.cc110 Vector<double> system_rhs; member in Step8::ElasticProblem
226 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
412 cell_matrix, cell_rhs, local_dof_indices, system_matrix, system_rhs); in assemble_system()
433 cg.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-58/
H A Dstep-58.cc90 Vector<std::complex<double>> system_rhs; member in Step58::NonlinearSchroedingerEquation
234 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
406 rhs_matrix.vmult(system_rhs, solution); in do_full_spatial_step()
409 direct_solver.solve(system_matrix, system_rhs); in do_full_spatial_step()
411 solution = system_rhs; in do_full_spatial_step()
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/examples/step-9/
H A Dstep-9.cc333 Vector<double> system_rhs; member in Step9::AdvectionProblem
489 system_rhs.reinit(dof_handler.n_dofs()); in setup_system()
755 system_rhs); in copy_local_to_global()
769 system_rhs.size() / 10), in solve()
770 1e-10 * system_rhs.l2_norm()); in solve()
774 solver.solve(system_matrix, solution, system_rhs, preconditioner); in solve()
779 residual -= system_rhs; in solve()

123