Go to the source code of this file.
◆ formFunction()
PetscErrorCode formFunction |
( |
SNES |
, |
|
|
Vec |
x, |
|
|
Vec |
f, |
|
|
void * |
ctx |
|
) |
| |
Definition at line 27 of file SubChannel1PhaseProblem.C.
29 const PetscScalar * xx;
39 for (PetscInt i = 0; i < size; i++)
40 solution_seed(i) = xx[i];
48 for (
int i = 0; i < size; i++)
49 ff[i] = Wij_residual_vector(i);
SubChannel1PhaseProblem * schp
const std::vector< double > x
Real f(Real x)
Test function for Brents method.
LibmeshPetscCallQ(DMShellGetContext(dm, &ctx))
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)