Home
last modified time | relevance | path

Searched refs:fvalue (Results 1 – 16 of 16) sorted by relevance

/petsc/src/ts/event/tests/
H A Dex16.c93 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() argument
96 fvalue[0] = t - 1.1; in Event()
97 fvalue[1] = 1.2 - t; in Event()
98 fvalue[2] = t - 1.3; in Event()
H A Dex1.c201 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() argument
204 fvalue[0] = t - 5; in Event()
205 fvalue[1] = 7 - t; in Event()
206 fvalue[2] = t - 9; in Event()
/petsc/src/binding/petsc4py/demo/legacy/ode/
H A Dbouncing_ball.py75 def event(ts, t, X, fvalue): argument
76 fvalue[0] = X[0]
/petsc/src/ts/event/
H A Dtsevent.c45 PetscCall(PetscFree((*event)->fvalue)); in TSEventDestroy()
309 …nate[], PetscErrorCode (*indicator)(TS ts, PetscReal t, Vec U, PetscReal fvalue[], PetscCtx ctx), … in TSSetEventHandler() argument
329 PetscCall(PetscMalloc1(nevents, &event->fvalue)); in TSSetEventHandler()
485 PetscCallBack("TSEvent indicator", (*event->indicator)(ts, t, U, event->fvalue, event->ctx)); in TSPostEvent()
487 …TSEventCalcSigns(event->nevents, event->fvalue, event->vtol, event->fsign); // note, event->vtol m… in TSPostEvent()
649 event->fvalue_prev[i] = event->fvalue[i]; in TSEvent_update_left()
661 event->fvalue_right[i] = event->fvalue[i]; in TSEvent_update_right()
673 event->fvalue[i] = event->fvalue_right[i]; in TSEvent_update_from_right()
812 …PetscCallBack("TSEvent indicator", (*event->indicator)(ts, t, U, event->fvalue, event->ctx)); // f… in TSEventHandler()
814 TSEventCalcSigns(event->nevents, event->fvalue, event->vtol, event->fsign); // fill fvalue signs in TSEventHandler()
[all …]
/petsc/src/ts/tutorials/hybrid/
H A Dex1.c26 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
34 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction()
36 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
H A Dex1fwd.c50 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
58 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction()
60 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
H A Dex1adj.c28 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
36 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction()
38 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
H A Dex1fd.c28 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
36 fvalue[0] = PetscRealPart(u[1] - actx->lambda1 * u[0]); in EventFunction()
38 fvalue[0] = PetscRealPart(u[1] - actx->lambda2 * u[0]); in EventFunction()
/petsc/src/ts/tutorials/power_grid/
H A Dex3.h23 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec X, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
29 fvalue[0] = t - user->tf; in EventFunction()
31 fvalue[1] = t - user->tcl; in EventFunction()
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9bus.c136 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec X, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
152 fvalue[0] = t - user->tfaulton; in EventFunction()
154 fvalue[1] = t - user->tfaultoff; in EventFunction()
166 fvalue[2 + 2 * i] = PetscRealPart(VRMAX[i] - VR); in EventFunction()
168fvalue[2 + 2 * i] = PetscRealPart((VR - KA[i] * RF + KA[i] * KF[i] * Efd / TF[i] - KA[i] * (Vref[i… in EventFunction()
171 fvalue[2 + 2 * i + 1] = PetscRealPart(VRMIN[i] - VR); in EventFunction()
173fvalue[2 + 2 * i + 1] = PetscRealPart((VR - KA[i] * RF + KA[i] * KF[i] * Efd / TF[i] - KA[i] * (Vr… in EventFunction()
192 PetscScalar fvalue; in PostEventFunction() local
250 fvalue = (VR - KA[i] * RF + KA[i] * KF[i] * Efd / TF[i] - KA[i] * (Vref[i] - Vm)) / TA[i]; in PostEventFunction()
251 if (fvalue < 0) { in PostEventFunction()
[all …]
/petsc/src/ts/tutorials/
H A Dex44.c23 static PetscErrorCode Event(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in Event() argument
32 fvalue[0] = PetscRealPart(u[0]); in Event()
H A Dex41.c17 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
24 fvalue[0] = PetscRealPart(u[0]); in EventFunction()
H A Dex40.c21 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
28 fvalue[0] = PetscRealPart(u[0]); in EventFunction()
H A Dex32.c67 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
76 for (i = 0; i < lsize; i++) fvalue[i] = PetscRealPart(u[i]) - app->uc; in EventFunction()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscts.pxi552 PetscReal fvalue[],
563 fvalue_array = PyArray_SimpleNewFromData(1, &s, NPY_PETSC_REAL, fvalue)
/petsc/include/petsc/private/
H A Dtsimpl.h471 …PetscReal *fvalue; /* value… member