Go to the source code of this file.
◆ formFunction()
| PetscErrorCode formFunction |
( |
SNES |
snes, |
|
|
Vec |
x, |
|
|
Vec |
f, |
|
|
void * |
ctx |
|
) |
| |
Definition at line 34 of file SubChannel1PhaseProblem.C.
35{
36 const PetscScalar * xx;
37 PetscScalar * ff;
38 PetscInt size;
39
43
46 for (PetscInt i = 0; i < size; i++)
47 solution_seed(i) = xx[i];
48
50
53
55 for (int i = 0; i < size; i++)
56 ff[i] = Wij_residual_vector(i);
57
60}
Real f(Real x)
Test function for Brents method.
const std::vector< double > x
libMesh::DenseVector< Real > residualFunction(int iblock, libMesh::DenseVector< Real > solution)
Computes Residual Vector based on the lateral momentum conservation equation for block iblock & updat...
PetscFunctionReturn(LIBMESH_PETSC_SUCCESS)
LibmeshPetscCallQ(DMShellGetContext(dm, &ctx))
SubChannel1PhaseProblem * schp