Example 1: Electric Circuit
This example demonstrates simulation of a linear problem of electric circuit using the DMNetwork interface. Further details:
This example demonstrates simulation of a linear problem of electric circuit using the DMNetwork interface. Further details:
cd petsc/src/ksp/ksp/tutorials/network make ex1
mpiexec -n 1 ./ex1
mpiexec -n 1 ./ex1 -ksp_converged_reason
mpiexec -n 2 ./ex1 -petscpartitioner_type simple
This example demonstrates simulation of a nonlinear power flow in a grid network using the DMNetwork interface. Further details:
cd petsc/src/snes/tutorials/network/power make power
mpiexec -n 1 ./power
mpiexec -n 2 ./power -dm_view
This example demonstrates simulation of a transient water flow in a pipe network using the DMNetwork interface. Further details:
cd petsc/src/ts/tutorials/network/wash make pipes1
mpiexec -n 2 ./pipes1 -ts_monitor -case 1 -ts_max_steps 1 -petscpartitioner_type simple -options_left no -viewX
mpiexec -n 3 ./pipes1 -ts_monitor -case 2 -ts_max_steps 10 -petscpartitioner_type simple -options_left no -viewX