3 #ifndef PY_SSIZE_T_CLEAN
4 #define PY_SSIZE_T_CLEAN
8 #error Python headers needed to compile C extensions, please install development version of Python.
9 #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
10 #error Cython requires Python 2.6+ or Python 3.3+.
12 #define CYTHON_ABI "0_29_30"
13 #define CYTHON_HEX_VERSION 0x001D1EF0
14 #define CYTHON_FUTURE_DIVISION 0
17 #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
19 #if !defined(WIN32) && !defined(MS_WINDOWS)
31 #define DL_IMPORT(t) t
34 #define DL_EXPORT(t) t
37 #ifndef HAVE_LONG_LONG
38 #if PY_VERSION_HEX >= 0x02070000
39 #define HAVE_LONG_LONG
43 #define PY_LONG_LONG LONG_LONG
46 #define Py_HUGE_VAL HUGE_VAL
49 #define CYTHON_COMPILING_IN_PYPY 1
50 #define CYTHON_COMPILING_IN_PYSTON 0
51 #define CYTHON_COMPILING_IN_CPYTHON 0
52 #undef CYTHON_USE_TYPE_SLOTS
53 #define CYTHON_USE_TYPE_SLOTS 0
54 #undef CYTHON_USE_PYTYPE_LOOKUP
55 #define CYTHON_USE_PYTYPE_LOOKUP 0
56 #if PY_VERSION_HEX < 0x03050000
57 #undef CYTHON_USE_ASYNC_SLOTS
58 #define CYTHON_USE_ASYNC_SLOTS 0
59 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
60 #define CYTHON_USE_ASYNC_SLOTS 1
62 #undef CYTHON_USE_PYLIST_INTERNALS
63 #define CYTHON_USE_PYLIST_INTERNALS 0
64 #undef CYTHON_USE_UNICODE_INTERNALS
65 #define CYTHON_USE_UNICODE_INTERNALS 0
66 #undef CYTHON_USE_UNICODE_WRITER
67 #define CYTHON_USE_UNICODE_WRITER 0
68 #undef CYTHON_USE_PYLONG_INTERNALS
69 #define CYTHON_USE_PYLONG_INTERNALS 0
70 #undef CYTHON_AVOID_BORROWED_REFS
71 #define CYTHON_AVOID_BORROWED_REFS 1
72 #undef CYTHON_ASSUME_SAFE_MACROS
73 #define CYTHON_ASSUME_SAFE_MACROS 0
74 #undef CYTHON_UNPACK_METHODS
75 #define CYTHON_UNPACK_METHODS 0
76 #undef CYTHON_FAST_THREAD_STATE
77 #define CYTHON_FAST_THREAD_STATE 0
78 #undef CYTHON_FAST_PYCALL
79 #define CYTHON_FAST_PYCALL 0
80 #undef CYTHON_PEP489_MULTI_PHASE_INIT
81 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
82 #undef CYTHON_USE_TP_FINALIZE
83 #define CYTHON_USE_TP_FINALIZE 0
84 #undef CYTHON_USE_DICT_VERSIONS
85 #define CYTHON_USE_DICT_VERSIONS 0
86 #undef CYTHON_USE_EXC_INFO_STACK
87 #define CYTHON_USE_EXC_INFO_STACK 0
88 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
89 #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_HEX >= 0x07030900)
91 #elif defined(PYSTON_VERSION)
92 #define CYTHON_COMPILING_IN_PYPY 0
93 #define CYTHON_COMPILING_IN_PYSTON 1
94 #define CYTHON_COMPILING_IN_CPYTHON 0
95 #ifndef CYTHON_USE_TYPE_SLOTS
96 #define CYTHON_USE_TYPE_SLOTS 1
98 #undef CYTHON_USE_PYTYPE_LOOKUP
99 #define CYTHON_USE_PYTYPE_LOOKUP 0
100 #undef CYTHON_USE_ASYNC_SLOTS
101 #define CYTHON_USE_ASYNC_SLOTS 0
102 #undef CYTHON_USE_PYLIST_INTERNALS
103 #define CYTHON_USE_PYLIST_INTERNALS 0
104 #ifndef CYTHON_USE_UNICODE_INTERNALS
105 #define CYTHON_USE_UNICODE_INTERNALS 1
107 #undef CYTHON_USE_UNICODE_WRITER
108 #define CYTHON_USE_UNICODE_WRITER 0
109 #undef CYTHON_USE_PYLONG_INTERNALS
110 #define CYTHON_USE_PYLONG_INTERNALS 0
111 #ifndef CYTHON_AVOID_BORROWED_REFS
112 #define CYTHON_AVOID_BORROWED_REFS 0
114 #ifndef CYTHON_ASSUME_SAFE_MACROS
115 #define CYTHON_ASSUME_SAFE_MACROS 1
117 #ifndef CYTHON_UNPACK_METHODS
118 #define CYTHON_UNPACK_METHODS 1
120 #undef CYTHON_FAST_THREAD_STATE
121 #define CYTHON_FAST_THREAD_STATE 0
122 #undef CYTHON_FAST_PYCALL
123 #define CYTHON_FAST_PYCALL 0
124 #undef CYTHON_PEP489_MULTI_PHASE_INIT
125 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
126 #undef CYTHON_USE_TP_FINALIZE
127 #define CYTHON_USE_TP_FINALIZE 0
128 #undef CYTHON_USE_DICT_VERSIONS
129 #define CYTHON_USE_DICT_VERSIONS 0
130 #undef CYTHON_USE_EXC_INFO_STACK
131 #define CYTHON_USE_EXC_INFO_STACK 0
132 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
133 #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
136 #define CYTHON_COMPILING_IN_PYPY 0
137 #define CYTHON_COMPILING_IN_PYSTON 0
138 #define CYTHON_COMPILING_IN_CPYTHON 1
139 #ifndef CYTHON_USE_TYPE_SLOTS
140 #define CYTHON_USE_TYPE_SLOTS 1
142 #if PY_VERSION_HEX < 0x02070000
143 #undef CYTHON_USE_PYTYPE_LOOKUP
144 #define CYTHON_USE_PYTYPE_LOOKUP 0
145 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
146 #define CYTHON_USE_PYTYPE_LOOKUP 1
148 #if PY_MAJOR_VERSION < 3
149 #undef CYTHON_USE_ASYNC_SLOTS
150 #define CYTHON_USE_ASYNC_SLOTS 0
151 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
152 #define CYTHON_USE_ASYNC_SLOTS 1
154 #if PY_VERSION_HEX < 0x02070000
155 #undef CYTHON_USE_PYLONG_INTERNALS
156 #define CYTHON_USE_PYLONG_INTERNALS 0
157 #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
158 #define CYTHON_USE_PYLONG_INTERNALS 1
160 #ifndef CYTHON_USE_PYLIST_INTERNALS
161 #define CYTHON_USE_PYLIST_INTERNALS 1
163 #ifndef CYTHON_USE_UNICODE_INTERNALS
164 #define CYTHON_USE_UNICODE_INTERNALS 1
166 #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2
167 #undef CYTHON_USE_UNICODE_WRITER
168 #define CYTHON_USE_UNICODE_WRITER 0
169 #elif !defined(CYTHON_USE_UNICODE_WRITER)
170 #define CYTHON_USE_UNICODE_WRITER 1
172 #ifndef CYTHON_AVOID_BORROWED_REFS
173 #define CYTHON_AVOID_BORROWED_REFS 0
175 #ifndef CYTHON_ASSUME_SAFE_MACROS
176 #define CYTHON_ASSUME_SAFE_MACROS 1
178 #ifndef CYTHON_UNPACK_METHODS
179 #define CYTHON_UNPACK_METHODS 1
181 #if PY_VERSION_HEX >= 0x030B00A4
182 #undef CYTHON_FAST_THREAD_STATE
183 #define CYTHON_FAST_THREAD_STATE 0
184 #elif !defined(CYTHON_FAST_THREAD_STATE)
185 #define CYTHON_FAST_THREAD_STATE 1
187 #ifndef CYTHON_FAST_PYCALL
188 #define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000)
190 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
191 #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
193 #ifndef CYTHON_USE_TP_FINALIZE
194 #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
196 #ifndef CYTHON_USE_DICT_VERSIONS
197 #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
199 #if PY_VERSION_HEX >= 0x030B00A4
200 #undef CYTHON_USE_EXC_INFO_STACK
201 #define CYTHON_USE_EXC_INFO_STACK 0
202 #elif !defined(CYTHON_USE_EXC_INFO_STACK)
203 #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
205 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
206 #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
209 #if !defined(CYTHON_FAST_PYCCALL)
210 #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
212 #if CYTHON_USE_PYLONG_INTERNALS
213 #if PY_MAJOR_VERSION < 3
214 #include "longintrepr.h"
220 enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P ==
sizeof(
void*)) };
223 #ifndef __has_attribute
224 #define __has_attribute(x) 0
226 #ifndef __has_cpp_attribute
227 #define __has_cpp_attribute(x) 0
229 #ifndef CYTHON_RESTRICT
230 #if defined(__GNUC__)
231 #define CYTHON_RESTRICT __restrict__
232 #elif defined(_MSC_VER) && _MSC_VER >= 1400
233 #define CYTHON_RESTRICT __restrict
234 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
235 #define CYTHON_RESTRICT restrict
237 #define CYTHON_RESTRICT
240 #ifndef CYTHON_UNUSED
241 # if defined(__GNUC__)
242 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
243 # define CYTHON_UNUSED __attribute__ ((__unused__))
245 # define CYTHON_UNUSED
247 # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
248 # define CYTHON_UNUSED __attribute__ ((__unused__))
250 # define CYTHON_UNUSED
253 #ifndef CYTHON_MAYBE_UNUSED_VAR
254 # if defined(__cplusplus)
255 template<
class T>
void CYTHON_MAYBE_UNUSED_VAR(
const T& ) { }
257 # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
260 #ifndef CYTHON_NCP_UNUSED
261 # if CYTHON_COMPILING_IN_CPYTHON
262 # define CYTHON_NCP_UNUSED
264 # define CYTHON_NCP_UNUSED CYTHON_UNUSED
267 #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
269 #ifndef _MSC_STDINT_H_
271 typedef unsigned char uint8_t;
272 typedef unsigned int uint32_t;
274 typedef unsigned __int8 uint8_t;
275 typedef unsigned __int32 uint32_t;
281 #ifndef CYTHON_FALLTHROUGH
282 #if defined(__cplusplus) && __cplusplus >= 201103L
283 #if __has_cpp_attribute(fallthrough)
284 #define CYTHON_FALLTHROUGH [[fallthrough]]
285 #elif __has_cpp_attribute(clang::fallthrough)
286 #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
287 #elif __has_cpp_attribute(gnu::fallthrough)
288 #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
291 #ifndef CYTHON_FALLTHROUGH
292 #if __has_attribute(fallthrough)
293 #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
295 #define CYTHON_FALLTHROUGH
298 #if defined(__clang__ ) && defined(__apple_build_version__)
299 #if __apple_build_version__ < 7000000
300 #undef CYTHON_FALLTHROUGH
301 #define CYTHON_FALLTHROUGH
306 #ifndef CYTHON_INLINE
307 #if defined(__clang__)
308 #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
309 #elif defined(__GNUC__)
310 #define CYTHON_INLINE __inline__
311 #elif defined(_MSC_VER)
312 #define CYTHON_INLINE __inline
313 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
314 #define CYTHON_INLINE inline
316 #define CYTHON_INLINE
320 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
321 #define Py_OptimizeFlag 0
323 #define __PYX_BUILD_PY_SSIZE_T "n"
324 #define CYTHON_FORMAT_SSIZE_T "z"
325 #if PY_MAJOR_VERSION < 3
326 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
327 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
328 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
329 #define __Pyx_DefaultClassType PyClass_Type
331 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
332 #define __Pyx_DefaultClassType PyType_Type
333 #if PY_VERSION_HEX >= 0x030B00A1
334 static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(
int a,
int k,
int l,
int s,
int f,
335 PyObject *code, PyObject *
c, PyObject*
n, PyObject *
v,
336 PyObject *fv, PyObject *cell, PyObject* fn,
337 PyObject *name,
int fline, PyObject *lnos) {
338 PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
339 PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL;
340 const char *fn_cstr=NULL;
341 const char *name_cstr=NULL;
342 PyCodeObject* co=NULL;
343 PyObject *type, *value, *traceback;
344 PyErr_Fetch(&type, &value, &traceback);
345 if (!(kwds=PyDict_New()))
goto end;
346 if (!(argcount=PyLong_FromLong(a)))
goto end;
347 if (PyDict_SetItemString(kwds,
"co_argcount", argcount) != 0)
goto end;
348 if (!(posonlyargcount=PyLong_FromLong(0)))
goto end;
349 if (PyDict_SetItemString(kwds,
"co_posonlyargcount", posonlyargcount) != 0)
goto end;
350 if (!(kwonlyargcount=PyLong_FromLong(k)))
goto end;
351 if (PyDict_SetItemString(kwds,
"co_kwonlyargcount", kwonlyargcount) != 0)
goto end;
352 if (!(nlocals=PyLong_FromLong(l)))
goto end;
353 if (PyDict_SetItemString(kwds,
"co_nlocals", nlocals) != 0)
goto end;
354 if (!(stacksize=PyLong_FromLong(
s)))
goto end;
355 if (PyDict_SetItemString(kwds,
"co_stacksize", stacksize) != 0)
goto end;
356 if (!(flags=PyLong_FromLong(
f)))
goto end;
357 if (PyDict_SetItemString(kwds,
"co_flags", flags) != 0)
goto end;
358 if (PyDict_SetItemString(kwds,
"co_code", code) != 0)
goto end;
359 if (PyDict_SetItemString(kwds,
"co_consts",
c) != 0)
goto end;
360 if (PyDict_SetItemString(kwds,
"co_names",
n) != 0)
goto end;
361 if (PyDict_SetItemString(kwds,
"co_varnames",
v) != 0)
goto end;
362 if (PyDict_SetItemString(kwds,
"co_freevars", fv) != 0)
goto end;
363 if (PyDict_SetItemString(kwds,
"co_cellvars", cell) != 0)
goto end;
364 if (PyDict_SetItemString(kwds,
"co_linetable", lnos) != 0)
goto end;
365 if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL)))
goto end;
366 if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL)))
goto end;
367 if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline)))
goto end;
368 if (!(replace = PyObject_GetAttrString((PyObject*)co,
"replace")))
goto cleanup_code_too;
369 if (!(empty = PyTuple_New(0)))
goto cleanup_code_too;
370 if (!(call_result = PyObject_Call(replace, empty, kwds)))
goto cleanup_code_too;
371 Py_XDECREF((PyObject*)co);
372 co = (PyCodeObject*)call_result;
376 Py_XDECREF((PyObject*)co);
381 Py_XDECREF(argcount);
382 Py_XDECREF(posonlyargcount);
383 Py_XDECREF(kwonlyargcount);
385 Py_XDECREF(stacksize);
387 Py_XDECREF(call_result);
390 PyErr_Restore(type, value, traceback);
395 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
396 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
398 #define __Pyx_DefaultClassType PyType_Type
400 #ifndef Py_TPFLAGS_CHECKTYPES
401 #define Py_TPFLAGS_CHECKTYPES 0
403 #ifndef Py_TPFLAGS_HAVE_INDEX
404 #define Py_TPFLAGS_HAVE_INDEX 0
406 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
407 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
409 #ifndef Py_TPFLAGS_HAVE_FINALIZE
410 #define Py_TPFLAGS_HAVE_FINALIZE 0
412 #ifndef METH_STACKLESS
413 #define METH_STACKLESS 0
415 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
416 #ifndef METH_FASTCALL
417 #define METH_FASTCALL 0x80
419 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *
self, PyObject *
const *args, Py_ssize_t nargs);
420 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *
self, PyObject *
const *args,
421 Py_ssize_t nargs, PyObject *kwnames);
423 #define __Pyx_PyCFunctionFast _PyCFunctionFast
424 #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
426 #if CYTHON_FAST_PYCCALL
427 #define __Pyx_PyFastCFunction_Check(func)\
428 ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
430 #define __Pyx_PyFastCFunction_Check(func) 0
432 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
433 #define PyObject_Malloc(s) PyMem_Malloc(s)
434 #define PyObject_Free(p) PyMem_Free(p)
435 #define PyObject_Realloc(p) PyMem_Realloc(p)
437 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
438 #define PyMem_RawMalloc(n) PyMem_Malloc(n)
439 #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
440 #define PyMem_RawFree(p) PyMem_Free(p)
442 #if CYTHON_COMPILING_IN_PYSTON
443 #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
444 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
446 #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
447 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
449 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
450 #define __Pyx_PyThreadState_Current PyThreadState_GET()
451 #elif PY_VERSION_HEX >= 0x03060000
452 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
453 #elif PY_VERSION_HEX >= 0x03000000
454 #define __Pyx_PyThreadState_Current PyThreadState_GET()
456 #define __Pyx_PyThreadState_Current _PyThreadState_Current
458 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
459 #include "pythread.h"
460 #define Py_tss_NEEDS_INIT 0
461 typedef int Py_tss_t;
462 static CYTHON_INLINE
int PyThread_tss_create(Py_tss_t *key) {
463 *key = PyThread_create_key();
466 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(
void) {
467 Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(
sizeof(Py_tss_t));
468 *key = Py_tss_NEEDS_INIT;
471 static CYTHON_INLINE
void PyThread_tss_free(Py_tss_t *key) {
474 static CYTHON_INLINE
int PyThread_tss_is_created(Py_tss_t *key) {
475 return *key != Py_tss_NEEDS_INIT;
477 static CYTHON_INLINE
void PyThread_tss_delete(Py_tss_t *key) {
478 PyThread_delete_key(*key);
479 *key = Py_tss_NEEDS_INIT;
481 static CYTHON_INLINE
int PyThread_tss_set(Py_tss_t *key,
void *value) {
482 return PyThread_set_key_value(*key, value);
484 static CYTHON_INLINE
void * PyThread_tss_get(Py_tss_t *key) {
485 return PyThread_get_key_value(*key);
488 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
489 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
491 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
493 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
494 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
495 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
497 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
498 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
500 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
501 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
503 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
505 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
506 #define CYTHON_PEP393_ENABLED 1
507 #if defined(PyUnicode_IS_READY)
508 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
509 0 : _PyUnicode_Ready((PyObject *)(op)))
511 #define __Pyx_PyUnicode_READY(op) (0)
513 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
514 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
515 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
516 #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
517 #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
518 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
519 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
520 #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
521 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
522 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
524 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
527 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
530 #define CYTHON_PEP393_ENABLED 0
531 #define PyUnicode_1BYTE_KIND 1
532 #define PyUnicode_2BYTE_KIND 2
533 #define PyUnicode_4BYTE_KIND 4
534 #define __Pyx_PyUnicode_READY(op) (0)
535 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
536 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
537 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
538 #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
539 #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
540 #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
541 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
542 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
544 #if CYTHON_COMPILING_IN_PYPY
545 #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
546 #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
548 #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
549 #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
550 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
552 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
553 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
555 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
556 #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
558 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
559 #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
561 #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
562 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
563 #if PY_MAJOR_VERSION >= 3
564 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
566 #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
568 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
569 #define PyObject_ASCII(o) PyObject_Repr(o)
571 #if PY_MAJOR_VERSION >= 3
572 #define PyBaseString_Type PyUnicode_Type
573 #define PyStringObject PyUnicodeObject
574 #define PyString_Type PyUnicode_Type
575 #define PyString_Check PyUnicode_Check
576 #define PyString_CheckExact PyUnicode_CheckExact
577 #ifndef PyObject_Unicode
578 #define PyObject_Unicode PyObject_Str
581 #if PY_MAJOR_VERSION >= 3
582 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
583 #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
585 #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
586 #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
588 #ifndef PySet_CheckExact
589 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
591 #if PY_VERSION_HEX >= 0x030900A4
592 #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
593 #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
595 #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
596 #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
598 #if CYTHON_ASSUME_SAFE_MACROS
599 #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
601 #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
603 #if PY_MAJOR_VERSION >= 3
604 #define PyIntObject PyLongObject
605 #define PyInt_Type PyLong_Type
606 #define PyInt_Check(op) PyLong_Check(op)
607 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
608 #define PyInt_FromString PyLong_FromString
609 #define PyInt_FromUnicode PyLong_FromUnicode
610 #define PyInt_FromLong PyLong_FromLong
611 #define PyInt_FromSize_t PyLong_FromSize_t
612 #define PyInt_FromSsize_t PyLong_FromSsize_t
613 #define PyInt_AsLong PyLong_AsLong
614 #define PyInt_AS_LONG PyLong_AS_LONG
615 #define PyInt_AsSsize_t PyLong_AsSsize_t
616 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
617 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
618 #define PyNumber_Int PyNumber_Long
620 #if PY_MAJOR_VERSION >= 3
621 #define PyBoolObject PyLongObject
623 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
624 #ifndef PyUnicode_InternFromString
625 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
628 #if PY_VERSION_HEX < 0x030200A4
629 typedef long Py_hash_t;
630 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
631 #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t
633 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
634 #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t
636 #if PY_MAJOR_VERSION >= 3
637 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
639 #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
641 #if CYTHON_USE_ASYNC_SLOTS
642 #if PY_VERSION_HEX >= 0x030500B1
643 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
644 #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
646 #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
649 #define __Pyx_PyType_AsAsync(obj) NULL
651 #ifndef __Pyx_PyAsyncMethodsStruct
656 } __Pyx_PyAsyncMethodsStruct;
659 #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
660 #if !defined(_USE_MATH_DEFINES)
661 #define _USE_MATH_DEFINES
666 #define __PYX_NAN() ((float) NAN)
668 static CYTHON_INLINE
float __PYX_NAN() {
670 memset(&value, 0xFF,
sizeof(value));
674 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
675 #define __Pyx_truncl trunc
677 #define __Pyx_truncl truncl
680 #define __PYX_MARK_ERR_POS(f_index, lineno) \
681 { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
682 #define __PYX_ERR(f_index, lineno, Ln_error) \
683 { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
685 #ifndef __PYX_EXTERN_C
687 #define __PYX_EXTERN_C extern "C"
689 #define __PYX_EXTERN_C extern
693 #define __PYX_HAVE__ctransportCoefficients
694 #define __PYX_HAVE_API__ctransportCoefficients
698 #include "numpy/arrayobject.h"
699 #include "numpy/ndarrayobject.h"
700 #include "numpy/ndarraytypes.h"
701 #include "numpy/arrayscalars.h"
702 #include "numpy/ufuncobject.h"
711 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
712 #define CYTHON_WITHOUT_ASSERTIONS
715 typedef struct {PyObject **p;
const char *
s;
const Py_ssize_t
n;
const char* encoding;
716 const char is_unicode;
const char is_str;
const char intern; } __Pyx_StringTabEntry;
718 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
719 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
720 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
721 #define __PYX_DEFAULT_STRING_ENCODING ""
722 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
723 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
724 #define __Pyx_uchar_cast(c) ((unsigned char)c)
725 #define __Pyx_long_cast(x) ((long)x)
726 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
727 (sizeof(type) < sizeof(Py_ssize_t)) ||\
728 (sizeof(type) > sizeof(Py_ssize_t) &&\
729 likely(v < (type)PY_SSIZE_T_MAX ||\
730 v == (type)PY_SSIZE_T_MAX) &&\
731 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
732 v == (type)PY_SSIZE_T_MIN))) ||\
733 (sizeof(type) == sizeof(Py_ssize_t) &&\
734 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
735 v == (type)PY_SSIZE_T_MAX))) )
736 static CYTHON_INLINE
int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
737 return (
size_t) i < (size_t) limit;
739 #if defined (__cplusplus) && __cplusplus >= 201103L
741 #define __Pyx_sst_abs(value) std::abs(value)
742 #elif SIZEOF_INT >= SIZEOF_SIZE_T
743 #define __Pyx_sst_abs(value) abs(value)
744 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
745 #define __Pyx_sst_abs(value) labs(value)
746 #elif defined (_MSC_VER)
747 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
748 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
749 #define __Pyx_sst_abs(value) llabs(value)
750 #elif defined (__GNUC__)
751 #define __Pyx_sst_abs(value) __builtin_llabs(value)
753 #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
755 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject*);
756 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
757 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
758 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
759 #define __Pyx_PyBytes_FromString PyBytes_FromString
760 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
761 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char*);
762 #if PY_MAJOR_VERSION < 3
763 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
764 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
766 #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
767 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
769 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
770 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
771 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
772 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
773 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
774 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
775 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
776 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
777 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
778 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
779 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
780 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
781 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
782 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
783 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
784 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
785 static CYTHON_INLINE
size_t __Pyx_Py_UNICODE_strlen(
const Py_UNICODE *
u) {
786 const Py_UNICODE *u_end =
u;
788 return (
size_t)(u_end -
u - 1);
790 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
791 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
792 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
793 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
794 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
795 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b);
796 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject*);
797 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
798 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
799 #define __Pyx_PySequence_Tuple(obj)\
800 (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
801 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
802 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t);
803 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
804 #if CYTHON_ASSUME_SAFE_MACROS
805 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
807 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
809 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
810 #if PY_MAJOR_VERSION >= 3
811 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
813 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
815 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
816 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
817 static int __Pyx_sys_getdefaultencoding_not_ascii;
818 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
820 PyObject* default_encoding = NULL;
821 PyObject* ascii_chars_u = NULL;
822 PyObject* ascii_chars_b = NULL;
823 const char* default_encoding_c;
824 sys = PyImport_ImportModule(
"sys");
826 default_encoding = PyObject_CallMethod(sys, (
char*)
"getdefaultencoding", NULL);
828 if (!default_encoding)
goto bad;
829 default_encoding_c = PyBytes_AsString(default_encoding);
830 if (!default_encoding_c)
goto bad;
831 if (strcmp(default_encoding_c,
"ascii") == 0) {
832 __Pyx_sys_getdefaultencoding_not_ascii = 0;
834 char ascii_chars[128];
836 for (
c = 0;
c < 128;
c++) {
839 __Pyx_sys_getdefaultencoding_not_ascii = 1;
840 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
841 if (!ascii_chars_u)
goto bad;
842 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
843 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
846 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
850 Py_DECREF(ascii_chars_u);
851 Py_DECREF(ascii_chars_b);
853 Py_DECREF(default_encoding);
856 Py_XDECREF(default_encoding);
857 Py_XDECREF(ascii_chars_u);
858 Py_XDECREF(ascii_chars_b);
862 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
863 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
865 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
866 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
867 static char* __PYX_DEFAULT_STRING_ENCODING;
868 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
870 PyObject* default_encoding = NULL;
871 char* default_encoding_c;
872 sys = PyImport_ImportModule(
"sys");
874 default_encoding = PyObject_CallMethod(sys, (
char*) (
const char*)
"getdefaultencoding", NULL);
876 if (!default_encoding)
goto bad;
877 default_encoding_c = PyBytes_AsString(default_encoding);
878 if (!default_encoding_c)
goto bad;
879 __PYX_DEFAULT_STRING_ENCODING = (
char*) malloc(strlen(default_encoding_c) + 1);
880 if (!__PYX_DEFAULT_STRING_ENCODING)
goto bad;
881 strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
882 Py_DECREF(default_encoding);
885 Py_XDECREF(default_encoding);
893 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
894 #define likely(x) __builtin_expect(!!(x), 1)
895 #define unlikely(x) __builtin_expect(!!(x), 0)
897 #define likely(x) (x)
898 #define unlikely(x) (x)
900 static CYTHON_INLINE
void __Pyx_pretend_to_initialize(
void* ptr) { (void)ptr; }
902 static PyObject *__pyx_m = NULL;
903 static PyObject *__pyx_d;
904 static PyObject *__pyx_b;
905 static PyObject *__pyx_cython_runtime = NULL;
906 static PyObject *__pyx_empty_tuple;
907 static PyObject *__pyx_empty_bytes;
908 static PyObject *__pyx_empty_unicode;
909 static int __pyx_lineno;
910 static int __pyx_clineno = 0;
911 static const char * __pyx_cfilenm= __FILE__;
912 static const char *__pyx_filename;
915 #if !defined(CYTHON_CCOMPLEX)
916 #if defined(__cplusplus)
917 #define CYTHON_CCOMPLEX 1
918 #elif defined(_Complex_I)
919 #define CYTHON_CCOMPLEX 1
921 #define CYTHON_CCOMPLEX 0
931 #if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
933 #define _Complex_I 1.0fj
937 static const char *__pyx_f[] = {
938 "proteus/ctransportCoefficients.pyx",
950 typedef npy_int8 __pyx_t_5numpy_int8_t;
959 typedef npy_int16 __pyx_t_5numpy_int16_t;
968 typedef npy_int32 __pyx_t_5numpy_int32_t;
977 typedef npy_int64 __pyx_t_5numpy_int64_t;
986 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
995 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1004 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1013 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1022 typedef npy_float32 __pyx_t_5numpy_float32_t;
1031 typedef npy_float64 __pyx_t_5numpy_float64_t;
1040 typedef npy_long __pyx_t_5numpy_int_t;
1049 typedef npy_longlong __pyx_t_5numpy_long_t;
1058 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1067 typedef npy_ulong __pyx_t_5numpy_uint_t;
1076 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1085 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1094 typedef npy_intp __pyx_t_5numpy_intp_t;
1103 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1112 typedef npy_double __pyx_t_5numpy_float_t;
1121 typedef npy_double __pyx_t_5numpy_double_t;
1130 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1134 typedef ::std::complex< float > __pyx_t_float_complex;
1136 typedef float _Complex __pyx_t_float_complex;
1139 typedef struct {
float real, imag; } __pyx_t_float_complex;
1141 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float,
float);
1146 typedef ::std::complex< double > __pyx_t_double_complex;
1148 typedef double _Complex __pyx_t_double_complex;
1151 typedef struct {
double real, imag; } __pyx_t_double_complex;
1153 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double,
double);
1165 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1174 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1183 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1192 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1196 #ifndef CYTHON_REFNANNY
1197 #define CYTHON_REFNANNY 0
1201 void (*INCREF)(
void*, PyObject*, int);
1202 void (*DECREF)(
void*, PyObject*, int);
1203 void (*GOTREF)(
void*, PyObject*, int);
1204 void (*GIVEREF)(
void*, PyObject*, int);
1205 void* (*SetupContext)(
const char*, int,
const char*);
1206 void (*FinishContext)(
void**);
1207 } __Pyx_RefNannyAPIStruct;
1208 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
1209 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
1210 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
1212 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1214 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1215 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1216 PyGILState_Release(__pyx_gilstate_save);\
1218 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1221 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1222 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
1224 #define __Pyx_RefNannyFinishContext()\
1225 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1226 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1227 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1228 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1229 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1230 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
1231 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
1232 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
1233 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
1235 #define __Pyx_RefNannyDeclarations
1236 #define __Pyx_RefNannySetupContext(name, acquire_gil)
1237 #define __Pyx_RefNannyFinishContext()
1238 #define __Pyx_INCREF(r) Py_INCREF(r)
1239 #define __Pyx_DECREF(r) Py_DECREF(r)
1240 #define __Pyx_GOTREF(r)
1241 #define __Pyx_GIVEREF(r)
1242 #define __Pyx_XINCREF(r) Py_XINCREF(r)
1243 #define __Pyx_XDECREF(r) Py_XDECREF(r)
1244 #define __Pyx_XGOTREF(r)
1245 #define __Pyx_XGIVEREF(r)
1247 #define __Pyx_XDECREF_SET(r, v) do {\
1248 PyObject *tmp = (PyObject *) r;\
1249 r = v; __Pyx_XDECREF(tmp);\
1251 #define __Pyx_DECREF_SET(r, v) do {\
1252 PyObject *tmp = (PyObject *) r;\
1253 r = v; __Pyx_DECREF(tmp);\
1255 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1256 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1259 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
1260 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1263 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
1266 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1267 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1268 const char* function_name);
1271 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1272 ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1273 __Pyx__ArgTypeTest(obj, type, name, exact))
1274 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact);
1277 #if CYTHON_USE_TYPE_SLOTS
1278 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1280 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1284 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1285 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1286 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1287 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
1288 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1289 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1290 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1291 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1292 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1293 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1294 int wraparound,
int boundscheck);
1295 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1296 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1297 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1298 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1299 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1300 int wraparound,
int boundscheck);
1301 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1302 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
1303 int is_list,
int wraparound,
int boundscheck);
1306 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1309 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
1310 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
1311 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
1312 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
1313 (version_var) = __PYX_GET_DICT_VERSION(dict);\
1314 (cache_var) = (value);
1315 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
1316 static PY_UINT64_T __pyx_dict_version = 0;\
1317 static PyObject *__pyx_dict_cached_value = NULL;\
1318 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
1319 (VAR) = __pyx_dict_cached_value;\
1321 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
1322 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
1325 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
1326 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
1327 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
1329 #define __PYX_GET_DICT_VERSION(dict) (0)
1330 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
1331 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
1335 #if CYTHON_USE_DICT_VERSIONS
1336 #define __Pyx_GetModuleGlobalName(var, name) {\
1337 static PY_UINT64_T __pyx_dict_version = 0;\
1338 static PyObject *__pyx_dict_cached_value = NULL;\
1339 (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
1340 (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
1341 __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1343 #define __Pyx_GetModuleGlobalNameUncached(var, name) {\
1344 PY_UINT64_T __pyx_dict_version;\
1345 PyObject *__pyx_dict_cached_value;\
1346 (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1348 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
1350 #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1351 #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1352 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
1356 #if CYTHON_FAST_PYCALL
1357 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
1358 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
1359 #if 1 || PY_VERSION_HEX < 0x030600B1
1360 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
1362 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
1364 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
1365 (sizeof(char [1 - 2*!(cond)]) - 1)
1366 #ifndef Py_MEMBER_SIZE
1367 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
1369 #if CYTHON_FAST_PYCALL
1370 static size_t __pyx_pyframe_localsplus_offset = 0;
1371 #include "frameobject.h"
1372 #if PY_VERSION_HEX >= 0x030b00a6
1373 #ifndef Py_BUILD_CORE
1374 #define Py_BUILD_CORE 1
1376 #include "internal/pycore_frame.h"
1378 #define __Pxy_PyFrame_Initialize_Offsets()\
1379 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
1380 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
1381 #define __Pyx_PyFrame_GetLocalsplus(frame)\
1382 (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
1383 #endif // CYTHON_FAST_PYCALL
1387 #if CYTHON_FAST_PYCCALL
1388 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
1390 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
1394 #if CYTHON_COMPILING_IN_CPYTHON
1395 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1397 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1401 #if CYTHON_USE_EXC_INFO_STACK
1402 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1406 #if CYTHON_FAST_THREAD_STATE
1407 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1408 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1409 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1411 #define __Pyx_PyThreadState_declare
1412 #define __Pyx_PyThreadState_assign
1413 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1417 #if CYTHON_FAST_THREAD_STATE
1418 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1419 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1420 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1421 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1423 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1424 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1428 #if CYTHON_FAST_THREAD_STATE
1429 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1430 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1432 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1436 #if CYTHON_FAST_THREAD_STATE
1437 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1438 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1440 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
1444 #if CYTHON_FAST_THREAD_STATE
1445 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1446 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1447 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1448 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1449 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1450 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1451 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1452 #if CYTHON_COMPILING_IN_CPYTHON
1453 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1455 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1458 #define __Pyx_PyErr_Clear() PyErr_Clear()
1459 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1460 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1461 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1462 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1463 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1464 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1465 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1469 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
1472 #ifndef __PYX_HAVE_RT_ImportType_proto
1473 #define __PYX_HAVE_RT_ImportType_proto
1474 enum __Pyx_ImportType_CheckSize {
1475 __Pyx_ImportType_CheckSize_Error = 0,
1476 __Pyx_ImportType_CheckSize_Warn = 1,
1477 __Pyx_ImportType_CheckSize_Ignore = 2
1479 static PyTypeObject *__Pyx_ImportType(PyObject* module,
const char *module_name,
const char *class_name,
size_t size,
enum __Pyx_ImportType_CheckSize check_size);
1483 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level);
1486 #ifdef CYTHON_CLINE_IN_TRACEBACK
1487 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1489 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
1494 PyCodeObject* code_object;
1496 } __Pyx_CodeObjectCacheEntry;
1497 struct __Pyx_CodeObjectCache {
1500 __Pyx_CodeObjectCacheEntry* entries;
1502 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
1503 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
1504 static PyCodeObject *__pyx_find_code_object(
int code_line);
1505 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
1508 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
1509 int py_line,
const char *filename);
1512 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
1513 #define __Pyx_HAS_GCC_DIAGNOSTIC
1519 #define __Pyx_CREAL(z) ((z).real())
1520 #define __Pyx_CIMAG(z) ((z).imag())
1522 #define __Pyx_CREAL(z) (__real__(z))
1523 #define __Pyx_CIMAG(z) (__imag__(z))
1526 #define __Pyx_CREAL(z) ((z).real)
1527 #define __Pyx_CIMAG(z) ((z).imag)
1529 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
1530 && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
1531 #define __Pyx_SET_CREAL(z,x) ((z).real(x))
1532 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
1534 #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
1535 #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
1540 #define __Pyx_c_eq_float(a, b) ((a)==(b))
1541 #define __Pyx_c_sum_float(a, b) ((a)+(b))
1542 #define __Pyx_c_diff_float(a, b) ((a)-(b))
1543 #define __Pyx_c_prod_float(a, b) ((a)*(b))
1544 #define __Pyx_c_quot_float(a, b) ((a)/(b))
1545 #define __Pyx_c_neg_float(a) (-(a))
1547 #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
1548 #define __Pyx_c_conj_float(z) (::std::conj(z))
1550 #define __Pyx_c_abs_float(z) (::std::abs(z))
1551 #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
1554 #define __Pyx_c_is_zero_float(z) ((z)==0)
1555 #define __Pyx_c_conj_float(z) (conjf(z))
1557 #define __Pyx_c_abs_float(z) (cabsf(z))
1558 #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
1562 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
1563 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
1564 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
1565 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
1566 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
1567 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
1568 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex);
1569 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
1571 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex);
1572 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
1578 #define __Pyx_c_eq_double(a, b) ((a)==(b))
1579 #define __Pyx_c_sum_double(a, b) ((a)+(b))
1580 #define __Pyx_c_diff_double(a, b) ((a)-(b))
1581 #define __Pyx_c_prod_double(a, b) ((a)*(b))
1582 #define __Pyx_c_quot_double(a, b) ((a)/(b))
1583 #define __Pyx_c_neg_double(a) (-(a))
1585 #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
1586 #define __Pyx_c_conj_double(z) (::std::conj(z))
1588 #define __Pyx_c_abs_double(z) (::std::abs(z))
1589 #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
1592 #define __Pyx_c_is_zero_double(z) ((z)==0)
1593 #define __Pyx_c_conj_double(z) (conj(z))
1595 #define __Pyx_c_abs_double(z) (cabs(z))
1596 #define __Pyx_c_pow_double(a, b) (cpow(a, b))
1600 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
1601 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
1602 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
1603 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
1604 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
1605 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
1606 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex);
1607 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
1609 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex);
1610 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
1615 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
1618 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value);
1621 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
1624 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
1627 #if CYTHON_COMPILING_IN_CPYTHON
1628 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1629 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1630 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1631 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1633 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1634 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1635 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1637 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1640 static int __Pyx_check_binary_version(
void);
1643 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
1655 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
1668 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
1669 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
1670 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
1671 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
1672 static PyTypeObject *__pyx_ptype_5numpy_generic = 0;
1673 static PyTypeObject *__pyx_ptype_5numpy_number = 0;
1674 static PyTypeObject *__pyx_ptype_5numpy_integer = 0;
1675 static PyTypeObject *__pyx_ptype_5numpy_signedinteger = 0;
1676 static PyTypeObject *__pyx_ptype_5numpy_unsignedinteger = 0;
1677 static PyTypeObject *__pyx_ptype_5numpy_inexact = 0;
1678 static PyTypeObject *__pyx_ptype_5numpy_floating = 0;
1679 static PyTypeObject *__pyx_ptype_5numpy_complexfloating = 0;
1680 static PyTypeObject *__pyx_ptype_5numpy_flexible = 0;
1681 static PyTypeObject *__pyx_ptype_5numpy_character = 0;
1682 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
1685 #define __Pyx_MODULE_NAME "ctransportCoefficients"
1686 extern int __pyx_module_is_main_ctransportCoefficients;
1687 int __pyx_module_is_main_ctransportCoefficients = 0;
1690 static PyObject *__pyx_builtin_ImportError;
1691 static const char __pyx_k_A[] =
"A";
1692 static const char __pyx_k_B[] =
"B";
1693 static const char __pyx_k_C[] =
"C";
1694 static const char __pyx_k_E[] =
"E";
1695 static const char __pyx_k_H[] =
"H";
1696 static const char __pyx_k_M[] =
"M";
1697 static const char __pyx_k_S[] =
"S";
1698 static const char __pyx_k_a[] =
"a";
1699 static const char __pyx_k_b[] =
"b";
1700 static const char __pyx_k_d[] =
"d";
1701 static const char __pyx_k_f[] =
"f";
1702 static const char __pyx_k_g[] =
"g";
1703 static const char __pyx_k_h[] =
"h";
1704 static const char __pyx_k_k[] =
"k";
1705 static const char __pyx_k_m[] =
"m";
1706 static const char __pyx_k_n[] =
"n";
1707 static const char __pyx_k_p[] =
"p";
1708 static const char __pyx_k_r[] =
"r";
1709 static const char __pyx_k_t[] =
"t";
1710 static const char __pyx_k_u[] =
"u";
1711 static const char __pyx_k_v[] =
"v";
1712 static const char __pyx_k_w[] =
"w";
1713 static const char __pyx_k_x[] =
"x";
1714 static const char __pyx_k_A1[] =
"A1";
1715 static const char __pyx_k_A2[] =
"A2";
1716 static const char __pyx_k_B1[] =
"B1";
1717 static const char __pyx_k_B2[] =
"B2";
1718 static const char __pyx_k_C1[] =
"C1";
1719 static const char __pyx_k_C2[] =
"C2";
1720 static const char __pyx_k_E0[] =
"E0";
1721 static const char __pyx_k_Km[] =
"Km";
1722 static const char __pyx_k_Kp[] =
"Kp";
1723 static const char __pyx_k_M1[] =
"M1";
1724 static const char __pyx_k_M2[] =
"M2";
1725 static const char __pyx_k_dH[] =
"dH";
1726 static const char __pyx_k_dV[] =
"dV";
1727 static const char __pyx_k_da[] =
"da";
1728 static const char __pyx_k_df[] =
"df";
1729 static const char __pyx_k_dh[] =
"dh";
1730 static const char __pyx_k_dm[] =
"dm";
1731 static const char __pyx_k_dr[] =
"dr";
1732 static const char __pyx_k_hu[] =
"hu";
1733 static const char __pyx_k_hv[] =
"hv";
1734 static const char __pyx_k_mu[] =
"mu";
1735 static const char __pyx_k_nd[] =
"nd";
1736 static const char __pyx_k_nk[] =
"nk";
1737 static const char __pyx_k_np[] =
"np";
1738 static const char __pyx_k_ns[] =
"ns";
1739 static const char __pyx_k_nu[] =
"nu";
1740 static const char __pyx_k_p1[] =
"p1";
1741 static const char __pyx_k_p2[] =
"p2";
1742 static const char __pyx_k_pd[] =
"pd";
1743 static const char __pyx_k_q1[] =
"q1";
1744 static const char __pyx_k_q2[] =
"q2";
1745 static const char __pyx_k_r1[] =
"r1";
1746 static const char __pyx_k_r2[] =
"r2";
1747 static const char __pyx_k_rh[] =
"rh";
1748 static const char __pyx_k_s1[] =
"s1";
1749 static const char __pyx_k_s2[] =
"s2";
1750 static const char __pyx_k_t1[] =
"t1";
1751 static const char __pyx_k_t2[] =
"t2";
1752 static const char __pyx_k_KWs[] =
"KWs";
1753 static const char __pyx_k_K_h[] =
"K_h";
1754 static const char __pyx_k_K_m[] =
"K_m";
1755 static const char __pyx_k_K_w[] =
"K_w";
1756 static const char __pyx_k_a_c[] =
"a_c";
1757 static const char __pyx_k_a_e[] =
"a_e";
1758 static const char __pyx_k_a_h[] =
"a_h";
1759 static const char __pyx_k_a_k[] =
"a_k";
1760 static const char __pyx_k_a_m[] =
"a_m";
1761 static const char __pyx_k_c_1[] =
"c_1";
1762 static const char __pyx_k_c_2[] =
"c_2";
1763 static const char __pyx_k_c_c[] =
"c_c";
1764 static const char __pyx_k_c_e[] =
"c_e";
1765 static const char __pyx_k_c_h[] =
"c_h";
1766 static const char __pyx_k_c_m[] =
"c_m";
1767 static const char __pyx_k_c_x[] =
"c_x";
1768 static const char __pyx_k_d_c[] =
"d_c";
1769 static const char __pyx_k_d_e[] =
"d_e";
1770 static const char __pyx_k_d_h[] =
"d_h";
1771 static const char __pyx_k_d_m[] =
"d_m";
1772 static const char __pyx_k_eps[] =
"eps";
1773 static const char __pyx_k_f_c[] =
"f_c";
1774 static const char __pyx_k_f_e[] =
"f_e";
1775 static const char __pyx_k_f_h[] =
"f_h";
1776 static const char __pyx_k_f_k[] =
"f_k";
1777 static const char __pyx_k_f_m[] =
"f_m";
1778 static const char __pyx_k_h_e[] =
"h_e";
1779 static const char __pyx_k_k_d[] =
"k_d";
1780 static const char __pyx_k_kr0[] =
"kr0";
1781 static const char __pyx_k_m_c[] =
"m_c";
1782 static const char __pyx_k_m_e[] =
"m_e";
1783 static const char __pyx_k_m_h[] =
"m_h";
1784 static const char __pyx_k_m_k[] =
"m_k";
1785 static const char __pyx_k_m_m[] =
"m_m";
1786 static const char __pyx_k_m_x[] =
"m_x";
1787 static const char __pyx_k_n_s[] =
"n_s";
1788 static const char __pyx_k_phi[] =
"phi";
1789 static const char __pyx_k_r_c[] =
"r_c";
1790 static const char __pyx_k_r_e[] =
"r_e";
1791 static const char __pyx_k_r_h[] =
"r_h";
1792 static const char __pyx_k_r_k[] =
"r_k";
1793 static const char __pyx_k_r_m[] =
"r_m";
1794 static const char __pyx_k_r_x[] =
"r_x";
1795 static const char __pyx_k_rho[] =
"rho";
1796 static const char __pyx_k_rhs[] =
"rhs";
1797 static const char __pyx_k_vIn[] =
"vIn";
1798 static const char __pyx_k_vof[] =
"vof";
1799 static const char __pyx_k_Bcon[] =
"Bcon";
1800 static const char __pyx_k_beta[] =
"beta";
1801 static const char __pyx_k_c_mu[] =
"c_mu";
1802 static const char __pyx_k_df_c[] =
"df_c";
1803 static const char __pyx_k_df_e[] =
"df_e";
1804 static const char __pyx_k_df_h[] =
"df_h";
1805 static const char __pyx_k_df_k[] =
"df_k";
1806 static const char __pyx_k_df_m[] =
"df_m";
1807 static const char __pyx_k_dm_c[] =
"dm_c";
1808 static const char __pyx_k_dm_e[] =
"dm_e";
1809 static const char __pyx_k_dm_k[] =
"dm_k";
1810 static const char __pyx_k_dm_x[] =
"dm_x";
1811 static const char __pyx_k_dphi[] =
"dphi";
1812 static const char __pyx_k_kr0x[] =
"kr0x";
1813 static const char __pyx_k_kr0y[] =
"kr0y";
1814 static const char __pyx_k_kr0z[] =
"kr0z";
1815 static const char __pyx_k_main[] =
"__main__";
1816 static const char __pyx_k_mass[] =
"mass";
1817 static const char __pyx_k_n_vg[] =
"n_vg";
1818 static const char __pyx_k_name[] =
"__name__";
1819 static const char __pyx_k_nu_0[] =
"nu_0";
1820 static const char __pyx_k_nu_1[] =
"nu_1";
1821 static const char __pyx_k_nu_s[] =
"nu_s";
1822 static const char __pyx_k_nu_t[] =
"nu_t";
1823 static const char __pyx_k_psiD[] =
"psiD";
1824 static const char __pyx_k_rank[] =
"rank";
1825 static const char __pyx_k_rhoM[] =
"rhoM";
1826 static const char __pyx_k_rhoP[] =
"rhoP";
1827 static const char __pyx_k_size[] =
"size";
1828 static const char __pyx_k_test[] =
"__test__";
1829 static const char __pyx_k_u_ls[] =
"u_ls";
1830 static const char __pyx_k_vOut[] =
"vOut";
1831 static const char __pyx_k_Bcon1[] =
"Bcon1";
1832 static const char __pyx_k_Bcon2[] =
"Bcon2";
1833 static const char __pyx_k_H_vof[] =
"H_vof";
1834 static const char __pyx_k_Kox_C[] =
"Kox_C";
1835 static const char __pyx_k_Kox_E[] =
"Kox_E";
1836 static const char __pyx_k_Kox_X[] =
"Kox_X";
1837 static const char __pyx_k_S_nwr[] =
"S_nwr";
1838 static const char __pyx_k_Yield[] =
"Yield";
1839 static const char __pyx_k_Z_tot[] =
"Z_tot";
1840 static const char __pyx_k_a_avg[] =
"a_avg";
1841 static const char __pyx_k_alpha[] =
"alpha";
1842 static const char __pyx_k_db_dx[] =
"db_dx";
1843 static const char __pyx_k_det_J[] =
"det_J";
1844 static const char __pyx_k_dmass[] =
"dmass";
1845 static const char __pyx_k_f_avg[] =
"f_avg";
1846 static const char __pyx_k_gamma[] =
"gamma";
1847 static const char __pyx_k_gradu[] =
"gradu";
1848 static const char __pyx_k_gradv[] =
"gradv";
1849 static const char __pyx_k_gradw[] =
"gradw";
1850 static const char __pyx_k_h_eps[] =
"h_eps";
1851 static const char __pyx_k_kappa[] =
"kappa";
1852 static const char __pyx_k_numpy[] =
"numpy";
1853 static const char __pyx_k_omega[] =
"omega";
1854 static const char __pyx_k_p_pow[] =
"p_pow";
1855 static const char __pyx_k_phi_e[] =
"phi_e";
1856 static const char __pyx_k_phi_h[] =
"phi_h";
1857 static const char __pyx_k_phi_k[] =
"phi_k";
1858 static const char __pyx_k_phi_s[] =
"phi_s";
1859 static const char __pyx_k_q_pow[] =
"q_pow";
1860 static const char __pyx_k_r_pow[] =
"r_pow";
1861 static const char __pyx_k_radii[] =
"radii";
1862 static const char __pyx_k_rho_0[] =
"rho_0";
1863 static const char __pyx_k_rho_1[] =
"rho_1";
1864 static const char __pyx_k_rho_n[] =
"rho_n";
1865 static const char __pyx_k_rho_s[] =
"rho_s";
1866 static const char __pyx_k_rho_w[] =
"rho_w";
1867 static const char __pyx_k_s_pow[] =
"s_pow";
1868 static const char __pyx_k_sigma[] =
"sigma";
1869 static const char __pyx_k_t_pow[] =
"t_pow";
1870 static const char __pyx_k_theta[] =
"theta";
1871 static const char __pyx_k_u_dof[] =
"u_dof";
1872 static const char __pyx_k_u_l2g[] =
"u_l2g";
1873 static const char __pyx_k_Lambda[] =
"Lambda";
1874 static const char __pyx_k_S_wirr[] =
"S_wirr";
1875 static const char __pyx_k_colind[] =
"colind";
1876 static const char __pyx_k_da_avg[] =
"da_avg";
1877 static const char __pyx_k_df_avg[] =
"df_avg";
1878 static const char __pyx_k_dm_h_h[] =
"dm_h_h";
1879 static const char __pyx_k_dm_h_m[] =
"dm_h_m";
1880 static const char __pyx_k_dm_m_h[] =
"dm_m_h";
1881 static const char __pyx_k_dm_m_m[] =
"dm_m_m";
1882 static const char __pyx_k_dphi_e[] =
"dphi_e";
1883 static const char __pyx_k_dphi_h[] =
"dphi_h";
1884 static const char __pyx_k_dphi_k[] =
"dphi_k";
1885 static const char __pyx_k_eps_mu[] =
"eps_mu";
1886 static const char __pyx_k_grad_b[] =
"grad_b";
1887 static const char __pyx_k_grad_k[] =
"grad_k";
1888 static const char __pyx_k_grad_p[] =
"grad_p";
1889 static const char __pyx_k_grad_u[] =
"grad_u";
1890 static const char __pyx_k_grad_v[] =
"grad_v";
1891 static const char __pyx_k_grad_w[] =
"grad_w";
1892 static const char __pyx_k_import[] =
"__import__";
1893 static const char __pyx_k_nSpace[] =
"nSpace";
1894 static const char __pyx_k_offset[] =
"offset";
1895 static const char __pyx_k_pc_eps[] =
"pc_eps";
1896 static const char __pyx_k_phi_ls[] =
"phi_ls";
1897 static const char __pyx_k_rowptr[] =
"rowptr";
1898 static const char __pyx_k_self_a[] =
"self_a";
1899 static const char __pyx_k_self_v[] =
"self_v";
1900 static const char __pyx_k_source[] =
"source";
1901 static const char __pyx_k_thetaR[] =
"thetaR";
1902 static const char __pyx_k_thetaS[] =
"thetaS";
1903 static const char __pyx_k_Kox_max[] =
"Kox_max";
1904 static const char __pyx_k_alpha_L[] =
"alpha_L";
1905 static const char __pyx_k_alpha_T[] =
"alpha_T";
1906 static const char __pyx_k_centers[] =
"centers";
1907 static const char __pyx_k_da_e_de[] =
"da_e_de";
1908 static const char __pyx_k_da_e_dk[] =
"da_e_dk";
1909 static const char __pyx_k_da_k_de[] =
"da_k_de";
1910 static const char __pyx_k_da_k_dk[] =
"da_k_dk";
1911 static const char __pyx_k_dr_c_dc[] =
"dr_c_dc";
1912 static const char __pyx_k_dr_c_de[] =
"dr_c_de";
1913 static const char __pyx_k_dr_c_dx[] =
"dr_c_dx";
1914 static const char __pyx_k_dr_e_dc[] =
"dr_e_dc";
1915 static const char __pyx_k_dr_e_de[] =
"dr_e_de";
1916 static const char __pyx_k_dr_e_dk[] =
"dr_e_dk";
1917 static const char __pyx_k_dr_e_dx[] =
"dr_e_dx";
1918 static const char __pyx_k_dr_h_dh[] =
"dr_h_dh";
1919 static const char __pyx_k_dr_h_dm[] =
"dr_h_dm";
1920 static const char __pyx_k_dr_k_de[] =
"dr_k_de";
1921 static const char __pyx_k_dr_k_dk[] =
"dr_k_dk";
1922 static const char __pyx_k_dr_m_dh[] =
"dr_m_dh";
1923 static const char __pyx_k_dr_m_dm[] =
"dr_m_dm";
1924 static const char __pyx_k_dr_x_dc[] =
"dr_x_dc";
1925 static const char __pyx_k_dr_x_de[] =
"dr_x_de";
1926 static const char __pyx_k_dr_x_dx[] =
"dr_x_dx";
1927 static const char __pyx_k_epsFact[] =
"epsFact";
1928 static const char __pyx_k_eps_rho[] =
"eps_rho";
1929 static const char __pyx_k_epsilon[] =
"epsilon";
1930 static const char __pyx_k_gravity[] =
"gravity";
1931 static const char __pyx_k_mom_acc[] =
"mom_acc";
1932 static const char __pyx_k_mom_adv[] =
"mom_adv";
1933 static const char __pyx_k_nPoints[] =
"nPoints";
1934 static const char __pyx_k_phi_pot[] =
"phi_pot";
1935 static const char __pyx_k_sigma_e[] =
"sigma_e";
1936 static const char __pyx_k_sigma_k[] =
"sigma_k";
1937 static const char __pyx_k_thetaSR[] =
"thetaSR";
1938 static const char __pyx_k_u_force[] =
"u_force";
1939 static const char __pyx_k_v_force[] =
"v_force";
1940 static const char __pyx_k_v_scale[] =
"v_scale";
1941 static const char __pyx_k_w_force[] =
"w_force";
1942 static const char __pyx_k_dphi_pot[] =
"dphi_pot";
1943 static const char __pyx_k_epsDirac[] =
"epsDirac";
1944 static const char __pyx_k_grad_phi[] =
"grad_phi";
1945 static const char __pyx_k_mass_acc[] =
"mass_acc";
1946 static const char __pyx_k_mass_adv[] =
"mass_adv";
1947 static const char __pyx_k_mesh_dof[] =
"mesh_dof";
1948 static const char __pyx_k_mesh_l2g[] =
"mesh_l2g";
1949 static const char __pyx_k_mom_diff[] =
"mom_diff";
1950 static const char __pyx_k_nSimplex[] =
"nSimplex";
1951 static const char __pyx_k_n_global[] =
"n_global";
1952 static const char __pyx_k_porosity[] =
"porosity";
1953 static const char __pyx_k_velocity[] =
"velocity";
1954 static const char __pyx_k_vol_frac[] =
"vol_frac";
1955 static const char __pyx_k_waveFlag[] =
"waveFlag";
1956 static const char __pyx_k_gravity_u[] =
"gravity_u";
1957 static const char __pyx_k_mom_p_acc[] =
"mom_p_acc";
1958 static const char __pyx_k_mom_u_acc[] =
"mom_u_acc";
1959 static const char __pyx_k_mom_u_adv[] =
"mom_u_adv";
1960 static const char __pyx_k_mom_u_ham[] =
"mom_u_ham";
1961 static const char __pyx_k_mom_v_acc[] =
"mom_v_acc";
1962 static const char __pyx_k_mom_v_adv[] =
"mom_v_adv";
1963 static const char __pyx_k_mom_v_ham[] =
"mom_v_ham";
1964 static const char __pyx_k_mom_w_acc[] =
"mom_w_acc";
1965 static const char __pyx_k_mom_w_adv[] =
"mom_w_adv";
1966 static const char __pyx_k_mom_w_ham[] =
"mom_w_ham";
1967 static const char __pyx_k_omega_s_x[] =
"omega_s_x";
1968 static const char __pyx_k_omega_s_y[] =
"omega_s_y";
1969 static const char __pyx_k_omega_s_z[] =
"omega_s_z";
1970 static const char __pyx_k_mom_source[] =
"mom_source";
1971 static const char __pyx_k_mom_u_diff[] =
"mom_u_diff";
1972 static const char __pyx_k_mom_v_diff[] =
"mom_v_diff";
1973 static const char __pyx_k_nSimplices[] =
"nSimplices";
1974 static const char __pyx_k_u_levelSet[] =
"u_levelSet";
1975 static const char __pyx_k_upwindFlag[] =
"upwindFlag";
1976 static const char __pyx_k_waterDepth[] =
"waterDepth";
1977 static const char __pyx_k_waveHeight[] =
"waveHeight";
1978 static const char __pyx_k_waveNumber[] =
"waveNumber";
1979 static const char __pyx_k_ImportError[] =
"ImportError";
1980 static const char __pyx_k_dmass_adv_p[] =
"dmass_adv_p";
1981 static const char __pyx_k_dmass_adv_u[] =
"dmass_adv_u";
1982 static const char __pyx_k_dmass_adv_v[] =
"dmass_adv_v";
1983 static const char __pyx_k_dmass_adv_w[] =
"dmass_adv_w";
1984 static const char __pyx_k_dmom_adv_dh[] =
"dmom_adv_dh";
1985 static const char __pyx_k_omega_types[] =
"omega_types";
1986 static const char __pyx_k_rho_s_types[] =
"rho_s_types";
1987 static const char __pyx_k_uu_diff_ten[] =
"uu_diff_ten";
1988 static const char __pyx_k_uv_diff_ten[] =
"uv_diff_ten";
1989 static const char __pyx_k_uw_diff_ten[] =
"uw_diff_ten";
1990 static const char __pyx_k_vu_diff_ten[] =
"vu_diff_ten";
1991 static const char __pyx_k_vv_diff_ten[] =
"vv_diff_ten";
1992 static const char __pyx_k_vw_diff_ten[] =
"vw_diff_ten";
1993 static const char __pyx_k_wu_diff_ten[] =
"wu_diff_ten";
1994 static const char __pyx_k_wv_diff_ten[] =
"wv_diff_ten";
1995 static const char __pyx_k_ww_diff_ten[] =
"ww_diff_ten";
1996 static const char __pyx_k_dmass_acc_dh[] =
"dmass_acc_dh";
1997 static const char __pyx_k_dmom_acc_dhu[] =
"dmom_acc_dhu";
1998 static const char __pyx_k_dmom_adv_dhu[] =
"dmom_adv_dhu";
1999 static const char __pyx_k_dmom_p_acc_p[] =
"dmom_p_acc_p";
2000 static const char __pyx_k_dmom_u_acc_u[] =
"dmom_u_acc_u";
2001 static const char __pyx_k_dmom_u_adv_p[] =
"dmom_u_adv_p";
2002 static const char __pyx_k_dmom_u_adv_u[] =
"dmom_u_adv_u";
2003 static const char __pyx_k_dmom_u_adv_v[] =
"dmom_u_adv_v";
2004 static const char __pyx_k_dmom_u_adv_w[] =
"dmom_u_adv_w";
2005 static const char __pyx_k_dmom_v_acc_v[] =
"dmom_v_acc_v";
2006 static const char __pyx_k_dmom_v_adv_p[] =
"dmom_v_adv_p";
2007 static const char __pyx_k_dmom_v_adv_u[] =
"dmom_v_adv_u";
2008 static const char __pyx_k_dmom_v_adv_v[] =
"dmom_v_adv_v";
2009 static const char __pyx_k_dmom_v_adv_w[] =
"dmom_v_adv_w";
2010 static const char __pyx_k_dmom_w_acc_w[] =
"dmom_w_acc_w";
2011 static const char __pyx_k_dmom_w_adv_p[] =
"dmom_w_adv_p";
2012 static const char __pyx_k_dmom_w_adv_u[] =
"dmom_w_adv_u";
2013 static const char __pyx_k_dmom_w_adv_v[] =
"dmom_w_adv_v";
2014 static const char __pyx_k_dmom_w_adv_w[] =
"dmom_w_adv_w";
2015 static const char __pyx_k_epsDiffusion[] =
"epsDiffusion";
2016 static const char __pyx_k_epsHeaviside[] =
"epsHeaviside";
2017 static const char __pyx_k_fluxJacobian[] =
"fluxJacobian";
2018 static const char __pyx_k_mom_u_source[] =
"mom_u_source";
2019 static const char __pyx_k_mom_v_source[] =
"mom_v_source";
2020 static const char __pyx_k_mom_w_source[] =
"mom_w_source";
2021 static const char __pyx_k_thetaS_types[] =
"thetaS_types";
2022 static const char __pyx_k_waveCelerity[] =
"waveCelerity";
2023 static const char __pyx_k_advectiveFlux[] =
"advectiveFlux";
2024 static const char __pyx_k_alpha_L_types[] =
"alpha_L_types";
2025 static const char __pyx_k_alpha_T_types[] =
"alpha_T_types";
2026 static const char __pyx_k_diffusiveFlux[] =
"diffusiveFlux";
2027 static const char __pyx_k_dmass_adv_dhu[] =
"dmass_adv_dhu";
2028 static const char __pyx_k_dmass_adv_dhv[] =
"dmass_adv_dhv";
2029 static const char __pyx_k_dmom_u_adv_dh[] =
"dmom_u_adv_dh";
2030 static const char __pyx_k_dmom_v_adv_dh[] =
"dmom_v_adv_dh";
2031 static const char __pyx_k_eddyViscosity[] =
"eddyViscosity";
2032 static const char __pyx_k_isDOFBoundary[] =
"isDOFBoundary";
2033 static const char __pyx_k_materialTypes[] =
"materialTypes";
2034 static const char __pyx_k_meanGrainSize[] =
"meanGrainSize";
2035 static const char __pyx_k_seepageBrezis[] =
"seepageBrezis";
2036 static const char __pyx_k_smoothedDirac[] =
"smoothedDirac";
2037 static const char __pyx_k_waveFrequency[] =
"waveFrequency";
2038 static const char __pyx_k_Lambda_penalty[] =
"Lambda_penalty";
2039 static const char __pyx_k_disVelEvaluate[] =
"disVelEvaluate";
2040 static const char __pyx_k_dmom_source_dh[] =
"dmom_source_dh";
2041 static const char __pyx_k_dmom_u_acc_dhu[] =
"dmom_u_acc_dhu";
2042 static const char __pyx_k_dmom_u_adv_dhu[] =
"dmom_u_adv_dhu";
2043 static const char __pyx_k_dmom_u_adv_dhv[] =
"dmom_u_adv_dhv";
2044 static const char __pyx_k_dmom_v_acc_dhv[] =
"dmom_v_acc_dhv";
2045 static const char __pyx_k_dmom_v_adv_dhu[] =
"dmom_v_adv_dhu";
2046 static const char __pyx_k_dmom_v_adv_dhv[] =
"dmom_v_adv_dhv";
2047 static const char __pyx_k_mesh_trial_ref[] =
"mesh_trial_ref";
2048 static const char __pyx_k_mom_p_diff_ten[] =
"mom_p_diff_ten";
2049 static const char __pyx_k_mom_u_diff_ten[] =
"mom_u_diff_ten";
2050 static const char __pyx_k_mom_v_diff_ten[] =
"mom_v_diff_ten";
2051 static const char __pyx_k_mom_w_diff_ten[] =
"mom_w_diff_ten";
2052 static const char __pyx_k_specificHeat_n[] =
"specificHeat_n";
2053 static const char __pyx_k_specificHeat_w[] =
"specificHeat_w";
2054 static const char __pyx_k_computeAverages[] =
"computeAverages";
2055 static const char __pyx_k_dmom_source_dhu[] =
"dmom_source_dhu";
2056 static const char __pyx_k_dmom_u_source_u[] =
"dmom_u_source_u";
2057 static const char __pyx_k_dmom_u_source_v[] =
"dmom_u_source_v";
2058 static const char __pyx_k_dmom_u_source_w[] =
"dmom_u_source_w";
2059 static const char __pyx_k_dmom_v_source_u[] =
"dmom_v_source_u";
2060 static const char __pyx_k_dmom_v_source_v[] =
"dmom_v_source_v";
2061 static const char __pyx_k_dmom_v_source_w[] =
"dmom_v_source_w";
2062 static const char __pyx_k_dmom_w_source_u[] =
"dmom_w_source_u";
2063 static const char __pyx_k_dmom_w_source_v[] =
"dmom_w_source_v";
2064 static const char __pyx_k_dmom_w_source_w[] =
"dmom_w_source_w";
2065 static const char __pyx_k_elementDiameter[] =
"elementDiameter";
2066 static const char __pyx_k_l2projectScalar[] =
"l2projectScalar";
2067 static const char __pyx_k_l2projectVector[] =
"l2projectVector";
2068 static const char __pyx_k_mom_uv_diff_ten[] =
"mom_uv_diff_ten";
2069 static const char __pyx_k_mom_uw_diff_ten[] =
"mom_uw_diff_ten";
2070 static const char __pyx_k_mom_vu_diff_ten[] =
"mom_vu_diff_ten";
2071 static const char __pyx_k_mom_vw_diff_ten[] =
"mom_vw_diff_ten";
2072 static const char __pyx_k_mom_wu_diff_ten[] =
"mom_wu_diff_ten";
2073 static const char __pyx_k_mom_wv_diff_ten[] =
"mom_wv_diff_ten";
2074 static const char __pyx_k_Lambda_dry_types[] =
"Lambda_dry_types";
2075 static const char __pyx_k_Lambda_sat_types[] =
"Lambda_sat_types";
2076 static const char __pyx_k_Mass_2D_Evaluate[] =
"Mass_2D_Evaluate";
2077 static const char __pyx_k_Mass_3D_Evaluate[] =
"Mass_3D_Evaluate";
2078 static const char __pyx_k_bedFrictionPower[] =
"bedFrictionPower";
2079 static const char __pyx_k_dmom_u_source_dh[] =
"dmom_u_source_dh";
2080 static const char __pyx_k_dmom_v_source_dh[] =
"dmom_v_source_dh";
2081 static const char __pyx_k_freeze_nodes_tmp[] =
"freeze_nodes_tmp";
2082 static const char __pyx_k_l2project2Tensor[] =
"l2project2Tensor";
2083 static const char __pyx_k_nElements_global[] =
"nElements_global";
2084 static const char __pyx_k_HJBurgersEvaluate[] =
"HJBurgersEvaluate";
2085 static const char __pyx_k_L2projectEvaluate[] =
"L2projectEvaluate";
2086 static const char __pyx_k_dmom_u_ham_grad_p[] =
"dmom_u_ham_grad_p";
2087 static const char __pyx_k_dmom_u_source_dhu[] =
"dmom_u_source_dhu";
2088 static const char __pyx_k_dmom_u_source_dhv[] =
"dmom_u_source_dhv";
2089 static const char __pyx_k_dmom_v_ham_grad_p[] =
"dmom_v_ham_grad_p";
2090 static const char __pyx_k_dmom_v_source_dhu[] =
"dmom_v_source_dhu";
2091 static const char __pyx_k_dmom_v_source_dhv[] =
"dmom_v_source_dhv";
2092 static const char __pyx_k_dmom_w_ham_grad_p[] =
"dmom_w_ham_grad_p";
2093 static const char __pyx_k_killNonlinearDrag[] =
"killNonlinearDrag";
2094 static const char __pyx_k_linearize_at_zero[] =
"linearize_at_zero";
2095 static const char __pyx_k_nPointsPerSimplex[] =
"nPointsPerSimplex";
2096 static const char __pyx_k_smoothedHeaviside[] =
"smoothedHeaviside";
2097 static const char __pyx_k_volumePenaltyCoef[] =
"volumePenaltyCoef";
2098 static const char __pyx_k_Lambda_aniso_types[] =
"Lambda_aniso_types";
2099 static const char __pyx_k_Stokes_2D_Evaluate[] =
"Stokes_2D_Evaluate";
2100 static const char __pyx_k_Stokes_3D_Evaluate[] =
"Stokes_3D_Evaluate";
2101 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
2102 static const char __pyx_k_nDOF_trial_element[] =
"nDOF_trial_element";
2103 static const char __pyx_k_Laplace_2D_Evaluate[] =
"Laplace_2D_Evaluate";
2104 static const char __pyx_k_Laplace_3D_Evaluate[] =
"Laplace_3D_Evaluate";
2105 static const char __pyx_k_StokesP_2D_Evaluate[] =
"StokesP_2D_Evaluate";
2106 static const char __pyx_k_StokesP_3D_Evaluate[] =
"StokesP_3D_Evaluate";
2107 static const char __pyx_k_boundaryPenaltyCoef[] =
"boundaryPenaltyCoef";
2108 static const char __pyx_k_smagorinskyConstant[] =
"smagorinskyConstant";
2109 static const char __pyx_k_applyContactLineSlip[] =
"applyContactLineSlip";
2110 static const char __pyx_k_kEpsilon_2D_Evaluate[] =
"kEpsilon_2D_Evaluate";
2111 static const char __pyx_k_kEpsilon_3D_Evaluate[] =
"kEpsilon_3D_Evaluate";
2112 static const char __pyx_k_specificHeat_s_types[] =
"specificHeat_s_types";
2113 static const char __pyx_k_elementDiametersArray[] =
"elementDiametersArray";
2114 static const char __pyx_k_epsilon_freeze_factor[] =
"epsilon_freeze_factor";
2115 static const char __pyx_k_smagorinskyConstant_0[] =
"smagorinskyConstant_0";
2116 static const char __pyx_k_smagorinskyConstant_1[] =
"smagorinskyConstant_1";
2117 static const char __pyx_k_MovingMesh_1D_Evaluate[] =
"MovingMesh_1D_Evaluate";
2118 static const char __pyx_k_MovingMesh_2D_Evaluate[] =
"MovingMesh_2D_Evaluate";
2119 static const char __pyx_k_MovingMesh_3D_Evaluate[] =
"MovingMesh_3D_Evaluate";
2120 static const char __pyx_k_bedFrictionCoefficient[] =
"bedFrictionCoefficient";
2121 static const char __pyx_k_ctransportCoefficients[] =
"ctransportCoefficients";
2122 static const char __pyx_k_VOFCoefficientsEvaluate[] =
"VOFCoefficientsEvaluate";
2123 static const char __pyx_k_eddyViscosity_2D_Update[] =
"eddyViscosity_2D_Update";
2124 static const char __pyx_k_eddyViscosity_3D_Update[] =
"eddyViscosity_3D_Update";
2125 static const char __pyx_k_eikonalEquationEvaluate[] =
"eikonalEquationEvaluate";
2126 static const char __pyx_k_kEpsilon_2D_Evaluate_sd[] =
"kEpsilon_2D_Evaluate_sd";
2127 static const char __pyx_k_kEpsilon_3D_Evaluate_sd[] =
"kEpsilon_3D_Evaluate_sd";
2128 static const char __pyx_k_NavierStokes_2D_Evaluate[] =
"NavierStokes_2D_Evaluate";
2129 static const char __pyx_k_NavierStokes_3D_Evaluate[] =
"NavierStokes_3D_Evaluate";
2130 static const char __pyx_k_rotatingPulseVelEvaluate[] =
"rotatingPulseVelEvaluate";
2131 static const char __pyx_k_shallowWater_1D_Evaluate[] =
"shallowWater_1D_Evaluate";
2132 static const char __pyx_k_shallowWater_2D_Evaluate[] =
"shallowWater_2D_Evaluate";
2133 static const char __pyx_k_unitCubeRotationEvaluate[] =
"unitCubeRotationEvaluate";
2134 static const char __pyx_k_unitSquareVortexEvaluate[] =
"unitSquareVortexEvaluate";
2135 static const char __pyx_k_kEpsilon_k_2D_Evaluate_sd[] =
"kEpsilon_k_2D_Evaluate_sd";
2136 static const char __pyx_k_kEpsilon_k_3D_Evaluate_sd[] =
"kEpsilon_k_3D_Evaluate_sd";
2137 static const char __pyx_k_burgersDiagonalVelEvaluate[] =
"burgersDiagonalVelEvaluate";
2138 static const char __pyx_k_eddyViscosity_2D_Update_sd[] =
"eddyViscosity_2D_Update_sd";
2139 static const char __pyx_k_eddyViscosity_3D_Update_sd[] =
"eddyViscosity_3D_Update_sd";
2140 static const char __pyx_k_nonlinearADR_pqrstEvaluate[] =
"nonlinearADR_pqrstEvaluate";
2141 static const char __pyx_k_smoothedHeaviside_integral[] =
"smoothedHeaviside_integral";
2142 static const char __pyx_k_unitSquareRotationEvaluate[] =
"unitSquareRotationEvaluate";
2143 static const char __pyx_k_calculateWaveFunction3d_ref[] =
"calculateWaveFunction3d_ref";
2144 static const char __pyx_k_disRotatingPulseVelEvaluate[] =
"disRotatingPulseVelEvaluate";
2145 static const char __pyx_k_weakDirichletConditionFlags[] =
"weakDirichletConditionFlags";
2146 static const char __pyx_k_LinearElasticity_1D_Evaluate[] =
"LinearElasticity_1D_Evaluate";
2147 static const char __pyx_k_LinearElasticity_2D_Evaluate[] =
"LinearElasticity_2D_Evaluate";
2148 static const char __pyx_k_LinearElasticity_3D_Evaluate[] =
"LinearElasticity_3D_Evaluate";
2149 static const char __pyx_k_applyContactLineSlipJacobian[] =
"applyContactLineSlipJacobian";
2150 static const char __pyx_k_burgersDiagonalVelHJEvaluate[] =
"burgersDiagonalVelHJEvaluate";
2151 static const char __pyx_k_elementBoundaryElementsArray[] =
"elementBoundaryElementsArray";
2152 static const char __pyx_k_TwoPhaseAdvection_2D_Evaluate[] =
"TwoPhaseAdvection_2D_Evaluate";
2153 static const char __pyx_k_cLevelSetCoefficientsEvaluate[] =
"cLevelSetCoefficientsEvaluate";
2154 static const char __pyx_k_twophasePotentialFlowEvaluate[] =
"twophasePotentialFlowEvaluate";
2155 static const char __pyx_k_ncLevelSetCoefficientsEvaluate[] =
"ncLevelSetCoefficientsEvaluate";
2156 static const char __pyx_k_nonlinearADR_pqrstDualEvaluate[] =
"nonlinearADR_pqrstDualEvaluate";
2157 static const char __pyx_k_ThreephaseNavierStokes_ST_LS_SO[] =
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate";
2158 static const char __pyx_k_darcySharpInterfaceFlowEvaluate[] =
"darcySharpInterfaceFlowEvaluate";
2159 static const char __pyx_k_kEpsilon_epsilon_2D_Evaluate_sd[] =
"kEpsilon_epsilon_2D_Evaluate_sd";
2160 static const char __pyx_k_kEpsilon_epsilon_3D_Evaluate_sd[] =
"kEpsilon_epsilon_3D_Evaluate_sd";
2161 static const char __pyx_k_numpy_core_multiarray_failed_to[] =
"numpy.core.multiarray failed to import";
2162 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp[] =
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update";
2163 static const char __pyx_k_TwophaseNavierStokes_LS_SO_2D_Ev[] =
"TwophaseNavierStokes_LS_SO_2D_Evaluate";
2164 static const char __pyx_k_TwophaseNavierStokes_LS_SO_3D_Ev[] =
"TwophaseNavierStokes_LS_SO_3D_Evaluate";
2165 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D[] =
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate";
2166 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D[] =
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate";
2167 static const char __pyx_k_TwophaseNavierStokes_VOF_SO_2D_E[] =
"TwophaseNavierStokes_VOF_SO_2D_Evaluate";
2168 static const char __pyx_k_TwophaseNavierStokes_VOF_SO_3D_E[] =
"TwophaseNavierStokes_VOF_SO_3D_Evaluate";
2169 static const char __pyx_k_TwophaseStokes_LS_SO_2D_Evaluate[] =
"TwophaseStokes_LS_SO_2D_Evaluate";
2170 static const char __pyx_k_TwophaseStokes_LS_SO_3D_Evaluate[] =
"TwophaseStokes_LS_SO_3D_Evaluate";
2171 static const char __pyx_k_TwophaseStokes_VOF_SO_2D_Evaluat[] =
"TwophaseStokes_VOF_SO_2D_Evaluate";
2172 static const char __pyx_k_TwophaseStokes_VOF_SO_3D_Evaluat[] =
"TwophaseStokes_VOF_SO_3D_Evaluate";
2173 static const char __pyx_k_VolumeAveragedNavierStokesFullDe[] =
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate";
2174 static const char __pyx_k_VolumeAveragedTwophaseNavierStok[] =
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate";
2175 static const char __pyx_k_VolumeAveragedVOFCoefficientsEva[] =
"VolumeAveragedVOFCoefficientsEvaluate";
2176 static const char __pyx_k_calculateEddyViscosity_Smagorins[] =
"calculateEddyViscosity_Smagorinsky_2D";
2177 static const char __pyx_k_conservativeHeadRichardsBCBfromM[] =
"conservativeHeadRichardsBCBfromMVGHomEvaluate";
2178 static const char __pyx_k_conservativeHeadRichardsBrooksCo[] =
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate";
2179 static const char __pyx_k_conservativeHeadRichardsJLeveret[] =
"conservativeHeadRichardsJLeverettEvaluate";
2180 static const char __pyx_k_conservativeHeadRichardsL2projBn[] =
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate";
2181 static const char __pyx_k_conservativeHeadRichardsL2projMu[] =
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate";
2182 static const char __pyx_k_conservativeHeadRichardsMualemVa[] =
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate";
2183 static const char __pyx_k_conservativeSatRichardsBrooksCor[] =
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate";
2184 static const char __pyx_k_conservativeSatRichardsMualemVan[] =
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate";
2185 static const char __pyx_k_conservativeTotalHeadRichardsMua[] =
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate";
2186 static const char __pyx_k_constantNormalVelocityLevelSetEv[] =
"constantNormalVelocityLevelSetEvaluate";
2187 static const char __pyx_k_constantVelocityLevelSetEvaluate[] =
"constantVelocityLevelSetEvaluate";
2188 static const char __pyx_k_darcySharpInterfaceFlowImEvaluat[] =
"darcySharpInterfaceFlowImEvaluate";
2189 static const char __pyx_k_diffusiveWave1DCoefficientsEvalu[] =
"diffusiveWave1DCoefficientsEvaluate";
2190 static const char __pyx_k_diffusiveWave2DCoefficientsEvalu[] =
"diffusiveWave2DCoefficientsEvaluate";
2191 static const char __pyx_k_evaluateBuckleyLeverettLiuExampl[] =
"evaluateBuckleyLeverettLiuExample";
2192 static const char __pyx_k_groundwaterBiodegradation01Evalu[] =
"groundwaterBiodegradation01EvaluateFC";
2193 static const char __pyx_k_groundwaterBryantDawsonIonExEval[] =
"groundwaterBryantDawsonIonExEvaluateFC";
2194 static const char __pyx_k_groundwaterTransportCoefficients[] =
"groundwaterTransportCoefficientsEvaluate";
2195 static const char __pyx_k_levelSetConservationCoefficients[] =
"levelSetConservationCoefficientsEvaluate";
2196 static const char __pyx_k_levelSetCurvatureCoefficientsEva[] =
"levelSetCurvatureCoefficientsEvaluate";
2197 static const char __pyx_k_linearADR_ConstantCoefficientsEv[] =
"linearADR_ConstantCoefficientsEvaluate";
2198 static const char __pyx_k_nQuadraturePoints_elementBoundar[] =
"nQuadraturePoints_elementBoundary";
2199 static const char __pyx_k_numpy_core_umath_failed_to_impor[] =
"numpy.core.umath failed to import";
2200 static const char __pyx_k_proteus_ctransportCoefficients_p[] =
"proteus/ctransportCoefficients.pyx";
2201 static const char __pyx_k_quadraturePointToElementBoundary[] =
"quadraturePointToElementBoundary";
2202 static const char __pyx_k_redistanceLevelSetCoefficientsEv[] =
"redistanceLevelSetCoefficientsEvaluate";
2203 static const char __pyx_k_redistanceLevelSetCoefficientsWi[] =
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate";
2204 static const char __pyx_k_redistanceLevelSetSandFCoefficie[] =
"redistanceLevelSetSandFCoefficientsEvaluate";
2205 static const char __pyx_k_scriptedSphereMotionSignedDistan[] =
"scriptedSphereMotionSignedDistance";
2206 static const char __pyx_k_setSimpleWeakDirichletConditions[] =
"setSimpleWeakDirichletConditionsForLevelSet";
2207 static const char __pyx_k_setWeakDirichletConditionsForLev[] =
"setWeakDirichletConditionsForLevelSet";
2208 static const char __pyx_k_twophaseLevelSetCoefficientsEval[] =
"twophaseLevelSetCoefficientsEvaluate";
2209 static const char __pyx_k_twophaseLevelSetCoefficientsUpda[] =
"twophaseLevelSetCoefficientsUpdateVelocity";
2210 static const char __pyx_k_twophasePotentialFlowUpdateFreeS[] =
"twophasePotentialFlowUpdateFreeSurface";
2211 static const char __pyx_k_twophaseSignedDistanceCoefficien[] =
"twophaseSignedDistanceCoefficientsEvaluate";
2212 static const char __pyx_k_twophaseSignedDistanceUpdateSign[] =
"twophaseSignedDistanceUpdateSignFunction";
2213 static const char __pyx_k_unitSquareRotationLevelSetEvalua[] =
"unitSquareRotationLevelSetEvaluate";
2214 static const char __pyx_k_unitSquareVortexLevelSetEvaluate[] =
"unitSquareVortexLevelSetEvaluate";
2215 static const char __pyx_k_variablySaturatedGroundwaterEner[] =
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat";
2216 static const char __pyx_k_variablySaturatedGroundwaterTran[] =
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat";
2217 static const char __pyx_k_ThreephaseNavierStokes_ST_LS_SO_2[] =
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate";
2218 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp_2[] =
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd";
2219 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp_3[] =
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update";
2220 static const char __pyx_k_ReynoldsAveragedNavierStokes_kEp_4[] =
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd";
2221 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D_2[] =
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd";
2222 static const char __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D_2[] =
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd";
2223 static const char __pyx_k_VolumeAveragedNavierStokesFullDe_2[] =
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate";
2224 static const char __pyx_k_VolumeAveragedTwophaseNavierStok_2[] =
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd";
2225 static const char __pyx_k_VolumeAveragedTwophaseNavierStok_3[] =
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate";
2226 static const char __pyx_k_VolumeAveragedTwophaseNavierStok_4[] =
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd";
2227 static const char __pyx_k_calculateEddyViscosity_Smagorins_2[] =
"calculateEddyViscosity_Smagorinsky_3D";
2228 static const char __pyx_k_calculateEddyViscosity_Smagorins_3[] =
"calculateEddyViscosity_Smagorinsky2P_2D";
2229 static const char __pyx_k_calculateEddyViscosity_Smagorins_4[] =
"calculateEddyViscosity_Smagorinsky2P_3D";
2230 static const char __pyx_k_conservativeHeadRichardsBrooksCo_2[] =
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate";
2231 static const char __pyx_k_conservativeHeadRichardsJLeveret_2[] =
"conservativeHeadRichardsJLeverettAniEvaluate";
2232 static const char __pyx_k_conservativeHeadRichardsL2projMu_2[] =
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate";
2233 static const char __pyx_k_conservativeHeadRichardsMualemVa_2[] =
"conservativeHeadRichardsMualemVanGenuchten_sd_het";
2234 static const char __pyx_k_conservativeHeadRichardsMualemVa_3[] =
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2";
2235 static const char __pyx_k_conservativeHeadRichardsMualemVa_4[] =
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate";
2236 static const char __pyx_k_conservativeHeadRichardsMualemVa_5[] =
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind";
2237 static const char __pyx_k_conservativeHeadRichardsMualemVa_6[] =
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm";
2238 static const char __pyx_k_conservativeHeadRichardsMualemVa_7[] =
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd";
2239 static const char __pyx_k_groundwaterTransportCoefficients_2[] =
"groundwaterTransportCoefficientsEvaluate_hetMat";
2240 static const char __pyx_k_levelSetConservationCoefficients_2[] =
"levelSetConservationCoefficientsEvaluate_sd";
2241 static const char __pyx_k_twophaseLevelSetCoefficientsEval_2[] =
"twophaseLevelSetCoefficientsEvaluateCI";
2242 static PyObject *__pyx_n_s_A;
2243 static PyObject *__pyx_n_s_A1;
2244 static PyObject *__pyx_n_s_A2;
2245 static PyObject *__pyx_n_s_B;
2246 static PyObject *__pyx_n_s_B1;
2247 static PyObject *__pyx_n_s_B2;
2248 static PyObject *__pyx_n_s_Bcon;
2249 static PyObject *__pyx_n_s_Bcon1;
2250 static PyObject *__pyx_n_s_Bcon2;
2251 static PyObject *__pyx_n_s_C;
2252 static PyObject *__pyx_n_s_C1;
2253 static PyObject *__pyx_n_s_C2;
2254 static PyObject *__pyx_n_s_E;
2255 static PyObject *__pyx_n_s_E0;
2256 static PyObject *__pyx_n_s_H;
2257 static PyObject *__pyx_n_s_HJBurgersEvaluate;
2258 static PyObject *__pyx_n_s_H_vof;
2259 static PyObject *__pyx_n_s_ImportError;
2260 static PyObject *__pyx_n_s_KWs;
2261 static PyObject *__pyx_n_s_K_h;
2262 static PyObject *__pyx_n_s_K_m;
2263 static PyObject *__pyx_n_s_K_w;
2264 static PyObject *__pyx_n_s_Km;
2265 static PyObject *__pyx_n_s_Kox_C;
2266 static PyObject *__pyx_n_s_Kox_E;
2267 static PyObject *__pyx_n_s_Kox_X;
2268 static PyObject *__pyx_n_s_Kox_max;
2269 static PyObject *__pyx_n_s_Kp;
2270 static PyObject *__pyx_n_s_L2projectEvaluate;
2271 static PyObject *__pyx_n_s_Lambda;
2272 static PyObject *__pyx_n_s_Lambda_aniso_types;
2273 static PyObject *__pyx_n_s_Lambda_dry_types;
2274 static PyObject *__pyx_n_s_Lambda_penalty;
2275 static PyObject *__pyx_n_s_Lambda_sat_types;
2276 static PyObject *__pyx_n_s_Laplace_2D_Evaluate;
2277 static PyObject *__pyx_n_s_Laplace_3D_Evaluate;
2278 static PyObject *__pyx_n_s_LinearElasticity_1D_Evaluate;
2279 static PyObject *__pyx_n_s_LinearElasticity_2D_Evaluate;
2280 static PyObject *__pyx_n_s_LinearElasticity_3D_Evaluate;
2281 static PyObject *__pyx_n_s_M;
2282 static PyObject *__pyx_n_s_M1;
2283 static PyObject *__pyx_n_s_M2;
2284 static PyObject *__pyx_n_s_Mass_2D_Evaluate;
2285 static PyObject *__pyx_n_s_Mass_3D_Evaluate;
2286 static PyObject *__pyx_n_s_MovingMesh_1D_Evaluate;
2287 static PyObject *__pyx_n_s_MovingMesh_2D_Evaluate;
2288 static PyObject *__pyx_n_s_MovingMesh_3D_Evaluate;
2289 static PyObject *__pyx_n_s_NavierStokes_2D_Evaluate;
2290 static PyObject *__pyx_n_s_NavierStokes_3D_Evaluate;
2291 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp;
2292 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2;
2293 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3;
2294 static PyObject *__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4;
2295 static PyObject *__pyx_n_s_S;
2296 static PyObject *__pyx_n_s_S_nwr;
2297 static PyObject *__pyx_n_s_S_wirr;
2298 static PyObject *__pyx_n_s_StokesP_2D_Evaluate;
2299 static PyObject *__pyx_n_s_StokesP_3D_Evaluate;
2300 static PyObject *__pyx_n_s_Stokes_2D_Evaluate;
2301 static PyObject *__pyx_n_s_Stokes_3D_Evaluate;
2302 static PyObject *__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO;
2303 static PyObject *__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2;
2304 static PyObject *__pyx_n_s_TwoPhaseAdvection_2D_Evaluate;
2305 static PyObject *__pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev;
2306 static PyObject *__pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev;
2307 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D;
2308 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2;
2309 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D;
2310 static PyObject *__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2;
2311 static PyObject *__pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E;
2312 static PyObject *__pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E;
2313 static PyObject *__pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate;
2314 static PyObject *__pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate;
2315 static PyObject *__pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat;
2316 static PyObject *__pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat;
2317 static PyObject *__pyx_n_s_VOFCoefficientsEvaluate;
2318 static PyObject *__pyx_n_s_VolumeAveragedNavierStokesFullDe;
2319 static PyObject *__pyx_n_s_VolumeAveragedNavierStokesFullDe_2;
2320 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok;
2321 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok_2;
2322 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok_3;
2323 static PyObject *__pyx_n_s_VolumeAveragedTwophaseNavierStok_4;
2324 static PyObject *__pyx_n_s_VolumeAveragedVOFCoefficientsEva;
2325 static PyObject *__pyx_n_s_Yield;
2326 static PyObject *__pyx_n_s_Z_tot;
2327 static PyObject *__pyx_n_s_a;
2328 static PyObject *__pyx_n_s_a_avg;
2329 static PyObject *__pyx_n_s_a_c;
2330 static PyObject *__pyx_n_s_a_e;
2331 static PyObject *__pyx_n_s_a_h;
2332 static PyObject *__pyx_n_s_a_k;
2333 static PyObject *__pyx_n_s_a_m;
2334 static PyObject *__pyx_n_s_advectiveFlux;
2335 static PyObject *__pyx_n_s_alpha;
2336 static PyObject *__pyx_n_s_alpha_L;
2337 static PyObject *__pyx_n_s_alpha_L_types;
2338 static PyObject *__pyx_n_s_alpha_T;
2339 static PyObject *__pyx_n_s_alpha_T_types;
2340 static PyObject *__pyx_n_s_applyContactLineSlip;
2341 static PyObject *__pyx_n_s_applyContactLineSlipJacobian;
2342 static PyObject *__pyx_n_s_b;
2343 static PyObject *__pyx_n_s_bedFrictionCoefficient;
2344 static PyObject *__pyx_n_s_bedFrictionPower;
2345 static PyObject *__pyx_n_s_beta;
2346 static PyObject *__pyx_n_s_boundaryPenaltyCoef;
2347 static PyObject *__pyx_n_s_burgersDiagonalVelEvaluate;
2348 static PyObject *__pyx_n_s_burgersDiagonalVelHJEvaluate;
2349 static PyObject *__pyx_n_s_cLevelSetCoefficientsEvaluate;
2350 static PyObject *__pyx_n_s_c_1;
2351 static PyObject *__pyx_n_s_c_2;
2352 static PyObject *__pyx_n_s_c_c;
2353 static PyObject *__pyx_n_s_c_e;
2354 static PyObject *__pyx_n_s_c_h;
2355 static PyObject *__pyx_n_s_c_m;
2356 static PyObject *__pyx_n_s_c_mu;
2357 static PyObject *__pyx_n_s_c_x;
2358 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins;
2359 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins_2;
2360 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins_3;
2361 static PyObject *__pyx_n_s_calculateEddyViscosity_Smagorins_4;
2362 static PyObject *__pyx_n_s_calculateWaveFunction3d_ref;
2363 static PyObject *__pyx_n_s_centers;
2364 static PyObject *__pyx_n_s_cline_in_traceback;
2365 static PyObject *__pyx_n_s_colind;
2366 static PyObject *__pyx_n_s_computeAverages;
2367 static PyObject *__pyx_n_s_conservativeHeadRichardsBCBfromM;
2368 static PyObject *__pyx_n_s_conservativeHeadRichardsBrooksCo;
2369 static PyObject *__pyx_n_s_conservativeHeadRichardsBrooksCo_2;
2370 static PyObject *__pyx_n_s_conservativeHeadRichardsJLeveret;
2371 static PyObject *__pyx_n_s_conservativeHeadRichardsJLeveret_2;
2372 static PyObject *__pyx_n_s_conservativeHeadRichardsL2projBn;
2373 static PyObject *__pyx_n_s_conservativeHeadRichardsL2projMu;
2374 static PyObject *__pyx_n_s_conservativeHeadRichardsL2projMu_2;
2375 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa;
2376 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_2;
2377 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_3;
2378 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_4;
2379 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_5;
2380 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_6;
2381 static PyObject *__pyx_n_s_conservativeHeadRichardsMualemVa_7;
2382 static PyObject *__pyx_n_s_conservativeSatRichardsBrooksCor;
2383 static PyObject *__pyx_n_s_conservativeSatRichardsMualemVan;
2384 static PyObject *__pyx_n_s_conservativeTotalHeadRichardsMua;
2385 static PyObject *__pyx_n_s_constantNormalVelocityLevelSetEv;
2386 static PyObject *__pyx_n_s_constantVelocityLevelSetEvaluate;
2387 static PyObject *__pyx_n_s_ctransportCoefficients;
2388 static PyObject *__pyx_n_s_d;
2389 static PyObject *__pyx_n_s_dH;
2390 static PyObject *__pyx_n_s_dV;
2391 static PyObject *__pyx_n_s_d_c;
2392 static PyObject *__pyx_n_s_d_e;
2393 static PyObject *__pyx_n_s_d_h;
2394 static PyObject *__pyx_n_s_d_m;
2395 static PyObject *__pyx_n_s_da;
2396 static PyObject *__pyx_n_s_da_avg;
2397 static PyObject *__pyx_n_s_da_e_de;
2398 static PyObject *__pyx_n_s_da_e_dk;
2399 static PyObject *__pyx_n_s_da_k_de;
2400 static PyObject *__pyx_n_s_da_k_dk;
2401 static PyObject *__pyx_n_s_darcySharpInterfaceFlowEvaluate;
2402 static PyObject *__pyx_n_s_darcySharpInterfaceFlowImEvaluat;
2403 static PyObject *__pyx_n_s_db_dx;
2404 static PyObject *__pyx_n_s_det_J;
2405 static PyObject *__pyx_n_s_df;
2406 static PyObject *__pyx_n_s_df_avg;
2407 static PyObject *__pyx_n_s_df_c;
2408 static PyObject *__pyx_n_s_df_e;
2409 static PyObject *__pyx_n_s_df_h;
2410 static PyObject *__pyx_n_s_df_k;
2411 static PyObject *__pyx_n_s_df_m;
2412 static PyObject *__pyx_n_s_dh;
2413 static PyObject *__pyx_n_s_diffusiveFlux;
2414 static PyObject *__pyx_n_s_diffusiveWave1DCoefficientsEvalu;
2415 static PyObject *__pyx_n_s_diffusiveWave2DCoefficientsEvalu;
2416 static PyObject *__pyx_n_s_disRotatingPulseVelEvaluate;
2417 static PyObject *__pyx_n_s_disVelEvaluate;
2418 static PyObject *__pyx_n_s_dm;
2419 static PyObject *__pyx_n_s_dm_c;
2420 static PyObject *__pyx_n_s_dm_e;
2421 static PyObject *__pyx_n_s_dm_h_h;
2422 static PyObject *__pyx_n_s_dm_h_m;
2423 static PyObject *__pyx_n_s_dm_k;
2424 static PyObject *__pyx_n_s_dm_m_h;
2425 static PyObject *__pyx_n_s_dm_m_m;
2426 static PyObject *__pyx_n_s_dm_x;
2427 static PyObject *__pyx_n_s_dmass;
2428 static PyObject *__pyx_n_s_dmass_acc_dh;
2429 static PyObject *__pyx_n_s_dmass_adv_dhu;
2430 static PyObject *__pyx_n_s_dmass_adv_dhv;
2431 static PyObject *__pyx_n_s_dmass_adv_p;
2432 static PyObject *__pyx_n_s_dmass_adv_u;
2433 static PyObject *__pyx_n_s_dmass_adv_v;
2434 static PyObject *__pyx_n_s_dmass_adv_w;
2435 static PyObject *__pyx_n_s_dmom_acc_dhu;
2436 static PyObject *__pyx_n_s_dmom_adv_dh;
2437 static PyObject *__pyx_n_s_dmom_adv_dhu;
2438 static PyObject *__pyx_n_s_dmom_p_acc_p;
2439 static PyObject *__pyx_n_s_dmom_source_dh;
2440 static PyObject *__pyx_n_s_dmom_source_dhu;
2441 static PyObject *__pyx_n_s_dmom_u_acc_dhu;
2442 static PyObject *__pyx_n_s_dmom_u_acc_u;
2443 static PyObject *__pyx_n_s_dmom_u_adv_dh;
2444 static PyObject *__pyx_n_s_dmom_u_adv_dhu;
2445 static PyObject *__pyx_n_s_dmom_u_adv_dhv;
2446 static PyObject *__pyx_n_s_dmom_u_adv_p;
2447 static PyObject *__pyx_n_s_dmom_u_adv_u;
2448 static PyObject *__pyx_n_s_dmom_u_adv_v;
2449 static PyObject *__pyx_n_s_dmom_u_adv_w;
2450 static PyObject *__pyx_n_s_dmom_u_ham_grad_p;
2451 static PyObject *__pyx_n_s_dmom_u_source_dh;
2452 static PyObject *__pyx_n_s_dmom_u_source_dhu;
2453 static PyObject *__pyx_n_s_dmom_u_source_dhv;
2454 static PyObject *__pyx_n_s_dmom_u_source_u;
2455 static PyObject *__pyx_n_s_dmom_u_source_v;
2456 static PyObject *__pyx_n_s_dmom_u_source_w;
2457 static PyObject *__pyx_n_s_dmom_v_acc_dhv;
2458 static PyObject *__pyx_n_s_dmom_v_acc_v;
2459 static PyObject *__pyx_n_s_dmom_v_adv_dh;
2460 static PyObject *__pyx_n_s_dmom_v_adv_dhu;
2461 static PyObject *__pyx_n_s_dmom_v_adv_dhv;
2462 static PyObject *__pyx_n_s_dmom_v_adv_p;
2463 static PyObject *__pyx_n_s_dmom_v_adv_u;
2464 static PyObject *__pyx_n_s_dmom_v_adv_v;
2465 static PyObject *__pyx_n_s_dmom_v_adv_w;
2466 static PyObject *__pyx_n_s_dmom_v_ham_grad_p;
2467 static PyObject *__pyx_n_s_dmom_v_source_dh;
2468 static PyObject *__pyx_n_s_dmom_v_source_dhu;
2469 static PyObject *__pyx_n_s_dmom_v_source_dhv;
2470 static PyObject *__pyx_n_s_dmom_v_source_u;
2471 static PyObject *__pyx_n_s_dmom_v_source_v;
2472 static PyObject *__pyx_n_s_dmom_v_source_w;
2473 static PyObject *__pyx_n_s_dmom_w_acc_w;
2474 static PyObject *__pyx_n_s_dmom_w_adv_p;
2475 static PyObject *__pyx_n_s_dmom_w_adv_u;
2476 static PyObject *__pyx_n_s_dmom_w_adv_v;
2477 static PyObject *__pyx_n_s_dmom_w_adv_w;
2478 static PyObject *__pyx_n_s_dmom_w_ham_grad_p;
2479 static PyObject *__pyx_n_s_dmom_w_source_u;
2480 static PyObject *__pyx_n_s_dmom_w_source_v;
2481 static PyObject *__pyx_n_s_dmom_w_source_w;
2482 static PyObject *__pyx_n_s_dphi;
2483 static PyObject *__pyx_n_s_dphi_e;
2484 static PyObject *__pyx_n_s_dphi_h;
2485 static PyObject *__pyx_n_s_dphi_k;
2486 static PyObject *__pyx_n_s_dphi_pot;
2487 static PyObject *__pyx_n_s_dr;
2488 static PyObject *__pyx_n_s_dr_c_dc;
2489 static PyObject *__pyx_n_s_dr_c_de;
2490 static PyObject *__pyx_n_s_dr_c_dx;
2491 static PyObject *__pyx_n_s_dr_e_dc;
2492 static PyObject *__pyx_n_s_dr_e_de;
2493 static PyObject *__pyx_n_s_dr_e_dk;
2494 static PyObject *__pyx_n_s_dr_e_dx;
2495 static PyObject *__pyx_n_s_dr_h_dh;
2496 static PyObject *__pyx_n_s_dr_h_dm;
2497 static PyObject *__pyx_n_s_dr_k_de;
2498 static PyObject *__pyx_n_s_dr_k_dk;
2499 static PyObject *__pyx_n_s_dr_m_dh;
2500 static PyObject *__pyx_n_s_dr_m_dm;
2501 static PyObject *__pyx_n_s_dr_x_dc;
2502 static PyObject *__pyx_n_s_dr_x_de;
2503 static PyObject *__pyx_n_s_dr_x_dx;
2504 static PyObject *__pyx_n_s_eddyViscosity;
2505 static PyObject *__pyx_n_s_eddyViscosity_2D_Update;
2506 static PyObject *__pyx_n_s_eddyViscosity_2D_Update_sd;
2507 static PyObject *__pyx_n_s_eddyViscosity_3D_Update;
2508 static PyObject *__pyx_n_s_eddyViscosity_3D_Update_sd;
2509 static PyObject *__pyx_n_s_eikonalEquationEvaluate;
2510 static PyObject *__pyx_n_s_elementBoundaryElementsArray;
2511 static PyObject *__pyx_n_s_elementDiameter;
2512 static PyObject *__pyx_n_s_elementDiametersArray;
2513 static PyObject *__pyx_n_s_eps;
2514 static PyObject *__pyx_n_s_epsDiffusion;
2515 static PyObject *__pyx_n_s_epsDirac;
2516 static PyObject *__pyx_n_s_epsFact;
2517 static PyObject *__pyx_n_s_epsHeaviside;
2518 static PyObject *__pyx_n_s_eps_mu;
2519 static PyObject *__pyx_n_s_eps_rho;
2520 static PyObject *__pyx_n_s_epsilon;
2521 static PyObject *__pyx_n_s_epsilon_freeze_factor;
2522 static PyObject *__pyx_n_s_evaluateBuckleyLeverettLiuExampl;
2523 static PyObject *__pyx_n_s_f;
2524 static PyObject *__pyx_n_s_f_avg;
2525 static PyObject *__pyx_n_s_f_c;
2526 static PyObject *__pyx_n_s_f_e;
2527 static PyObject *__pyx_n_s_f_h;
2528 static PyObject *__pyx_n_s_f_k;
2529 static PyObject *__pyx_n_s_f_m;
2530 static PyObject *__pyx_n_s_fluxJacobian;
2531 static PyObject *__pyx_n_s_freeze_nodes_tmp;
2532 static PyObject *__pyx_n_s_g;
2533 static PyObject *__pyx_n_s_gamma;
2534 static PyObject *__pyx_n_s_grad_b;
2535 static PyObject *__pyx_n_s_grad_k;
2536 static PyObject *__pyx_n_s_grad_p;
2537 static PyObject *__pyx_n_s_grad_phi;
2538 static PyObject *__pyx_n_s_grad_u;
2539 static PyObject *__pyx_n_s_grad_v;
2540 static PyObject *__pyx_n_s_grad_w;
2541 static PyObject *__pyx_n_s_gradu;
2542 static PyObject *__pyx_n_s_gradv;
2543 static PyObject *__pyx_n_s_gradw;
2544 static PyObject *__pyx_n_s_gravity;
2545 static PyObject *__pyx_n_s_gravity_u;
2546 static PyObject *__pyx_n_s_groundwaterBiodegradation01Evalu;
2547 static PyObject *__pyx_n_s_groundwaterBryantDawsonIonExEval;
2548 static PyObject *__pyx_n_s_groundwaterTransportCoefficients;
2549 static PyObject *__pyx_n_s_groundwaterTransportCoefficients_2;
2550 static PyObject *__pyx_n_s_h;
2551 static PyObject *__pyx_n_s_h_e;
2552 static PyObject *__pyx_n_s_h_eps;
2553 static PyObject *__pyx_n_s_hu;
2554 static PyObject *__pyx_n_s_hv;
2555 static PyObject *__pyx_n_s_import;
2556 static PyObject *__pyx_n_s_isDOFBoundary;
2557 static PyObject *__pyx_n_s_k;
2558 static PyObject *__pyx_n_s_kEpsilon_2D_Evaluate;
2559 static PyObject *__pyx_n_s_kEpsilon_2D_Evaluate_sd;
2560 static PyObject *__pyx_n_s_kEpsilon_3D_Evaluate;
2561 static PyObject *__pyx_n_s_kEpsilon_3D_Evaluate_sd;
2562 static PyObject *__pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd;
2563 static PyObject *__pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd;
2564 static PyObject *__pyx_n_s_kEpsilon_k_2D_Evaluate_sd;
2565 static PyObject *__pyx_n_s_kEpsilon_k_3D_Evaluate_sd;
2566 static PyObject *__pyx_n_s_k_d;
2567 static PyObject *__pyx_n_s_kappa;
2568 static PyObject *__pyx_n_s_killNonlinearDrag;
2569 static PyObject *__pyx_n_s_kr0;
2570 static PyObject *__pyx_n_s_kr0x;
2571 static PyObject *__pyx_n_s_kr0y;
2572 static PyObject *__pyx_n_s_kr0z;
2573 static PyObject *__pyx_n_s_l2project2Tensor;
2574 static PyObject *__pyx_n_s_l2projectScalar;
2575 static PyObject *__pyx_n_s_l2projectVector;
2576 static PyObject *__pyx_n_s_levelSetConservationCoefficients;
2577 static PyObject *__pyx_n_s_levelSetConservationCoefficients_2;
2578 static PyObject *__pyx_n_s_levelSetCurvatureCoefficientsEva;
2579 static PyObject *__pyx_n_s_linearADR_ConstantCoefficientsEv;
2580 static PyObject *__pyx_n_s_linearize_at_zero;
2581 static PyObject *__pyx_n_s_m;
2582 static PyObject *__pyx_n_s_m_c;
2583 static PyObject *__pyx_n_s_m_e;
2584 static PyObject *__pyx_n_s_m_h;
2585 static PyObject *__pyx_n_s_m_k;
2586 static PyObject *__pyx_n_s_m_m;
2587 static PyObject *__pyx_n_s_m_x;
2588 static PyObject *__pyx_n_s_main;
2589 static PyObject *__pyx_n_s_mass;
2590 static PyObject *__pyx_n_s_mass_acc;
2591 static PyObject *__pyx_n_s_mass_adv;
2592 static PyObject *__pyx_n_s_materialTypes;
2593 static PyObject *__pyx_n_s_meanGrainSize;
2594 static PyObject *__pyx_n_s_mesh_dof;
2595 static PyObject *__pyx_n_s_mesh_l2g;
2596 static PyObject *__pyx_n_s_mesh_trial_ref;
2597 static PyObject *__pyx_n_s_mom_acc;
2598 static PyObject *__pyx_n_s_mom_adv;
2599 static PyObject *__pyx_n_s_mom_diff;
2600 static PyObject *__pyx_n_s_mom_p_acc;
2601 static PyObject *__pyx_n_s_mom_p_diff_ten;
2602 static PyObject *__pyx_n_s_mom_source;
2603 static PyObject *__pyx_n_s_mom_u_acc;
2604 static PyObject *__pyx_n_s_mom_u_adv;
2605 static PyObject *__pyx_n_s_mom_u_diff;
2606 static PyObject *__pyx_n_s_mom_u_diff_ten;
2607 static PyObject *__pyx_n_s_mom_u_ham;
2608 static PyObject *__pyx_n_s_mom_u_source;
2609 static PyObject *__pyx_n_s_mom_uv_diff_ten;
2610 static PyObject *__pyx_n_s_mom_uw_diff_ten;
2611 static PyObject *__pyx_n_s_mom_v_acc;
2612 static PyObject *__pyx_n_s_mom_v_adv;
2613 static PyObject *__pyx_n_s_mom_v_diff;
2614 static PyObject *__pyx_n_s_mom_v_diff_ten;
2615 static PyObject *__pyx_n_s_mom_v_ham;
2616 static PyObject *__pyx_n_s_mom_v_source;
2617 static PyObject *__pyx_n_s_mom_vu_diff_ten;
2618 static PyObject *__pyx_n_s_mom_vw_diff_ten;
2619 static PyObject *__pyx_n_s_mom_w_acc;
2620 static PyObject *__pyx_n_s_mom_w_adv;
2621 static PyObject *__pyx_n_s_mom_w_diff_ten;
2622 static PyObject *__pyx_n_s_mom_w_ham;
2623 static PyObject *__pyx_n_s_mom_w_source;
2624 static PyObject *__pyx_n_s_mom_wu_diff_ten;
2625 static PyObject *__pyx_n_s_mom_wv_diff_ten;
2626 static PyObject *__pyx_n_s_mu;
2627 static PyObject *__pyx_n_s_n;
2628 static PyObject *__pyx_n_s_nDOF_trial_element;
2629 static PyObject *__pyx_n_s_nElements_global;
2630 static PyObject *__pyx_n_s_nPoints;
2631 static PyObject *__pyx_n_s_nPointsPerSimplex;
2632 static PyObject *__pyx_n_s_nQuadraturePoints_elementBoundar;
2633 static PyObject *__pyx_n_s_nSimplex;
2634 static PyObject *__pyx_n_s_nSimplices;
2635 static PyObject *__pyx_n_s_nSpace;
2636 static PyObject *__pyx_n_s_n_global;
2637 static PyObject *__pyx_n_s_n_s;
2638 static PyObject *__pyx_n_s_n_vg;
2639 static PyObject *__pyx_n_s_name;
2640 static PyObject *__pyx_n_s_ncLevelSetCoefficientsEvaluate;
2641 static PyObject *__pyx_n_s_nd;
2642 static PyObject *__pyx_n_s_nk;
2643 static PyObject *__pyx_n_s_nonlinearADR_pqrstDualEvaluate;
2644 static PyObject *__pyx_n_s_nonlinearADR_pqrstEvaluate;
2645 static PyObject *__pyx_n_s_np;
2646 static PyObject *__pyx_n_s_ns;
2647 static PyObject *__pyx_n_s_nu;
2648 static PyObject *__pyx_n_s_nu_0;
2649 static PyObject *__pyx_n_s_nu_1;
2650 static PyObject *__pyx_n_s_nu_s;
2651 static PyObject *__pyx_n_s_nu_t;
2652 static PyObject *__pyx_n_s_numpy;
2653 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
2654 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
2655 static PyObject *__pyx_n_s_offset;
2656 static PyObject *__pyx_n_s_omega;
2657 static PyObject *__pyx_n_s_omega_s_x;
2658 static PyObject *__pyx_n_s_omega_s_y;
2659 static PyObject *__pyx_n_s_omega_s_z;
2660 static PyObject *__pyx_n_s_omega_types;
2661 static PyObject *__pyx_n_s_p;
2662 static PyObject *__pyx_n_s_p1;
2663 static PyObject *__pyx_n_s_p2;
2664 static PyObject *__pyx_n_s_p_pow;
2665 static PyObject *__pyx_n_s_pc_eps;
2666 static PyObject *__pyx_n_s_pd;
2667 static PyObject *__pyx_n_s_phi;
2668 static PyObject *__pyx_n_s_phi_e;
2669 static PyObject *__pyx_n_s_phi_h;
2670 static PyObject *__pyx_n_s_phi_k;
2671 static PyObject *__pyx_n_s_phi_ls;
2672 static PyObject *__pyx_n_s_phi_pot;
2673 static PyObject *__pyx_n_s_phi_s;
2674 static PyObject *__pyx_n_s_porosity;
2675 static PyObject *__pyx_kp_s_proteus_ctransportCoefficients_p;
2676 static PyObject *__pyx_n_s_psiD;
2677 static PyObject *__pyx_n_s_q1;
2678 static PyObject *__pyx_n_s_q2;
2679 static PyObject *__pyx_n_s_q_pow;
2680 static PyObject *__pyx_n_s_quadraturePointToElementBoundary;
2681 static PyObject *__pyx_n_s_r;
2682 static PyObject *__pyx_n_s_r1;
2683 static PyObject *__pyx_n_s_r2;
2684 static PyObject *__pyx_n_s_r_c;
2685 static PyObject *__pyx_n_s_r_e;
2686 static PyObject *__pyx_n_s_r_h;
2687 static PyObject *__pyx_n_s_r_k;
2688 static PyObject *__pyx_n_s_r_m;
2689 static PyObject *__pyx_n_s_r_pow;
2690 static PyObject *__pyx_n_s_r_x;
2691 static PyObject *__pyx_n_s_radii;
2692 static PyObject *__pyx_n_s_rank;
2693 static PyObject *__pyx_n_s_redistanceLevelSetCoefficientsEv;
2694 static PyObject *__pyx_n_s_redistanceLevelSetCoefficientsWi;
2695 static PyObject *__pyx_n_s_redistanceLevelSetSandFCoefficie;
2696 static PyObject *__pyx_n_s_rh;
2697 static PyObject *__pyx_n_s_rho;
2698 static PyObject *__pyx_n_s_rhoM;
2699 static PyObject *__pyx_n_s_rhoP;
2700 static PyObject *__pyx_n_s_rho_0;
2701 static PyObject *__pyx_n_s_rho_1;
2702 static PyObject *__pyx_n_s_rho_n;
2703 static PyObject *__pyx_n_s_rho_s;
2704 static PyObject *__pyx_n_s_rho_s_types;
2705 static PyObject *__pyx_n_s_rho_w;
2706 static PyObject *__pyx_n_s_rhs;
2707 static PyObject *__pyx_n_s_rotatingPulseVelEvaluate;
2708 static PyObject *__pyx_n_s_rowptr;
2709 static PyObject *__pyx_n_s_s1;
2710 static PyObject *__pyx_n_s_s2;
2711 static PyObject *__pyx_n_s_s_pow;
2712 static PyObject *__pyx_n_s_scriptedSphereMotionSignedDistan;
2713 static PyObject *__pyx_n_s_seepageBrezis;
2714 static PyObject *__pyx_n_s_self_a;
2715 static PyObject *__pyx_n_s_self_v;
2716 static PyObject *__pyx_n_s_setSimpleWeakDirichletConditions;
2717 static PyObject *__pyx_n_s_setWeakDirichletConditionsForLev;
2718 static PyObject *__pyx_n_s_shallowWater_1D_Evaluate;
2719 static PyObject *__pyx_n_s_shallowWater_2D_Evaluate;
2720 static PyObject *__pyx_n_s_sigma;
2721 static PyObject *__pyx_n_s_sigma_e;
2722 static PyObject *__pyx_n_s_sigma_k;
2723 static PyObject *__pyx_n_s_size;
2724 static PyObject *__pyx_n_s_smagorinskyConstant;
2725 static PyObject *__pyx_n_s_smagorinskyConstant_0;
2726 static PyObject *__pyx_n_s_smagorinskyConstant_1;
2727 static PyObject *__pyx_n_s_smoothedDirac;
2728 static PyObject *__pyx_n_s_smoothedHeaviside;
2729 static PyObject *__pyx_n_s_smoothedHeaviside_integral;
2730 static PyObject *__pyx_n_s_source;
2731 static PyObject *__pyx_n_s_specificHeat_n;
2732 static PyObject *__pyx_n_s_specificHeat_s_types;
2733 static PyObject *__pyx_n_s_specificHeat_w;
2734 static PyObject *__pyx_n_s_t;
2735 static PyObject *__pyx_n_s_t1;
2736 static PyObject *__pyx_n_s_t2;
2737 static PyObject *__pyx_n_s_t_pow;
2738 static PyObject *__pyx_n_s_test;
2739 static PyObject *__pyx_n_s_theta;
2740 static PyObject *__pyx_n_s_thetaR;
2741 static PyObject *__pyx_n_s_thetaS;
2742 static PyObject *__pyx_n_s_thetaSR;
2743 static PyObject *__pyx_n_s_thetaS_types;
2744 static PyObject *__pyx_n_s_twophaseLevelSetCoefficientsEval;
2745 static PyObject *__pyx_n_s_twophaseLevelSetCoefficientsEval_2;
2746 static PyObject *__pyx_n_s_twophaseLevelSetCoefficientsUpda;
2747 static PyObject *__pyx_n_s_twophasePotentialFlowEvaluate;
2748 static PyObject *__pyx_n_s_twophasePotentialFlowUpdateFreeS;
2749 static PyObject *__pyx_n_s_twophaseSignedDistanceCoefficien;
2750 static PyObject *__pyx_n_s_twophaseSignedDistanceUpdateSign;
2751 static PyObject *__pyx_n_s_u;
2752 static PyObject *__pyx_n_s_u_dof;
2753 static PyObject *__pyx_n_s_u_force;
2754 static PyObject *__pyx_n_s_u_l2g;
2755 static PyObject *__pyx_n_s_u_levelSet;
2756 static PyObject *__pyx_n_s_u_ls;
2757 static PyObject *__pyx_n_s_unitCubeRotationEvaluate;
2758 static PyObject *__pyx_n_s_unitSquareRotationEvaluate;
2759 static PyObject *__pyx_n_s_unitSquareRotationLevelSetEvalua;
2760 static PyObject *__pyx_n_s_unitSquareVortexEvaluate;
2761 static PyObject *__pyx_n_s_unitSquareVortexLevelSetEvaluate;
2762 static PyObject *__pyx_n_s_upwindFlag;
2763 static PyObject *__pyx_n_s_uu_diff_ten;
2764 static PyObject *__pyx_n_s_uv_diff_ten;
2765 static PyObject *__pyx_n_s_uw_diff_ten;
2766 static PyObject *__pyx_n_s_v;
2767 static PyObject *__pyx_n_s_vIn;
2768 static PyObject *__pyx_n_s_vOut;
2769 static PyObject *__pyx_n_s_v_force;
2770 static PyObject *__pyx_n_s_v_scale;
2771 static PyObject *__pyx_n_s_variablySaturatedGroundwaterEner;
2772 static PyObject *__pyx_n_s_variablySaturatedGroundwaterTran;
2773 static PyObject *__pyx_n_s_velocity;
2774 static PyObject *__pyx_n_s_vof;
2775 static PyObject *__pyx_n_s_vol_frac;
2776 static PyObject *__pyx_n_s_volumePenaltyCoef;
2777 static PyObject *__pyx_n_s_vu_diff_ten;
2778 static PyObject *__pyx_n_s_vv_diff_ten;
2779 static PyObject *__pyx_n_s_vw_diff_ten;
2780 static PyObject *__pyx_n_s_w;
2781 static PyObject *__pyx_n_s_w_force;
2782 static PyObject *__pyx_n_s_waterDepth;
2783 static PyObject *__pyx_n_s_waveCelerity;
2784 static PyObject *__pyx_n_s_waveFlag;
2785 static PyObject *__pyx_n_s_waveFrequency;
2786 static PyObject *__pyx_n_s_waveHeight;
2787 static PyObject *__pyx_n_s_waveNumber;
2788 static PyObject *__pyx_n_s_weakDirichletConditionFlags;
2789 static PyObject *__pyx_n_s_wu_diff_ten;
2790 static PyObject *__pyx_n_s_wv_diff_ten;
2791 static PyObject *__pyx_n_s_ww_diff_ten;
2792 static PyObject *__pyx_n_s_x;
2793 static PyObject *__pyx_pf_22ctransportCoefficients_linearADR_ConstantCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B,
double __pyx_v_C,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2794 static PyObject *__pyx_pf_22ctransportCoefficients_2groundwaterTransportCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_omega,
double __pyx_v_d,
double __pyx_v_alpha_L,
double __pyx_v_alpha_T, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a);
2795 static PyObject *__pyx_pf_22ctransportCoefficients_4groundwaterBiodegradation01EvaluateFC(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_omega,
double __pyx_v_d_c,
double __pyx_v_d_e,
double __pyx_v_alpha_L,
double __pyx_v_alpha_T,
double __pyx_v_Kox_max,
double __pyx_v_Kox_C,
double __pyx_v_Kox_E,
double __pyx_v_Kox_X,
double __pyx_v_Yield,
double __pyx_v_k_d, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_c, PyArrayObject *__pyx_v_c_e, PyArrayObject *__pyx_v_c_x, PyArrayObject *__pyx_v_m_c, PyArrayObject *__pyx_v_dm_c, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_m_x, PyArrayObject *__pyx_v_dm_x, PyArrayObject *__pyx_v_f_c, PyArrayObject *__pyx_v_df_c, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_c, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_r_c, PyArrayObject *__pyx_v_dr_c_dc, PyArrayObject *__pyx_v_dr_c_de, PyArrayObject *__pyx_v_dr_c_dx, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dc, PyArrayObject *__pyx_v_dr_e_de, PyArrayObject *__pyx_v_dr_e_dx, PyArrayObject *__pyx_v_r_x, PyArrayObject *__pyx_v_dr_x_dc, PyArrayObject *__pyx_v_dr_x_de, PyArrayObject *__pyx_v_dr_x_dx);
2796 static PyObject *__pyx_pf_22ctransportCoefficients_6groundwaterBryantDawsonIonExEvaluateFC(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_omega,
double __pyx_v_d_m,
double __pyx_v_d_h,
double __pyx_v_alpha_L,
double __pyx_v_alpha_T,
double __pyx_v_K_m,
double __pyx_v_K_h,
double __pyx_v_K_w,
double __pyx_v_Z_tot, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_m, PyArrayObject *__pyx_v_c_h, PyArrayObject *__pyx_v_m_m, PyArrayObject *__pyx_v_dm_m_m, PyArrayObject *__pyx_v_dm_m_h, PyArrayObject *__pyx_v_m_h, PyArrayObject *__pyx_v_dm_h_m, PyArrayObject *__pyx_v_dm_h_h, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m, PyArrayObject *__pyx_v_f_h, PyArrayObject *__pyx_v_df_h, PyArrayObject *__pyx_v_a_m, PyArrayObject *__pyx_v_a_h, PyArrayObject *__pyx_v_phi_h, PyArrayObject *__pyx_v_dphi_h, PyArrayObject *__pyx_v_r_m, PyArrayObject *__pyx_v_dr_m_dm, PyArrayObject *__pyx_v_dr_m_dh, PyArrayObject *__pyx_v_r_h, PyArrayObject *__pyx_v_dr_h_dm, PyArrayObject *__pyx_v_dr_h_dh);
2797 static PyObject *__pyx_pf_22ctransportCoefficients_8groundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_omega_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a);
2798 static PyObject *__pyx_pf_22ctransportCoefficients_10variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a);
2799 static PyObject *__pyx_pf_22ctransportCoefficients_12variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho_w,
double __pyx_v_rho_n,
double __pyx_v_specificHeat_w,
double __pyx_v_specificHeat_n, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_thetaS_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_rho_s_types, PyArrayObject *__pyx_v_specificHeat_s_types, PyArrayObject *__pyx_v_Lambda_sat_types, PyArrayObject *__pyx_v_Lambda_dry_types, PyArrayObject *__pyx_v_Lambda_aniso_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a);
2800 static PyObject *__pyx_pf_22ctransportCoefficients_14nonlinearADR_pqrstEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B,
double __pyx_v_C,
double __pyx_v_p_pow,
double __pyx_v_q_pow,
double __pyx_v_r_pow,
double __pyx_v_s_pow,
double __pyx_v_t_pow,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2801 static PyObject *__pyx_pf_22ctransportCoefficients_16nonlinearADR_pqrstDualEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B,
double __pyx_v_C,
double __pyx_v_p1,
double __pyx_v_q1,
double __pyx_v_r1,
double __pyx_v_s1,
double __pyx_v_t1,
double __pyx_v_p2,
double __pyx_v_q2,
double __pyx_v_r2,
double __pyx_v_s2,
double __pyx_v_t2,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2802 static PyObject *__pyx_pf_22ctransportCoefficients_18unitSquareRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df);
2803 static PyObject *__pyx_pf_22ctransportCoefficients_20unitCubeRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df);
2804 static PyObject *__pyx_pf_22ctransportCoefficients_22rotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2805 static PyObject *__pyx_pf_22ctransportCoefficients_24disRotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2806 static PyObject *__pyx_pf_22ctransportCoefficients_26disVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2807 static PyObject *__pyx_pf_22ctransportCoefficients_28burgersDiagonalVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2808 static PyObject *__pyx_pf_22ctransportCoefficients_30burgersDiagonalVelHJEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2809 static PyObject *__pyx_pf_22ctransportCoefficients_32twophasePotentialFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon, PyArrayObject *__pyx_v_C,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2810 static PyObject *__pyx_pf_22ctransportCoefficients_34twophasePotentialFlowUpdateFreeSurface(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet,
double __pyx_v_M1,
double __pyx_v_M2, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A1, PyArrayObject *__pyx_v_A2, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B1, PyArrayObject *__pyx_v_B2, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon1, PyArrayObject *__pyx_v_Bcon2, PyArrayObject *__pyx_v_Bcon,
double __pyx_v_C1,
double __pyx_v_C2, PyArrayObject *__pyx_v_C);
2811 static PyObject *__pyx_pf_22ctransportCoefficients_36twophaseLevelSetCoefficientsUpdateVelocity(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_v_scale, PyArrayObject *__pyx_v_vIn, PyArrayObject *__pyx_v_vOut);
2812 static PyObject *__pyx_pf_22ctransportCoefficients_38twophaseLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_B,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh);
2813 static PyObject *__pyx_pf_22ctransportCoefficients_40twophaseLevelSetCoefficientsEvaluateCI(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_B,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2814 static PyObject *__pyx_pf_22ctransportCoefficients_42ncLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH);
2815 static PyObject *__pyx_pf_22ctransportCoefficients_44cLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df);
2816 static PyObject *__pyx_pf_22ctransportCoefficients_46VOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df);
2817 static PyObject *__pyx_pf_22ctransportCoefficients_48levelSetCurvatureCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2818 static PyObject *__pyx_pf_22ctransportCoefficients_50twophaseSignedDistanceCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_S, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh);
2819 static PyObject *__pyx_pf_22ctransportCoefficients_52eikonalEquationEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rhs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r);
2820 static PyObject *__pyx_pf_22ctransportCoefficients_54redistanceLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r);
2821 static PyObject *__pyx_pf_22ctransportCoefficients_56redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_Lambda_penalty, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2822 static PyObject *__pyx_pf_22ctransportCoefficients_58redistanceLevelSetSandFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r);
2823 static PyObject *__pyx_pf_22ctransportCoefficients_60setWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nDOF_trial_element,
double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags);
2824 static PyObject *__pyx_pf_22ctransportCoefficients_62setSimpleWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nDOF_trial_element,
double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags);
2825 static PyObject *__pyx_pf_22ctransportCoefficients_64darcySharpInterfaceFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_Km,
double __pyx_v_rhoM,
double __pyx_v_Kp,
double __pyx_v_rhoP,
double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm);
2826 static PyObject *__pyx_pf_22ctransportCoefficients_66darcySharpInterfaceFlowImEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_Km,
double __pyx_v_rhoM,
double __pyx_v_Kp,
double __pyx_v_rhoP,
double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm);
2827 static PyObject *__pyx_pf_22ctransportCoefficients_68NavierStokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2828 static PyObject *__pyx_pf_22ctransportCoefficients_70NavierStokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2829 static PyObject *__pyx_pf_22ctransportCoefficients_72Stokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2830 static PyObject *__pyx_pf_22ctransportCoefficients_74StokesP_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source);
2831 static PyObject *__pyx_pf_22ctransportCoefficients_76Stokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2832 static PyObject *__pyx_pf_22ctransportCoefficients_78StokesP_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source);
2833 static PyObject *__pyx_pf_22ctransportCoefficients_80TwophaseNavierStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2834 static PyObject *__pyx_pf_22ctransportCoefficients_82TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2835 static PyObject *__pyx_pf_22ctransportCoefficients_84TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2836 static PyObject *__pyx_pf_22ctransportCoefficients_86ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_boundaryPenaltyCoef,
double __pyx_v_volumePenaltyCoef,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1,
double __pyx_v_rho_s,
double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2837 static PyObject *__pyx_pf_22ctransportCoefficients_88TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2838 static PyObject *__pyx_pf_22ctransportCoefficients_90TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2839 static PyObject *__pyx_pf_22ctransportCoefficients_92ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_boundaryPenaltyCoef,
double __pyx_v_volumePenaltyCoef,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1,
double __pyx_v_rho_s,
double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2840 static PyObject *__pyx_pf_22ctransportCoefficients_94TwophaseNavierStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2841 static PyObject *__pyx_pf_22ctransportCoefficients_96TwophaseStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2842 static PyObject *__pyx_pf_22ctransportCoefficients_98TwophaseStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2843 static PyObject *__pyx_pf_22ctransportCoefficients_100TwophaseNavierStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2844 static PyObject *__pyx_pf_22ctransportCoefficients_102TwophaseNavierStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2845 static PyObject *__pyx_pf_22ctransportCoefficients_104TwophaseStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2846 static PyObject *__pyx_pf_22ctransportCoefficients_106TwophaseStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2847 static PyObject *__pyx_pf_22ctransportCoefficients_108unitSquareVortexEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df);
2848 static PyObject *__pyx_pf_22ctransportCoefficients_110constantVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH);
2849 static PyObject *__pyx_pf_22ctransportCoefficients_112constantNormalVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH);
2850 static PyObject *__pyx_pf_22ctransportCoefficients_114unitSquareVortexLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH);
2851 static PyObject *__pyx_pf_22ctransportCoefficients_116unitSquareRotationLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH);
2852 static PyObject *__pyx_pf_22ctransportCoefficients_118HJBurgersEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_offset, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH);
2853 static PyObject *__pyx_pf_22ctransportCoefficients_120conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2854 static PyObject *__pyx_pf_22ctransportCoefficients_122conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2855 static PyObject *__pyx_pf_22ctransportCoefficients_124conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2856 static PyObject *__pyx_pf_22ctransportCoefficients_126conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2857 static PyObject *__pyx_pf_22ctransportCoefficients_128conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2858 static PyObject *__pyx_pf_22ctransportCoefficients_130conservativeHeadRichardsMualemVanGenuchten_sd_het(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_vol_frac,
int __pyx_v_linearize_at_zero,
double __pyx_v_pc_eps);
2859 static PyObject *__pyx_pf_22ctransportCoefficients_132conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2860 static PyObject *__pyx_pf_22ctransportCoefficients_134seepageBrezis(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_epsFact,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2861 static PyObject *__pyx_pf_22ctransportCoefficients_136conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2862 static PyObject *__pyx_pf_22ctransportCoefficients_138conservativeSatRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2863 static PyObject *__pyx_pf_22ctransportCoefficients_140conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_Lambda, PyArrayObject *__pyx_v_pd, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaS, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2864 static PyObject *__pyx_pf_22ctransportCoefficients_142conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity,
double __pyx_v_Lambda,
double __pyx_v_pd,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2865 static PyObject *__pyx_pf_22ctransportCoefficients_144conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_Lambda,
double __pyx_v_pd,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi);
2866 static PyObject *__pyx_pf_22ctransportCoefficients_146conservativeHeadRichardsBCBfromMVGHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2867 static PyObject *__pyx_pf_22ctransportCoefficients_148LinearElasticity_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force);
2868 static PyObject *__pyx_pf_22ctransportCoefficients_150LinearElasticity_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force);
2869 static PyObject *__pyx_pf_22ctransportCoefficients_152LinearElasticity_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force);
2870 static PyObject *__pyx_pf_22ctransportCoefficients_154MovingMesh_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E0,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force);
2871 static PyObject *__pyx_pf_22ctransportCoefficients_156MovingMesh_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E0,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force);
2872 static PyObject *__pyx_pf_22ctransportCoefficients_158MovingMesh_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E0,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force);
2873 static PyObject *__pyx_pf_22ctransportCoefficients_160levelSetConservationCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_epsHeaviside,
double __pyx_v_epsDirac,
double __pyx_v_epsDiffusion, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_a);
2874 static PyObject *__pyx_pf_22ctransportCoefficients_162levelSetConservationCoefficientsEvaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_epsHeaviside,
double __pyx_v_epsDirac, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr);
2875 static PyObject *__pyx_pf_22ctransportCoefficients_164evaluateBuckleyLeverettLiuExample(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a);
2876 static PyObject *__pyx_pf_22ctransportCoefficients_166VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2877 static PyObject *__pyx_pf_22ctransportCoefficients_168VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2878 static PyObject *__pyx_pf_22ctransportCoefficients_170VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2879 static PyObject *__pyx_pf_22ctransportCoefficients_172VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p);
2880 static PyObject *__pyx_pf_22ctransportCoefficients_174VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2881 static PyObject *__pyx_pf_22ctransportCoefficients_176VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p);
2882 static PyObject *__pyx_pf_22ctransportCoefficients_178VolumeAveragedVOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df);
2883 static PyObject *__pyx_pf_22ctransportCoefficients_180kEpsilon_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de);
2884 static PyObject *__pyx_pf_22ctransportCoefficients_182kEpsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de);
2885 static PyObject *__pyx_pf_22ctransportCoefficients_184kEpsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de);
2886 static PyObject *__pyx_pf_22ctransportCoefficients_186kEpsilon_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de);
2887 static PyObject *__pyx_pf_22ctransportCoefficients_188kEpsilon_k_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_c_mu,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk);
2888 static PyObject *__pyx_pf_22ctransportCoefficients_190kEpsilon_epsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de);
2889 static PyObject *__pyx_pf_22ctransportCoefficients_192kEpsilon_k_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_c_mu,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk);
2890 static PyObject *__pyx_pf_22ctransportCoefficients_194kEpsilon_epsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de);
2891 static PyObject *__pyx_pf_22ctransportCoefficients_196ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source);
2892 static PyObject *__pyx_pf_22ctransportCoefficients_198ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source);
2893 static PyObject *__pyx_pf_22ctransportCoefficients_200ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source);
2894 static PyObject *__pyx_pf_22ctransportCoefficients_202ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source);
2895 static PyObject *__pyx_pf_22ctransportCoefficients_204scriptedSphereMotionSignedDistance(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_radii, PyArrayObject *__pyx_v_centers, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n);
2896 static PyObject *__pyx_pf_22ctransportCoefficients_206shallowWater_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_g,
double __pyx_v_bedFrictionCoefficient,
double __pyx_v_bedFrictionPower,
double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_db_dx, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_acc, PyArrayObject *__pyx_v_dmom_acc_dhu, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_mom_adv, PyArrayObject *__pyx_v_dmom_adv_dh, PyArrayObject *__pyx_v_dmom_adv_dhu, PyArrayObject *__pyx_v_mom_source, PyArrayObject *__pyx_v_dmom_source_dh, PyArrayObject *__pyx_v_dmom_source_dhu, PyArrayObject *__pyx_v_mom_diff);
2897 static PyObject *__pyx_pf_22ctransportCoefficients_208shallowWater_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_g,
double __pyx_v_bedFrictionCoefficient,
double __pyx_v_bedFrictionPower,
double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_grad_b, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_hv, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_dhu, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_dhv, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_dmass_adv_dhv, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_dh, PyArrayObject *__pyx_v_dmom_u_adv_dhu, PyArrayObject *__pyx_v_dmom_u_adv_dhv, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_dh, PyArrayObject *__pyx_v_dmom_v_adv_dhu, PyArrayObject *__pyx_v_dmom_v_adv_dhv, PyArrayObject *__pyx_v_mom_u_diff, PyArrayObject *__pyx_v_mom_v_diff, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_dh, PyArrayObject *__pyx_v_dmom_u_source_dhu, PyArrayObject *__pyx_v_dmom_u_source_dhv, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_dh, PyArrayObject *__pyx_v_dmom_v_source_dhu, PyArrayObject *__pyx_v_dmom_v_source_dhv);
2898 static PyObject *__pyx_pf_22ctransportCoefficients_210conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_upwindFlag,
int __pyx_v_computeAverages,
int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2899 static PyObject *__pyx_pf_22ctransportCoefficients_212conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_upwindFlag,
int __pyx_v_computeAverages,
int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2900 static PyObject *__pyx_pf_22ctransportCoefficients_214conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_upwindFlag,
int __pyx_v_computeAverages,
int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2901 static PyObject *__pyx_pf_22ctransportCoefficients_216applyContactLineSlip(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_advectiveFlux, PyArrayObject *__pyx_v_diffusiveFlux);
2902 static PyObject *__pyx_pf_22ctransportCoefficients_218applyContactLineSlipJacobian(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_fluxJacobian);
2903 static PyObject *__pyx_pf_22ctransportCoefficients_220calculateEddyViscosity_Smagorinsky_2D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t);
2904 static PyObject *__pyx_pf_22ctransportCoefficients_222calculateEddyViscosity_Smagorinsky_3D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t);
2905 static PyObject *__pyx_pf_22ctransportCoefficients_224calculateEddyViscosity_Smagorinsky2P_2D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant_0,
double __pyx_v_smagorinskyConstant_1,
double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t);
2906 static PyObject *__pyx_pf_22ctransportCoefficients_226calculateEddyViscosity_Smagorinsky2P_3D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant_0,
double __pyx_v_smagorinskyConstant_1,
double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t);
2907 static PyObject *__pyx_pf_22ctransportCoefficients_228eddyViscosity_2D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten);
2908 static PyObject *__pyx_pf_22ctransportCoefficients_230eddyViscosity_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten);
2909 static PyObject *__pyx_pf_22ctransportCoefficients_232eddyViscosity_3D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten);
2910 static PyObject *__pyx_pf_22ctransportCoefficients_234eddyViscosity_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten);
2911 static PyObject *__pyx_pf_22ctransportCoefficients_236calculateWaveFunction3d_ref(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mesh_trial_ref, PyArrayObject *__pyx_v_mesh_dof, PyArrayObject *__pyx_v_mesh_l2g, PyArrayObject *__pyx_v_elementDiametersArray, PyArrayObject *__pyx_v_omega_s_x, PyArrayObject *__pyx_v_omega_s_y, PyArrayObject *__pyx_v_omega_s_z,
double __pyx_v_t,
int __pyx_v_waveFlag,
double __pyx_v_epsFact,
double __pyx_v_waveHeight,
double __pyx_v_waveCelerity,
double __pyx_v_waveFrequency,
double __pyx_v_waveNumber,
double __pyx_v_waterDepth, PyArrayObject *__pyx_v_source);
2912 static PyObject *__pyx_pf_22ctransportCoefficients_238Mass_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v);
2913 static PyObject *__pyx_pf_22ctransportCoefficients_240Mass_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_dmom_w_acc_w);
2914 static PyObject *__pyx_pf_22ctransportCoefficients_242TwoPhaseAdvection_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_p, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v);
2915 static PyObject *__pyx_pf_22ctransportCoefficients_244twophaseSignedDistanceUpdateSignFunction(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_S);
2916 static PyObject *__pyx_pf_22ctransportCoefficients_246Laplace_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten);
2917 static PyObject *__pyx_pf_22ctransportCoefficients_248Laplace_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten);
2918 static PyObject *__pyx_pf_22ctransportCoefficients_250l2projectScalar(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSimplices,
int __pyx_v_nPointsPerSimplex, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r);
2919 static PyObject *__pyx_pf_22ctransportCoefficients_252l2projectVector(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSimplices,
int __pyx_v_nPointsPerSimplex,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r);
2920 static PyObject *__pyx_pf_22ctransportCoefficients_254l2project2Tensor(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSimplices,
int __pyx_v_nPointsPerSimplex,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r);
2921 static PyObject *__pyx_pf_22ctransportCoefficients_256L2projectEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_rank, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r);
2922 static PyObject *__pyx_pf_22ctransportCoefficients_258conservativeHeadRichardsJLeverettEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2923 static PyObject *__pyx_pf_22ctransportCoefficients_260conservativeHeadRichardsJLeverettAniEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0x, PyArrayObject *__pyx_v_kr0y, PyArrayObject *__pyx_v_kr0z, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2924 static PyObject *__pyx_pf_22ctransportCoefficients_262diffusiveWave1DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_alpha,
double __pyx_v_gamma,
double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2925 static PyObject *__pyx_pf_22ctransportCoefficients_264diffusiveWave2DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nd,
double __pyx_v_alpha,
double __pyx_v_gamma,
double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da);
2926 static PyObject *__pyx_pf_22ctransportCoefficients_266smoothedHeaviside(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_phi);
2927 static PyObject *__pyx_pf_22ctransportCoefficients_268smoothedHeaviside_integral(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_phi);
2928 static PyObject *__pyx_pf_22ctransportCoefficients_270smoothedDirac(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_phi);
2929 static PyObject *__pyx_tuple_;
2930 static PyObject *__pyx_tuple__2;
2931 static PyObject *__pyx_tuple__3;
2932 static PyObject *__pyx_tuple__5;
2933 static PyObject *__pyx_tuple__7;
2934 static PyObject *__pyx_tuple__9;
2935 static PyObject *__pyx_tuple__11;
2936 static PyObject *__pyx_tuple__13;
2937 static PyObject *__pyx_tuple__15;
2938 static PyObject *__pyx_tuple__17;
2939 static PyObject *__pyx_tuple__19;
2940 static PyObject *__pyx_tuple__21;
2941 static PyObject *__pyx_tuple__23;
2942 static PyObject *__pyx_tuple__25;
2943 static PyObject *__pyx_tuple__27;
2944 static PyObject *__pyx_tuple__29;
2945 static PyObject *__pyx_tuple__31;
2946 static PyObject *__pyx_tuple__33;
2947 static PyObject *__pyx_tuple__35;
2948 static PyObject *__pyx_tuple__37;
2949 static PyObject *__pyx_tuple__39;
2950 static PyObject *__pyx_tuple__41;
2951 static PyObject *__pyx_tuple__43;
2952 static PyObject *__pyx_tuple__45;
2953 static PyObject *__pyx_tuple__47;
2954 static PyObject *__pyx_tuple__49;
2955 static PyObject *__pyx_tuple__51;
2956 static PyObject *__pyx_tuple__53;
2957 static PyObject *__pyx_tuple__55;
2958 static PyObject *__pyx_tuple__57;
2959 static PyObject *__pyx_tuple__59;
2960 static PyObject *__pyx_tuple__61;
2961 static PyObject *__pyx_tuple__63;
2962 static PyObject *__pyx_tuple__65;
2963 static PyObject *__pyx_tuple__67;
2964 static PyObject *__pyx_tuple__69;
2965 static PyObject *__pyx_tuple__71;
2966 static PyObject *__pyx_tuple__73;
2967 static PyObject *__pyx_tuple__75;
2968 static PyObject *__pyx_tuple__77;
2969 static PyObject *__pyx_tuple__79;
2970 static PyObject *__pyx_tuple__81;
2971 static PyObject *__pyx_tuple__83;
2972 static PyObject *__pyx_tuple__85;
2973 static PyObject *__pyx_tuple__87;
2974 static PyObject *__pyx_tuple__89;
2975 static PyObject *__pyx_tuple__91;
2976 static PyObject *__pyx_tuple__93;
2977 static PyObject *__pyx_tuple__95;
2978 static PyObject *__pyx_tuple__97;
2979 static PyObject *__pyx_tuple__99;
2980 static PyObject *__pyx_codeobj__4;
2981 static PyObject *__pyx_codeobj__6;
2982 static PyObject *__pyx_codeobj__8;
2983 static PyObject *__pyx_tuple__101;
2984 static PyObject *__pyx_tuple__103;
2985 static PyObject *__pyx_tuple__105;
2986 static PyObject *__pyx_tuple__107;
2987 static PyObject *__pyx_tuple__109;
2988 static PyObject *__pyx_tuple__111;
2989 static PyObject *__pyx_tuple__113;
2990 static PyObject *__pyx_tuple__115;
2991 static PyObject *__pyx_tuple__117;
2992 static PyObject *__pyx_tuple__119;
2993 static PyObject *__pyx_tuple__121;
2994 static PyObject *__pyx_tuple__123;
2995 static PyObject *__pyx_tuple__125;
2996 static PyObject *__pyx_tuple__127;
2997 static PyObject *__pyx_tuple__129;
2998 static PyObject *__pyx_tuple__131;
2999 static PyObject *__pyx_tuple__133;
3000 static PyObject *__pyx_tuple__135;
3001 static PyObject *__pyx_tuple__137;
3002 static PyObject *__pyx_tuple__139;
3003 static PyObject *__pyx_tuple__141;
3004 static PyObject *__pyx_tuple__143;
3005 static PyObject *__pyx_tuple__145;
3006 static PyObject *__pyx_tuple__147;
3007 static PyObject *__pyx_tuple__149;
3008 static PyObject *__pyx_tuple__151;
3009 static PyObject *__pyx_tuple__153;
3010 static PyObject *__pyx_tuple__155;
3011 static PyObject *__pyx_tuple__157;
3012 static PyObject *__pyx_tuple__159;
3013 static PyObject *__pyx_tuple__161;
3014 static PyObject *__pyx_tuple__163;
3015 static PyObject *__pyx_tuple__165;
3016 static PyObject *__pyx_tuple__167;
3017 static PyObject *__pyx_tuple__169;
3018 static PyObject *__pyx_tuple__171;
3019 static PyObject *__pyx_tuple__173;
3020 static PyObject *__pyx_tuple__175;
3021 static PyObject *__pyx_tuple__177;
3022 static PyObject *__pyx_tuple__179;
3023 static PyObject *__pyx_tuple__181;
3024 static PyObject *__pyx_tuple__183;
3025 static PyObject *__pyx_tuple__185;
3026 static PyObject *__pyx_tuple__187;
3027 static PyObject *__pyx_tuple__189;
3028 static PyObject *__pyx_tuple__191;
3029 static PyObject *__pyx_tuple__193;
3030 static PyObject *__pyx_tuple__195;
3031 static PyObject *__pyx_tuple__197;
3032 static PyObject *__pyx_tuple__199;
3033 static PyObject *__pyx_tuple__201;
3034 static PyObject *__pyx_tuple__203;
3035 static PyObject *__pyx_tuple__205;
3036 static PyObject *__pyx_tuple__207;
3037 static PyObject *__pyx_tuple__209;
3038 static PyObject *__pyx_tuple__211;
3039 static PyObject *__pyx_tuple__213;
3040 static PyObject *__pyx_tuple__215;
3041 static PyObject *__pyx_tuple__217;
3042 static PyObject *__pyx_tuple__219;
3043 static PyObject *__pyx_tuple__221;
3044 static PyObject *__pyx_tuple__223;
3045 static PyObject *__pyx_tuple__225;
3046 static PyObject *__pyx_tuple__227;
3047 static PyObject *__pyx_tuple__229;
3048 static PyObject *__pyx_tuple__231;
3049 static PyObject *__pyx_tuple__233;
3050 static PyObject *__pyx_tuple__235;
3051 static PyObject *__pyx_tuple__237;
3052 static PyObject *__pyx_tuple__239;
3053 static PyObject *__pyx_tuple__241;
3054 static PyObject *__pyx_tuple__243;
3055 static PyObject *__pyx_tuple__245;
3056 static PyObject *__pyx_tuple__247;
3057 static PyObject *__pyx_tuple__249;
3058 static PyObject *__pyx_tuple__251;
3059 static PyObject *__pyx_tuple__253;
3060 static PyObject *__pyx_tuple__255;
3061 static PyObject *__pyx_tuple__257;
3062 static PyObject *__pyx_tuple__259;
3063 static PyObject *__pyx_tuple__261;
3064 static PyObject *__pyx_tuple__263;
3065 static PyObject *__pyx_tuple__265;
3066 static PyObject *__pyx_tuple__267;
3067 static PyObject *__pyx_tuple__269;
3068 static PyObject *__pyx_tuple__271;
3069 static PyObject *__pyx_tuple__273;
3070 static PyObject *__pyx_codeobj__10;
3071 static PyObject *__pyx_codeobj__12;
3072 static PyObject *__pyx_codeobj__14;
3073 static PyObject *__pyx_codeobj__16;
3074 static PyObject *__pyx_codeobj__18;
3075 static PyObject *__pyx_codeobj__20;
3076 static PyObject *__pyx_codeobj__22;
3077 static PyObject *__pyx_codeobj__24;
3078 static PyObject *__pyx_codeobj__26;
3079 static PyObject *__pyx_codeobj__28;
3080 static PyObject *__pyx_codeobj__30;
3081 static PyObject *__pyx_codeobj__32;
3082 static PyObject *__pyx_codeobj__34;
3083 static PyObject *__pyx_codeobj__36;
3084 static PyObject *__pyx_codeobj__38;
3085 static PyObject *__pyx_codeobj__40;
3086 static PyObject *__pyx_codeobj__42;
3087 static PyObject *__pyx_codeobj__44;
3088 static PyObject *__pyx_codeobj__46;
3089 static PyObject *__pyx_codeobj__48;
3090 static PyObject *__pyx_codeobj__50;
3091 static PyObject *__pyx_codeobj__52;
3092 static PyObject *__pyx_codeobj__54;
3093 static PyObject *__pyx_codeobj__56;
3094 static PyObject *__pyx_codeobj__58;
3095 static PyObject *__pyx_codeobj__60;
3096 static PyObject *__pyx_codeobj__62;
3097 static PyObject *__pyx_codeobj__64;
3098 static PyObject *__pyx_codeobj__66;
3099 static PyObject *__pyx_codeobj__68;
3100 static PyObject *__pyx_codeobj__70;
3101 static PyObject *__pyx_codeobj__72;
3102 static PyObject *__pyx_codeobj__74;
3103 static PyObject *__pyx_codeobj__76;
3104 static PyObject *__pyx_codeobj__78;
3105 static PyObject *__pyx_codeobj__80;
3106 static PyObject *__pyx_codeobj__82;
3107 static PyObject *__pyx_codeobj__84;
3108 static PyObject *__pyx_codeobj__86;
3109 static PyObject *__pyx_codeobj__88;
3110 static PyObject *__pyx_codeobj__90;
3111 static PyObject *__pyx_codeobj__92;
3112 static PyObject *__pyx_codeobj__94;
3113 static PyObject *__pyx_codeobj__96;
3114 static PyObject *__pyx_codeobj__98;
3115 static PyObject *__pyx_codeobj__100;
3116 static PyObject *__pyx_codeobj__102;
3117 static PyObject *__pyx_codeobj__104;
3118 static PyObject *__pyx_codeobj__106;
3119 static PyObject *__pyx_codeobj__108;
3120 static PyObject *__pyx_codeobj__110;
3121 static PyObject *__pyx_codeobj__112;
3122 static PyObject *__pyx_codeobj__114;
3123 static PyObject *__pyx_codeobj__116;
3124 static PyObject *__pyx_codeobj__118;
3125 static PyObject *__pyx_codeobj__120;
3126 static PyObject *__pyx_codeobj__122;
3127 static PyObject *__pyx_codeobj__124;
3128 static PyObject *__pyx_codeobj__126;
3129 static PyObject *__pyx_codeobj__128;
3130 static PyObject *__pyx_codeobj__130;
3131 static PyObject *__pyx_codeobj__132;
3132 static PyObject *__pyx_codeobj__134;
3133 static PyObject *__pyx_codeobj__136;
3134 static PyObject *__pyx_codeobj__138;
3135 static PyObject *__pyx_codeobj__140;
3136 static PyObject *__pyx_codeobj__142;
3137 static PyObject *__pyx_codeobj__144;
3138 static PyObject *__pyx_codeobj__146;
3139 static PyObject *__pyx_codeobj__148;
3140 static PyObject *__pyx_codeobj__150;
3141 static PyObject *__pyx_codeobj__152;
3142 static PyObject *__pyx_codeobj__154;
3143 static PyObject *__pyx_codeobj__156;
3144 static PyObject *__pyx_codeobj__158;
3145 static PyObject *__pyx_codeobj__160;
3146 static PyObject *__pyx_codeobj__162;
3147 static PyObject *__pyx_codeobj__164;
3148 static PyObject *__pyx_codeobj__166;
3149 static PyObject *__pyx_codeobj__168;
3150 static PyObject *__pyx_codeobj__170;
3151 static PyObject *__pyx_codeobj__172;
3152 static PyObject *__pyx_codeobj__174;
3153 static PyObject *__pyx_codeobj__176;
3154 static PyObject *__pyx_codeobj__178;
3155 static PyObject *__pyx_codeobj__180;
3156 static PyObject *__pyx_codeobj__182;
3157 static PyObject *__pyx_codeobj__184;
3158 static PyObject *__pyx_codeobj__186;
3159 static PyObject *__pyx_codeobj__188;
3160 static PyObject *__pyx_codeobj__190;
3161 static PyObject *__pyx_codeobj__192;
3162 static PyObject *__pyx_codeobj__194;
3163 static PyObject *__pyx_codeobj__196;
3164 static PyObject *__pyx_codeobj__198;
3165 static PyObject *__pyx_codeobj__200;
3166 static PyObject *__pyx_codeobj__202;
3167 static PyObject *__pyx_codeobj__204;
3168 static PyObject *__pyx_codeobj__206;
3169 static PyObject *__pyx_codeobj__208;
3170 static PyObject *__pyx_codeobj__210;
3171 static PyObject *__pyx_codeobj__212;
3172 static PyObject *__pyx_codeobj__214;
3173 static PyObject *__pyx_codeobj__216;
3174 static PyObject *__pyx_codeobj__218;
3175 static PyObject *__pyx_codeobj__220;
3176 static PyObject *__pyx_codeobj__222;
3177 static PyObject *__pyx_codeobj__224;
3178 static PyObject *__pyx_codeobj__226;
3179 static PyObject *__pyx_codeobj__228;
3180 static PyObject *__pyx_codeobj__230;
3181 static PyObject *__pyx_codeobj__232;
3182 static PyObject *__pyx_codeobj__234;
3183 static PyObject *__pyx_codeobj__236;
3184 static PyObject *__pyx_codeobj__238;
3185 static PyObject *__pyx_codeobj__240;
3186 static PyObject *__pyx_codeobj__242;
3187 static PyObject *__pyx_codeobj__244;
3188 static PyObject *__pyx_codeobj__246;
3189 static PyObject *__pyx_codeobj__248;
3190 static PyObject *__pyx_codeobj__250;
3191 static PyObject *__pyx_codeobj__252;
3192 static PyObject *__pyx_codeobj__254;
3193 static PyObject *__pyx_codeobj__256;
3194 static PyObject *__pyx_codeobj__258;
3195 static PyObject *__pyx_codeobj__260;
3196 static PyObject *__pyx_codeobj__262;
3197 static PyObject *__pyx_codeobj__264;
3198 static PyObject *__pyx_codeobj__266;
3199 static PyObject *__pyx_codeobj__268;
3200 static PyObject *__pyx_codeobj__270;
3201 static PyObject *__pyx_codeobj__272;
3202 static PyObject *__pyx_codeobj__274;
3214 static PyObject *__pyx_pw_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3215 static PyMethodDef __pyx_mdef_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate = {
"linearADR_ConstantCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
3216 static PyObject *__pyx_pw_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3218 PyArrayObject *__pyx_v_A = 0;
3219 PyArrayObject *__pyx_v_B = 0;
3222 PyArrayObject *__pyx_v_x = 0;
3223 PyArrayObject *__pyx_v_u = 0;
3224 PyArrayObject *__pyx_v_m = 0;
3225 PyArrayObject *__pyx_v_dm = 0;
3226 PyArrayObject *__pyx_v_f = 0;
3227 PyArrayObject *__pyx_v_df = 0;
3228 PyArrayObject *__pyx_v_a = 0;
3229 PyArrayObject *__pyx_v_r = 0;
3230 PyArrayObject *__pyx_v_dr = 0;
3231 int __pyx_lineno = 0;
3232 const char *__pyx_filename = NULL;
3233 int __pyx_clineno = 0;
3234 PyObject *__pyx_r = 0;
3235 __Pyx_RefNannyDeclarations
3236 __Pyx_RefNannySetupContext(
"linearADR_ConstantCoefficientsEvaluate (wrapper)", 0);
3238 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_C,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_r,&__pyx_n_s_dr,0};
3239 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
3240 if (unlikely(__pyx_kwds)) {
3242 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3244 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3246 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
3248 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3250 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3252 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3254 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3256 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3258 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3260 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3262 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3264 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3266 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3268 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3270 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3273 default:
goto __pyx_L5_argtuple_error;
3275 kw_args = PyDict_Size(__pyx_kwds);
3278 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
3279 else goto __pyx_L5_argtuple_error;
3282 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
3284 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 1); __PYX_ERR(0, 2816, __pyx_L3_error)
3288 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
3290 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 2); __PYX_ERR(0, 2816, __pyx_L3_error)
3294 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
3296 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 3); __PYX_ERR(0, 2816, __pyx_L3_error)
3300 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
3302 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 4); __PYX_ERR(0, 2816, __pyx_L3_error)
3306 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
3308 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 5); __PYX_ERR(0, 2816, __pyx_L3_error)
3312 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3314 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 6); __PYX_ERR(0, 2816, __pyx_L3_error)
3318 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
3320 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 7); __PYX_ERR(0, 2816, __pyx_L3_error)
3324 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
3326 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 8); __PYX_ERR(0, 2816, __pyx_L3_error)
3330 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
3332 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 9); __PYX_ERR(0, 2816, __pyx_L3_error)
3336 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
3338 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 10); __PYX_ERR(0, 2816, __pyx_L3_error)
3342 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3344 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 11); __PYX_ERR(0, 2816, __pyx_L3_error)
3348 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
3350 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 12); __PYX_ERR(0, 2816, __pyx_L3_error)
3354 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
3356 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, 13); __PYX_ERR(0, 2816, __pyx_L3_error)
3359 if (unlikely(kw_args > 0)) {
3360 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"linearADR_ConstantCoefficientsEvaluate") < 0)) __PYX_ERR(0, 2816, __pyx_L3_error)
3362 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
3363 goto __pyx_L5_argtuple_error;
3365 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3366 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3367 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3368 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3369 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3370 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3371 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3372 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3373 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3374 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3375 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3376 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3377 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
3378 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3380 __pyx_v_M = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_M == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2816, __pyx_L3_error)
3381 __pyx_v_A = ((PyArrayObject *)values[1]);
3382 __pyx_v_B = ((PyArrayObject *)values[2]);
3383 __pyx_v_C = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_C == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2819, __pyx_L3_error)
3384 __pyx_v_t = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2820, __pyx_L3_error)
3385 __pyx_v_x = ((PyArrayObject *)values[5]);
3386 __pyx_v_u = ((PyArrayObject *)values[6]);
3387 __pyx_v_m = ((PyArrayObject *)values[7]);
3388 __pyx_v_dm = ((PyArrayObject *)values[8]);
3389 __pyx_v_f = ((PyArrayObject *)values[9]);
3390 __pyx_v_df = ((PyArrayObject *)values[10]);
3391 __pyx_v_a = ((PyArrayObject *)values[11]);
3392 __pyx_v_r = ((PyArrayObject *)values[12]);
3393 __pyx_v_dr = ((PyArrayObject *)values[13]);
3395 goto __pyx_L4_argument_unpacking_done;
3396 __pyx_L5_argtuple_error:;
3397 __Pyx_RaiseArgtupleInvalid(
"linearADR_ConstantCoefficientsEvaluate", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2816, __pyx_L3_error)
3399 __Pyx_AddTraceback(
"ctransportCoefficients.linearADR_ConstantCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3400 __Pyx_RefNannyFinishContext();
3402 __pyx_L4_argument_unpacking_done:;
3403 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1,
"A", 0))) __PYX_ERR(0, 2817, __pyx_L1_error)
3404 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 2818, __pyx_L1_error)
3405 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 2821, __pyx_L1_error)
3406 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2822, __pyx_L1_error)
3407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 2823, __pyx_L1_error)
3408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 2824, __pyx_L1_error)
3409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2825, __pyx_L1_error)
3410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2826, __pyx_L1_error)
3411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2827, __pyx_L1_error)
3412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 2828, __pyx_L1_error)
3413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 2829, __pyx_L1_error)
3414 __pyx_r = __pyx_pf_22ctransportCoefficients_linearADR_ConstantCoefficientsEvaluate(__pyx_self, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_C, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_r, __pyx_v_dr);
3421 __Pyx_RefNannyFinishContext();
3425 static PyObject *__pyx_pf_22ctransportCoefficients_linearADR_ConstantCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B,
double __pyx_v_C,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
3426 PyObject *__pyx_r = NULL;
3427 __Pyx_RefNannyDeclarations
3428 PyObject *__pyx_t_1 = NULL;
3429 PyObject *__pyx_t_2 = NULL;
3430 PyObject *__pyx_t_3 = NULL;
3432 int __pyx_lineno = 0;
3433 const char *__pyx_filename = NULL;
3434 int __pyx_clineno = 0;
3435 __Pyx_RefNannySetupContext(
"linearADR_ConstantCoefficientsEvaluate", 0);
3444 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2830, __pyx_L1_error)
3445 __Pyx_GOTREF(__pyx_t_1);
3446 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2830, __pyx_L1_error)
3447 __Pyx_GOTREF(__pyx_t_2);
3448 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2830, __pyx_L1_error)
3449 __Pyx_GOTREF(__pyx_t_3);
3450 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3451 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3452 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2830, __pyx_L1_error)
3453 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3462 linearADR_ConstantCoefficientsEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_M, ((
double *)__pyx_v_A->data), ((
double *)__pyx_v_B->data), __pyx_v_C, __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
3473 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3476 __Pyx_XDECREF(__pyx_t_1);
3477 __Pyx_XDECREF(__pyx_t_2);
3478 __Pyx_XDECREF(__pyx_t_3);
3479 __Pyx_AddTraceback(
"ctransportCoefficients.linearADR_ConstantCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3482 __Pyx_XGIVEREF(__pyx_r);
3483 __Pyx_RefNannyFinishContext();
3496 static PyObject *__pyx_pw_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3497 static PyMethodDef __pyx_mdef_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate = {
"groundwaterTransportCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
3498 static PyObject *__pyx_pw_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3499 double __pyx_v_omega;
3501 double __pyx_v_alpha_L;
3502 double __pyx_v_alpha_T;
3503 PyArrayObject *__pyx_v_v = 0;
3504 PyArrayObject *__pyx_v_u = 0;
3505 PyArrayObject *__pyx_v_m = 0;
3506 PyArrayObject *__pyx_v_dm = 0;
3507 PyArrayObject *__pyx_v_f = 0;
3508 PyArrayObject *__pyx_v_df = 0;
3509 PyArrayObject *__pyx_v_a = 0;
3510 int __pyx_lineno = 0;
3511 const char *__pyx_filename = NULL;
3512 int __pyx_clineno = 0;
3513 PyObject *__pyx_r = 0;
3514 __Pyx_RefNannyDeclarations
3515 __Pyx_RefNannySetupContext(
"groundwaterTransportCoefficientsEvaluate (wrapper)", 0);
3517 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_omega,&__pyx_n_s_d,&__pyx_n_s_alpha_L,&__pyx_n_s_alpha_T,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
3518 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
3519 if (unlikely(__pyx_kwds)) {
3521 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3523 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3525 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3527 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3529 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3531 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3533 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3535 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3537 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3539 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3541 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3543 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3546 default:
goto __pyx_L5_argtuple_error;
3548 kw_args = PyDict_Size(__pyx_kwds);
3551 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega)) != 0)) kw_args--;
3552 else goto __pyx_L5_argtuple_error;
3555 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
3557 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 2846, __pyx_L3_error)
3561 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L)) != 0)) kw_args--;
3563 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 2846, __pyx_L3_error)
3567 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T)) != 0)) kw_args--;
3569 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 2846, __pyx_L3_error)
3573 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
3575 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 2846, __pyx_L3_error)
3579 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3581 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 2846, __pyx_L3_error)
3585 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
3587 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 2846, __pyx_L3_error)
3591 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
3593 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 2846, __pyx_L3_error)
3597 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
3599 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 2846, __pyx_L3_error)
3603 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
3605 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 2846, __pyx_L3_error)
3609 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3611 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 2846, __pyx_L3_error)
3614 if (unlikely(kw_args > 0)) {
3615 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"groundwaterTransportCoefficientsEvaluate") < 0)) __PYX_ERR(0, 2846, __pyx_L3_error)
3617 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
3618 goto __pyx_L5_argtuple_error;
3620 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3621 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3622 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3623 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3624 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3625 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3626 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3627 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3628 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3629 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3630 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3632 __pyx_v_omega = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_omega == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2846, __pyx_L3_error)
3633 __pyx_v_d = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_d == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2847, __pyx_L3_error)
3634 __pyx_v_alpha_L = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_alpha_L == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2848, __pyx_L3_error)
3635 __pyx_v_alpha_T = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_alpha_T == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2849, __pyx_L3_error)
3636 __pyx_v_v = ((PyArrayObject *)values[4]);
3637 __pyx_v_u = ((PyArrayObject *)values[5]);
3638 __pyx_v_m = ((PyArrayObject *)values[6]);
3639 __pyx_v_dm = ((PyArrayObject *)values[7]);
3640 __pyx_v_f = ((PyArrayObject *)values[8]);
3641 __pyx_v_df = ((PyArrayObject *)values[9]);
3642 __pyx_v_a = ((PyArrayObject *)values[10]);
3644 goto __pyx_L4_argument_unpacking_done;
3645 __pyx_L5_argtuple_error:;
3646 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2846, __pyx_L3_error)
3648 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterTransportCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3649 __Pyx_RefNannyFinishContext();
3651 __pyx_L4_argument_unpacking_done:;
3652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2850, __pyx_L1_error)
3653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2851, __pyx_L1_error)
3654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 2852, __pyx_L1_error)
3655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 2853, __pyx_L1_error)
3656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2854, __pyx_L1_error)
3657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2855, __pyx_L1_error)
3658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2856, __pyx_L1_error)
3659 __pyx_r = __pyx_pf_22ctransportCoefficients_2groundwaterTransportCoefficientsEvaluate(__pyx_self, __pyx_v_omega, __pyx_v_d, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
3666 __Pyx_RefNannyFinishContext();
3670 static PyObject *__pyx_pf_22ctransportCoefficients_2groundwaterTransportCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_omega,
double __pyx_v_d,
double __pyx_v_alpha_L,
double __pyx_v_alpha_T, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
3671 PyObject *__pyx_r = NULL;
3672 __Pyx_RefNannyDeclarations
3673 PyObject *__pyx_t_1 = NULL;
3674 PyObject *__pyx_t_2 = NULL;
3675 PyObject *__pyx_t_3 = NULL;
3677 int __pyx_lineno = 0;
3678 const char *__pyx_filename = NULL;
3679 int __pyx_clineno = 0;
3680 __Pyx_RefNannySetupContext(
"groundwaterTransportCoefficientsEvaluate", 0);
3689 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2857, __pyx_L1_error)
3690 __Pyx_GOTREF(__pyx_t_1);
3691 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2857, __pyx_L1_error)
3692 __Pyx_GOTREF(__pyx_t_2);
3693 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2857, __pyx_L1_error)
3694 __Pyx_GOTREF(__pyx_t_3);
3695 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3696 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3697 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2857, __pyx_L1_error)
3698 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3707 groundwaterTransportCoefficientsEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_omega, __pyx_v_d, __pyx_v_alpha_L, __pyx_v_alpha_T, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data));
3718 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3721 __Pyx_XDECREF(__pyx_t_1);
3722 __Pyx_XDECREF(__pyx_t_2);
3723 __Pyx_XDECREF(__pyx_t_3);
3724 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterTransportCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
3727 __Pyx_XGIVEREF(__pyx_r);
3728 __Pyx_RefNannyFinishContext();
3741 static PyObject *__pyx_pw_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3742 static PyMethodDef __pyx_mdef_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC = {
"groundwaterBiodegradation01EvaluateFC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC, METH_VARARGS|METH_KEYWORDS, 0};
3743 static PyObject *__pyx_pw_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3744 double __pyx_v_omega;
3747 double __pyx_v_alpha_L;
3748 double __pyx_v_alpha_T;
3749 double __pyx_v_Kox_max;
3750 double __pyx_v_Kox_C;
3751 double __pyx_v_Kox_E;
3752 double __pyx_v_Kox_X;
3753 double __pyx_v_Yield;
3755 PyArrayObject *__pyx_v_v = 0;
3756 PyArrayObject *__pyx_v_c_c = 0;
3757 PyArrayObject *__pyx_v_c_e = 0;
3758 PyArrayObject *__pyx_v_c_x = 0;
3759 PyArrayObject *__pyx_v_m_c = 0;
3760 PyArrayObject *__pyx_v_dm_c = 0;
3761 PyArrayObject *__pyx_v_m_e = 0;
3762 PyArrayObject *__pyx_v_dm_e = 0;
3763 PyArrayObject *__pyx_v_m_x = 0;
3764 PyArrayObject *__pyx_v_dm_x = 0;
3765 PyArrayObject *__pyx_v_f_c = 0;
3766 PyArrayObject *__pyx_v_df_c = 0;
3767 PyArrayObject *__pyx_v_f_e = 0;
3768 PyArrayObject *__pyx_v_df_e = 0;
3769 PyArrayObject *__pyx_v_a_c = 0;
3770 PyArrayObject *__pyx_v_a_e = 0;
3771 PyArrayObject *__pyx_v_r_c = 0;
3772 PyArrayObject *__pyx_v_dr_c_dc = 0;
3773 PyArrayObject *__pyx_v_dr_c_de = 0;
3774 PyArrayObject *__pyx_v_dr_c_dx = 0;
3775 PyArrayObject *__pyx_v_r_e = 0;
3776 PyArrayObject *__pyx_v_dr_e_dc = 0;
3777 PyArrayObject *__pyx_v_dr_e_de = 0;
3778 PyArrayObject *__pyx_v_dr_e_dx = 0;
3779 PyArrayObject *__pyx_v_r_x = 0;
3780 PyArrayObject *__pyx_v_dr_x_dc = 0;
3781 PyArrayObject *__pyx_v_dr_x_de = 0;
3782 PyArrayObject *__pyx_v_dr_x_dx = 0;
3783 int __pyx_lineno = 0;
3784 const char *__pyx_filename = NULL;
3785 int __pyx_clineno = 0;
3786 PyObject *__pyx_r = 0;
3787 __Pyx_RefNannyDeclarations
3788 __Pyx_RefNannySetupContext(
"groundwaterBiodegradation01EvaluateFC (wrapper)", 0);
3790 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_omega,&__pyx_n_s_d_c,&__pyx_n_s_d_e,&__pyx_n_s_alpha_L,&__pyx_n_s_alpha_T,&__pyx_n_s_Kox_max,&__pyx_n_s_Kox_C,&__pyx_n_s_Kox_E,&__pyx_n_s_Kox_X,&__pyx_n_s_Yield,&__pyx_n_s_k_d,&__pyx_n_s_v,&__pyx_n_s_c_c,&__pyx_n_s_c_e,&__pyx_n_s_c_x,&__pyx_n_s_m_c,&__pyx_n_s_dm_c,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_m_x,&__pyx_n_s_dm_x,&__pyx_n_s_f_c,&__pyx_n_s_df_c,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_c,&__pyx_n_s_a_e,&__pyx_n_s_r_c,&__pyx_n_s_dr_c_dc,&__pyx_n_s_dr_c_de,&__pyx_n_s_dr_c_dx,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dc,&__pyx_n_s_dr_e_de,&__pyx_n_s_dr_e_dx,&__pyx_n_s_r_x,&__pyx_n_s_dr_x_dc,&__pyx_n_s_dr_x_de,&__pyx_n_s_dr_x_dx,0};
3791 PyObject* values[39] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
3792 if (unlikely(__pyx_kwds)) {
3794 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3796 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
3798 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
3800 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
3802 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
3804 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
3806 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
3808 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
3810 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
3812 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
3814 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
3816 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
3818 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
3820 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
3822 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
3824 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
3826 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
3828 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
3830 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
3832 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
3834 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
3836 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
3838 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
3840 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
3842 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
3844 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
3846 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3848 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
3850 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3852 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3854 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3856 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3858 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3860 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3862 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3864 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3866 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3868 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3870 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3872 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3875 default:
goto __pyx_L5_argtuple_error;
3877 kw_args = PyDict_Size(__pyx_kwds);
3880 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega)) != 0)) kw_args--;
3881 else goto __pyx_L5_argtuple_error;
3884 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_c)) != 0)) kw_args--;
3886 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 1); __PYX_ERR(0, 2870, __pyx_L3_error)
3890 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_e)) != 0)) kw_args--;
3892 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 2); __PYX_ERR(0, 2870, __pyx_L3_error)
3896 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L)) != 0)) kw_args--;
3898 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 3); __PYX_ERR(0, 2870, __pyx_L3_error)
3902 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T)) != 0)) kw_args--;
3904 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 4); __PYX_ERR(0, 2870, __pyx_L3_error)
3908 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_max)) != 0)) kw_args--;
3910 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 5); __PYX_ERR(0, 2870, __pyx_L3_error)
3914 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_C)) != 0)) kw_args--;
3916 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 6); __PYX_ERR(0, 2870, __pyx_L3_error)
3920 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_E)) != 0)) kw_args--;
3922 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 7); __PYX_ERR(0, 2870, __pyx_L3_error)
3926 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kox_X)) != 0)) kw_args--;
3928 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 8); __PYX_ERR(0, 2870, __pyx_L3_error)
3932 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Yield)) != 0)) kw_args--;
3934 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 9); __PYX_ERR(0, 2870, __pyx_L3_error)
3938 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k_d)) != 0)) kw_args--;
3940 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 10); __PYX_ERR(0, 2870, __pyx_L3_error)
3944 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
3946 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 11); __PYX_ERR(0, 2870, __pyx_L3_error)
3950 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_c)) != 0)) kw_args--;
3952 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 12); __PYX_ERR(0, 2870, __pyx_L3_error)
3956 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
3958 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 13); __PYX_ERR(0, 2870, __pyx_L3_error)
3962 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_x)) != 0)) kw_args--;
3964 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 14); __PYX_ERR(0, 2870, __pyx_L3_error)
3968 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_c)) != 0)) kw_args--;
3970 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 15); __PYX_ERR(0, 2870, __pyx_L3_error)
3974 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_c)) != 0)) kw_args--;
3976 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 16); __PYX_ERR(0, 2870, __pyx_L3_error)
3980 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
3982 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 17); __PYX_ERR(0, 2870, __pyx_L3_error)
3986 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
3988 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 18); __PYX_ERR(0, 2870, __pyx_L3_error)
3992 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_x)) != 0)) kw_args--;
3994 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 19); __PYX_ERR(0, 2870, __pyx_L3_error)
3998 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_x)) != 0)) kw_args--;
4000 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 20); __PYX_ERR(0, 2870, __pyx_L3_error)
4004 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_c)) != 0)) kw_args--;
4006 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 21); __PYX_ERR(0, 2870, __pyx_L3_error)
4010 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_c)) != 0)) kw_args--;
4012 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 22); __PYX_ERR(0, 2870, __pyx_L3_error)
4016 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
4018 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 23); __PYX_ERR(0, 2870, __pyx_L3_error)
4022 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
4024 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 24); __PYX_ERR(0, 2870, __pyx_L3_error)
4028 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_c)) != 0)) kw_args--;
4030 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 25); __PYX_ERR(0, 2870, __pyx_L3_error)
4034 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
4036 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 26); __PYX_ERR(0, 2870, __pyx_L3_error)
4040 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_c)) != 0)) kw_args--;
4042 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 27); __PYX_ERR(0, 2870, __pyx_L3_error)
4046 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_c_dc)) != 0)) kw_args--;
4048 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 28); __PYX_ERR(0, 2870, __pyx_L3_error)
4052 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_c_de)) != 0)) kw_args--;
4054 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 29); __PYX_ERR(0, 2870, __pyx_L3_error)
4058 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_c_dx)) != 0)) kw_args--;
4060 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 30); __PYX_ERR(0, 2870, __pyx_L3_error)
4064 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
4066 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 31); __PYX_ERR(0, 2870, __pyx_L3_error)
4070 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dc)) != 0)) kw_args--;
4072 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 32); __PYX_ERR(0, 2870, __pyx_L3_error)
4076 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
4078 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 33); __PYX_ERR(0, 2870, __pyx_L3_error)
4082 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dx)) != 0)) kw_args--;
4084 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 34); __PYX_ERR(0, 2870, __pyx_L3_error)
4088 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_x)) != 0)) kw_args--;
4090 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 35); __PYX_ERR(0, 2870, __pyx_L3_error)
4094 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_x_dc)) != 0)) kw_args--;
4096 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 36); __PYX_ERR(0, 2870, __pyx_L3_error)
4100 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_x_de)) != 0)) kw_args--;
4102 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 37); __PYX_ERR(0, 2870, __pyx_L3_error)
4106 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_x_dx)) != 0)) kw_args--;
4108 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, 38); __PYX_ERR(0, 2870, __pyx_L3_error)
4111 if (unlikely(kw_args > 0)) {
4112 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"groundwaterBiodegradation01EvaluateFC") < 0)) __PYX_ERR(0, 2870, __pyx_L3_error)
4114 }
else if (PyTuple_GET_SIZE(__pyx_args) != 39) {
4115 goto __pyx_L5_argtuple_error;
4117 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4118 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4119 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4120 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4121 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4122 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4123 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4124 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4125 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4126 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4127 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4128 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4129 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4130 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4131 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4132 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4133 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4134 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4135 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
4136 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
4137 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
4138 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
4139 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
4140 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
4141 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
4142 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
4143 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
4144 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
4145 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
4146 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
4147 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
4148 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
4149 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
4150 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
4151 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
4152 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
4153 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
4154 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
4155 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
4157 __pyx_v_omega = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_omega == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2870, __pyx_L3_error)
4158 __pyx_v_d_c = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_d_c == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2871, __pyx_L3_error)
4159 __pyx_v_d_e = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_d_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2872, __pyx_L3_error)
4160 __pyx_v_alpha_L = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_alpha_L == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2873, __pyx_L3_error)
4161 __pyx_v_alpha_T = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_alpha_T == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2874, __pyx_L3_error)
4162 __pyx_v_Kox_max = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_Kox_max == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2875, __pyx_L3_error)
4163 __pyx_v_Kox_C = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_Kox_C == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2876, __pyx_L3_error)
4164 __pyx_v_Kox_E = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_Kox_E == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2877, __pyx_L3_error)
4165 __pyx_v_Kox_X = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_Kox_X == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2878, __pyx_L3_error)
4166 __pyx_v_Yield = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_Yield == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2879, __pyx_L3_error)
4167 __pyx_v_k_d = __pyx_PyFloat_AsDouble(values[10]);
if (unlikely((__pyx_v_k_d == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2880, __pyx_L3_error)
4168 __pyx_v_v = ((PyArrayObject *)values[11]);
4169 __pyx_v_c_c = ((PyArrayObject *)values[12]);
4170 __pyx_v_c_e = ((PyArrayObject *)values[13]);
4171 __pyx_v_c_x = ((PyArrayObject *)values[14]);
4172 __pyx_v_m_c = ((PyArrayObject *)values[15]);
4173 __pyx_v_dm_c = ((PyArrayObject *)values[16]);
4174 __pyx_v_m_e = ((PyArrayObject *)values[17]);
4175 __pyx_v_dm_e = ((PyArrayObject *)values[18]);
4176 __pyx_v_m_x = ((PyArrayObject *)values[19]);
4177 __pyx_v_dm_x = ((PyArrayObject *)values[20]);
4178 __pyx_v_f_c = ((PyArrayObject *)values[21]);
4179 __pyx_v_df_c = ((PyArrayObject *)values[22]);
4180 __pyx_v_f_e = ((PyArrayObject *)values[23]);
4181 __pyx_v_df_e = ((PyArrayObject *)values[24]);
4182 __pyx_v_a_c = ((PyArrayObject *)values[25]);
4183 __pyx_v_a_e = ((PyArrayObject *)values[26]);
4184 __pyx_v_r_c = ((PyArrayObject *)values[27]);
4185 __pyx_v_dr_c_dc = ((PyArrayObject *)values[28]);
4186 __pyx_v_dr_c_de = ((PyArrayObject *)values[29]);
4187 __pyx_v_dr_c_dx = ((PyArrayObject *)values[30]);
4188 __pyx_v_r_e = ((PyArrayObject *)values[31]);
4189 __pyx_v_dr_e_dc = ((PyArrayObject *)values[32]);
4190 __pyx_v_dr_e_de = ((PyArrayObject *)values[33]);
4191 __pyx_v_dr_e_dx = ((PyArrayObject *)values[34]);
4192 __pyx_v_r_x = ((PyArrayObject *)values[35]);
4193 __pyx_v_dr_x_dc = ((PyArrayObject *)values[36]);
4194 __pyx_v_dr_x_de = ((PyArrayObject *)values[37]);
4195 __pyx_v_dr_x_dx = ((PyArrayObject *)values[38]);
4197 goto __pyx_L4_argument_unpacking_done;
4198 __pyx_L5_argtuple_error:;
4199 __Pyx_RaiseArgtupleInvalid(
"groundwaterBiodegradation01EvaluateFC", 1, 39, 39, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2870, __pyx_L3_error)
4201 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterBiodegradation01EvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4202 __Pyx_RefNannyFinishContext();
4204 __pyx_L4_argument_unpacking_done:;
4205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2881, __pyx_L1_error)
4206 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_c), __pyx_ptype_5numpy_ndarray, 1,
"c_c", 0))) __PYX_ERR(0, 2882, __pyx_L1_error)
4207 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_e), __pyx_ptype_5numpy_ndarray, 1,
"c_e", 0))) __PYX_ERR(0, 2883, __pyx_L1_error)
4208 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_x), __pyx_ptype_5numpy_ndarray, 1,
"c_x", 0))) __PYX_ERR(0, 2884, __pyx_L1_error)
4209 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_c), __pyx_ptype_5numpy_ndarray, 1,
"m_c", 0))) __PYX_ERR(0, 2885, __pyx_L1_error)
4210 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_c), __pyx_ptype_5numpy_ndarray, 1,
"dm_c", 0))) __PYX_ERR(0, 2886, __pyx_L1_error)
4211 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 2887, __pyx_L1_error)
4212 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 2888, __pyx_L1_error)
4213 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_x), __pyx_ptype_5numpy_ndarray, 1,
"m_x", 0))) __PYX_ERR(0, 2889, __pyx_L1_error)
4214 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_x), __pyx_ptype_5numpy_ndarray, 1,
"dm_x", 0))) __PYX_ERR(0, 2890, __pyx_L1_error)
4215 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_c), __pyx_ptype_5numpy_ndarray, 1,
"f_c", 0))) __PYX_ERR(0, 2891, __pyx_L1_error)
4216 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_c), __pyx_ptype_5numpy_ndarray, 1,
"df_c", 0))) __PYX_ERR(0, 2892, __pyx_L1_error)
4217 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 2893, __pyx_L1_error)
4218 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 2894, __pyx_L1_error)
4219 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_c), __pyx_ptype_5numpy_ndarray, 1,
"a_c", 0))) __PYX_ERR(0, 2895, __pyx_L1_error)
4220 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 2896, __pyx_L1_error)
4221 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_c), __pyx_ptype_5numpy_ndarray, 1,
"r_c", 0))) __PYX_ERR(0, 2897, __pyx_L1_error)
4222 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_c_dc), __pyx_ptype_5numpy_ndarray, 1,
"dr_c_dc", 0))) __PYX_ERR(0, 2898, __pyx_L1_error)
4223 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_c_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_c_de", 0))) __PYX_ERR(0, 2899, __pyx_L1_error)
4224 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_c_dx), __pyx_ptype_5numpy_ndarray, 1,
"dr_c_dx", 0))) __PYX_ERR(0, 2900, __pyx_L1_error)
4225 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 2901, __pyx_L1_error)
4226 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dc), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_dc", 0))) __PYX_ERR(0, 2902, __pyx_L1_error)
4227 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 2903, __pyx_L1_error)
4228 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dx), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_dx", 0))) __PYX_ERR(0, 2904, __pyx_L1_error)
4229 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_x), __pyx_ptype_5numpy_ndarray, 1,
"r_x", 0))) __PYX_ERR(0, 2905, __pyx_L1_error)
4230 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_x_dc), __pyx_ptype_5numpy_ndarray, 1,
"dr_x_dc", 0))) __PYX_ERR(0, 2906, __pyx_L1_error)
4231 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_x_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_x_de", 0))) __PYX_ERR(0, 2907, __pyx_L1_error)
4232 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_x_dx), __pyx_ptype_5numpy_ndarray, 1,
"dr_x_dx", 0))) __PYX_ERR(0, 2908, __pyx_L1_error)
4233 __pyx_r = __pyx_pf_22ctransportCoefficients_4groundwaterBiodegradation01EvaluateFC(__pyx_self, __pyx_v_omega, __pyx_v_d_c, __pyx_v_d_e, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_Kox_max, __pyx_v_Kox_C, __pyx_v_Kox_E, __pyx_v_Kox_X, __pyx_v_Yield, __pyx_v_k_d, __pyx_v_v, __pyx_v_c_c, __pyx_v_c_e, __pyx_v_c_x, __pyx_v_m_c, __pyx_v_dm_c, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_m_x, __pyx_v_dm_x, __pyx_v_f_c, __pyx_v_df_c, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_c, __pyx_v_a_e, __pyx_v_r_c, __pyx_v_dr_c_dc, __pyx_v_dr_c_de, __pyx_v_dr_c_dx, __pyx_v_r_e, __pyx_v_dr_e_dc, __pyx_v_dr_e_de, __pyx_v_dr_e_dx, __pyx_v_r_x, __pyx_v_dr_x_dc, __pyx_v_dr_x_de, __pyx_v_dr_x_dx);
4240 __Pyx_RefNannyFinishContext();
4244 static PyObject *__pyx_pf_22ctransportCoefficients_4groundwaterBiodegradation01EvaluateFC(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_omega,
double __pyx_v_d_c,
double __pyx_v_d_e,
double __pyx_v_alpha_L,
double __pyx_v_alpha_T,
double __pyx_v_Kox_max,
double __pyx_v_Kox_C,
double __pyx_v_Kox_E,
double __pyx_v_Kox_X,
double __pyx_v_Yield,
double __pyx_v_k_d, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_c, PyArrayObject *__pyx_v_c_e, PyArrayObject *__pyx_v_c_x, PyArrayObject *__pyx_v_m_c, PyArrayObject *__pyx_v_dm_c, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_m_x, PyArrayObject *__pyx_v_dm_x, PyArrayObject *__pyx_v_f_c, PyArrayObject *__pyx_v_df_c, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_c, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_r_c, PyArrayObject *__pyx_v_dr_c_dc, PyArrayObject *__pyx_v_dr_c_de, PyArrayObject *__pyx_v_dr_c_dx, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dc, PyArrayObject *__pyx_v_dr_e_de, PyArrayObject *__pyx_v_dr_e_dx, PyArrayObject *__pyx_v_r_x, PyArrayObject *__pyx_v_dr_x_dc, PyArrayObject *__pyx_v_dr_x_de, PyArrayObject *__pyx_v_dr_x_dx) {
4245 PyObject *__pyx_r = NULL;
4246 __Pyx_RefNannyDeclarations
4247 PyObject *__pyx_t_1 = NULL;
4248 PyObject *__pyx_t_2 = NULL;
4249 PyObject *__pyx_t_3 = NULL;
4251 int __pyx_lineno = 0;
4252 const char *__pyx_filename = NULL;
4253 int __pyx_clineno = 0;
4254 __Pyx_RefNannySetupContext(
"groundwaterBiodegradation01EvaluateFC", 0);
4263 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f_c), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2909, __pyx_L1_error)
4264 __Pyx_GOTREF(__pyx_t_1);
4265 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f_c->dimensions[(__pyx_v_f_c->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2909, __pyx_L1_error)
4266 __Pyx_GOTREF(__pyx_t_2);
4267 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2909, __pyx_L1_error)
4268 __Pyx_GOTREF(__pyx_t_3);
4269 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4270 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4271 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2909, __pyx_L1_error)
4272 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4281 groundwaterBiodegradation01EvaluateFC(__pyx_t_4, (__pyx_v_f_c->dimensions[(__pyx_v_f_c->nd - 1)]), __pyx_v_omega, __pyx_v_d_c, __pyx_v_d_e, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_Kox_max, __pyx_v_Kox_C, __pyx_v_Kox_E, __pyx_v_Kox_X, __pyx_v_Yield, __pyx_v_k_d, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_c_c->data), ((
double *)__pyx_v_c_e->data), ((
double *)__pyx_v_c_x->data), ((
double *)__pyx_v_m_c->data), ((
double *)__pyx_v_dm_c->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_m_x->data), ((
double *)__pyx_v_dm_x->data), ((
double *)__pyx_v_f_c->data), ((
double *)__pyx_v_df_c->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_c->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_r_c->data), ((
double *)__pyx_v_dr_c_dc->data), ((
double *)__pyx_v_dr_c_de->data), ((
double *)__pyx_v_dr_c_dx->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_dc->data), ((
double *)__pyx_v_dr_e_de->data), ((
double *)__pyx_v_dr_e_dx->data), ((
double *)__pyx_v_r_x->data), ((
double *)__pyx_v_dr_x_dc->data), ((
double *)__pyx_v_dr_x_de->data), ((
double *)__pyx_v_dr_x_dx->data));
4292 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4295 __Pyx_XDECREF(__pyx_t_1);
4296 __Pyx_XDECREF(__pyx_t_2);
4297 __Pyx_XDECREF(__pyx_t_3);
4298 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterBiodegradation01EvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4301 __Pyx_XGIVEREF(__pyx_r);
4302 __Pyx_RefNannyFinishContext();
4315 static PyObject *__pyx_pw_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4316 static PyMethodDef __pyx_mdef_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC = {
"groundwaterBryantDawsonIonExEvaluateFC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC, METH_VARARGS|METH_KEYWORDS, 0};
4317 static PyObject *__pyx_pw_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4318 double __pyx_v_omega;
4321 double __pyx_v_alpha_L;
4322 double __pyx_v_alpha_T;
4326 double __pyx_v_Z_tot;
4327 PyArrayObject *__pyx_v_v = 0;
4328 PyArrayObject *__pyx_v_c_m = 0;
4329 PyArrayObject *__pyx_v_c_h = 0;
4330 PyArrayObject *__pyx_v_m_m = 0;
4331 PyArrayObject *__pyx_v_dm_m_m = 0;
4332 PyArrayObject *__pyx_v_dm_m_h = 0;
4333 PyArrayObject *__pyx_v_m_h = 0;
4334 PyArrayObject *__pyx_v_dm_h_m = 0;
4335 PyArrayObject *__pyx_v_dm_h_h = 0;
4336 PyArrayObject *__pyx_v_f_m = 0;
4337 PyArrayObject *__pyx_v_df_m = 0;
4338 PyArrayObject *__pyx_v_f_h = 0;
4339 PyArrayObject *__pyx_v_df_h = 0;
4340 PyArrayObject *__pyx_v_a_m = 0;
4341 PyArrayObject *__pyx_v_a_h = 0;
4342 PyArrayObject *__pyx_v_phi_h = 0;
4343 PyArrayObject *__pyx_v_dphi_h = 0;
4344 PyArrayObject *__pyx_v_r_m = 0;
4345 PyArrayObject *__pyx_v_dr_m_dm = 0;
4346 PyArrayObject *__pyx_v_dr_m_dh = 0;
4347 PyArrayObject *__pyx_v_r_h = 0;
4348 PyArrayObject *__pyx_v_dr_h_dm = 0;
4349 PyArrayObject *__pyx_v_dr_h_dh = 0;
4350 int __pyx_lineno = 0;
4351 const char *__pyx_filename = NULL;
4352 int __pyx_clineno = 0;
4353 PyObject *__pyx_r = 0;
4354 __Pyx_RefNannyDeclarations
4355 __Pyx_RefNannySetupContext(
"groundwaterBryantDawsonIonExEvaluateFC (wrapper)", 0);
4357 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_omega,&__pyx_n_s_d_m,&__pyx_n_s_d_h,&__pyx_n_s_alpha_L,&__pyx_n_s_alpha_T,&__pyx_n_s_K_m,&__pyx_n_s_K_h,&__pyx_n_s_K_w,&__pyx_n_s_Z_tot,&__pyx_n_s_v,&__pyx_n_s_c_m,&__pyx_n_s_c_h,&__pyx_n_s_m_m,&__pyx_n_s_dm_m_m,&__pyx_n_s_dm_m_h,&__pyx_n_s_m_h,&__pyx_n_s_dm_h_m,&__pyx_n_s_dm_h_h,&__pyx_n_s_f_m,&__pyx_n_s_df_m,&__pyx_n_s_f_h,&__pyx_n_s_df_h,&__pyx_n_s_a_m,&__pyx_n_s_a_h,&__pyx_n_s_phi_h,&__pyx_n_s_dphi_h,&__pyx_n_s_r_m,&__pyx_n_s_dr_m_dm,&__pyx_n_s_dr_m_dh,&__pyx_n_s_r_h,&__pyx_n_s_dr_h_dm,&__pyx_n_s_dr_h_dh,0};
4358 PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
4359 if (unlikely(__pyx_kwds)) {
4361 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4363 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
4365 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
4367 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
4369 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
4371 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
4373 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
4375 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
4377 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
4379 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
4381 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
4383 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
4385 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
4387 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
4389 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
4391 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4393 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4395 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4397 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4399 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4401 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4403 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4405 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4407 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4409 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4411 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4413 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4415 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4417 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4419 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4421 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4423 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4425 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4428 default:
goto __pyx_L5_argtuple_error;
4430 kw_args = PyDict_Size(__pyx_kwds);
4433 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega)) != 0)) kw_args--;
4434 else goto __pyx_L5_argtuple_error;
4437 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_m)) != 0)) kw_args--;
4439 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 1); __PYX_ERR(0, 2950, __pyx_L3_error)
4443 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d_h)) != 0)) kw_args--;
4445 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 2); __PYX_ERR(0, 2950, __pyx_L3_error)
4449 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L)) != 0)) kw_args--;
4451 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 3); __PYX_ERR(0, 2950, __pyx_L3_error)
4455 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T)) != 0)) kw_args--;
4457 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 4); __PYX_ERR(0, 2950, __pyx_L3_error)
4461 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_m)) != 0)) kw_args--;
4463 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 5); __PYX_ERR(0, 2950, __pyx_L3_error)
4467 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_h)) != 0)) kw_args--;
4469 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 6); __PYX_ERR(0, 2950, __pyx_L3_error)
4473 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_w)) != 0)) kw_args--;
4475 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 7); __PYX_ERR(0, 2950, __pyx_L3_error)
4479 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Z_tot)) != 0)) kw_args--;
4481 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 8); __PYX_ERR(0, 2950, __pyx_L3_error)
4485 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4487 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 9); __PYX_ERR(0, 2950, __pyx_L3_error)
4491 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_m)) != 0)) kw_args--;
4493 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 10); __PYX_ERR(0, 2950, __pyx_L3_error)
4497 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_h)) != 0)) kw_args--;
4499 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 11); __PYX_ERR(0, 2950, __pyx_L3_error)
4503 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_m)) != 0)) kw_args--;
4505 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 12); __PYX_ERR(0, 2950, __pyx_L3_error)
4509 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_m_m)) != 0)) kw_args--;
4511 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 13); __PYX_ERR(0, 2950, __pyx_L3_error)
4515 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_m_h)) != 0)) kw_args--;
4517 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 14); __PYX_ERR(0, 2950, __pyx_L3_error)
4521 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_h)) != 0)) kw_args--;
4523 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 15); __PYX_ERR(0, 2950, __pyx_L3_error)
4527 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_h_m)) != 0)) kw_args--;
4529 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 16); __PYX_ERR(0, 2950, __pyx_L3_error)
4533 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_h_h)) != 0)) kw_args--;
4535 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 17); __PYX_ERR(0, 2950, __pyx_L3_error)
4539 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_m)) != 0)) kw_args--;
4541 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 18); __PYX_ERR(0, 2950, __pyx_L3_error)
4545 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_m)) != 0)) kw_args--;
4547 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 19); __PYX_ERR(0, 2950, __pyx_L3_error)
4551 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_h)) != 0)) kw_args--;
4553 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 20); __PYX_ERR(0, 2950, __pyx_L3_error)
4557 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_h)) != 0)) kw_args--;
4559 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 21); __PYX_ERR(0, 2950, __pyx_L3_error)
4563 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_m)) != 0)) kw_args--;
4565 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 22); __PYX_ERR(0, 2950, __pyx_L3_error)
4569 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_h)) != 0)) kw_args--;
4571 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 23); __PYX_ERR(0, 2950, __pyx_L3_error)
4575 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_h)) != 0)) kw_args--;
4577 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 24); __PYX_ERR(0, 2950, __pyx_L3_error)
4581 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_h)) != 0)) kw_args--;
4583 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 25); __PYX_ERR(0, 2950, __pyx_L3_error)
4587 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_m)) != 0)) kw_args--;
4589 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 26); __PYX_ERR(0, 2950, __pyx_L3_error)
4593 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_m_dm)) != 0)) kw_args--;
4595 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 27); __PYX_ERR(0, 2950, __pyx_L3_error)
4599 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_m_dh)) != 0)) kw_args--;
4601 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 28); __PYX_ERR(0, 2950, __pyx_L3_error)
4605 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_h)) != 0)) kw_args--;
4607 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 29); __PYX_ERR(0, 2950, __pyx_L3_error)
4611 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_h_dm)) != 0)) kw_args--;
4613 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 30); __PYX_ERR(0, 2950, __pyx_L3_error)
4617 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_h_dh)) != 0)) kw_args--;
4619 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, 31); __PYX_ERR(0, 2950, __pyx_L3_error)
4622 if (unlikely(kw_args > 0)) {
4623 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"groundwaterBryantDawsonIonExEvaluateFC") < 0)) __PYX_ERR(0, 2950, __pyx_L3_error)
4625 }
else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
4626 goto __pyx_L5_argtuple_error;
4628 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4629 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4630 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4631 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4632 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4633 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4634 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4635 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4636 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4637 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4638 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4639 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4640 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4641 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4642 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4643 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4644 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4645 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4646 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
4647 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
4648 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
4649 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
4650 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
4651 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
4652 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
4653 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
4654 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
4655 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
4656 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
4657 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
4658 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
4659 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
4661 __pyx_v_omega = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_omega == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2950, __pyx_L3_error)
4662 __pyx_v_d_m = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_d_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2951, __pyx_L3_error)
4663 __pyx_v_d_h = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_d_h == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2952, __pyx_L3_error)
4664 __pyx_v_alpha_L = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_alpha_L == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2953, __pyx_L3_error)
4665 __pyx_v_alpha_T = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_alpha_T == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2954, __pyx_L3_error)
4666 __pyx_v_K_m = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_K_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2955, __pyx_L3_error)
4667 __pyx_v_K_h = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_K_h == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2956, __pyx_L3_error)
4668 __pyx_v_K_w = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_K_w == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2957, __pyx_L3_error)
4669 __pyx_v_Z_tot = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_Z_tot == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2958, __pyx_L3_error)
4670 __pyx_v_v = ((PyArrayObject *)values[9]);
4671 __pyx_v_c_m = ((PyArrayObject *)values[10]);
4672 __pyx_v_c_h = ((PyArrayObject *)values[11]);
4673 __pyx_v_m_m = ((PyArrayObject *)values[12]);
4674 __pyx_v_dm_m_m = ((PyArrayObject *)values[13]);
4675 __pyx_v_dm_m_h = ((PyArrayObject *)values[14]);
4676 __pyx_v_m_h = ((PyArrayObject *)values[15]);
4677 __pyx_v_dm_h_m = ((PyArrayObject *)values[16]);
4678 __pyx_v_dm_h_h = ((PyArrayObject *)values[17]);
4679 __pyx_v_f_m = ((PyArrayObject *)values[18]);
4680 __pyx_v_df_m = ((PyArrayObject *)values[19]);
4681 __pyx_v_f_h = ((PyArrayObject *)values[20]);
4682 __pyx_v_df_h = ((PyArrayObject *)values[21]);
4683 __pyx_v_a_m = ((PyArrayObject *)values[22]);
4684 __pyx_v_a_h = ((PyArrayObject *)values[23]);
4685 __pyx_v_phi_h = ((PyArrayObject *)values[24]);
4686 __pyx_v_dphi_h = ((PyArrayObject *)values[25]);
4687 __pyx_v_r_m = ((PyArrayObject *)values[26]);
4688 __pyx_v_dr_m_dm = ((PyArrayObject *)values[27]);
4689 __pyx_v_dr_m_dh = ((PyArrayObject *)values[28]);
4690 __pyx_v_r_h = ((PyArrayObject *)values[29]);
4691 __pyx_v_dr_h_dm = ((PyArrayObject *)values[30]);
4692 __pyx_v_dr_h_dh = ((PyArrayObject *)values[31]);
4694 goto __pyx_L4_argument_unpacking_done;
4695 __pyx_L5_argtuple_error:;
4696 __Pyx_RaiseArgtupleInvalid(
"groundwaterBryantDawsonIonExEvaluateFC", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2950, __pyx_L3_error)
4698 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterBryantDawsonIonExEvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4699 __Pyx_RefNannyFinishContext();
4701 __pyx_L4_argument_unpacking_done:;
4702 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2959, __pyx_L1_error)
4703 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_m), __pyx_ptype_5numpy_ndarray, 1,
"c_m", 0))) __PYX_ERR(0, 2960, __pyx_L1_error)
4704 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c_h), __pyx_ptype_5numpy_ndarray, 1,
"c_h", 0))) __PYX_ERR(0, 2961, __pyx_L1_error)
4705 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_m), __pyx_ptype_5numpy_ndarray, 1,
"m_m", 0))) __PYX_ERR(0, 2962, __pyx_L1_error)
4706 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_m_m), __pyx_ptype_5numpy_ndarray, 1,
"dm_m_m", 0))) __PYX_ERR(0, 2963, __pyx_L1_error)
4707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_m_h), __pyx_ptype_5numpy_ndarray, 1,
"dm_m_h", 0))) __PYX_ERR(0, 2964, __pyx_L1_error)
4708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_h), __pyx_ptype_5numpy_ndarray, 1,
"m_h", 0))) __PYX_ERR(0, 2965, __pyx_L1_error)
4709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_h_m), __pyx_ptype_5numpy_ndarray, 1,
"dm_h_m", 0))) __PYX_ERR(0, 2966, __pyx_L1_error)
4710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_h_h), __pyx_ptype_5numpy_ndarray, 1,
"dm_h_h", 0))) __PYX_ERR(0, 2967, __pyx_L1_error)
4711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_m), __pyx_ptype_5numpy_ndarray, 1,
"f_m", 0))) __PYX_ERR(0, 2968, __pyx_L1_error)
4712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_m), __pyx_ptype_5numpy_ndarray, 1,
"df_m", 0))) __PYX_ERR(0, 2969, __pyx_L1_error)
4713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_h), __pyx_ptype_5numpy_ndarray, 1,
"f_h", 0))) __PYX_ERR(0, 2970, __pyx_L1_error)
4714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_h), __pyx_ptype_5numpy_ndarray, 1,
"df_h", 0))) __PYX_ERR(0, 2971, __pyx_L1_error)
4715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_m), __pyx_ptype_5numpy_ndarray, 1,
"a_m", 0))) __PYX_ERR(0, 2972, __pyx_L1_error)
4716 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_h), __pyx_ptype_5numpy_ndarray, 1,
"a_h", 0))) __PYX_ERR(0, 2973, __pyx_L1_error)
4717 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_h), __pyx_ptype_5numpy_ndarray, 1,
"phi_h", 0))) __PYX_ERR(0, 2974, __pyx_L1_error)
4718 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_h), __pyx_ptype_5numpy_ndarray, 1,
"dphi_h", 0))) __PYX_ERR(0, 2975, __pyx_L1_error)
4719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_m), __pyx_ptype_5numpy_ndarray, 1,
"r_m", 0))) __PYX_ERR(0, 2976, __pyx_L1_error)
4720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_m_dm), __pyx_ptype_5numpy_ndarray, 1,
"dr_m_dm", 0))) __PYX_ERR(0, 2977, __pyx_L1_error)
4721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_m_dh), __pyx_ptype_5numpy_ndarray, 1,
"dr_m_dh", 0))) __PYX_ERR(0, 2978, __pyx_L1_error)
4722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_h), __pyx_ptype_5numpy_ndarray, 1,
"r_h", 0))) __PYX_ERR(0, 2979, __pyx_L1_error)
4723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_h_dm), __pyx_ptype_5numpy_ndarray, 1,
"dr_h_dm", 0))) __PYX_ERR(0, 2980, __pyx_L1_error)
4724 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_h_dh), __pyx_ptype_5numpy_ndarray, 1,
"dr_h_dh", 0))) __PYX_ERR(0, 2981, __pyx_L1_error)
4725 __pyx_r = __pyx_pf_22ctransportCoefficients_6groundwaterBryantDawsonIonExEvaluateFC(__pyx_self, __pyx_v_omega, __pyx_v_d_m, __pyx_v_d_h, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_K_m, __pyx_v_K_h, __pyx_v_K_w, __pyx_v_Z_tot, __pyx_v_v, __pyx_v_c_m, __pyx_v_c_h, __pyx_v_m_m, __pyx_v_dm_m_m, __pyx_v_dm_m_h, __pyx_v_m_h, __pyx_v_dm_h_m, __pyx_v_dm_h_h, __pyx_v_f_m, __pyx_v_df_m, __pyx_v_f_h, __pyx_v_df_h, __pyx_v_a_m, __pyx_v_a_h, __pyx_v_phi_h, __pyx_v_dphi_h, __pyx_v_r_m, __pyx_v_dr_m_dm, __pyx_v_dr_m_dh, __pyx_v_r_h, __pyx_v_dr_h_dm, __pyx_v_dr_h_dh);
4732 __Pyx_RefNannyFinishContext();
4736 static PyObject *__pyx_pf_22ctransportCoefficients_6groundwaterBryantDawsonIonExEvaluateFC(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_omega,
double __pyx_v_d_m,
double __pyx_v_d_h,
double __pyx_v_alpha_L,
double __pyx_v_alpha_T,
double __pyx_v_K_m,
double __pyx_v_K_h,
double __pyx_v_K_w,
double __pyx_v_Z_tot, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_c_m, PyArrayObject *__pyx_v_c_h, PyArrayObject *__pyx_v_m_m, PyArrayObject *__pyx_v_dm_m_m, PyArrayObject *__pyx_v_dm_m_h, PyArrayObject *__pyx_v_m_h, PyArrayObject *__pyx_v_dm_h_m, PyArrayObject *__pyx_v_dm_h_h, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m, PyArrayObject *__pyx_v_f_h, PyArrayObject *__pyx_v_df_h, PyArrayObject *__pyx_v_a_m, PyArrayObject *__pyx_v_a_h, PyArrayObject *__pyx_v_phi_h, PyArrayObject *__pyx_v_dphi_h, PyArrayObject *__pyx_v_r_m, PyArrayObject *__pyx_v_dr_m_dm, PyArrayObject *__pyx_v_dr_m_dh, PyArrayObject *__pyx_v_r_h, PyArrayObject *__pyx_v_dr_h_dm, PyArrayObject *__pyx_v_dr_h_dh) {
4737 PyObject *__pyx_r = NULL;
4738 __Pyx_RefNannyDeclarations
4739 PyObject *__pyx_t_1 = NULL;
4740 PyObject *__pyx_t_2 = NULL;
4741 PyObject *__pyx_t_3 = NULL;
4743 int __pyx_lineno = 0;
4744 const char *__pyx_filename = NULL;
4745 int __pyx_clineno = 0;
4746 __Pyx_RefNannySetupContext(
"groundwaterBryantDawsonIonExEvaluateFC", 0);
4755 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f_m), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2982, __pyx_L1_error)
4756 __Pyx_GOTREF(__pyx_t_1);
4757 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f_m->dimensions[(__pyx_v_f_m->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2982, __pyx_L1_error)
4758 __Pyx_GOTREF(__pyx_t_2);
4759 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2982, __pyx_L1_error)
4760 __Pyx_GOTREF(__pyx_t_3);
4761 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4762 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4763 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2982, __pyx_L1_error)
4764 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4773 groundwaterBryantDawsonIonExEvaluateFC(__pyx_t_4, (__pyx_v_f_m->dimensions[(__pyx_v_f_m->nd - 1)]), __pyx_v_omega, __pyx_v_d_m, __pyx_v_d_h, __pyx_v_alpha_L, __pyx_v_alpha_T, __pyx_v_K_m, __pyx_v_K_h, __pyx_v_K_w, __pyx_v_Z_tot, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_c_m->data), ((
double *)__pyx_v_c_h->data), ((
double *)__pyx_v_m_m->data), ((
double *)__pyx_v_dm_m_m->data), ((
double *)__pyx_v_dm_m_h->data), ((
double *)__pyx_v_m_h->data), ((
double *)__pyx_v_dm_h_m->data), ((
double *)__pyx_v_dm_h_h->data), ((
double *)__pyx_v_f_m->data), ((
double *)__pyx_v_df_m->data), ((
double *)__pyx_v_f_h->data), ((
double *)__pyx_v_df_h->data), ((
double *)__pyx_v_a_m->data), ((
double *)__pyx_v_a_h->data), ((
double *)__pyx_v_phi_h->data), ((
double *)__pyx_v_dphi_h->data), ((
double *)__pyx_v_r_m->data), ((
double *)__pyx_v_dr_m_dm->data), ((
double *)__pyx_v_dr_m_dh->data), ((
double *)__pyx_v_r_h->data), ((
double *)__pyx_v_dr_h_dm->data), ((
double *)__pyx_v_dr_h_dh->data));
4784 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4787 __Pyx_XDECREF(__pyx_t_1);
4788 __Pyx_XDECREF(__pyx_t_2);
4789 __Pyx_XDECREF(__pyx_t_3);
4790 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterBryantDawsonIonExEvaluateFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4793 __Pyx_XGIVEREF(__pyx_r);
4794 __Pyx_RefNannyFinishContext();
4807 static PyObject *__pyx_pw_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4808 static PyMethodDef __pyx_mdef_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat = {
"groundwaterTransportCoefficientsEvaluate_hetMat", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat, METH_VARARGS|METH_KEYWORDS, 0};
4809 static PyObject *__pyx_pw_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4811 PyArrayObject *__pyx_v_materialTypes = 0;
4812 PyArrayObject *__pyx_v_omega_types = 0;
4813 PyArrayObject *__pyx_v_alpha_L_types = 0;
4814 PyArrayObject *__pyx_v_alpha_T_types = 0;
4815 PyArrayObject *__pyx_v_v = 0;
4816 PyArrayObject *__pyx_v_u = 0;
4817 PyArrayObject *__pyx_v_m = 0;
4818 PyArrayObject *__pyx_v_dm = 0;
4819 PyArrayObject *__pyx_v_f = 0;
4820 PyArrayObject *__pyx_v_df = 0;
4821 PyArrayObject *__pyx_v_a = 0;
4822 int __pyx_lineno = 0;
4823 const char *__pyx_filename = NULL;
4824 int __pyx_clineno = 0;
4825 PyObject *__pyx_r = 0;
4826 __Pyx_RefNannyDeclarations
4827 __Pyx_RefNannySetupContext(
"groundwaterTransportCoefficientsEvaluate_hetMat (wrapper)", 0);
4829 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_d,&__pyx_n_s_materialTypes,&__pyx_n_s_omega_types,&__pyx_n_s_alpha_L_types,&__pyx_n_s_alpha_T_types,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
4830 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
4831 if (unlikely(__pyx_kwds)) {
4833 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4835 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4837 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4839 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4841 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4843 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4845 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4847 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4849 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4851 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4853 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4855 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4857 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4860 default:
goto __pyx_L5_argtuple_error;
4862 kw_args = PyDict_Size(__pyx_kwds);
4865 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
4866 else goto __pyx_L5_argtuple_error;
4869 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
4871 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 1); __PYX_ERR(0, 3016, __pyx_L3_error)
4875 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_types)) != 0)) kw_args--;
4877 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 2); __PYX_ERR(0, 3016, __pyx_L3_error)
4881 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L_types)) != 0)) kw_args--;
4883 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 3); __PYX_ERR(0, 3016, __pyx_L3_error)
4887 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T_types)) != 0)) kw_args--;
4889 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 4); __PYX_ERR(0, 3016, __pyx_L3_error)
4893 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4895 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 5); __PYX_ERR(0, 3016, __pyx_L3_error)
4899 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
4901 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 6); __PYX_ERR(0, 3016, __pyx_L3_error)
4905 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
4907 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 7); __PYX_ERR(0, 3016, __pyx_L3_error)
4911 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
4913 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 8); __PYX_ERR(0, 3016, __pyx_L3_error)
4917 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4919 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 9); __PYX_ERR(0, 3016, __pyx_L3_error)
4923 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
4925 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 10); __PYX_ERR(0, 3016, __pyx_L3_error)
4929 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4931 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 11); __PYX_ERR(0, 3016, __pyx_L3_error)
4934 if (unlikely(kw_args > 0)) {
4935 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"groundwaterTransportCoefficientsEvaluate_hetMat") < 0)) __PYX_ERR(0, 3016, __pyx_L3_error)
4937 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
4938 goto __pyx_L5_argtuple_error;
4940 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4941 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4942 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4943 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4944 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4945 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4946 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4947 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4948 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4949 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4950 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4951 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4953 __pyx_v_d = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_d == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3016, __pyx_L3_error)
4954 __pyx_v_materialTypes = ((PyArrayObject *)values[1]);
4955 __pyx_v_omega_types = ((PyArrayObject *)values[2]);
4956 __pyx_v_alpha_L_types = ((PyArrayObject *)values[3]);
4957 __pyx_v_alpha_T_types = ((PyArrayObject *)values[4]);
4958 __pyx_v_v = ((PyArrayObject *)values[5]);
4959 __pyx_v_u = ((PyArrayObject *)values[6]);
4960 __pyx_v_m = ((PyArrayObject *)values[7]);
4961 __pyx_v_dm = ((PyArrayObject *)values[8]);
4962 __pyx_v_f = ((PyArrayObject *)values[9]);
4963 __pyx_v_df = ((PyArrayObject *)values[10]);
4964 __pyx_v_a = ((PyArrayObject *)values[11]);
4966 goto __pyx_L4_argument_unpacking_done;
4967 __pyx_L5_argtuple_error:;
4968 __Pyx_RaiseArgtupleInvalid(
"groundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3016, __pyx_L3_error)
4970 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
4971 __Pyx_RefNannyFinishContext();
4973 __pyx_L4_argument_unpacking_done:;
4974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 3017, __pyx_L1_error)
4975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_types), __pyx_ptype_5numpy_ndarray, 1,
"omega_types", 0))) __PYX_ERR(0, 3018, __pyx_L1_error)
4976 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_L_types), __pyx_ptype_5numpy_ndarray, 1,
"alpha_L_types", 0))) __PYX_ERR(0, 3019, __pyx_L1_error)
4977 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_T_types), __pyx_ptype_5numpy_ndarray, 1,
"alpha_T_types", 0))) __PYX_ERR(0, 3020, __pyx_L1_error)
4978 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3021, __pyx_L1_error)
4979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3022, __pyx_L1_error)
4980 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3023, __pyx_L1_error)
4981 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3024, __pyx_L1_error)
4982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3025, __pyx_L1_error)
4983 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3026, __pyx_L1_error)
4984 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3027, __pyx_L1_error)
4985 __pyx_r = __pyx_pf_22ctransportCoefficients_8groundwaterTransportCoefficientsEvaluate_hetMat(__pyx_self, __pyx_v_d, __pyx_v_materialTypes, __pyx_v_omega_types, __pyx_v_alpha_L_types, __pyx_v_alpha_T_types, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
4992 __Pyx_RefNannyFinishContext();
4996 static PyObject *__pyx_pf_22ctransportCoefficients_8groundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_omega_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
4997 PyObject *__pyx_r = NULL;
4998 __Pyx_RefNannyDeclarations
5000 PyObject *__pyx_t_2 = NULL;
5001 PyObject *__pyx_t_3 = NULL;
5002 PyObject *__pyx_t_4 = NULL;
5004 int __pyx_lineno = 0;
5005 const char *__pyx_filename = NULL;
5006 int __pyx_clineno = 0;
5007 __Pyx_RefNannySetupContext(
"groundwaterTransportCoefficientsEvaluate_hetMat", 0);
5016 #ifndef CYTHON_WITHOUT_ASSERTIONS
5017 if (unlikely(!Py_OptimizeFlag)) {
5018 switch (__pyx_v_u->nd) {
5027 if (unlikely(!(__pyx_t_1 != 0))) {
5028 PyErr_SetNone(PyExc_AssertionError);
5029 __PYX_ERR(0, 3028, __pyx_L1_error)
5041 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3029, __pyx_L1_error)
5042 __Pyx_GOTREF(__pyx_t_2);
5043 __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3029, __pyx_L1_error)
5044 __Pyx_GOTREF(__pyx_t_3);
5045 __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3029, __pyx_L1_error)
5046 __Pyx_GOTREF(__pyx_t_4);
5047 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5048 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5049 __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_4);
if (unlikely((__pyx_t_5 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3029, __pyx_L1_error)
5050 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5059 groundwaterTransportCoefficientsEvaluate_hetMat(__pyx_t_5, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_d, ((
int *)__pyx_v_materialTypes->data), ((
double *)__pyx_v_omega_types->data), ((
double *)__pyx_v_alpha_L_types->data), ((
double *)__pyx_v_alpha_T_types->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data));
5070 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5073 __Pyx_XDECREF(__pyx_t_2);
5074 __Pyx_XDECREF(__pyx_t_3);
5075 __Pyx_XDECREF(__pyx_t_4);
5076 __Pyx_AddTraceback(
"ctransportCoefficients.groundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5079 __Pyx_XGIVEREF(__pyx_r);
5080 __Pyx_RefNannyFinishContext();
5093 static PyObject *__pyx_pw_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5094 static PyMethodDef __pyx_mdef_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat = {
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat, METH_VARARGS|METH_KEYWORDS, 0};
5095 static PyObject *__pyx_pw_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5097 PyArrayObject *__pyx_v_materialTypes = 0;
5098 PyArrayObject *__pyx_v_theta = 0;
5099 PyArrayObject *__pyx_v_alpha_L_types = 0;
5100 PyArrayObject *__pyx_v_alpha_T_types = 0;
5101 PyArrayObject *__pyx_v_v = 0;
5102 PyArrayObject *__pyx_v_u = 0;
5103 PyArrayObject *__pyx_v_m = 0;
5104 PyArrayObject *__pyx_v_dm = 0;
5105 PyArrayObject *__pyx_v_f = 0;
5106 PyArrayObject *__pyx_v_df = 0;
5107 PyArrayObject *__pyx_v_a = 0;
5108 int __pyx_lineno = 0;
5109 const char *__pyx_filename = NULL;
5110 int __pyx_clineno = 0;
5111 PyObject *__pyx_r = 0;
5112 __Pyx_RefNannyDeclarations
5113 __Pyx_RefNannySetupContext(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat (wrapper)", 0);
5115 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_d,&__pyx_n_s_materialTypes,&__pyx_n_s_theta,&__pyx_n_s_alpha_L_types,&__pyx_n_s_alpha_T_types,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
5116 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
5117 if (unlikely(__pyx_kwds)) {
5119 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5121 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5123 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5125 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5127 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5129 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5131 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5133 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5135 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5137 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5139 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5141 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5143 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5146 default:
goto __pyx_L5_argtuple_error;
5148 kw_args = PyDict_Size(__pyx_kwds);
5151 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
5152 else goto __pyx_L5_argtuple_error;
5155 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
5157 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 1); __PYX_ERR(0, 3045, __pyx_L3_error)
5161 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_theta)) != 0)) kw_args--;
5163 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 2); __PYX_ERR(0, 3045, __pyx_L3_error)
5167 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L_types)) != 0)) kw_args--;
5169 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 3); __PYX_ERR(0, 3045, __pyx_L3_error)
5173 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T_types)) != 0)) kw_args--;
5175 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 4); __PYX_ERR(0, 3045, __pyx_L3_error)
5179 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
5181 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 5); __PYX_ERR(0, 3045, __pyx_L3_error)
5185 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
5187 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 6); __PYX_ERR(0, 3045, __pyx_L3_error)
5191 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
5193 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 7); __PYX_ERR(0, 3045, __pyx_L3_error)
5197 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
5199 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 8); __PYX_ERR(0, 3045, __pyx_L3_error)
5203 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
5205 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 9); __PYX_ERR(0, 3045, __pyx_L3_error)
5209 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
5211 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 10); __PYX_ERR(0, 3045, __pyx_L3_error)
5215 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
5217 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, 11); __PYX_ERR(0, 3045, __pyx_L3_error)
5220 if (unlikely(kw_args > 0)) {
5221 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat") < 0)) __PYX_ERR(0, 3045, __pyx_L3_error)
5223 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
5224 goto __pyx_L5_argtuple_error;
5226 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5227 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5228 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5229 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5230 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5231 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5232 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5233 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5234 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5235 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5236 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5237 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5239 __pyx_v_d = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_d == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3045, __pyx_L3_error)
5240 __pyx_v_materialTypes = ((PyArrayObject *)values[1]);
5241 __pyx_v_theta = ((PyArrayObject *)values[2]);
5242 __pyx_v_alpha_L_types = ((PyArrayObject *)values[3]);
5243 __pyx_v_alpha_T_types = ((PyArrayObject *)values[4]);
5244 __pyx_v_v = ((PyArrayObject *)values[5]);
5245 __pyx_v_u = ((PyArrayObject *)values[6]);
5246 __pyx_v_m = ((PyArrayObject *)values[7]);
5247 __pyx_v_dm = ((PyArrayObject *)values[8]);
5248 __pyx_v_f = ((PyArrayObject *)values[9]);
5249 __pyx_v_df = ((PyArrayObject *)values[10]);
5250 __pyx_v_a = ((PyArrayObject *)values[11]);
5252 goto __pyx_L4_argument_unpacking_done;
5253 __pyx_L5_argtuple_error:;
5254 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3045, __pyx_L3_error)
5256 __Pyx_AddTraceback(
"ctransportCoefficients.variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5257 __Pyx_RefNannyFinishContext();
5259 __pyx_L4_argument_unpacking_done:;
5260 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 3046, __pyx_L1_error)
5261 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_theta), __pyx_ptype_5numpy_ndarray, 1,
"theta", 0))) __PYX_ERR(0, 3047, __pyx_L1_error)
5262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_L_types), __pyx_ptype_5numpy_ndarray, 1,
"alpha_L_types", 0))) __PYX_ERR(0, 3048, __pyx_L1_error)
5263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_T_types), __pyx_ptype_5numpy_ndarray, 1,
"alpha_T_types", 0))) __PYX_ERR(0, 3049, __pyx_L1_error)
5264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3050, __pyx_L1_error)
5265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3051, __pyx_L1_error)
5266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3052, __pyx_L1_error)
5267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3053, __pyx_L1_error)
5268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3054, __pyx_L1_error)
5269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3055, __pyx_L1_error)
5270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3056, __pyx_L1_error)
5271 __pyx_r = __pyx_pf_22ctransportCoefficients_10variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(__pyx_self, __pyx_v_d, __pyx_v_materialTypes, __pyx_v_theta, __pyx_v_alpha_L_types, __pyx_v_alpha_T_types, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
5278 __Pyx_RefNannyFinishContext();
5282 static PyObject *__pyx_pf_22ctransportCoefficients_10variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_d, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
5283 npy_intp __pyx_v_nSimplex;
5284 npy_intp __pyx_v_nPointsPerSimplex;
5285 PyObject *__pyx_r = NULL;
5286 __Pyx_RefNannyDeclarations
5288 int __pyx_lineno = 0;
5289 const char *__pyx_filename = NULL;
5290 int __pyx_clineno = 0;
5291 __Pyx_RefNannySetupContext(
"variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", 0);
5300 switch (__pyx_v_u->nd) {
5311 __pyx_t_1 = ((__pyx_v_u->nd == 2) != 0);
5321 __pyx_v_nSimplex = (__pyx_v_u->dimensions[0]);
5330 __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[1]);
5350 __pyx_v_nSimplex = ((__pyx_v_u->dimensions[0]) * (__pyx_v_u->dimensions[1]));
5359 __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[2]);
5370 variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat(__pyx_v_nSimplex, __pyx_v_nPointsPerSimplex, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_d, ((
int *)__pyx_v_materialTypes->data), ((
double *)__pyx_v_theta->data), ((
double *)__pyx_v_alpha_L_types->data), ((
double *)__pyx_v_alpha_T_types->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data));
5389 #ifndef CYTHON_WITHOUT_ASSERTIONS
5390 if (unlikely(!Py_OptimizeFlag)) {
5392 PyErr_SetNone(PyExc_AssertionError);
5393 __PYX_ERR(0, 3080, __pyx_L1_error)
5409 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5412 __Pyx_AddTraceback(
"ctransportCoefficients.variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5415 __Pyx_XGIVEREF(__pyx_r);
5416 __Pyx_RefNannyFinishContext();
5429 static PyObject *__pyx_pw_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5430 static PyMethodDef __pyx_mdef_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat = {
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat, METH_VARARGS|METH_KEYWORDS, 0};
5431 static PyObject *__pyx_pw_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5432 double __pyx_v_rho_w;
5433 double __pyx_v_rho_n;
5434 double __pyx_v_specificHeat_w;
5435 double __pyx_v_specificHeat_n;
5436 PyArrayObject *__pyx_v_materialTypes = 0;
5437 PyArrayObject *__pyx_v_theta = 0;
5438 PyArrayObject *__pyx_v_thetaS_types = 0;
5439 PyArrayObject *__pyx_v_alpha_L_types = 0;
5440 PyArrayObject *__pyx_v_alpha_T_types = 0;
5441 PyArrayObject *__pyx_v_rho_s_types = 0;
5442 PyArrayObject *__pyx_v_specificHeat_s_types = 0;
5443 PyArrayObject *__pyx_v_Lambda_sat_types = 0;
5444 PyArrayObject *__pyx_v_Lambda_dry_types = 0;
5445 PyArrayObject *__pyx_v_Lambda_aniso_types = 0;
5446 PyArrayObject *__pyx_v_v = 0;
5447 PyArrayObject *__pyx_v_u = 0;
5448 PyArrayObject *__pyx_v_m = 0;
5449 PyArrayObject *__pyx_v_dm = 0;
5450 PyArrayObject *__pyx_v_f = 0;
5451 PyArrayObject *__pyx_v_df = 0;
5452 PyArrayObject *__pyx_v_a = 0;
5453 int __pyx_lineno = 0;
5454 const char *__pyx_filename = NULL;
5455 int __pyx_clineno = 0;
5456 PyObject *__pyx_r = 0;
5457 __Pyx_RefNannyDeclarations
5458 __Pyx_RefNannySetupContext(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat (wrapper)", 0);
5460 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho_w,&__pyx_n_s_rho_n,&__pyx_n_s_specificHeat_w,&__pyx_n_s_specificHeat_n,&__pyx_n_s_materialTypes,&__pyx_n_s_theta,&__pyx_n_s_thetaS_types,&__pyx_n_s_alpha_L_types,&__pyx_n_s_alpha_T_types,&__pyx_n_s_rho_s_types,&__pyx_n_s_specificHeat_s_types,&__pyx_n_s_Lambda_sat_types,&__pyx_n_s_Lambda_dry_types,&__pyx_n_s_Lambda_aniso_types,&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
5461 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5462 if (unlikely(__pyx_kwds)) {
5464 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5466 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
5468 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
5470 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
5472 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
5474 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5476 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5478 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5480 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5482 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5484 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5486 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5488 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5490 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5492 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5494 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5496 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5498 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5500 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5502 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5504 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5506 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5509 default:
goto __pyx_L5_argtuple_error;
5511 kw_args = PyDict_Size(__pyx_kwds);
5514 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_w)) != 0)) kw_args--;
5515 else goto __pyx_L5_argtuple_error;
5518 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_n)) != 0)) kw_args--;
5520 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 1); __PYX_ERR(0, 3081, __pyx_L3_error)
5524 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_specificHeat_w)) != 0)) kw_args--;
5526 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 2); __PYX_ERR(0, 3081, __pyx_L3_error)
5530 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_specificHeat_n)) != 0)) kw_args--;
5532 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 3); __PYX_ERR(0, 3081, __pyx_L3_error)
5536 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
5538 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 4); __PYX_ERR(0, 3081, __pyx_L3_error)
5542 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_theta)) != 0)) kw_args--;
5544 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 5); __PYX_ERR(0, 3081, __pyx_L3_error)
5548 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaS_types)) != 0)) kw_args--;
5550 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 6); __PYX_ERR(0, 3081, __pyx_L3_error)
5554 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_L_types)) != 0)) kw_args--;
5556 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 7); __PYX_ERR(0, 3081, __pyx_L3_error)
5560 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha_T_types)) != 0)) kw_args--;
5562 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 8); __PYX_ERR(0, 3081, __pyx_L3_error)
5566 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_s_types)) != 0)) kw_args--;
5568 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 9); __PYX_ERR(0, 3081, __pyx_L3_error)
5572 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_specificHeat_s_types)) != 0)) kw_args--;
5574 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 10); __PYX_ERR(0, 3081, __pyx_L3_error)
5578 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_sat_types)) != 0)) kw_args--;
5580 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 11); __PYX_ERR(0, 3081, __pyx_L3_error)
5584 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_dry_types)) != 0)) kw_args--;
5586 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 12); __PYX_ERR(0, 3081, __pyx_L3_error)
5590 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_aniso_types)) != 0)) kw_args--;
5592 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 13); __PYX_ERR(0, 3081, __pyx_L3_error)
5596 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
5598 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 14); __PYX_ERR(0, 3081, __pyx_L3_error)
5602 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
5604 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 15); __PYX_ERR(0, 3081, __pyx_L3_error)
5608 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
5610 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 16); __PYX_ERR(0, 3081, __pyx_L3_error)
5614 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
5616 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 17); __PYX_ERR(0, 3081, __pyx_L3_error)
5620 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
5622 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 18); __PYX_ERR(0, 3081, __pyx_L3_error)
5626 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
5628 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 19); __PYX_ERR(0, 3081, __pyx_L3_error)
5632 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
5634 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, 20); __PYX_ERR(0, 3081, __pyx_L3_error)
5637 if (unlikely(kw_args > 0)) {
5638 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat") < 0)) __PYX_ERR(0, 3081, __pyx_L3_error)
5640 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
5641 goto __pyx_L5_argtuple_error;
5643 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5644 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5645 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5646 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5647 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5648 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5649 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5650 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5651 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5652 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5653 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5654 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5655 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5656 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5657 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5658 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5659 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5660 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
5661 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
5662 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
5663 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
5665 __pyx_v_rho_w = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho_w == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3081, __pyx_L3_error)
5666 __pyx_v_rho_n = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3082, __pyx_L3_error)
5667 __pyx_v_specificHeat_w = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_specificHeat_w == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3083, __pyx_L3_error)
5668 __pyx_v_specificHeat_n = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_specificHeat_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3084, __pyx_L3_error)
5669 __pyx_v_materialTypes = ((PyArrayObject *)values[4]);
5670 __pyx_v_theta = ((PyArrayObject *)values[5]);
5671 __pyx_v_thetaS_types = ((PyArrayObject *)values[6]);
5672 __pyx_v_alpha_L_types = ((PyArrayObject *)values[7]);
5673 __pyx_v_alpha_T_types = ((PyArrayObject *)values[8]);
5674 __pyx_v_rho_s_types = ((PyArrayObject *)values[9]);
5675 __pyx_v_specificHeat_s_types = ((PyArrayObject *)values[10]);
5676 __pyx_v_Lambda_sat_types = ((PyArrayObject *)values[11]);
5677 __pyx_v_Lambda_dry_types = ((PyArrayObject *)values[12]);
5678 __pyx_v_Lambda_aniso_types = ((PyArrayObject *)values[13]);
5679 __pyx_v_v = ((PyArrayObject *)values[14]);
5680 __pyx_v_u = ((PyArrayObject *)values[15]);
5681 __pyx_v_m = ((PyArrayObject *)values[16]);
5682 __pyx_v_dm = ((PyArrayObject *)values[17]);
5683 __pyx_v_f = ((PyArrayObject *)values[18]);
5684 __pyx_v_df = ((PyArrayObject *)values[19]);
5685 __pyx_v_a = ((PyArrayObject *)values[20]);
5687 goto __pyx_L4_argument_unpacking_done;
5688 __pyx_L5_argtuple_error:;
5689 __Pyx_RaiseArgtupleInvalid(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3081, __pyx_L3_error)
5691 __Pyx_AddTraceback(
"ctransportCoefficients.variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5692 __Pyx_RefNannyFinishContext();
5694 __pyx_L4_argument_unpacking_done:;
5695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 3085, __pyx_L1_error)
5696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_theta), __pyx_ptype_5numpy_ndarray, 1,
"theta", 0))) __PYX_ERR(0, 3086, __pyx_L1_error)
5697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaS_types), __pyx_ptype_5numpy_ndarray, 1,
"thetaS_types", 0))) __PYX_ERR(0, 3087, __pyx_L1_error)
5698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_L_types), __pyx_ptype_5numpy_ndarray, 1,
"alpha_L_types", 0))) __PYX_ERR(0, 3088, __pyx_L1_error)
5699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha_T_types), __pyx_ptype_5numpy_ndarray, 1,
"alpha_T_types", 0))) __PYX_ERR(0, 3089, __pyx_L1_error)
5700 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rho_s_types), __pyx_ptype_5numpy_ndarray, 1,
"rho_s_types", 0))) __PYX_ERR(0, 3090, __pyx_L1_error)
5701 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_specificHeat_s_types), __pyx_ptype_5numpy_ndarray, 1,
"specificHeat_s_types", 0))) __PYX_ERR(0, 3091, __pyx_L1_error)
5702 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda_sat_types), __pyx_ptype_5numpy_ndarray, 1,
"Lambda_sat_types", 0))) __PYX_ERR(0, 3092, __pyx_L1_error)
5703 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda_dry_types), __pyx_ptype_5numpy_ndarray, 1,
"Lambda_dry_types", 0))) __PYX_ERR(0, 3093, __pyx_L1_error)
5704 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda_aniso_types), __pyx_ptype_5numpy_ndarray, 1,
"Lambda_aniso_types", 0))) __PYX_ERR(0, 3094, __pyx_L1_error)
5705 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3095, __pyx_L1_error)
5706 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3096, __pyx_L1_error)
5707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3097, __pyx_L1_error)
5708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3098, __pyx_L1_error)
5709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3099, __pyx_L1_error)
5710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3100, __pyx_L1_error)
5711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3101, __pyx_L1_error)
5712 __pyx_r = __pyx_pf_22ctransportCoefficients_12variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(__pyx_self, __pyx_v_rho_w, __pyx_v_rho_n, __pyx_v_specificHeat_w, __pyx_v_specificHeat_n, __pyx_v_materialTypes, __pyx_v_theta, __pyx_v_thetaS_types, __pyx_v_alpha_L_types, __pyx_v_alpha_T_types, __pyx_v_rho_s_types, __pyx_v_specificHeat_s_types, __pyx_v_Lambda_sat_types, __pyx_v_Lambda_dry_types, __pyx_v_Lambda_aniso_types, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
5719 __Pyx_RefNannyFinishContext();
5723 static PyObject *__pyx_pf_22ctransportCoefficients_12variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho_w,
double __pyx_v_rho_n,
double __pyx_v_specificHeat_w,
double __pyx_v_specificHeat_n, PyArrayObject *__pyx_v_materialTypes, PyArrayObject *__pyx_v_theta, PyArrayObject *__pyx_v_thetaS_types, PyArrayObject *__pyx_v_alpha_L_types, PyArrayObject *__pyx_v_alpha_T_types, PyArrayObject *__pyx_v_rho_s_types, PyArrayObject *__pyx_v_specificHeat_s_types, PyArrayObject *__pyx_v_Lambda_sat_types, PyArrayObject *__pyx_v_Lambda_dry_types, PyArrayObject *__pyx_v_Lambda_aniso_types, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
5724 npy_intp __pyx_v_nSimplex;
5725 npy_intp __pyx_v_nPointsPerSimplex;
5726 PyObject *__pyx_r = NULL;
5727 __Pyx_RefNannyDeclarations
5729 int __pyx_lineno = 0;
5730 const char *__pyx_filename = NULL;
5731 int __pyx_clineno = 0;
5732 __Pyx_RefNannySetupContext(
"variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", 0);
5741 switch (__pyx_v_u->nd) {
5752 __pyx_t_1 = ((__pyx_v_u->nd == 2) != 0);
5762 __pyx_v_nSimplex = (__pyx_v_u->dimensions[0]);
5771 __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[1]);
5791 __pyx_v_nSimplex = ((__pyx_v_u->dimensions[0]) * (__pyx_v_u->dimensions[1]));
5800 __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[2]);
5811 variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat(__pyx_v_nSimplex, __pyx_v_nPointsPerSimplex, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho_w, __pyx_v_rho_n, __pyx_v_specificHeat_w, __pyx_v_specificHeat_n, ((
int *)__pyx_v_materialTypes->data), ((
double *)__pyx_v_theta->data), ((
double *)__pyx_v_thetaS_types->data), ((
double *)__pyx_v_alpha_L_types->data), ((
double *)__pyx_v_alpha_T_types->data), ((
double *)__pyx_v_rho_s_types->data), ((
double *)__pyx_v_specificHeat_s_types->data), ((
double *)__pyx_v_Lambda_sat_types->data), ((
double *)__pyx_v_Lambda_dry_types->data), ((
double *)__pyx_v_Lambda_aniso_types->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data));
5830 #ifndef CYTHON_WITHOUT_ASSERTIONS
5831 if (unlikely(!Py_OptimizeFlag)) {
5833 PyErr_SetNone(PyExc_AssertionError);
5834 __PYX_ERR(0, 3134, __pyx_L1_error)
5850 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5853 __Pyx_AddTraceback(
"ctransportCoefficients.variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat", __pyx_clineno, __pyx_lineno, __pyx_filename);
5856 __Pyx_XGIVEREF(__pyx_r);
5857 __Pyx_RefNannyFinishContext();
5870 static PyObject *__pyx_pw_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5871 static PyMethodDef __pyx_mdef_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate = {
"nonlinearADR_pqrstEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
5872 static PyObject *__pyx_pw_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5874 PyArrayObject *__pyx_v_A = 0;
5875 PyArrayObject *__pyx_v_B = 0;
5877 double __pyx_v_p_pow;
5878 double __pyx_v_q_pow;
5879 double __pyx_v_r_pow;
5880 double __pyx_v_s_pow;
5881 double __pyx_v_t_pow;
5883 PyArrayObject *__pyx_v_x = 0;
5884 PyArrayObject *__pyx_v_u = 0;
5885 PyArrayObject *__pyx_v_m = 0;
5886 PyArrayObject *__pyx_v_dm = 0;
5887 PyArrayObject *__pyx_v_f = 0;
5888 PyArrayObject *__pyx_v_df = 0;
5889 PyArrayObject *__pyx_v_a = 0;
5890 PyArrayObject *__pyx_v_da = 0;
5891 PyArrayObject *__pyx_v_phi = 0;
5892 PyArrayObject *__pyx_v_dphi = 0;
5893 PyArrayObject *__pyx_v_r = 0;
5894 PyArrayObject *__pyx_v_dr = 0;
5895 int __pyx_lineno = 0;
5896 const char *__pyx_filename = NULL;
5897 int __pyx_clineno = 0;
5898 PyObject *__pyx_r = 0;
5899 __Pyx_RefNannyDeclarations
5900 __Pyx_RefNannySetupContext(
"nonlinearADR_pqrstEvaluate (wrapper)", 0);
5902 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_C,&__pyx_n_s_p_pow,&__pyx_n_s_q_pow,&__pyx_n_s_r_pow,&__pyx_n_s_s_pow,&__pyx_n_s_t_pow,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
5903 PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5904 if (unlikely(__pyx_kwds)) {
5906 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5908 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
5910 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
5912 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
5914 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
5916 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
5918 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5920 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5922 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5924 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5926 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5928 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5930 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5932 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5934 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5936 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5938 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5940 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5942 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5944 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5946 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5948 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5950 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5953 default:
goto __pyx_L5_argtuple_error;
5955 kw_args = PyDict_Size(__pyx_kwds);
5958 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
5959 else goto __pyx_L5_argtuple_error;
5962 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
5964 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 1); __PYX_ERR(0, 3135, __pyx_L3_error)
5968 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
5970 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 2); __PYX_ERR(0, 3135, __pyx_L3_error)
5974 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
5976 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 3); __PYX_ERR(0, 3135, __pyx_L3_error)
5980 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p_pow)) != 0)) kw_args--;
5982 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 4); __PYX_ERR(0, 3135, __pyx_L3_error)
5986 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_pow)) != 0)) kw_args--;
5988 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 5); __PYX_ERR(0, 3135, __pyx_L3_error)
5992 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_pow)) != 0)) kw_args--;
5994 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 6); __PYX_ERR(0, 3135, __pyx_L3_error)
5998 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s_pow)) != 0)) kw_args--;
6000 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 7); __PYX_ERR(0, 3135, __pyx_L3_error)
6004 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t_pow)) != 0)) kw_args--;
6006 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 8); __PYX_ERR(0, 3135, __pyx_L3_error)
6010 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
6012 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 9); __PYX_ERR(0, 3135, __pyx_L3_error)
6016 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6018 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 10); __PYX_ERR(0, 3135, __pyx_L3_error)
6022 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6024 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 11); __PYX_ERR(0, 3135, __pyx_L3_error)
6028 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6030 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 12); __PYX_ERR(0, 3135, __pyx_L3_error)
6034 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6036 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 13); __PYX_ERR(0, 3135, __pyx_L3_error)
6040 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6042 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 14); __PYX_ERR(0, 3135, __pyx_L3_error)
6046 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6048 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 15); __PYX_ERR(0, 3135, __pyx_L3_error)
6052 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
6054 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 16); __PYX_ERR(0, 3135, __pyx_L3_error)
6058 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
6060 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 17); __PYX_ERR(0, 3135, __pyx_L3_error)
6064 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
6066 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 18); __PYX_ERR(0, 3135, __pyx_L3_error)
6070 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
6072 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 19); __PYX_ERR(0, 3135, __pyx_L3_error)
6076 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
6078 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 20); __PYX_ERR(0, 3135, __pyx_L3_error)
6082 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
6084 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, 21); __PYX_ERR(0, 3135, __pyx_L3_error)
6087 if (unlikely(kw_args > 0)) {
6088 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"nonlinearADR_pqrstEvaluate") < 0)) __PYX_ERR(0, 3135, __pyx_L3_error)
6090 }
else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
6091 goto __pyx_L5_argtuple_error;
6093 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6094 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6095 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6096 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6097 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6098 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6099 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6100 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6101 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6102 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6103 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6104 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6105 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6106 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
6107 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
6108 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
6109 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
6110 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
6111 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
6112 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
6113 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
6114 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
6116 __pyx_v_M = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_M == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3135, __pyx_L3_error)
6117 __pyx_v_A = ((PyArrayObject *)values[1]);
6118 __pyx_v_B = ((PyArrayObject *)values[2]);
6119 __pyx_v_C = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_C == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3138, __pyx_L3_error)
6120 __pyx_v_p_pow = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_p_pow == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3139, __pyx_L3_error)
6121 __pyx_v_q_pow = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_q_pow == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3140, __pyx_L3_error)
6122 __pyx_v_r_pow = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_r_pow == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3141, __pyx_L3_error)
6123 __pyx_v_s_pow = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_s_pow == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3142, __pyx_L3_error)
6124 __pyx_v_t_pow = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_t_pow == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3143, __pyx_L3_error)
6125 __pyx_v_t = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3144, __pyx_L3_error)
6126 __pyx_v_x = ((PyArrayObject *)values[10]);
6127 __pyx_v_u = ((PyArrayObject *)values[11]);
6128 __pyx_v_m = ((PyArrayObject *)values[12]);
6129 __pyx_v_dm = ((PyArrayObject *)values[13]);
6130 __pyx_v_f = ((PyArrayObject *)values[14]);
6131 __pyx_v_df = ((PyArrayObject *)values[15]);
6132 __pyx_v_a = ((PyArrayObject *)values[16]);
6133 __pyx_v_da = ((PyArrayObject *)values[17]);
6134 __pyx_v_phi = ((PyArrayObject *)values[18]);
6135 __pyx_v_dphi = ((PyArrayObject *)values[19]);
6136 __pyx_v_r = ((PyArrayObject *)values[20]);
6137 __pyx_v_dr = ((PyArrayObject *)values[21]);
6139 goto __pyx_L4_argument_unpacking_done;
6140 __pyx_L5_argtuple_error:;
6141 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstEvaluate", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3135, __pyx_L3_error)
6143 __Pyx_AddTraceback(
"ctransportCoefficients.nonlinearADR_pqrstEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6144 __Pyx_RefNannyFinishContext();
6146 __pyx_L4_argument_unpacking_done:;
6147 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1,
"A", 0))) __PYX_ERR(0, 3136, __pyx_L1_error)
6148 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 3137, __pyx_L1_error)
6149 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3145, __pyx_L1_error)
6150 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3146, __pyx_L1_error)
6151 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3147, __pyx_L1_error)
6152 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3148, __pyx_L1_error)
6153 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3149, __pyx_L1_error)
6154 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3150, __pyx_L1_error)
6155 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3151, __pyx_L1_error)
6156 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3152, __pyx_L1_error)
6157 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3153, __pyx_L1_error)
6158 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3154, __pyx_L1_error)
6159 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3155, __pyx_L1_error)
6160 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3156, __pyx_L1_error)
6161 __pyx_r = __pyx_pf_22ctransportCoefficients_14nonlinearADR_pqrstEvaluate(__pyx_self, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_C, __pyx_v_p_pow, __pyx_v_q_pow, __pyx_v_r_pow, __pyx_v_s_pow, __pyx_v_t_pow, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
6168 __Pyx_RefNannyFinishContext();
6172 static PyObject *__pyx_pf_22ctransportCoefficients_14nonlinearADR_pqrstEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B,
double __pyx_v_C,
double __pyx_v_p_pow,
double __pyx_v_q_pow,
double __pyx_v_r_pow,
double __pyx_v_s_pow,
double __pyx_v_t_pow,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
6173 PyObject *__pyx_r = NULL;
6174 __Pyx_RefNannyDeclarations
6175 PyObject *__pyx_t_1 = NULL;
6176 PyObject *__pyx_t_2 = NULL;
6177 PyObject *__pyx_t_3 = NULL;
6179 int __pyx_lineno = 0;
6180 const char *__pyx_filename = NULL;
6181 int __pyx_clineno = 0;
6182 __Pyx_RefNannySetupContext(
"nonlinearADR_pqrstEvaluate", 0);
6191 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3157, __pyx_L1_error)
6192 __Pyx_GOTREF(__pyx_t_1);
6193 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3157, __pyx_L1_error)
6194 __Pyx_GOTREF(__pyx_t_2);
6195 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3157, __pyx_L1_error)
6196 __Pyx_GOTREF(__pyx_t_3);
6197 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6198 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6199 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3157, __pyx_L1_error)
6200 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6209 nonlinearADR_pqrstEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_M, ((
double *)__pyx_v_A->data), ((
double *)__pyx_v_B->data), __pyx_v_C, __pyx_v_p_pow, __pyx_v_q_pow, __pyx_v_r_pow, __pyx_v_s_pow, __pyx_v_t_pow, __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
6220 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6223 __Pyx_XDECREF(__pyx_t_1);
6224 __Pyx_XDECREF(__pyx_t_2);
6225 __Pyx_XDECREF(__pyx_t_3);
6226 __Pyx_AddTraceback(
"ctransportCoefficients.nonlinearADR_pqrstEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6229 __Pyx_XGIVEREF(__pyx_r);
6230 __Pyx_RefNannyFinishContext();
6243 static PyObject *__pyx_pw_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6244 static PyMethodDef __pyx_mdef_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate = {
"nonlinearADR_pqrstDualEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
6245 static PyObject *__pyx_pw_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6246 int __pyx_v_nPoints;
6249 PyArrayObject *__pyx_v_A = 0;
6250 PyArrayObject *__pyx_v_B = 0;
6263 PyArrayObject *__pyx_v_x = 0;
6264 PyArrayObject *__pyx_v_u = 0;
6265 PyArrayObject *__pyx_v_m = 0;
6266 PyArrayObject *__pyx_v_dm = 0;
6267 PyArrayObject *__pyx_v_f = 0;
6268 PyArrayObject *__pyx_v_df = 0;
6269 PyArrayObject *__pyx_v_a = 0;
6270 PyArrayObject *__pyx_v_da = 0;
6271 PyArrayObject *__pyx_v_phi = 0;
6272 PyArrayObject *__pyx_v_dphi = 0;
6273 PyArrayObject *__pyx_v_r = 0;
6274 PyArrayObject *__pyx_v_dr = 0;
6275 int __pyx_lineno = 0;
6276 const char *__pyx_filename = NULL;
6277 int __pyx_clineno = 0;
6278 PyObject *__pyx_r = 0;
6279 __Pyx_RefNannyDeclarations
6280 __Pyx_RefNannySetupContext(
"nonlinearADR_pqrstDualEvaluate (wrapper)", 0);
6282 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_C,&__pyx_n_s_p1,&__pyx_n_s_q1,&__pyx_n_s_r1,&__pyx_n_s_s1,&__pyx_n_s_t1,&__pyx_n_s_p2,&__pyx_n_s_q2,&__pyx_n_s_r2,&__pyx_n_s_s2,&__pyx_n_s_t2,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
6283 PyObject* values[29] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
6284 if (unlikely(__pyx_kwds)) {
6286 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6288 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
6290 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
6292 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
6294 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
6296 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
6298 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
6300 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
6302 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
6304 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
6306 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
6308 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
6310 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
6312 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
6314 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
6316 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
6318 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
6320 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6322 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6324 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6326 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6328 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6330 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6332 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6334 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6336 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6338 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6340 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6342 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6344 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6347 default:
goto __pyx_L5_argtuple_error;
6349 kw_args = PyDict_Size(__pyx_kwds);
6352 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
6353 else goto __pyx_L5_argtuple_error;
6356 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
6358 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 1); __PYX_ERR(0, 3181, __pyx_L3_error)
6362 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
6364 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 2); __PYX_ERR(0, 3181, __pyx_L3_error)
6368 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
6370 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 3); __PYX_ERR(0, 3181, __pyx_L3_error)
6374 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
6376 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 4); __PYX_ERR(0, 3181, __pyx_L3_error)
6380 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
6382 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 5); __PYX_ERR(0, 3181, __pyx_L3_error)
6386 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1)) != 0)) kw_args--;
6388 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 6); __PYX_ERR(0, 3181, __pyx_L3_error)
6392 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q1)) != 0)) kw_args--;
6394 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 7); __PYX_ERR(0, 3181, __pyx_L3_error)
6398 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r1)) != 0)) kw_args--;
6400 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 8); __PYX_ERR(0, 3181, __pyx_L3_error)
6404 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s1)) != 0)) kw_args--;
6406 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 9); __PYX_ERR(0, 3181, __pyx_L3_error)
6410 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t1)) != 0)) kw_args--;
6412 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 10); __PYX_ERR(0, 3181, __pyx_L3_error)
6416 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p2)) != 0)) kw_args--;
6418 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 11); __PYX_ERR(0, 3181, __pyx_L3_error)
6422 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q2)) != 0)) kw_args--;
6424 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 12); __PYX_ERR(0, 3181, __pyx_L3_error)
6428 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r2)) != 0)) kw_args--;
6430 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 13); __PYX_ERR(0, 3181, __pyx_L3_error)
6434 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s2)) != 0)) kw_args--;
6436 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 14); __PYX_ERR(0, 3181, __pyx_L3_error)
6440 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t2)) != 0)) kw_args--;
6442 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 15); __PYX_ERR(0, 3181, __pyx_L3_error)
6446 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
6448 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 16); __PYX_ERR(0, 3181, __pyx_L3_error)
6452 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6454 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 17); __PYX_ERR(0, 3181, __pyx_L3_error)
6458 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6460 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 18); __PYX_ERR(0, 3181, __pyx_L3_error)
6464 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6466 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 19); __PYX_ERR(0, 3181, __pyx_L3_error)
6470 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6472 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 20); __PYX_ERR(0, 3181, __pyx_L3_error)
6476 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6478 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 21); __PYX_ERR(0, 3181, __pyx_L3_error)
6482 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6484 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 22); __PYX_ERR(0, 3181, __pyx_L3_error)
6488 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
6490 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 23); __PYX_ERR(0, 3181, __pyx_L3_error)
6494 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
6496 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 24); __PYX_ERR(0, 3181, __pyx_L3_error)
6500 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
6502 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 25); __PYX_ERR(0, 3181, __pyx_L3_error)
6506 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
6508 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 26); __PYX_ERR(0, 3181, __pyx_L3_error)
6512 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
6514 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 27); __PYX_ERR(0, 3181, __pyx_L3_error)
6518 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
6520 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, 28); __PYX_ERR(0, 3181, __pyx_L3_error)
6523 if (unlikely(kw_args > 0)) {
6524 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"nonlinearADR_pqrstDualEvaluate") < 0)) __PYX_ERR(0, 3181, __pyx_L3_error)
6526 }
else if (PyTuple_GET_SIZE(__pyx_args) != 29) {
6527 goto __pyx_L5_argtuple_error;
6529 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6530 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6531 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6532 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6533 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6534 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6535 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6536 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6537 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6538 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6539 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6540 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6541 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6542 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
6543 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
6544 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
6545 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
6546 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
6547 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
6548 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
6549 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
6550 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
6551 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
6552 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
6553 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
6554 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
6555 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
6556 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
6557 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
6559 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3181, __pyx_L3_error)
6560 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3182, __pyx_L3_error)
6561 __pyx_v_M = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_M == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3183, __pyx_L3_error)
6562 __pyx_v_A = ((PyArrayObject *)values[3]);
6563 __pyx_v_B = ((PyArrayObject *)values[4]);
6564 __pyx_v_C = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_C == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3186, __pyx_L3_error)
6565 __pyx_v_p1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_p1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3187, __pyx_L3_error)
6566 __pyx_v_q1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_q1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3188, __pyx_L3_error)
6567 __pyx_v_r1 = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_r1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3189, __pyx_L3_error)
6568 __pyx_v_s1 = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_s1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3190, __pyx_L3_error)
6569 __pyx_v_t1 = __pyx_PyFloat_AsDouble(values[10]);
if (unlikely((__pyx_v_t1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3191, __pyx_L3_error)
6570 __pyx_v_p2 = __pyx_PyFloat_AsDouble(values[11]);
if (unlikely((__pyx_v_p2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3192, __pyx_L3_error)
6571 __pyx_v_q2 = __pyx_PyFloat_AsDouble(values[12]);
if (unlikely((__pyx_v_q2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3193, __pyx_L3_error)
6572 __pyx_v_r2 = __pyx_PyFloat_AsDouble(values[13]);
if (unlikely((__pyx_v_r2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3194, __pyx_L3_error)
6573 __pyx_v_s2 = __pyx_PyFloat_AsDouble(values[14]);
if (unlikely((__pyx_v_s2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3195, __pyx_L3_error)
6574 __pyx_v_t2 = __pyx_PyFloat_AsDouble(values[15]);
if (unlikely((__pyx_v_t2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3196, __pyx_L3_error)
6575 __pyx_v_t = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3197, __pyx_L3_error)
6576 __pyx_v_x = ((PyArrayObject *)values[17]);
6577 __pyx_v_u = ((PyArrayObject *)values[18]);
6578 __pyx_v_m = ((PyArrayObject *)values[19]);
6579 __pyx_v_dm = ((PyArrayObject *)values[20]);
6580 __pyx_v_f = ((PyArrayObject *)values[21]);
6581 __pyx_v_df = ((PyArrayObject *)values[22]);
6582 __pyx_v_a = ((PyArrayObject *)values[23]);
6583 __pyx_v_da = ((PyArrayObject *)values[24]);
6584 __pyx_v_phi = ((PyArrayObject *)values[25]);
6585 __pyx_v_dphi = ((PyArrayObject *)values[26]);
6586 __pyx_v_r = ((PyArrayObject *)values[27]);
6587 __pyx_v_dr = ((PyArrayObject *)values[28]);
6589 goto __pyx_L4_argument_unpacking_done;
6590 __pyx_L5_argtuple_error:;
6591 __Pyx_RaiseArgtupleInvalid(
"nonlinearADR_pqrstDualEvaluate", 1, 29, 29, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3181, __pyx_L3_error)
6593 __Pyx_AddTraceback(
"ctransportCoefficients.nonlinearADR_pqrstDualEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6594 __Pyx_RefNannyFinishContext();
6596 __pyx_L4_argument_unpacking_done:;
6597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1,
"A", 0))) __PYX_ERR(0, 3184, __pyx_L1_error)
6598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 3185, __pyx_L1_error)
6599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3198, __pyx_L1_error)
6600 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3199, __pyx_L1_error)
6601 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3200, __pyx_L1_error)
6602 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3201, __pyx_L1_error)
6603 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3202, __pyx_L1_error)
6604 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3203, __pyx_L1_error)
6605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3204, __pyx_L1_error)
6606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3205, __pyx_L1_error)
6607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3206, __pyx_L1_error)
6608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3207, __pyx_L1_error)
6609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3208, __pyx_L1_error)
6610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3209, __pyx_L1_error)
6611 __pyx_r = __pyx_pf_22ctransportCoefficients_16nonlinearADR_pqrstDualEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_C, __pyx_v_p1, __pyx_v_q1, __pyx_v_r1, __pyx_v_s1, __pyx_v_t1, __pyx_v_p2, __pyx_v_q2, __pyx_v_r2, __pyx_v_s2, __pyx_v_t2, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
6618 __Pyx_RefNannyFinishContext();
6622 static PyObject *__pyx_pf_22ctransportCoefficients_16nonlinearADR_pqrstDualEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B,
double __pyx_v_C,
double __pyx_v_p1,
double __pyx_v_q1,
double __pyx_v_r1,
double __pyx_v_s1,
double __pyx_v_t1,
double __pyx_v_p2,
double __pyx_v_q2,
double __pyx_v_r2,
double __pyx_v_s2,
double __pyx_v_t2,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
6623 PyObject *__pyx_r = NULL;
6624 __Pyx_RefNannyDeclarations
6625 __Pyx_RefNannySetupContext(
"nonlinearADR_pqrstDualEvaluate", 0);
6634 nonlinearADR_pqrstDualEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_M, ((
double *)__pyx_v_A->data), ((
double *)__pyx_v_B->data), __pyx_v_C, __pyx_v_p1, __pyx_v_q1, __pyx_v_r1, __pyx_v_s1, __pyx_v_t1, __pyx_v_p2, __pyx_v_q2, __pyx_v_r2, __pyx_v_s2, __pyx_v_t2, __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
6645 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6646 __Pyx_XGIVEREF(__pyx_r);
6647 __Pyx_RefNannyFinishContext();
6660 static PyObject *__pyx_pw_22ctransportCoefficients_19unitSquareRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6661 static PyMethodDef __pyx_mdef_22ctransportCoefficients_19unitSquareRotationEvaluate = {
"unitSquareRotationEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_19unitSquareRotationEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
6662 static PyObject *__pyx_pw_22ctransportCoefficients_19unitSquareRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6663 PyArrayObject *__pyx_v_x = 0;
6664 PyArrayObject *__pyx_v_u = 0;
6665 PyArrayObject *__pyx_v_m = 0;
6666 PyArrayObject *__pyx_v_dm = 0;
6667 PyArrayObject *__pyx_v_f = 0;
6668 PyArrayObject *__pyx_v_df = 0;
6669 int __pyx_lineno = 0;
6670 const char *__pyx_filename = NULL;
6671 int __pyx_clineno = 0;
6672 PyObject *__pyx_r = 0;
6673 __Pyx_RefNannyDeclarations
6674 __Pyx_RefNannySetupContext(
"unitSquareRotationEvaluate (wrapper)", 0);
6676 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
6677 PyObject* values[6] = {0,0,0,0,0,0};
6678 if (unlikely(__pyx_kwds)) {
6680 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6682 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6684 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6686 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6688 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6690 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6692 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6695 default:
goto __pyx_L5_argtuple_error;
6697 kw_args = PyDict_Size(__pyx_kwds);
6700 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6701 else goto __pyx_L5_argtuple_error;
6704 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6706 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationEvaluate", 1, 6, 6, 1); __PYX_ERR(0, 3239, __pyx_L3_error)
6710 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6712 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationEvaluate", 1, 6, 6, 2); __PYX_ERR(0, 3239, __pyx_L3_error)
6716 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6718 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationEvaluate", 1, 6, 6, 3); __PYX_ERR(0, 3239, __pyx_L3_error)
6722 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6724 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationEvaluate", 1, 6, 6, 4); __PYX_ERR(0, 3239, __pyx_L3_error)
6728 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6730 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationEvaluate", 1, 6, 6, 5); __PYX_ERR(0, 3239, __pyx_L3_error)
6733 if (unlikely(kw_args > 0)) {
6734 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"unitSquareRotationEvaluate") < 0)) __PYX_ERR(0, 3239, __pyx_L3_error)
6736 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
6737 goto __pyx_L5_argtuple_error;
6739 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6740 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6741 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6742 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6743 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6744 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6746 __pyx_v_x = ((PyArrayObject *)values[0]);
6747 __pyx_v_u = ((PyArrayObject *)values[1]);
6748 __pyx_v_m = ((PyArrayObject *)values[2]);
6749 __pyx_v_dm = ((PyArrayObject *)values[3]);
6750 __pyx_v_f = ((PyArrayObject *)values[4]);
6751 __pyx_v_df = ((PyArrayObject *)values[5]);
6753 goto __pyx_L4_argument_unpacking_done;
6754 __pyx_L5_argtuple_error:;
6755 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationEvaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3239, __pyx_L3_error)
6757 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6758 __Pyx_RefNannyFinishContext();
6760 __pyx_L4_argument_unpacking_done:;
6761 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3239, __pyx_L1_error)
6762 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3240, __pyx_L1_error)
6763 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3241, __pyx_L1_error)
6764 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3242, __pyx_L1_error)
6765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3243, __pyx_L1_error)
6766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3244, __pyx_L1_error)
6767 __pyx_r = __pyx_pf_22ctransportCoefficients_18unitSquareRotationEvaluate(__pyx_self, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
6774 __Pyx_RefNannyFinishContext();
6778 static PyObject *__pyx_pf_22ctransportCoefficients_18unitSquareRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
6779 PyObject *__pyx_r = NULL;
6780 __Pyx_RefNannyDeclarations
6781 PyObject *__pyx_t_1 = NULL;
6782 PyObject *__pyx_t_2 = NULL;
6783 PyObject *__pyx_t_3 = NULL;
6785 int __pyx_lineno = 0;
6786 const char *__pyx_filename = NULL;
6787 int __pyx_clineno = 0;
6788 __Pyx_RefNannySetupContext(
"unitSquareRotationEvaluate", 0);
6797 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3245, __pyx_L1_error)
6798 __Pyx_GOTREF(__pyx_t_1);
6799 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3245, __pyx_L1_error)
6800 __Pyx_GOTREF(__pyx_t_2);
6801 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3245, __pyx_L1_error)
6802 __Pyx_GOTREF(__pyx_t_3);
6803 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6804 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6805 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3245, __pyx_L1_error)
6806 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6815 unitSquareRotationEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data));
6826 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6829 __Pyx_XDECREF(__pyx_t_1);
6830 __Pyx_XDECREF(__pyx_t_2);
6831 __Pyx_XDECREF(__pyx_t_3);
6832 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6835 __Pyx_XGIVEREF(__pyx_r);
6836 __Pyx_RefNannyFinishContext();
6849 static PyObject *__pyx_pw_22ctransportCoefficients_21unitCubeRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6850 static PyMethodDef __pyx_mdef_22ctransportCoefficients_21unitCubeRotationEvaluate = {
"unitCubeRotationEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_21unitCubeRotationEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
6851 static PyObject *__pyx_pw_22ctransportCoefficients_21unitCubeRotationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6852 PyArrayObject *__pyx_v_x = 0;
6853 PyArrayObject *__pyx_v_u = 0;
6854 PyArrayObject *__pyx_v_m = 0;
6855 PyArrayObject *__pyx_v_dm = 0;
6856 PyArrayObject *__pyx_v_f = 0;
6857 PyArrayObject *__pyx_v_df = 0;
6858 int __pyx_lineno = 0;
6859 const char *__pyx_filename = NULL;
6860 int __pyx_clineno = 0;
6861 PyObject *__pyx_r = 0;
6862 __Pyx_RefNannyDeclarations
6863 __Pyx_RefNannySetupContext(
"unitCubeRotationEvaluate (wrapper)", 0);
6865 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
6866 PyObject* values[6] = {0,0,0,0,0,0};
6867 if (unlikely(__pyx_kwds)) {
6869 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6871 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6873 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6875 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6877 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6879 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6881 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6884 default:
goto __pyx_L5_argtuple_error;
6886 kw_args = PyDict_Size(__pyx_kwds);
6889 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
6890 else goto __pyx_L5_argtuple_error;
6893 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6895 __Pyx_RaiseArgtupleInvalid(
"unitCubeRotationEvaluate", 1, 6, 6, 1); __PYX_ERR(0, 3253, __pyx_L3_error)
6899 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
6901 __Pyx_RaiseArgtupleInvalid(
"unitCubeRotationEvaluate", 1, 6, 6, 2); __PYX_ERR(0, 3253, __pyx_L3_error)
6905 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
6907 __Pyx_RaiseArgtupleInvalid(
"unitCubeRotationEvaluate", 1, 6, 6, 3); __PYX_ERR(0, 3253, __pyx_L3_error)
6911 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6913 __Pyx_RaiseArgtupleInvalid(
"unitCubeRotationEvaluate", 1, 6, 6, 4); __PYX_ERR(0, 3253, __pyx_L3_error)
6917 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6919 __Pyx_RaiseArgtupleInvalid(
"unitCubeRotationEvaluate", 1, 6, 6, 5); __PYX_ERR(0, 3253, __pyx_L3_error)
6922 if (unlikely(kw_args > 0)) {
6923 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"unitCubeRotationEvaluate") < 0)) __PYX_ERR(0, 3253, __pyx_L3_error)
6925 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
6926 goto __pyx_L5_argtuple_error;
6928 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6929 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6930 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6931 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6932 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6933 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6935 __pyx_v_x = ((PyArrayObject *)values[0]);
6936 __pyx_v_u = ((PyArrayObject *)values[1]);
6937 __pyx_v_m = ((PyArrayObject *)values[2]);
6938 __pyx_v_dm = ((PyArrayObject *)values[3]);
6939 __pyx_v_f = ((PyArrayObject *)values[4]);
6940 __pyx_v_df = ((PyArrayObject *)values[5]);
6942 goto __pyx_L4_argument_unpacking_done;
6943 __pyx_L5_argtuple_error:;
6944 __Pyx_RaiseArgtupleInvalid(
"unitCubeRotationEvaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3253, __pyx_L3_error)
6946 __Pyx_AddTraceback(
"ctransportCoefficients.unitCubeRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
6947 __Pyx_RefNannyFinishContext();
6949 __pyx_L4_argument_unpacking_done:;
6950 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3253, __pyx_L1_error)
6951 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3254, __pyx_L1_error)
6952 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3255, __pyx_L1_error)
6953 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3256, __pyx_L1_error)
6954 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3257, __pyx_L1_error)
6955 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3258, __pyx_L1_error)
6956 __pyx_r = __pyx_pf_22ctransportCoefficients_20unitCubeRotationEvaluate(__pyx_self, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
6963 __Pyx_RefNannyFinishContext();
6967 static PyObject *__pyx_pf_22ctransportCoefficients_20unitCubeRotationEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
6968 PyObject *__pyx_r = NULL;
6969 __Pyx_RefNannyDeclarations
6970 PyObject *__pyx_t_1 = NULL;
6971 PyObject *__pyx_t_2 = NULL;
6972 PyObject *__pyx_t_3 = NULL;
6974 int __pyx_lineno = 0;
6975 const char *__pyx_filename = NULL;
6976 int __pyx_clineno = 0;
6977 __Pyx_RefNannySetupContext(
"unitCubeRotationEvaluate", 0);
6986 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3259, __pyx_L1_error)
6987 __Pyx_GOTREF(__pyx_t_1);
6988 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3259, __pyx_L1_error)
6989 __Pyx_GOTREF(__pyx_t_2);
6990 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3259, __pyx_L1_error)
6991 __Pyx_GOTREF(__pyx_t_3);
6992 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6993 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6994 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3259, __pyx_L1_error)
6995 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7004 unitCubeRotationEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data));
7015 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7018 __Pyx_XDECREF(__pyx_t_1);
7019 __Pyx_XDECREF(__pyx_t_2);
7020 __Pyx_XDECREF(__pyx_t_3);
7021 __Pyx_AddTraceback(
"ctransportCoefficients.unitCubeRotationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7024 __Pyx_XGIVEREF(__pyx_r);
7025 __Pyx_RefNannyFinishContext();
7038 static PyObject *__pyx_pw_22ctransportCoefficients_23rotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7039 static PyMethodDef __pyx_mdef_22ctransportCoefficients_23rotatingPulseVelEvaluate = {
"rotatingPulseVelEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_23rotatingPulseVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7040 static PyObject *__pyx_pw_22ctransportCoefficients_23rotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7041 int __pyx_v_nPoints;
7043 double __pyx_v_self_a;
7044 PyArrayObject *__pyx_v_x = 0;
7045 PyArrayObject *__pyx_v_u = 0;
7046 PyArrayObject *__pyx_v_m = 0;
7047 PyArrayObject *__pyx_v_dm = 0;
7048 PyArrayObject *__pyx_v_f = 0;
7049 PyArrayObject *__pyx_v_df = 0;
7050 PyArrayObject *__pyx_v_a = 0;
7051 PyArrayObject *__pyx_v_da = 0;
7052 PyArrayObject *__pyx_v_phi = 0;
7053 PyArrayObject *__pyx_v_dphi = 0;
7054 int __pyx_lineno = 0;
7055 const char *__pyx_filename = NULL;
7056 int __pyx_clineno = 0;
7057 PyObject *__pyx_r = 0;
7058 __Pyx_RefNannyDeclarations
7059 __Pyx_RefNannySetupContext(
"rotatingPulseVelEvaluate (wrapper)", 0);
7061 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_self_a,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7062 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
7063 if (unlikely(__pyx_kwds)) {
7065 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7067 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7069 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7071 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7073 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7075 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7077 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7079 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7081 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7083 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7085 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7087 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7089 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7091 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7094 default:
goto __pyx_L5_argtuple_error;
7096 kw_args = PyDict_Size(__pyx_kwds);
7099 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
7100 else goto __pyx_L5_argtuple_error;
7103 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
7105 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 1); __PYX_ERR(0, 3267, __pyx_L3_error)
7109 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7111 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 2); __PYX_ERR(0, 3267, __pyx_L3_error)
7115 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7117 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 3); __PYX_ERR(0, 3267, __pyx_L3_error)
7121 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7123 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 4); __PYX_ERR(0, 3267, __pyx_L3_error)
7127 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7129 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 5); __PYX_ERR(0, 3267, __pyx_L3_error)
7133 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7135 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 6); __PYX_ERR(0, 3267, __pyx_L3_error)
7139 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7141 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 7); __PYX_ERR(0, 3267, __pyx_L3_error)
7145 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7147 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 8); __PYX_ERR(0, 3267, __pyx_L3_error)
7151 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7153 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 9); __PYX_ERR(0, 3267, __pyx_L3_error)
7157 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
7159 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 10); __PYX_ERR(0, 3267, __pyx_L3_error)
7163 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7165 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 11); __PYX_ERR(0, 3267, __pyx_L3_error)
7169 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7171 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, 12); __PYX_ERR(0, 3267, __pyx_L3_error)
7174 if (unlikely(kw_args > 0)) {
7175 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"rotatingPulseVelEvaluate") < 0)) __PYX_ERR(0, 3267, __pyx_L3_error)
7177 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
7178 goto __pyx_L5_argtuple_error;
7180 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7181 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7182 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7183 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7184 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7185 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7186 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7187 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7188 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7189 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7190 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7191 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7192 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7194 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3267, __pyx_L3_error)
7195 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3268, __pyx_L3_error)
7196 __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_self_a == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3269, __pyx_L3_error)
7197 __pyx_v_x = ((PyArrayObject *)values[3]);
7198 __pyx_v_u = ((PyArrayObject *)values[4]);
7199 __pyx_v_m = ((PyArrayObject *)values[5]);
7200 __pyx_v_dm = ((PyArrayObject *)values[6]);
7201 __pyx_v_f = ((PyArrayObject *)values[7]);
7202 __pyx_v_df = ((PyArrayObject *)values[8]);
7203 __pyx_v_a = ((PyArrayObject *)values[9]);
7204 __pyx_v_da = ((PyArrayObject *)values[10]);
7205 __pyx_v_phi = ((PyArrayObject *)values[11]);
7206 __pyx_v_dphi = ((PyArrayObject *)values[12]);
7208 goto __pyx_L4_argument_unpacking_done;
7209 __pyx_L5_argtuple_error:;
7210 __Pyx_RaiseArgtupleInvalid(
"rotatingPulseVelEvaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3267, __pyx_L3_error)
7212 __Pyx_AddTraceback(
"ctransportCoefficients.rotatingPulseVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7213 __Pyx_RefNannyFinishContext();
7215 __pyx_L4_argument_unpacking_done:;
7216 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3270, __pyx_L1_error)
7217 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3271, __pyx_L1_error)
7218 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3272, __pyx_L1_error)
7219 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3273, __pyx_L1_error)
7220 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3274, __pyx_L1_error)
7221 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3275, __pyx_L1_error)
7222 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3276, __pyx_L1_error)
7223 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3277, __pyx_L1_error)
7224 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3278, __pyx_L1_error)
7225 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3279, __pyx_L1_error)
7226 __pyx_r = __pyx_pf_22ctransportCoefficients_22rotatingPulseVelEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
7233 __Pyx_RefNannyFinishContext();
7237 static PyObject *__pyx_pf_22ctransportCoefficients_22rotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7238 PyObject *__pyx_r = NULL;
7239 __Pyx_RefNannyDeclarations
7240 __Pyx_RefNannySetupContext(
"rotatingPulseVelEvaluate", 0);
7249 rotatingPulseVelEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
7260 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7261 __Pyx_XGIVEREF(__pyx_r);
7262 __Pyx_RefNannyFinishContext();
7275 static PyObject *__pyx_pw_22ctransportCoefficients_25disRotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7276 static PyMethodDef __pyx_mdef_22ctransportCoefficients_25disRotatingPulseVelEvaluate = {
"disRotatingPulseVelEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_25disRotatingPulseVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7277 static PyObject *__pyx_pw_22ctransportCoefficients_25disRotatingPulseVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7278 int __pyx_v_nPoints;
7280 double __pyx_v_self_a;
7281 PyArrayObject *__pyx_v_x = 0;
7282 PyArrayObject *__pyx_v_u = 0;
7283 PyArrayObject *__pyx_v_m = 0;
7284 PyArrayObject *__pyx_v_dm = 0;
7285 PyArrayObject *__pyx_v_f = 0;
7286 PyArrayObject *__pyx_v_df = 0;
7287 PyArrayObject *__pyx_v_a = 0;
7288 PyArrayObject *__pyx_v_da = 0;
7289 PyArrayObject *__pyx_v_phi = 0;
7290 PyArrayObject *__pyx_v_dphi = 0;
7291 int __pyx_lineno = 0;
7292 const char *__pyx_filename = NULL;
7293 int __pyx_clineno = 0;
7294 PyObject *__pyx_r = 0;
7295 __Pyx_RefNannyDeclarations
7296 __Pyx_RefNannySetupContext(
"disRotatingPulseVelEvaluate (wrapper)", 0);
7298 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_self_a,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7299 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
7300 if (unlikely(__pyx_kwds)) {
7302 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7304 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7306 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7308 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7310 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7312 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7314 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7316 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7318 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7320 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7322 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7324 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7326 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7328 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7331 default:
goto __pyx_L5_argtuple_error;
7333 kw_args = PyDict_Size(__pyx_kwds);
7336 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
7337 else goto __pyx_L5_argtuple_error;
7340 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
7342 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 1); __PYX_ERR(0, 3293, __pyx_L3_error)
7346 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7348 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 2); __PYX_ERR(0, 3293, __pyx_L3_error)
7352 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7354 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 3); __PYX_ERR(0, 3293, __pyx_L3_error)
7358 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7360 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 4); __PYX_ERR(0, 3293, __pyx_L3_error)
7364 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7366 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 5); __PYX_ERR(0, 3293, __pyx_L3_error)
7370 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7372 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 6); __PYX_ERR(0, 3293, __pyx_L3_error)
7376 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7378 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 7); __PYX_ERR(0, 3293, __pyx_L3_error)
7382 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7384 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 8); __PYX_ERR(0, 3293, __pyx_L3_error)
7388 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7390 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 9); __PYX_ERR(0, 3293, __pyx_L3_error)
7394 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
7396 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 10); __PYX_ERR(0, 3293, __pyx_L3_error)
7400 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7402 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 11); __PYX_ERR(0, 3293, __pyx_L3_error)
7406 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7408 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, 12); __PYX_ERR(0, 3293, __pyx_L3_error)
7411 if (unlikely(kw_args > 0)) {
7412 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"disRotatingPulseVelEvaluate") < 0)) __PYX_ERR(0, 3293, __pyx_L3_error)
7414 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
7415 goto __pyx_L5_argtuple_error;
7417 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7418 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7419 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7420 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7421 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7422 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7423 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7424 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7425 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7426 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7427 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7428 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7429 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7431 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3293, __pyx_L3_error)
7432 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3294, __pyx_L3_error)
7433 __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_self_a == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3295, __pyx_L3_error)
7434 __pyx_v_x = ((PyArrayObject *)values[3]);
7435 __pyx_v_u = ((PyArrayObject *)values[4]);
7436 __pyx_v_m = ((PyArrayObject *)values[5]);
7437 __pyx_v_dm = ((PyArrayObject *)values[6]);
7438 __pyx_v_f = ((PyArrayObject *)values[7]);
7439 __pyx_v_df = ((PyArrayObject *)values[8]);
7440 __pyx_v_a = ((PyArrayObject *)values[9]);
7441 __pyx_v_da = ((PyArrayObject *)values[10]);
7442 __pyx_v_phi = ((PyArrayObject *)values[11]);
7443 __pyx_v_dphi = ((PyArrayObject *)values[12]);
7445 goto __pyx_L4_argument_unpacking_done;
7446 __pyx_L5_argtuple_error:;
7447 __Pyx_RaiseArgtupleInvalid(
"disRotatingPulseVelEvaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3293, __pyx_L3_error)
7449 __Pyx_AddTraceback(
"ctransportCoefficients.disRotatingPulseVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7450 __Pyx_RefNannyFinishContext();
7452 __pyx_L4_argument_unpacking_done:;
7453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3296, __pyx_L1_error)
7454 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3297, __pyx_L1_error)
7455 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3298, __pyx_L1_error)
7456 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3299, __pyx_L1_error)
7457 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3300, __pyx_L1_error)
7458 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3301, __pyx_L1_error)
7459 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3302, __pyx_L1_error)
7460 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3303, __pyx_L1_error)
7461 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3304, __pyx_L1_error)
7462 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3305, __pyx_L1_error)
7463 __pyx_r = __pyx_pf_22ctransportCoefficients_24disRotatingPulseVelEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
7470 __Pyx_RefNannyFinishContext();
7474 static PyObject *__pyx_pf_22ctransportCoefficients_24disRotatingPulseVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7475 PyObject *__pyx_r = NULL;
7476 __Pyx_RefNannyDeclarations
7477 __Pyx_RefNannySetupContext(
"disRotatingPulseVelEvaluate", 0);
7486 disRotatingPulseVelEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
7497 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7498 __Pyx_XGIVEREF(__pyx_r);
7499 __Pyx_RefNannyFinishContext();
7512 static PyObject *__pyx_pw_22ctransportCoefficients_27disVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7513 static PyMethodDef __pyx_mdef_22ctransportCoefficients_27disVelEvaluate = {
"disVelEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_27disVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7514 static PyObject *__pyx_pw_22ctransportCoefficients_27disVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7515 int __pyx_v_nPoints;
7517 double __pyx_v_self_a;
7518 PyArrayObject *__pyx_v_x = 0;
7519 PyArrayObject *__pyx_v_u = 0;
7520 PyArrayObject *__pyx_v_m = 0;
7521 PyArrayObject *__pyx_v_dm = 0;
7522 PyArrayObject *__pyx_v_f = 0;
7523 PyArrayObject *__pyx_v_df = 0;
7524 PyArrayObject *__pyx_v_a = 0;
7525 PyArrayObject *__pyx_v_da = 0;
7526 PyArrayObject *__pyx_v_phi = 0;
7527 PyArrayObject *__pyx_v_dphi = 0;
7528 int __pyx_lineno = 0;
7529 const char *__pyx_filename = NULL;
7530 int __pyx_clineno = 0;
7531 PyObject *__pyx_r = 0;
7532 __Pyx_RefNannyDeclarations
7533 __Pyx_RefNannySetupContext(
"disVelEvaluate (wrapper)", 0);
7535 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_self_a,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7536 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
7537 if (unlikely(__pyx_kwds)) {
7539 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7541 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7543 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7545 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7547 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7549 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7551 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7553 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7555 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7557 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7559 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7561 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7563 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7565 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7568 default:
goto __pyx_L5_argtuple_error;
7570 kw_args = PyDict_Size(__pyx_kwds);
7573 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
7574 else goto __pyx_L5_argtuple_error;
7577 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
7579 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 1); __PYX_ERR(0, 3319, __pyx_L3_error)
7583 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7585 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 2); __PYX_ERR(0, 3319, __pyx_L3_error)
7589 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7591 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 3); __PYX_ERR(0, 3319, __pyx_L3_error)
7595 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7597 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 4); __PYX_ERR(0, 3319, __pyx_L3_error)
7601 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7603 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 5); __PYX_ERR(0, 3319, __pyx_L3_error)
7607 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7609 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 6); __PYX_ERR(0, 3319, __pyx_L3_error)
7613 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7615 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 7); __PYX_ERR(0, 3319, __pyx_L3_error)
7619 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7621 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 8); __PYX_ERR(0, 3319, __pyx_L3_error)
7625 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7627 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 9); __PYX_ERR(0, 3319, __pyx_L3_error)
7631 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
7633 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 10); __PYX_ERR(0, 3319, __pyx_L3_error)
7637 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7639 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 11); __PYX_ERR(0, 3319, __pyx_L3_error)
7643 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7645 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, 12); __PYX_ERR(0, 3319, __pyx_L3_error)
7648 if (unlikely(kw_args > 0)) {
7649 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"disVelEvaluate") < 0)) __PYX_ERR(0, 3319, __pyx_L3_error)
7651 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
7652 goto __pyx_L5_argtuple_error;
7654 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7655 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7656 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7657 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7658 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7659 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7660 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7661 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7662 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7663 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7664 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7665 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7666 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7668 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3319, __pyx_L3_error)
7669 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3320, __pyx_L3_error)
7670 __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_self_a == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3321, __pyx_L3_error)
7671 __pyx_v_x = ((PyArrayObject *)values[3]);
7672 __pyx_v_u = ((PyArrayObject *)values[4]);
7673 __pyx_v_m = ((PyArrayObject *)values[5]);
7674 __pyx_v_dm = ((PyArrayObject *)values[6]);
7675 __pyx_v_f = ((PyArrayObject *)values[7]);
7676 __pyx_v_df = ((PyArrayObject *)values[8]);
7677 __pyx_v_a = ((PyArrayObject *)values[9]);
7678 __pyx_v_da = ((PyArrayObject *)values[10]);
7679 __pyx_v_phi = ((PyArrayObject *)values[11]);
7680 __pyx_v_dphi = ((PyArrayObject *)values[12]);
7682 goto __pyx_L4_argument_unpacking_done;
7683 __pyx_L5_argtuple_error:;
7684 __Pyx_RaiseArgtupleInvalid(
"disVelEvaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3319, __pyx_L3_error)
7686 __Pyx_AddTraceback(
"ctransportCoefficients.disVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7687 __Pyx_RefNannyFinishContext();
7689 __pyx_L4_argument_unpacking_done:;
7690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3322, __pyx_L1_error)
7691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3323, __pyx_L1_error)
7692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3324, __pyx_L1_error)
7693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3325, __pyx_L1_error)
7694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3326, __pyx_L1_error)
7695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3327, __pyx_L1_error)
7696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3328, __pyx_L1_error)
7697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3329, __pyx_L1_error)
7698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3330, __pyx_L1_error)
7699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3331, __pyx_L1_error)
7700 __pyx_r = __pyx_pf_22ctransportCoefficients_26disVelEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
7707 __Pyx_RefNannyFinishContext();
7711 static PyObject *__pyx_pf_22ctransportCoefficients_26disVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_self_a, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7712 PyObject *__pyx_r = NULL;
7713 __Pyx_RefNannyDeclarations
7714 __Pyx_RefNannySetupContext(
"disVelEvaluate", 0);
7723 disVelEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_self_a, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
7734 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7735 __Pyx_XGIVEREF(__pyx_r);
7736 __Pyx_RefNannyFinishContext();
7749 static PyObject *__pyx_pw_22ctransportCoefficients_29burgersDiagonalVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7750 static PyMethodDef __pyx_mdef_22ctransportCoefficients_29burgersDiagonalVelEvaluate = {
"burgersDiagonalVelEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_29burgersDiagonalVelEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7751 static PyObject *__pyx_pw_22ctransportCoefficients_29burgersDiagonalVelEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7752 double __pyx_v_self_a;
7753 PyArrayObject *__pyx_v_self_v = 0;
7754 PyArrayObject *__pyx_v_u = 0;
7755 PyArrayObject *__pyx_v_m = 0;
7756 PyArrayObject *__pyx_v_dm = 0;
7757 PyArrayObject *__pyx_v_f = 0;
7758 PyArrayObject *__pyx_v_df = 0;
7759 PyArrayObject *__pyx_v_a = 0;
7760 PyArrayObject *__pyx_v_phi = 0;
7761 PyArrayObject *__pyx_v_dphi = 0;
7762 int __pyx_lineno = 0;
7763 const char *__pyx_filename = NULL;
7764 int __pyx_clineno = 0;
7765 PyObject *__pyx_r = 0;
7766 __Pyx_RefNannyDeclarations
7767 __Pyx_RefNannySetupContext(
"burgersDiagonalVelEvaluate (wrapper)", 0);
7769 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self_a,&__pyx_n_s_self_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7770 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
7771 if (unlikely(__pyx_kwds)) {
7773 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7775 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7777 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7779 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7781 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7783 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7785 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7787 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7789 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7791 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7793 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7796 default:
goto __pyx_L5_argtuple_error;
7798 kw_args = PyDict_Size(__pyx_kwds);
7801 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
7802 else goto __pyx_L5_argtuple_error;
7805 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_v)) != 0)) kw_args--;
7807 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 3345, __pyx_L3_error)
7811 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
7813 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 3345, __pyx_L3_error)
7817 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
7819 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 3345, __pyx_L3_error)
7823 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
7825 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 3345, __pyx_L3_error)
7829 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
7831 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 3345, __pyx_L3_error)
7835 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
7837 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 3345, __pyx_L3_error)
7841 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
7843 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 3345, __pyx_L3_error)
7847 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
7849 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 3345, __pyx_L3_error)
7853 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
7855 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 3345, __pyx_L3_error)
7858 if (unlikely(kw_args > 0)) {
7859 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"burgersDiagonalVelEvaluate") < 0)) __PYX_ERR(0, 3345, __pyx_L3_error)
7861 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
7862 goto __pyx_L5_argtuple_error;
7864 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7865 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7866 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7867 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7868 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7869 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7870 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7871 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7872 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7873 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7875 __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_self_a == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3345, __pyx_L3_error)
7876 __pyx_v_self_v = ((PyArrayObject *)values[1]);
7877 __pyx_v_u = ((PyArrayObject *)values[2]);
7878 __pyx_v_m = ((PyArrayObject *)values[3]);
7879 __pyx_v_dm = ((PyArrayObject *)values[4]);
7880 __pyx_v_f = ((PyArrayObject *)values[5]);
7881 __pyx_v_df = ((PyArrayObject *)values[6]);
7882 __pyx_v_a = ((PyArrayObject *)values[7]);
7883 __pyx_v_phi = ((PyArrayObject *)values[8]);
7884 __pyx_v_dphi = ((PyArrayObject *)values[9]);
7886 goto __pyx_L4_argument_unpacking_done;
7887 __pyx_L5_argtuple_error:;
7888 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3345, __pyx_L3_error)
7890 __Pyx_AddTraceback(
"ctransportCoefficients.burgersDiagonalVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7891 __Pyx_RefNannyFinishContext();
7893 __pyx_L4_argument_unpacking_done:;
7894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self_v), __pyx_ptype_5numpy_ndarray, 1,
"self_v", 0))) __PYX_ERR(0, 3346, __pyx_L1_error)
7895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3347, __pyx_L1_error)
7896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3348, __pyx_L1_error)
7897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3349, __pyx_L1_error)
7898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3350, __pyx_L1_error)
7899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3351, __pyx_L1_error)
7900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3352, __pyx_L1_error)
7901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3353, __pyx_L1_error)
7902 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3354, __pyx_L1_error)
7903 __pyx_r = __pyx_pf_22ctransportCoefficients_28burgersDiagonalVelEvaluate(__pyx_self, __pyx_v_self_a, __pyx_v_self_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_phi, __pyx_v_dphi);
7910 __Pyx_RefNannyFinishContext();
7914 static PyObject *__pyx_pf_22ctransportCoefficients_28burgersDiagonalVelEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
7915 PyObject *__pyx_r = NULL;
7916 __Pyx_RefNannyDeclarations
7917 PyObject *__pyx_t_1 = NULL;
7919 int __pyx_lineno = 0;
7920 const char *__pyx_filename = NULL;
7921 int __pyx_clineno = 0;
7922 __Pyx_RefNannySetupContext(
"burgersDiagonalVelEvaluate", 0);
7931 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3355, __pyx_L1_error)
7932 __Pyx_GOTREF(__pyx_t_1);
7933 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3355, __pyx_L1_error)
7934 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7943 burgersDiagonalVelEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_self_a, ((
double *)__pyx_v_self_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
7954 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7957 __Pyx_XDECREF(__pyx_t_1);
7958 __Pyx_AddTraceback(
"ctransportCoefficients.burgersDiagonalVelEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
7961 __Pyx_XGIVEREF(__pyx_r);
7962 __Pyx_RefNannyFinishContext();
7975 static PyObject *__pyx_pw_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7976 static PyMethodDef __pyx_mdef_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate = {
"burgersDiagonalVelHJEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
7977 static PyObject *__pyx_pw_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7978 double __pyx_v_self_a;
7979 PyArrayObject *__pyx_v_self_v = 0;
7980 PyArrayObject *__pyx_v_u = 0;
7981 PyArrayObject *__pyx_v_grad_u = 0;
7982 PyArrayObject *__pyx_v_m = 0;
7983 PyArrayObject *__pyx_v_dm = 0;
7984 PyArrayObject *__pyx_v_H = 0;
7985 PyArrayObject *__pyx_v_dH = 0;
7986 PyArrayObject *__pyx_v_a = 0;
7987 PyArrayObject *__pyx_v_phi = 0;
7988 PyArrayObject *__pyx_v_dphi = 0;
7989 int __pyx_lineno = 0;
7990 const char *__pyx_filename = NULL;
7991 int __pyx_clineno = 0;
7992 PyObject *__pyx_r = 0;
7993 __Pyx_RefNannyDeclarations
7994 __Pyx_RefNannySetupContext(
"burgersDiagonalVelHJEvaluate (wrapper)", 0);
7996 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self_a,&__pyx_n_s_self_v,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_a,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
7997 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
7998 if (unlikely(__pyx_kwds)) {
8000 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8002 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8004 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8006 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8008 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8010 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8012 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8014 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8016 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8018 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8020 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8022 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8025 default:
goto __pyx_L5_argtuple_error;
8027 kw_args = PyDict_Size(__pyx_kwds);
8030 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_a)) != 0)) kw_args--;
8031 else goto __pyx_L5_argtuple_error;
8034 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self_v)) != 0)) kw_args--;
8036 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 3367, __pyx_L3_error)
8040 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
8042 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 3367, __pyx_L3_error)
8046 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
8048 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 3367, __pyx_L3_error)
8052 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
8054 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 3367, __pyx_L3_error)
8058 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
8060 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 3367, __pyx_L3_error)
8064 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
8066 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 3367, __pyx_L3_error)
8070 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
8072 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 3367, __pyx_L3_error)
8076 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
8078 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 3367, __pyx_L3_error)
8082 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
8084 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 3367, __pyx_L3_error)
8088 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
8090 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 3367, __pyx_L3_error)
8093 if (unlikely(kw_args > 0)) {
8094 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"burgersDiagonalVelHJEvaluate") < 0)) __PYX_ERR(0, 3367, __pyx_L3_error)
8096 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
8097 goto __pyx_L5_argtuple_error;
8099 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8100 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8101 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8102 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8103 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8104 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8105 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8106 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8107 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8108 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8109 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8111 __pyx_v_self_a = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_self_a == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3367, __pyx_L3_error)
8112 __pyx_v_self_v = ((PyArrayObject *)values[1]);
8113 __pyx_v_u = ((PyArrayObject *)values[2]);
8114 __pyx_v_grad_u = ((PyArrayObject *)values[3]);
8115 __pyx_v_m = ((PyArrayObject *)values[4]);
8116 __pyx_v_dm = ((PyArrayObject *)values[5]);
8117 __pyx_v_H = ((PyArrayObject *)values[6]);
8118 __pyx_v_dH = ((PyArrayObject *)values[7]);
8119 __pyx_v_a = ((PyArrayObject *)values[8]);
8120 __pyx_v_phi = ((PyArrayObject *)values[9]);
8121 __pyx_v_dphi = ((PyArrayObject *)values[10]);
8123 goto __pyx_L4_argument_unpacking_done;
8124 __pyx_L5_argtuple_error:;
8125 __Pyx_RaiseArgtupleInvalid(
"burgersDiagonalVelHJEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3367, __pyx_L3_error)
8127 __Pyx_AddTraceback(
"ctransportCoefficients.burgersDiagonalVelHJEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8128 __Pyx_RefNannyFinishContext();
8130 __pyx_L4_argument_unpacking_done:;
8131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self_v), __pyx_ptype_5numpy_ndarray, 1,
"self_v", 0))) __PYX_ERR(0, 3368, __pyx_L1_error)
8132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3369, __pyx_L1_error)
8133 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3370, __pyx_L1_error)
8134 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3371, __pyx_L1_error)
8135 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3372, __pyx_L1_error)
8136 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3373, __pyx_L1_error)
8137 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3374, __pyx_L1_error)
8138 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3375, __pyx_L1_error)
8139 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3376, __pyx_L1_error)
8140 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3377, __pyx_L1_error)
8141 __pyx_r = __pyx_pf_22ctransportCoefficients_30burgersDiagonalVelHJEvaluate(__pyx_self, __pyx_v_self_a, __pyx_v_self_v, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_a, __pyx_v_phi, __pyx_v_dphi);
8148 __Pyx_RefNannyFinishContext();
8152 static PyObject *__pyx_pf_22ctransportCoefficients_30burgersDiagonalVelHJEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_self_a, PyArrayObject *__pyx_v_self_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
8153 PyObject *__pyx_r = NULL;
8154 __Pyx_RefNannyDeclarations
8155 PyObject *__pyx_t_1 = NULL;
8159 int __pyx_lineno = 0;
8160 const char *__pyx_filename = NULL;
8161 int __pyx_clineno = 0;
8162 __Pyx_RefNannySetupContext(
"burgersDiagonalVelHJEvaluate", 0);
8171 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3378, __pyx_L1_error)
8172 __Pyx_GOTREF(__pyx_t_1);
8173 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3378, __pyx_L1_error)
8174 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8183 __pyx_t_3 = (__pyx_v_dH->nd - 1);
8184 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3379, __pyx_L1_error)
8185 __Pyx_GOTREF(__pyx_t_1);
8186 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3379, __pyx_L1_error)
8187 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8196 burgersDiagonalVelHJEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_self_a, ((
double *)__pyx_v_self_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
8207 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8210 __Pyx_XDECREF(__pyx_t_1);
8211 __Pyx_AddTraceback(
"ctransportCoefficients.burgersDiagonalVelHJEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8214 __Pyx_XGIVEREF(__pyx_r);
8215 __Pyx_RefNannyFinishContext();
8228 static PyObject *__pyx_pw_22ctransportCoefficients_33twophasePotentialFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8229 static PyMethodDef __pyx_mdef_22ctransportCoefficients_33twophasePotentialFlowEvaluate = {
"twophasePotentialFlowEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_33twophasePotentialFlowEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
8230 static PyObject *__pyx_pw_22ctransportCoefficients_33twophasePotentialFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8231 int __pyx_v_nPoints;
8233 PyArrayObject *__pyx_v_M = 0;
8234 PyArrayObject *__pyx_v_A = 0;
8235 PyArrayObject *__pyx_v_B = 0;
8236 PyArrayObject *__pyx_v_Bcon = 0;
8237 PyArrayObject *__pyx_v_C = 0;
8239 PyArrayObject *__pyx_v_x = 0;
8240 PyArrayObject *__pyx_v_u = 0;
8241 PyArrayObject *__pyx_v_m = 0;
8242 PyArrayObject *__pyx_v_dm = 0;
8243 PyArrayObject *__pyx_v_f = 0;
8244 PyArrayObject *__pyx_v_df = 0;
8245 PyArrayObject *__pyx_v_a = 0;
8246 PyArrayObject *__pyx_v_da = 0;
8247 PyArrayObject *__pyx_v_phi = 0;
8248 PyArrayObject *__pyx_v_dphi = 0;
8249 PyArrayObject *__pyx_v_r = 0;
8250 PyArrayObject *__pyx_v_dr = 0;
8251 int __pyx_lineno = 0;
8252 const char *__pyx_filename = NULL;
8253 int __pyx_clineno = 0;
8254 PyObject *__pyx_r = 0;
8255 __Pyx_RefNannyDeclarations
8256 __Pyx_RefNannySetupContext(
"twophasePotentialFlowEvaluate (wrapper)", 0);
8258 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_M,&__pyx_n_s_A,&__pyx_n_s_B,&__pyx_n_s_Bcon,&__pyx_n_s_C,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
8259 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
8260 if (unlikely(__pyx_kwds)) {
8262 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8264 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
8266 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8268 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8270 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8272 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8274 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8276 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8278 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8280 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8282 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8284 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8286 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8288 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8290 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8292 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8294 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8296 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8298 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8300 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8302 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8305 default:
goto __pyx_L5_argtuple_error;
8307 kw_args = PyDict_Size(__pyx_kwds);
8310 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
8311 else goto __pyx_L5_argtuple_error;
8314 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
8316 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 1); __PYX_ERR(0, 3391, __pyx_L3_error)
8320 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
8322 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 2); __PYX_ERR(0, 3391, __pyx_L3_error)
8326 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
8328 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 3); __PYX_ERR(0, 3391, __pyx_L3_error)
8332 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
8334 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 4); __PYX_ERR(0, 3391, __pyx_L3_error)
8338 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon)) != 0)) kw_args--;
8340 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 5); __PYX_ERR(0, 3391, __pyx_L3_error)
8344 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
8346 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 6); __PYX_ERR(0, 3391, __pyx_L3_error)
8350 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
8352 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 7); __PYX_ERR(0, 3391, __pyx_L3_error)
8356 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
8358 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 8); __PYX_ERR(0, 3391, __pyx_L3_error)
8362 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
8364 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 9); __PYX_ERR(0, 3391, __pyx_L3_error)
8368 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
8370 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 10); __PYX_ERR(0, 3391, __pyx_L3_error)
8374 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
8376 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 11); __PYX_ERR(0, 3391, __pyx_L3_error)
8380 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
8382 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 12); __PYX_ERR(0, 3391, __pyx_L3_error)
8386 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
8388 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 13); __PYX_ERR(0, 3391, __pyx_L3_error)
8392 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
8394 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 14); __PYX_ERR(0, 3391, __pyx_L3_error)
8398 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
8400 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 15); __PYX_ERR(0, 3391, __pyx_L3_error)
8404 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
8406 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 16); __PYX_ERR(0, 3391, __pyx_L3_error)
8410 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
8412 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 17); __PYX_ERR(0, 3391, __pyx_L3_error)
8416 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
8418 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 18); __PYX_ERR(0, 3391, __pyx_L3_error)
8422 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
8424 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, 19); __PYX_ERR(0, 3391, __pyx_L3_error)
8427 if (unlikely(kw_args > 0)) {
8428 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophasePotentialFlowEvaluate") < 0)) __PYX_ERR(0, 3391, __pyx_L3_error)
8430 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
8431 goto __pyx_L5_argtuple_error;
8433 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8434 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8435 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8436 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8437 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8438 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8439 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8440 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8441 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8442 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8443 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8444 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8445 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8446 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8447 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8448 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8449 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8450 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8451 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8452 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
8454 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3391, __pyx_L3_error)
8455 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3392, __pyx_L3_error)
8456 __pyx_v_M = ((PyArrayObject *)values[2]);
8457 __pyx_v_A = ((PyArrayObject *)values[3]);
8458 __pyx_v_B = ((PyArrayObject *)values[4]);
8459 __pyx_v_Bcon = ((PyArrayObject *)values[5]);
8460 __pyx_v_C = ((PyArrayObject *)values[6]);
8461 __pyx_v_t = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3398, __pyx_L3_error)
8462 __pyx_v_x = ((PyArrayObject *)values[8]);
8463 __pyx_v_u = ((PyArrayObject *)values[9]);
8464 __pyx_v_m = ((PyArrayObject *)values[10]);
8465 __pyx_v_dm = ((PyArrayObject *)values[11]);
8466 __pyx_v_f = ((PyArrayObject *)values[12]);
8467 __pyx_v_df = ((PyArrayObject *)values[13]);
8468 __pyx_v_a = ((PyArrayObject *)values[14]);
8469 __pyx_v_da = ((PyArrayObject *)values[15]);
8470 __pyx_v_phi = ((PyArrayObject *)values[16]);
8471 __pyx_v_dphi = ((PyArrayObject *)values[17]);
8472 __pyx_v_r = ((PyArrayObject *)values[18]);
8473 __pyx_v_dr = ((PyArrayObject *)values[19]);
8475 goto __pyx_L4_argument_unpacking_done;
8476 __pyx_L5_argtuple_error:;
8477 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowEvaluate", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3391, __pyx_L3_error)
8479 __Pyx_AddTraceback(
"ctransportCoefficients.twophasePotentialFlowEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8480 __Pyx_RefNannyFinishContext();
8482 __pyx_L4_argument_unpacking_done:;
8483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_M), __pyx_ptype_5numpy_ndarray, 1,
"M", 0))) __PYX_ERR(0, 3393, __pyx_L1_error)
8484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1,
"A", 0))) __PYX_ERR(0, 3394, __pyx_L1_error)
8485 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 3395, __pyx_L1_error)
8486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon), __pyx_ptype_5numpy_ndarray, 1,
"Bcon", 0))) __PYX_ERR(0, 3396, __pyx_L1_error)
8487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_C), __pyx_ptype_5numpy_ndarray, 1,
"C", 0))) __PYX_ERR(0, 3397, __pyx_L1_error)
8488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3399, __pyx_L1_error)
8489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3400, __pyx_L1_error)
8490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3401, __pyx_L1_error)
8491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3402, __pyx_L1_error)
8492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3403, __pyx_L1_error)
8493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3404, __pyx_L1_error)
8494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3405, __pyx_L1_error)
8495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3406, __pyx_L1_error)
8496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3407, __pyx_L1_error)
8497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3408, __pyx_L1_error)
8498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3409, __pyx_L1_error)
8499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3410, __pyx_L1_error)
8500 __pyx_r = __pyx_pf_22ctransportCoefficients_32twophasePotentialFlowEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_M, __pyx_v_A, __pyx_v_B, __pyx_v_Bcon, __pyx_v_C, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
8507 __Pyx_RefNannyFinishContext();
8511 static PyObject *__pyx_pf_22ctransportCoefficients_32twophasePotentialFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon, PyArrayObject *__pyx_v_C,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
8512 PyObject *__pyx_r = NULL;
8513 __Pyx_RefNannyDeclarations
8514 __Pyx_RefNannySetupContext(
"twophasePotentialFlowEvaluate", 0);
8523 twophasePotentialFlowEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, ((
double *)__pyx_v_M->data), ((
double *)__pyx_v_A->data), ((
double *)__pyx_v_B->data), ((
double *)__pyx_v_Bcon->data), ((
double *)__pyx_v_C->data), __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
8534 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8535 __Pyx_XGIVEREF(__pyx_r);
8536 __Pyx_RefNannyFinishContext();
8549 static PyObject *__pyx_pw_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8550 static PyMethodDef __pyx_mdef_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface = {
"twophasePotentialFlowUpdateFreeSurface", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface, METH_VARARGS|METH_KEYWORDS, 0};
8551 static PyObject *__pyx_pw_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8552 int __pyx_v_nPoints;
8555 PyArrayObject *__pyx_v_u_levelSet = 0;
8558 PyArrayObject *__pyx_v_M = 0;
8559 PyArrayObject *__pyx_v_A1 = 0;
8560 PyArrayObject *__pyx_v_A2 = 0;
8561 PyArrayObject *__pyx_v_A = 0;
8562 PyArrayObject *__pyx_v_B1 = 0;
8563 PyArrayObject *__pyx_v_B2 = 0;
8564 PyArrayObject *__pyx_v_B = 0;
8565 PyArrayObject *__pyx_v_Bcon1 = 0;
8566 PyArrayObject *__pyx_v_Bcon2 = 0;
8567 PyArrayObject *__pyx_v_Bcon = 0;
8570 PyArrayObject *__pyx_v_C = 0;
8571 int __pyx_lineno = 0;
8572 const char *__pyx_filename = NULL;
8573 int __pyx_clineno = 0;
8574 PyObject *__pyx_r = 0;
8575 __Pyx_RefNannyDeclarations
8576 __Pyx_RefNannySetupContext(
"twophasePotentialFlowUpdateFreeSurface (wrapper)", 0);
8578 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_M1,&__pyx_n_s_M2,&__pyx_n_s_M,&__pyx_n_s_A1,&__pyx_n_s_A2,&__pyx_n_s_A,&__pyx_n_s_B1,&__pyx_n_s_B2,&__pyx_n_s_B,&__pyx_n_s_Bcon1,&__pyx_n_s_Bcon2,&__pyx_n_s_Bcon,&__pyx_n_s_C1,&__pyx_n_s_C2,&__pyx_n_s_C,0};
8579 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
8580 if (unlikely(__pyx_kwds)) {
8582 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8584 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8586 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8588 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8590 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8592 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8594 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8596 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8598 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8600 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8602 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8604 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8606 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8608 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8610 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8612 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8614 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8616 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8618 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8620 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8623 default:
goto __pyx_L5_argtuple_error;
8625 kw_args = PyDict_Size(__pyx_kwds);
8628 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
8629 else goto __pyx_L5_argtuple_error;
8632 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
8634 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 1); __PYX_ERR(0, 3431, __pyx_L3_error)
8638 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
8640 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 2); __PYX_ERR(0, 3431, __pyx_L3_error)
8644 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
8646 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 3); __PYX_ERR(0, 3431, __pyx_L3_error)
8650 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M1)) != 0)) kw_args--;
8652 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 4); __PYX_ERR(0, 3431, __pyx_L3_error)
8656 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M2)) != 0)) kw_args--;
8658 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 5); __PYX_ERR(0, 3431, __pyx_L3_error)
8662 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_M)) != 0)) kw_args--;
8664 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 6); __PYX_ERR(0, 3431, __pyx_L3_error)
8668 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A1)) != 0)) kw_args--;
8670 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 7); __PYX_ERR(0, 3431, __pyx_L3_error)
8674 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A2)) != 0)) kw_args--;
8676 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 8); __PYX_ERR(0, 3431, __pyx_L3_error)
8680 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A)) != 0)) kw_args--;
8682 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 9); __PYX_ERR(0, 3431, __pyx_L3_error)
8686 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B1)) != 0)) kw_args--;
8688 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 10); __PYX_ERR(0, 3431, __pyx_L3_error)
8692 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B2)) != 0)) kw_args--;
8694 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 11); __PYX_ERR(0, 3431, __pyx_L3_error)
8698 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
8700 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 12); __PYX_ERR(0, 3431, __pyx_L3_error)
8704 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon1)) != 0)) kw_args--;
8706 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 13); __PYX_ERR(0, 3431, __pyx_L3_error)
8710 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon2)) != 0)) kw_args--;
8712 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 14); __PYX_ERR(0, 3431, __pyx_L3_error)
8716 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Bcon)) != 0)) kw_args--;
8718 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 15); __PYX_ERR(0, 3431, __pyx_L3_error)
8722 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C1)) != 0)) kw_args--;
8724 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 16); __PYX_ERR(0, 3431, __pyx_L3_error)
8728 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C2)) != 0)) kw_args--;
8730 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 17); __PYX_ERR(0, 3431, __pyx_L3_error)
8734 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_C)) != 0)) kw_args--;
8736 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, 18); __PYX_ERR(0, 3431, __pyx_L3_error)
8739 if (unlikely(kw_args > 0)) {
8740 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophasePotentialFlowUpdateFreeSurface") < 0)) __PYX_ERR(0, 3431, __pyx_L3_error)
8742 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
8743 goto __pyx_L5_argtuple_error;
8745 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8746 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8747 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8748 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8749 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8750 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8751 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8752 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8753 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8754 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8755 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8756 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8757 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8758 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8759 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8760 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8761 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8762 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8763 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8765 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3431, __pyx_L3_error)
8766 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3432, __pyx_L3_error)
8767 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3433, __pyx_L3_error)
8768 __pyx_v_u_levelSet = ((PyArrayObject *)values[3]);
8769 __pyx_v_M1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_M1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3435, __pyx_L3_error)
8770 __pyx_v_M2 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_M2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3436, __pyx_L3_error)
8771 __pyx_v_M = ((PyArrayObject *)values[6]);
8772 __pyx_v_A1 = ((PyArrayObject *)values[7]);
8773 __pyx_v_A2 = ((PyArrayObject *)values[8]);
8774 __pyx_v_A = ((PyArrayObject *)values[9]);
8775 __pyx_v_B1 = ((PyArrayObject *)values[10]);
8776 __pyx_v_B2 = ((PyArrayObject *)values[11]);
8777 __pyx_v_B = ((PyArrayObject *)values[12]);
8778 __pyx_v_Bcon1 = ((PyArrayObject *)values[13]);
8779 __pyx_v_Bcon2 = ((PyArrayObject *)values[14]);
8780 __pyx_v_Bcon = ((PyArrayObject *)values[15]);
8781 __pyx_v_C1 = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_C1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3447, __pyx_L3_error)
8782 __pyx_v_C2 = __pyx_PyFloat_AsDouble(values[17]);
if (unlikely((__pyx_v_C2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3448, __pyx_L3_error)
8783 __pyx_v_C = ((PyArrayObject *)values[18]);
8785 goto __pyx_L4_argument_unpacking_done;
8786 __pyx_L5_argtuple_error:;
8787 __Pyx_RaiseArgtupleInvalid(
"twophasePotentialFlowUpdateFreeSurface", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3431, __pyx_L3_error)
8789 __Pyx_AddTraceback(
"ctransportCoefficients.twophasePotentialFlowUpdateFreeSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
8790 __Pyx_RefNannyFinishContext();
8792 __pyx_L4_argument_unpacking_done:;
8793 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 3434, __pyx_L1_error)
8794 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_M), __pyx_ptype_5numpy_ndarray, 1,
"M", 0))) __PYX_ERR(0, 3437, __pyx_L1_error)
8795 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A1), __pyx_ptype_5numpy_ndarray, 1,
"A1", 0))) __PYX_ERR(0, 3438, __pyx_L1_error)
8796 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A2), __pyx_ptype_5numpy_ndarray, 1,
"A2", 0))) __PYX_ERR(0, 3439, __pyx_L1_error)
8797 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A), __pyx_ptype_5numpy_ndarray, 1,
"A", 0))) __PYX_ERR(0, 3440, __pyx_L1_error)
8798 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B1), __pyx_ptype_5numpy_ndarray, 1,
"B1", 0))) __PYX_ERR(0, 3441, __pyx_L1_error)
8799 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B2), __pyx_ptype_5numpy_ndarray, 1,
"B2", 0))) __PYX_ERR(0, 3442, __pyx_L1_error)
8800 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 3443, __pyx_L1_error)
8801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon1), __pyx_ptype_5numpy_ndarray, 1,
"Bcon1", 0))) __PYX_ERR(0, 3444, __pyx_L1_error)
8802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon2), __pyx_ptype_5numpy_ndarray, 1,
"Bcon2", 0))) __PYX_ERR(0, 3445, __pyx_L1_error)
8803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Bcon), __pyx_ptype_5numpy_ndarray, 1,
"Bcon", 0))) __PYX_ERR(0, 3446, __pyx_L1_error)
8804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_C), __pyx_ptype_5numpy_ndarray, 1,
"C", 0))) __PYX_ERR(0, 3449, __pyx_L1_error)
8805 __pyx_r = __pyx_pf_22ctransportCoefficients_34twophasePotentialFlowUpdateFreeSurface(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_M1, __pyx_v_M2, __pyx_v_M, __pyx_v_A1, __pyx_v_A2, __pyx_v_A, __pyx_v_B1, __pyx_v_B2, __pyx_v_B, __pyx_v_Bcon1, __pyx_v_Bcon2, __pyx_v_Bcon, __pyx_v_C1, __pyx_v_C2, __pyx_v_C);
8812 __Pyx_RefNannyFinishContext();
8816 static PyObject *__pyx_pf_22ctransportCoefficients_34twophasePotentialFlowUpdateFreeSurface(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet,
double __pyx_v_M1,
double __pyx_v_M2, PyArrayObject *__pyx_v_M, PyArrayObject *__pyx_v_A1, PyArrayObject *__pyx_v_A2, PyArrayObject *__pyx_v_A, PyArrayObject *__pyx_v_B1, PyArrayObject *__pyx_v_B2, PyArrayObject *__pyx_v_B, PyArrayObject *__pyx_v_Bcon1, PyArrayObject *__pyx_v_Bcon2, PyArrayObject *__pyx_v_Bcon,
double __pyx_v_C1,
double __pyx_v_C2, PyArrayObject *__pyx_v_C) {
8817 PyObject *__pyx_r = NULL;
8818 __Pyx_RefNannyDeclarations
8819 __Pyx_RefNannySetupContext(
"twophasePotentialFlowUpdateFreeSurface", 0);
8828 twophasePotentialFlowUpdateFreeSurface(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_eps, ((
double *)__pyx_v_u_levelSet->data), __pyx_v_M1, __pyx_v_M2, ((
double *)__pyx_v_M->data), ((
double *)__pyx_v_A1->data), ((
double *)__pyx_v_A2->data), ((
double *)__pyx_v_A->data), ((
double *)__pyx_v_B1->data), ((
double *)__pyx_v_B2->data), ((
double *)__pyx_v_B->data), ((
double *)__pyx_v_Bcon1->data), ((
double *)__pyx_v_Bcon2->data), ((
double *)__pyx_v_Bcon->data), __pyx_v_C1, __pyx_v_C2, ((
double *)__pyx_v_C->data));
8839 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8840 __Pyx_XGIVEREF(__pyx_r);
8841 __Pyx_RefNannyFinishContext();
8854 static PyObject *__pyx_pw_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8855 static PyMethodDef __pyx_mdef_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity = {
"twophaseLevelSetCoefficientsUpdateVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity, METH_VARARGS|METH_KEYWORDS, 0};
8856 static PyObject *__pyx_pw_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8857 int __pyx_v_nPoints;
8859 double __pyx_v_v_scale;
8860 PyArrayObject *__pyx_v_vIn = 0;
8861 PyArrayObject *__pyx_v_vOut = 0;
8862 int __pyx_lineno = 0;
8863 const char *__pyx_filename = NULL;
8864 int __pyx_clineno = 0;
8865 PyObject *__pyx_r = 0;
8866 __Pyx_RefNannyDeclarations
8867 __Pyx_RefNannySetupContext(
"twophaseLevelSetCoefficientsUpdateVelocity (wrapper)", 0);
8869 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_v_scale,&__pyx_n_s_vIn,&__pyx_n_s_vOut,0};
8870 PyObject* values[5] = {0,0,0,0,0};
8871 if (unlikely(__pyx_kwds)) {
8873 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8875 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8877 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8879 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8881 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8883 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8886 default:
goto __pyx_L5_argtuple_error;
8888 kw_args = PyDict_Size(__pyx_kwds);
8891 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
8892 else goto __pyx_L5_argtuple_error;
8895 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
8897 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 1); __PYX_ERR(0, 3469, __pyx_L3_error)
8901 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_scale)) != 0)) kw_args--;
8903 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 2); __PYX_ERR(0, 3469, __pyx_L3_error)
8907 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vIn)) != 0)) kw_args--;
8909 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 3); __PYX_ERR(0, 3469, __pyx_L3_error)
8913 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vOut)) != 0)) kw_args--;
8915 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, 4); __PYX_ERR(0, 3469, __pyx_L3_error)
8918 if (unlikely(kw_args > 0)) {
8919 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophaseLevelSetCoefficientsUpdateVelocity") < 0)) __PYX_ERR(0, 3469, __pyx_L3_error)
8921 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
8922 goto __pyx_L5_argtuple_error;
8924 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8925 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8926 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8927 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8928 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8930 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3469, __pyx_L3_error)
8931 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3470, __pyx_L3_error)
8932 __pyx_v_v_scale = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_v_scale == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3471, __pyx_L3_error)
8933 __pyx_v_vIn = ((PyArrayObject *)values[3]);
8934 __pyx_v_vOut = ((PyArrayObject *)values[4]);
8936 goto __pyx_L4_argument_unpacking_done;
8937 __pyx_L5_argtuple_error:;
8938 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsUpdateVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3469, __pyx_L3_error)
8940 __Pyx_AddTraceback(
"ctransportCoefficients.twophaseLevelSetCoefficientsUpdateVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
8941 __Pyx_RefNannyFinishContext();
8943 __pyx_L4_argument_unpacking_done:;
8944 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vIn), __pyx_ptype_5numpy_ndarray, 1,
"vIn", 0))) __PYX_ERR(0, 3472, __pyx_L1_error)
8945 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vOut), __pyx_ptype_5numpy_ndarray, 1,
"vOut", 0))) __PYX_ERR(0, 3473, __pyx_L1_error)
8946 __pyx_r = __pyx_pf_22ctransportCoefficients_36twophaseLevelSetCoefficientsUpdateVelocity(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_v_scale, __pyx_v_vIn, __pyx_v_vOut);
8953 __Pyx_RefNannyFinishContext();
8957 static PyObject *__pyx_pf_22ctransportCoefficients_36twophaseLevelSetCoefficientsUpdateVelocity(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_v_scale, PyArrayObject *__pyx_v_vIn, PyArrayObject *__pyx_v_vOut) {
8958 PyObject *__pyx_r = NULL;
8959 __Pyx_RefNannyDeclarations
8960 __Pyx_RefNannySetupContext(
"twophaseLevelSetCoefficientsUpdateVelocity", 0);
8980 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8981 __Pyx_XGIVEREF(__pyx_r);
8982 __Pyx_RefNannyFinishContext();
8995 static PyObject *__pyx_pw_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8996 static PyMethodDef __pyx_mdef_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate = {
"twophaseLevelSetCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
8997 static PyObject *__pyx_pw_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8998 int __pyx_v_nPoints;
9000 PyArrayObject *__pyx_v_B = 0;
9002 PyArrayObject *__pyx_v_x = 0;
9003 PyArrayObject *__pyx_v_u = 0;
9004 PyArrayObject *__pyx_v_grad_u = 0;
9005 PyArrayObject *__pyx_v_m = 0;
9006 PyArrayObject *__pyx_v_dm = 0;
9007 PyArrayObject *__pyx_v_h = 0;
9008 PyArrayObject *__pyx_v_dh = 0;
9009 PyArrayObject *__pyx_v_rh = 0;
9010 int __pyx_lineno = 0;
9011 const char *__pyx_filename = NULL;
9012 int __pyx_clineno = 0;
9013 PyObject *__pyx_r = 0;
9014 __Pyx_RefNannyDeclarations
9015 __Pyx_RefNannySetupContext(
"twophaseLevelSetCoefficientsEvaluate (wrapper)", 0);
9017 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_B,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_h,&__pyx_n_s_dh,&__pyx_n_s_rh,0};
9018 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
9019 if (unlikely(__pyx_kwds)) {
9021 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9023 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9025 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9027 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9029 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9031 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9033 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9035 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9037 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9039 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9041 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9043 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9045 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9048 default:
goto __pyx_L5_argtuple_error;
9050 kw_args = PyDict_Size(__pyx_kwds);
9053 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
9054 else goto __pyx_L5_argtuple_error;
9057 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
9059 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 1); __PYX_ERR(0, 3479, __pyx_L3_error)
9063 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
9065 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 2); __PYX_ERR(0, 3479, __pyx_L3_error)
9069 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
9071 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 3); __PYX_ERR(0, 3479, __pyx_L3_error)
9075 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
9077 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 4); __PYX_ERR(0, 3479, __pyx_L3_error)
9081 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9083 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 5); __PYX_ERR(0, 3479, __pyx_L3_error)
9087 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
9089 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 6); __PYX_ERR(0, 3479, __pyx_L3_error)
9093 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9095 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 7); __PYX_ERR(0, 3479, __pyx_L3_error)
9099 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9101 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 8); __PYX_ERR(0, 3479, __pyx_L3_error)
9105 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
9107 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 9); __PYX_ERR(0, 3479, __pyx_L3_error)
9111 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dh)) != 0)) kw_args--;
9113 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 10); __PYX_ERR(0, 3479, __pyx_L3_error)
9117 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rh)) != 0)) kw_args--;
9119 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, 11); __PYX_ERR(0, 3479, __pyx_L3_error)
9122 if (unlikely(kw_args > 0)) {
9123 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophaseLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3479, __pyx_L3_error)
9125 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
9126 goto __pyx_L5_argtuple_error;
9128 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9129 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9130 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9131 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9132 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9133 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9134 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9135 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9136 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9137 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9138 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9139 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9141 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3479, __pyx_L3_error)
9142 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3480, __pyx_L3_error)
9143 __pyx_v_B = ((PyArrayObject *)values[2]);
9144 __pyx_v_t = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3482, __pyx_L3_error)
9145 __pyx_v_x = ((PyArrayObject *)values[4]);
9146 __pyx_v_u = ((PyArrayObject *)values[5]);
9147 __pyx_v_grad_u = ((PyArrayObject *)values[6]);
9148 __pyx_v_m = ((PyArrayObject *)values[7]);
9149 __pyx_v_dm = ((PyArrayObject *)values[8]);
9150 __pyx_v_h = ((PyArrayObject *)values[9]);
9151 __pyx_v_dh = ((PyArrayObject *)values[10]);
9152 __pyx_v_rh = ((PyArrayObject *)values[11]);
9154 goto __pyx_L4_argument_unpacking_done;
9155 __pyx_L5_argtuple_error:;
9156 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluate", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3479, __pyx_L3_error)
9158 __Pyx_AddTraceback(
"ctransportCoefficients.twophaseLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9159 __Pyx_RefNannyFinishContext();
9161 __pyx_L4_argument_unpacking_done:;
9162 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 3481, __pyx_L1_error)
9163 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3483, __pyx_L1_error)
9164 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3484, __pyx_L1_error)
9165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3485, __pyx_L1_error)
9166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3486, __pyx_L1_error)
9167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3487, __pyx_L1_error)
9168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 3488, __pyx_L1_error)
9169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dh), __pyx_ptype_5numpy_ndarray, 1,
"dh", 0))) __PYX_ERR(0, 3489, __pyx_L1_error)
9170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rh), __pyx_ptype_5numpy_ndarray, 1,
"rh", 0))) __PYX_ERR(0, 3490, __pyx_L1_error)
9171 __pyx_r = __pyx_pf_22ctransportCoefficients_38twophaseLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_B, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_h, __pyx_v_dh, __pyx_v_rh);
9178 __Pyx_RefNannyFinishContext();
9182 static PyObject *__pyx_pf_22ctransportCoefficients_38twophaseLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_B,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh) {
9183 PyObject *__pyx_r = NULL;
9184 __Pyx_RefNannyDeclarations
9185 __Pyx_RefNannySetupContext(
"twophaseLevelSetCoefficientsEvaluate", 0);
9194 twophaseLevelSetCoefficientsEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, ((
double *)__pyx_v_B->data), __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_dh->data), ((
double *)__pyx_v_rh->data));
9205 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9206 __Pyx_XGIVEREF(__pyx_r);
9207 __Pyx_RefNannyFinishContext();
9220 static PyObject *__pyx_pw_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9221 static PyMethodDef __pyx_mdef_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI = {
"twophaseLevelSetCoefficientsEvaluateCI", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI, METH_VARARGS|METH_KEYWORDS, 0};
9222 static PyObject *__pyx_pw_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9223 int __pyx_v_nPoints;
9225 PyArrayObject *__pyx_v_B = 0;
9227 PyArrayObject *__pyx_v_x = 0;
9228 PyArrayObject *__pyx_v_u = 0;
9229 PyArrayObject *__pyx_v_m = 0;
9230 PyArrayObject *__pyx_v_dm = 0;
9231 PyArrayObject *__pyx_v_f = 0;
9232 PyArrayObject *__pyx_v_df = 0;
9233 PyArrayObject *__pyx_v_a = 0;
9234 PyArrayObject *__pyx_v_da = 0;
9235 PyArrayObject *__pyx_v_phi = 0;
9236 PyArrayObject *__pyx_v_dphi = 0;
9237 PyArrayObject *__pyx_v_r = 0;
9238 PyArrayObject *__pyx_v_dr = 0;
9239 int __pyx_lineno = 0;
9240 const char *__pyx_filename = NULL;
9241 int __pyx_clineno = 0;
9242 PyObject *__pyx_r = 0;
9243 __Pyx_RefNannyDeclarations
9244 __Pyx_RefNannySetupContext(
"twophaseLevelSetCoefficientsEvaluateCI (wrapper)", 0);
9246 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_B,&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_r,&__pyx_n_s_dr,0};
9247 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9248 if (unlikely(__pyx_kwds)) {
9250 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9252 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9254 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9256 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9258 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9260 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9262 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9264 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9266 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9268 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9270 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9272 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9274 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9276 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9278 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9280 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9282 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9285 default:
goto __pyx_L5_argtuple_error;
9287 kw_args = PyDict_Size(__pyx_kwds);
9290 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
9291 else goto __pyx_L5_argtuple_error;
9294 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
9296 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 1); __PYX_ERR(0, 3503, __pyx_L3_error)
9300 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B)) != 0)) kw_args--;
9302 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 2); __PYX_ERR(0, 3503, __pyx_L3_error)
9306 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
9308 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 3); __PYX_ERR(0, 3503, __pyx_L3_error)
9312 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
9314 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 4); __PYX_ERR(0, 3503, __pyx_L3_error)
9318 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9320 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 5); __PYX_ERR(0, 3503, __pyx_L3_error)
9324 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9326 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 6); __PYX_ERR(0, 3503, __pyx_L3_error)
9330 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9332 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 7); __PYX_ERR(0, 3503, __pyx_L3_error)
9336 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
9338 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 8); __PYX_ERR(0, 3503, __pyx_L3_error)
9342 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
9344 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 9); __PYX_ERR(0, 3503, __pyx_L3_error)
9348 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
9350 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 10); __PYX_ERR(0, 3503, __pyx_L3_error)
9354 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
9356 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 11); __PYX_ERR(0, 3503, __pyx_L3_error)
9360 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
9362 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 12); __PYX_ERR(0, 3503, __pyx_L3_error)
9366 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
9368 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 13); __PYX_ERR(0, 3503, __pyx_L3_error)
9372 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
9374 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 14); __PYX_ERR(0, 3503, __pyx_L3_error)
9378 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
9380 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, 15); __PYX_ERR(0, 3503, __pyx_L3_error)
9383 if (unlikely(kw_args > 0)) {
9384 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophaseLevelSetCoefficientsEvaluateCI") < 0)) __PYX_ERR(0, 3503, __pyx_L3_error)
9386 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
9387 goto __pyx_L5_argtuple_error;
9389 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9390 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9391 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9392 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9393 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9394 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9395 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9396 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9397 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9398 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9399 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9400 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9401 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9402 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9403 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9404 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9406 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3503, __pyx_L3_error)
9407 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3504, __pyx_L3_error)
9408 __pyx_v_B = ((PyArrayObject *)values[2]);
9409 __pyx_v_t = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3506, __pyx_L3_error)
9410 __pyx_v_x = ((PyArrayObject *)values[4]);
9411 __pyx_v_u = ((PyArrayObject *)values[5]);
9412 __pyx_v_m = ((PyArrayObject *)values[6]);
9413 __pyx_v_dm = ((PyArrayObject *)values[7]);
9414 __pyx_v_f = ((PyArrayObject *)values[8]);
9415 __pyx_v_df = ((PyArrayObject *)values[9]);
9416 __pyx_v_a = ((PyArrayObject *)values[10]);
9417 __pyx_v_da = ((PyArrayObject *)values[11]);
9418 __pyx_v_phi = ((PyArrayObject *)values[12]);
9419 __pyx_v_dphi = ((PyArrayObject *)values[13]);
9420 __pyx_v_r = ((PyArrayObject *)values[14]);
9421 __pyx_v_dr = ((PyArrayObject *)values[15]);
9423 goto __pyx_L4_argument_unpacking_done;
9424 __pyx_L5_argtuple_error:;
9425 __Pyx_RaiseArgtupleInvalid(
"twophaseLevelSetCoefficientsEvaluateCI", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3503, __pyx_L3_error)
9427 __Pyx_AddTraceback(
"ctransportCoefficients.twophaseLevelSetCoefficientsEvaluateCI", __pyx_clineno, __pyx_lineno, __pyx_filename);
9428 __Pyx_RefNannyFinishContext();
9430 __pyx_L4_argument_unpacking_done:;
9431 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_B), __pyx_ptype_5numpy_ndarray, 1,
"B", 0))) __PYX_ERR(0, 3505, __pyx_L1_error)
9432 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 3507, __pyx_L1_error)
9433 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3508, __pyx_L1_error)
9434 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3509, __pyx_L1_error)
9435 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3510, __pyx_L1_error)
9436 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3511, __pyx_L1_error)
9437 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3512, __pyx_L1_error)
9438 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3513, __pyx_L1_error)
9439 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3514, __pyx_L1_error)
9440 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3515, __pyx_L1_error)
9441 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3516, __pyx_L1_error)
9442 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3517, __pyx_L1_error)
9443 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3518, __pyx_L1_error)
9444 __pyx_r = __pyx_pf_22ctransportCoefficients_40twophaseLevelSetCoefficientsEvaluateCI(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_B, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi, __pyx_v_r, __pyx_v_dr);
9451 __Pyx_RefNannyFinishContext();
9455 static PyObject *__pyx_pf_22ctransportCoefficients_40twophaseLevelSetCoefficientsEvaluateCI(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_B,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
9456 PyObject *__pyx_r = NULL;
9457 __Pyx_RefNannyDeclarations
9458 __Pyx_RefNannySetupContext(
"twophaseLevelSetCoefficientsEvaluateCI", 0);
9467 twophaseLevelSetCoefficientsEvaluateCI(__pyx_v_nPoints, __pyx_v_nSpace, ((
double *)__pyx_v_B->data), __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
9478 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9479 __Pyx_XGIVEREF(__pyx_r);
9480 __Pyx_RefNannyFinishContext();
9493 static PyObject *__pyx_pw_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9494 static PyMethodDef __pyx_mdef_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate = {
"ncLevelSetCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
9495 static PyObject *__pyx_pw_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9496 PyArrayObject *__pyx_v_v = 0;
9497 PyArrayObject *__pyx_v_u = 0;
9498 PyArrayObject *__pyx_v_grad_u = 0;
9499 PyArrayObject *__pyx_v_m = 0;
9500 PyArrayObject *__pyx_v_dm = 0;
9501 PyArrayObject *__pyx_v_H = 0;
9502 PyArrayObject *__pyx_v_dH = 0;
9503 int __pyx_lineno = 0;
9504 const char *__pyx_filename = NULL;
9505 int __pyx_clineno = 0;
9506 PyObject *__pyx_r = 0;
9507 __Pyx_RefNannyDeclarations
9508 __Pyx_RefNannySetupContext(
"ncLevelSetCoefficientsEvaluate (wrapper)", 0);
9510 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,0};
9511 PyObject* values[7] = {0,0,0,0,0,0,0};
9512 if (unlikely(__pyx_kwds)) {
9514 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9516 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9518 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9520 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9522 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9524 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9526 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9528 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9531 default:
goto __pyx_L5_argtuple_error;
9533 kw_args = PyDict_Size(__pyx_kwds);
9536 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9537 else goto __pyx_L5_argtuple_error;
9540 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9542 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, 1); __PYX_ERR(0, 3535, __pyx_L3_error)
9546 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
9548 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, 2); __PYX_ERR(0, 3535, __pyx_L3_error)
9552 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9554 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, 3); __PYX_ERR(0, 3535, __pyx_L3_error)
9558 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9560 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, 4); __PYX_ERR(0, 3535, __pyx_L3_error)
9564 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
9566 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, 5); __PYX_ERR(0, 3535, __pyx_L3_error)
9570 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
9572 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, 6); __PYX_ERR(0, 3535, __pyx_L3_error)
9575 if (unlikely(kw_args > 0)) {
9576 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ncLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3535, __pyx_L3_error)
9578 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
9579 goto __pyx_L5_argtuple_error;
9581 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9582 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9583 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9584 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9585 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9586 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9587 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9589 __pyx_v_v = ((PyArrayObject *)values[0]);
9590 __pyx_v_u = ((PyArrayObject *)values[1]);
9591 __pyx_v_grad_u = ((PyArrayObject *)values[2]);
9592 __pyx_v_m = ((PyArrayObject *)values[3]);
9593 __pyx_v_dm = ((PyArrayObject *)values[4]);
9594 __pyx_v_H = ((PyArrayObject *)values[5]);
9595 __pyx_v_dH = ((PyArrayObject *)values[6]);
9597 goto __pyx_L4_argument_unpacking_done;
9598 __pyx_L5_argtuple_error:;
9599 __Pyx_RaiseArgtupleInvalid(
"ncLevelSetCoefficientsEvaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3535, __pyx_L3_error)
9601 __Pyx_AddTraceback(
"ctransportCoefficients.ncLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9602 __Pyx_RefNannyFinishContext();
9604 __pyx_L4_argument_unpacking_done:;
9605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3535, __pyx_L1_error)
9606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3536, __pyx_L1_error)
9607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3537, __pyx_L1_error)
9608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3538, __pyx_L1_error)
9609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3539, __pyx_L1_error)
9610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3540, __pyx_L1_error)
9611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3541, __pyx_L1_error)
9612 __pyx_r = __pyx_pf_22ctransportCoefficients_42ncLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_v, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH);
9619 __Pyx_RefNannyFinishContext();
9623 static PyObject *__pyx_pf_22ctransportCoefficients_42ncLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
9624 PyObject *__pyx_r = NULL;
9625 __Pyx_RefNannyDeclarations
9626 PyObject *__pyx_t_1 = NULL;
9630 int __pyx_lineno = 0;
9631 const char *__pyx_filename = NULL;
9632 int __pyx_clineno = 0;
9633 __Pyx_RefNannySetupContext(
"ncLevelSetCoefficientsEvaluate", 0);
9642 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3542, __pyx_L1_error)
9643 __Pyx_GOTREF(__pyx_t_1);
9644 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3542, __pyx_L1_error)
9645 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9654 __pyx_t_3 = (__pyx_v_dH->nd - 1);
9655 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3543, __pyx_L1_error)
9656 __Pyx_GOTREF(__pyx_t_1);
9657 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3543, __pyx_L1_error)
9658 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9667 ncLevelSetCoefficientsEvaluate(__pyx_t_2, __pyx_t_4, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data));
9678 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9681 __Pyx_XDECREF(__pyx_t_1);
9682 __Pyx_AddTraceback(
"ctransportCoefficients.ncLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9685 __Pyx_XGIVEREF(__pyx_r);
9686 __Pyx_RefNannyFinishContext();
9699 static PyObject *__pyx_pw_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9700 static PyMethodDef __pyx_mdef_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate = {
"cLevelSetCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
9701 static PyObject *__pyx_pw_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9702 PyArrayObject *__pyx_v_v = 0;
9703 PyArrayObject *__pyx_v_u = 0;
9704 PyArrayObject *__pyx_v_m = 0;
9705 PyArrayObject *__pyx_v_dm = 0;
9706 PyArrayObject *__pyx_v_f = 0;
9707 PyArrayObject *__pyx_v_df = 0;
9708 int __pyx_lineno = 0;
9709 const char *__pyx_filename = NULL;
9710 int __pyx_clineno = 0;
9711 PyObject *__pyx_r = 0;
9712 __Pyx_RefNannyDeclarations
9713 __Pyx_RefNannySetupContext(
"cLevelSetCoefficientsEvaluate (wrapper)", 0);
9715 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
9716 PyObject* values[6] = {0,0,0,0,0,0};
9717 if (unlikely(__pyx_kwds)) {
9719 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9721 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9723 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9725 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9727 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9729 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9731 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9734 default:
goto __pyx_L5_argtuple_error;
9736 kw_args = PyDict_Size(__pyx_kwds);
9739 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9740 else goto __pyx_L5_argtuple_error;
9743 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9745 __Pyx_RaiseArgtupleInvalid(
"cLevelSetCoefficientsEvaluate", 1, 6, 6, 1); __PYX_ERR(0, 3551, __pyx_L3_error)
9749 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9751 __Pyx_RaiseArgtupleInvalid(
"cLevelSetCoefficientsEvaluate", 1, 6, 6, 2); __PYX_ERR(0, 3551, __pyx_L3_error)
9755 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9757 __Pyx_RaiseArgtupleInvalid(
"cLevelSetCoefficientsEvaluate", 1, 6, 6, 3); __PYX_ERR(0, 3551, __pyx_L3_error)
9761 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
9763 __Pyx_RaiseArgtupleInvalid(
"cLevelSetCoefficientsEvaluate", 1, 6, 6, 4); __PYX_ERR(0, 3551, __pyx_L3_error)
9767 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
9769 __Pyx_RaiseArgtupleInvalid(
"cLevelSetCoefficientsEvaluate", 1, 6, 6, 5); __PYX_ERR(0, 3551, __pyx_L3_error)
9772 if (unlikely(kw_args > 0)) {
9773 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"cLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3551, __pyx_L3_error)
9775 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
9776 goto __pyx_L5_argtuple_error;
9778 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9779 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9780 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9781 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9782 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9783 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9785 __pyx_v_v = ((PyArrayObject *)values[0]);
9786 __pyx_v_u = ((PyArrayObject *)values[1]);
9787 __pyx_v_m = ((PyArrayObject *)values[2]);
9788 __pyx_v_dm = ((PyArrayObject *)values[3]);
9789 __pyx_v_f = ((PyArrayObject *)values[4]);
9790 __pyx_v_df = ((PyArrayObject *)values[5]);
9792 goto __pyx_L4_argument_unpacking_done;
9793 __pyx_L5_argtuple_error:;
9794 __Pyx_RaiseArgtupleInvalid(
"cLevelSetCoefficientsEvaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3551, __pyx_L3_error)
9796 __Pyx_AddTraceback(
"ctransportCoefficients.cLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9797 __Pyx_RefNannyFinishContext();
9799 __pyx_L4_argument_unpacking_done:;
9800 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3551, __pyx_L1_error)
9801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3552, __pyx_L1_error)
9802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3553, __pyx_L1_error)
9803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3554, __pyx_L1_error)
9804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3555, __pyx_L1_error)
9805 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3556, __pyx_L1_error)
9806 __pyx_r = __pyx_pf_22ctransportCoefficients_44cLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_v, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
9813 __Pyx_RefNannyFinishContext();
9817 static PyObject *__pyx_pf_22ctransportCoefficients_44cLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
9818 PyObject *__pyx_r = NULL;
9819 __Pyx_RefNannyDeclarations
9820 PyObject *__pyx_t_1 = NULL;
9822 int __pyx_lineno = 0;
9823 const char *__pyx_filename = NULL;
9824 int __pyx_clineno = 0;
9825 __Pyx_RefNannySetupContext(
"cLevelSetCoefficientsEvaluate", 0);
9834 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3557, __pyx_L1_error)
9835 __Pyx_GOTREF(__pyx_t_1);
9836 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3557, __pyx_L1_error)
9837 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9846 cLevelSetCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data));
9857 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9860 __Pyx_XDECREF(__pyx_t_1);
9861 __Pyx_AddTraceback(
"ctransportCoefficients.cLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9864 __Pyx_XGIVEREF(__pyx_r);
9865 __Pyx_RefNannyFinishContext();
9878 static PyObject *__pyx_pw_22ctransportCoefficients_47VOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9879 static PyMethodDef __pyx_mdef_22ctransportCoefficients_47VOFCoefficientsEvaluate = {
"VOFCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_47VOFCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
9880 static PyObject *__pyx_pw_22ctransportCoefficients_47VOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9882 PyArrayObject *__pyx_v_v = 0;
9883 PyArrayObject *__pyx_v_phi = 0;
9884 PyArrayObject *__pyx_v_u = 0;
9885 PyArrayObject *__pyx_v_m = 0;
9886 PyArrayObject *__pyx_v_dm = 0;
9887 PyArrayObject *__pyx_v_f = 0;
9888 PyArrayObject *__pyx_v_df = 0;
9889 int __pyx_lineno = 0;
9890 const char *__pyx_filename = NULL;
9891 int __pyx_clineno = 0;
9892 PyObject *__pyx_r = 0;
9893 __Pyx_RefNannyDeclarations
9894 __Pyx_RefNannySetupContext(
"VOFCoefficientsEvaluate (wrapper)", 0);
9896 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_v,&__pyx_n_s_phi,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
9897 PyObject* values[8] = {0,0,0,0,0,0,0,0};
9898 if (unlikely(__pyx_kwds)) {
9900 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9902 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9904 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9906 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9908 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9910 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9912 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9914 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9916 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9919 default:
goto __pyx_L5_argtuple_error;
9921 kw_args = PyDict_Size(__pyx_kwds);
9924 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
9925 else goto __pyx_L5_argtuple_error;
9928 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9930 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 1); __PYX_ERR(0, 3565, __pyx_L3_error)
9934 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
9936 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 2); __PYX_ERR(0, 3565, __pyx_L3_error)
9940 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9942 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 3); __PYX_ERR(0, 3565, __pyx_L3_error)
9946 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
9948 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 4); __PYX_ERR(0, 3565, __pyx_L3_error)
9952 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
9954 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 5); __PYX_ERR(0, 3565, __pyx_L3_error)
9958 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
9960 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 6); __PYX_ERR(0, 3565, __pyx_L3_error)
9964 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
9966 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, 7); __PYX_ERR(0, 3565, __pyx_L3_error)
9969 if (unlikely(kw_args > 0)) {
9970 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VOFCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3565, __pyx_L3_error)
9972 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
9973 goto __pyx_L5_argtuple_error;
9975 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9976 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9977 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9978 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9979 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9980 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9981 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9982 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9984 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3565, __pyx_L3_error)
9985 __pyx_v_v = ((PyArrayObject *)values[1]);
9986 __pyx_v_phi = ((PyArrayObject *)values[2]);
9987 __pyx_v_u = ((PyArrayObject *)values[3]);
9988 __pyx_v_m = ((PyArrayObject *)values[4]);
9989 __pyx_v_dm = ((PyArrayObject *)values[5]);
9990 __pyx_v_f = ((PyArrayObject *)values[6]);
9991 __pyx_v_df = ((PyArrayObject *)values[7]);
9993 goto __pyx_L4_argument_unpacking_done;
9994 __pyx_L5_argtuple_error:;
9995 __Pyx_RaiseArgtupleInvalid(
"VOFCoefficientsEvaluate", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3565, __pyx_L3_error)
9997 __Pyx_AddTraceback(
"ctransportCoefficients.VOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
9998 __Pyx_RefNannyFinishContext();
10000 __pyx_L4_argument_unpacking_done:;
10001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3566, __pyx_L1_error)
10002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3567, __pyx_L1_error)
10003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3568, __pyx_L1_error)
10004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3569, __pyx_L1_error)
10005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3570, __pyx_L1_error)
10006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3571, __pyx_L1_error)
10007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3572, __pyx_L1_error)
10008 __pyx_r = __pyx_pf_22ctransportCoefficients_46VOFCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_v, __pyx_v_phi, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
10015 __Pyx_RefNannyFinishContext();
10019 static PyObject *__pyx_pf_22ctransportCoefficients_46VOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
10020 PyObject *__pyx_r = NULL;
10021 __Pyx_RefNannyDeclarations
10022 PyObject *__pyx_t_1 = NULL;
10024 int __pyx_lineno = 0;
10025 const char *__pyx_filename = NULL;
10026 int __pyx_clineno = 0;
10027 __Pyx_RefNannySetupContext(
"VOFCoefficientsEvaluate", 0);
10036 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3573, __pyx_L1_error)
10037 __Pyx_GOTREF(__pyx_t_1);
10038 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3573, __pyx_L1_error)
10039 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10048 VOFCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_eps, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data));
10059 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10062 __Pyx_XDECREF(__pyx_t_1);
10063 __Pyx_AddTraceback(
"ctransportCoefficients.VOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10066 __Pyx_XGIVEREF(__pyx_r);
10067 __Pyx_RefNannyFinishContext();
10080 static PyObject *__pyx_pw_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10081 static PyMethodDef __pyx_mdef_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate = {
"levelSetCurvatureCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10082 static PyObject *__pyx_pw_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10083 PyArrayObject *__pyx_v_grad_phi = 0;
10084 PyArrayObject *__pyx_v_u = 0;
10085 PyArrayObject *__pyx_v_f = 0;
10086 PyArrayObject *__pyx_v_r = 0;
10087 PyArrayObject *__pyx_v_dr = 0;
10088 int __pyx_lineno = 0;
10089 const char *__pyx_filename = NULL;
10090 int __pyx_clineno = 0;
10091 PyObject *__pyx_r = 0;
10092 __Pyx_RefNannyDeclarations
10093 __Pyx_RefNannySetupContext(
"levelSetCurvatureCoefficientsEvaluate (wrapper)", 0);
10095 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_dr,0};
10096 PyObject* values[5] = {0,0,0,0,0};
10097 if (unlikely(__pyx_kwds)) {
10098 Py_ssize_t kw_args;
10099 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10100 switch (pos_args) {
10101 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10102 CYTHON_FALLTHROUGH;
10103 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10104 CYTHON_FALLTHROUGH;
10105 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10106 CYTHON_FALLTHROUGH;
10107 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10108 CYTHON_FALLTHROUGH;
10109 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10110 CYTHON_FALLTHROUGH;
10112 default:
goto __pyx_L5_argtuple_error;
10114 kw_args = PyDict_Size(__pyx_kwds);
10115 switch (pos_args) {
10117 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
10118 else goto __pyx_L5_argtuple_error;
10119 CYTHON_FALLTHROUGH;
10121 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10123 __Pyx_RaiseArgtupleInvalid(
"levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 1); __PYX_ERR(0, 3583, __pyx_L3_error)
10125 CYTHON_FALLTHROUGH;
10127 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
10129 __Pyx_RaiseArgtupleInvalid(
"levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 2); __PYX_ERR(0, 3583, __pyx_L3_error)
10131 CYTHON_FALLTHROUGH;
10133 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
10135 __Pyx_RaiseArgtupleInvalid(
"levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 3); __PYX_ERR(0, 3583, __pyx_L3_error)
10137 CYTHON_FALLTHROUGH;
10139 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
10141 __Pyx_RaiseArgtupleInvalid(
"levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, 4); __PYX_ERR(0, 3583, __pyx_L3_error)
10144 if (unlikely(kw_args > 0)) {
10145 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"levelSetCurvatureCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3583, __pyx_L3_error)
10147 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
10148 goto __pyx_L5_argtuple_error;
10150 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10151 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10152 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10153 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10154 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10156 __pyx_v_grad_phi = ((PyArrayObject *)values[0]);
10157 __pyx_v_u = ((PyArrayObject *)values[1]);
10158 __pyx_v_f = ((PyArrayObject *)values[2]);
10159 __pyx_v_r = ((PyArrayObject *)values[3]);
10160 __pyx_v_dr = ((PyArrayObject *)values[4]);
10162 goto __pyx_L4_argument_unpacking_done;
10163 __pyx_L5_argtuple_error:;
10164 __Pyx_RaiseArgtupleInvalid(
"levelSetCurvatureCoefficientsEvaluate", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3583, __pyx_L3_error)
10166 __Pyx_AddTraceback(
"ctransportCoefficients.levelSetCurvatureCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10167 __Pyx_RefNannyFinishContext();
10169 __pyx_L4_argument_unpacking_done:;
10170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3583, __pyx_L1_error)
10171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3584, __pyx_L1_error)
10172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3585, __pyx_L1_error)
10173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3586, __pyx_L1_error)
10174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3587, __pyx_L1_error)
10175 __pyx_r = __pyx_pf_22ctransportCoefficients_48levelSetCurvatureCoefficientsEvaluate(__pyx_self, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_f, __pyx_v_r, __pyx_v_dr);
10182 __Pyx_RefNannyFinishContext();
10186 static PyObject *__pyx_pf_22ctransportCoefficients_48levelSetCurvatureCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
10187 PyObject *__pyx_r = NULL;
10188 __Pyx_RefNannyDeclarations
10189 PyObject *__pyx_t_1 = NULL;
10191 int __pyx_lineno = 0;
10192 const char *__pyx_filename = NULL;
10193 int __pyx_clineno = 0;
10194 __Pyx_RefNannySetupContext(
"levelSetCurvatureCoefficientsEvaluate", 0);
10203 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3588, __pyx_L1_error)
10204 __Pyx_GOTREF(__pyx_t_1);
10205 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3588, __pyx_L1_error)
10206 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10215 levelSetCurvatureCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
10226 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10229 __Pyx_XDECREF(__pyx_t_1);
10230 __Pyx_AddTraceback(
"ctransportCoefficients.levelSetCurvatureCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10233 __Pyx_XGIVEREF(__pyx_r);
10234 __Pyx_RefNannyFinishContext();
10247 static PyObject *__pyx_pw_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10248 static PyMethodDef __pyx_mdef_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate = {
"twophaseSignedDistanceCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10249 static PyObject *__pyx_pw_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10250 int __pyx_v_nPoints;
10251 int __pyx_v_nSpace;
10252 PyArrayObject *__pyx_v_S = 0;
10253 PyArrayObject *__pyx_v_u = 0;
10254 PyArrayObject *__pyx_v_grad_u = 0;
10255 PyArrayObject *__pyx_v_m = 0;
10256 PyArrayObject *__pyx_v_dm = 0;
10257 PyArrayObject *__pyx_v_h = 0;
10258 PyArrayObject *__pyx_v_dh = 0;
10259 PyArrayObject *__pyx_v_rh = 0;
10260 int __pyx_lineno = 0;
10261 const char *__pyx_filename = NULL;
10262 int __pyx_clineno = 0;
10263 PyObject *__pyx_r = 0;
10264 __Pyx_RefNannyDeclarations
10265 __Pyx_RefNannySetupContext(
"twophaseSignedDistanceCoefficientsEvaluate (wrapper)", 0);
10267 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_S,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_h,&__pyx_n_s_dh,&__pyx_n_s_rh,0};
10268 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
10269 if (unlikely(__pyx_kwds)) {
10270 Py_ssize_t kw_args;
10271 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10272 switch (pos_args) {
10273 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10274 CYTHON_FALLTHROUGH;
10275 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10276 CYTHON_FALLTHROUGH;
10277 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10278 CYTHON_FALLTHROUGH;
10279 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10280 CYTHON_FALLTHROUGH;
10281 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10282 CYTHON_FALLTHROUGH;
10283 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10284 CYTHON_FALLTHROUGH;
10285 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10286 CYTHON_FALLTHROUGH;
10287 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10288 CYTHON_FALLTHROUGH;
10289 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10290 CYTHON_FALLTHROUGH;
10291 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10292 CYTHON_FALLTHROUGH;
10294 default:
goto __pyx_L5_argtuple_error;
10296 kw_args = PyDict_Size(__pyx_kwds);
10297 switch (pos_args) {
10299 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
10300 else goto __pyx_L5_argtuple_error;
10301 CYTHON_FALLTHROUGH;
10303 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
10305 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 3595, __pyx_L3_error)
10307 CYTHON_FALLTHROUGH;
10309 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S)) != 0)) kw_args--;
10311 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 3595, __pyx_L3_error)
10313 CYTHON_FALLTHROUGH;
10315 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10317 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 3595, __pyx_L3_error)
10319 CYTHON_FALLTHROUGH;
10321 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10323 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 3595, __pyx_L3_error)
10325 CYTHON_FALLTHROUGH;
10327 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10329 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 3595, __pyx_L3_error)
10331 CYTHON_FALLTHROUGH;
10333 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10335 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 3595, __pyx_L3_error)
10337 CYTHON_FALLTHROUGH;
10339 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
10341 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 3595, __pyx_L3_error)
10343 CYTHON_FALLTHROUGH;
10345 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dh)) != 0)) kw_args--;
10347 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 3595, __pyx_L3_error)
10349 CYTHON_FALLTHROUGH;
10351 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rh)) != 0)) kw_args--;
10353 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 3595, __pyx_L3_error)
10356 if (unlikely(kw_args > 0)) {
10357 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophaseSignedDistanceCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3595, __pyx_L3_error)
10359 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
10360 goto __pyx_L5_argtuple_error;
10362 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10363 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10364 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10365 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10366 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10367 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10368 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10369 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10370 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10371 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10373 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3595, __pyx_L3_error)
10374 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3596, __pyx_L3_error)
10375 __pyx_v_S = ((PyArrayObject *)values[2]);
10376 __pyx_v_u = ((PyArrayObject *)values[3]);
10377 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
10378 __pyx_v_m = ((PyArrayObject *)values[5]);
10379 __pyx_v_dm = ((PyArrayObject *)values[6]);
10380 __pyx_v_h = ((PyArrayObject *)values[7]);
10381 __pyx_v_dh = ((PyArrayObject *)values[8]);
10382 __pyx_v_rh = ((PyArrayObject *)values[9]);
10384 goto __pyx_L4_argument_unpacking_done;
10385 __pyx_L5_argtuple_error:;
10386 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceCoefficientsEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3595, __pyx_L3_error)
10388 __Pyx_AddTraceback(
"ctransportCoefficients.twophaseSignedDistanceCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10389 __Pyx_RefNannyFinishContext();
10391 __pyx_L4_argument_unpacking_done:;
10392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S), __pyx_ptype_5numpy_ndarray, 1,
"S", 0))) __PYX_ERR(0, 3597, __pyx_L1_error)
10393 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3598, __pyx_L1_error)
10394 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3599, __pyx_L1_error)
10395 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3600, __pyx_L1_error)
10396 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3601, __pyx_L1_error)
10397 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 3602, __pyx_L1_error)
10398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dh), __pyx_ptype_5numpy_ndarray, 1,
"dh", 0))) __PYX_ERR(0, 3603, __pyx_L1_error)
10399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rh), __pyx_ptype_5numpy_ndarray, 1,
"rh", 0))) __PYX_ERR(0, 3604, __pyx_L1_error)
10400 __pyx_r = __pyx_pf_22ctransportCoefficients_50twophaseSignedDistanceCoefficientsEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_S, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_h, __pyx_v_dh, __pyx_v_rh);
10407 __Pyx_RefNannyFinishContext();
10411 static PyObject *__pyx_pf_22ctransportCoefficients_50twophaseSignedDistanceCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_S, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_dh, PyArrayObject *__pyx_v_rh) {
10412 PyObject *__pyx_r = NULL;
10413 __Pyx_RefNannyDeclarations
10414 __Pyx_RefNannySetupContext(
"twophaseSignedDistanceCoefficientsEvaluate", 0);
10423 twophaseSignedDistanceCoefficientsEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, ((
double *)__pyx_v_S->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_dh->data), ((
double *)__pyx_v_rh->data));
10434 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10435 __Pyx_XGIVEREF(__pyx_r);
10436 __Pyx_RefNannyFinishContext();
10449 static PyObject *__pyx_pw_22ctransportCoefficients_53eikonalEquationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10450 static PyMethodDef __pyx_mdef_22ctransportCoefficients_53eikonalEquationEvaluate = {
"eikonalEquationEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_53eikonalEquationEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10451 static PyObject *__pyx_pw_22ctransportCoefficients_53eikonalEquationEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10452 double __pyx_v_rhs;
10453 PyArrayObject *__pyx_v_u = 0;
10454 PyArrayObject *__pyx_v_grad_u = 0;
10455 PyArrayObject *__pyx_v_m = 0;
10456 PyArrayObject *__pyx_v_dm = 0;
10457 PyArrayObject *__pyx_v_H = 0;
10458 PyArrayObject *__pyx_v_dH = 0;
10459 PyArrayObject *__pyx_v_r = 0;
10460 int __pyx_lineno = 0;
10461 const char *__pyx_filename = NULL;
10462 int __pyx_clineno = 0;
10463 PyObject *__pyx_r = 0;
10464 __Pyx_RefNannyDeclarations
10465 __Pyx_RefNannySetupContext(
"eikonalEquationEvaluate (wrapper)", 0);
10467 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rhs,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,0};
10468 PyObject* values[8] = {0,0,0,0,0,0,0,0};
10469 if (unlikely(__pyx_kwds)) {
10470 Py_ssize_t kw_args;
10471 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10472 switch (pos_args) {
10473 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10474 CYTHON_FALLTHROUGH;
10475 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10476 CYTHON_FALLTHROUGH;
10477 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10478 CYTHON_FALLTHROUGH;
10479 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10480 CYTHON_FALLTHROUGH;
10481 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10482 CYTHON_FALLTHROUGH;
10483 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10484 CYTHON_FALLTHROUGH;
10485 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10486 CYTHON_FALLTHROUGH;
10487 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10488 CYTHON_FALLTHROUGH;
10490 default:
goto __pyx_L5_argtuple_error;
10492 kw_args = PyDict_Size(__pyx_kwds);
10493 switch (pos_args) {
10495 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhs)) != 0)) kw_args--;
10496 else goto __pyx_L5_argtuple_error;
10497 CYTHON_FALLTHROUGH;
10499 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10501 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 1); __PYX_ERR(0, 3615, __pyx_L3_error)
10503 CYTHON_FALLTHROUGH;
10505 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10507 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 2); __PYX_ERR(0, 3615, __pyx_L3_error)
10509 CYTHON_FALLTHROUGH;
10511 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10513 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 3); __PYX_ERR(0, 3615, __pyx_L3_error)
10515 CYTHON_FALLTHROUGH;
10517 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10519 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 4); __PYX_ERR(0, 3615, __pyx_L3_error)
10521 CYTHON_FALLTHROUGH;
10523 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
10525 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 5); __PYX_ERR(0, 3615, __pyx_L3_error)
10527 CYTHON_FALLTHROUGH;
10529 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
10531 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 6); __PYX_ERR(0, 3615, __pyx_L3_error)
10533 CYTHON_FALLTHROUGH;
10535 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
10537 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, 7); __PYX_ERR(0, 3615, __pyx_L3_error)
10540 if (unlikely(kw_args > 0)) {
10541 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"eikonalEquationEvaluate") < 0)) __PYX_ERR(0, 3615, __pyx_L3_error)
10543 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
10544 goto __pyx_L5_argtuple_error;
10546 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10547 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10548 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10549 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10550 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10551 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10552 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10553 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10555 __pyx_v_rhs = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rhs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3615, __pyx_L3_error)
10556 __pyx_v_u = ((PyArrayObject *)values[1]);
10557 __pyx_v_grad_u = ((PyArrayObject *)values[2]);
10558 __pyx_v_m = ((PyArrayObject *)values[3]);
10559 __pyx_v_dm = ((PyArrayObject *)values[4]);
10560 __pyx_v_H = ((PyArrayObject *)values[5]);
10561 __pyx_v_dH = ((PyArrayObject *)values[6]);
10562 __pyx_v_r = ((PyArrayObject *)values[7]);
10564 goto __pyx_L4_argument_unpacking_done;
10565 __pyx_L5_argtuple_error:;
10566 __Pyx_RaiseArgtupleInvalid(
"eikonalEquationEvaluate", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3615, __pyx_L3_error)
10568 __Pyx_AddTraceback(
"ctransportCoefficients.eikonalEquationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10569 __Pyx_RefNannyFinishContext();
10571 __pyx_L4_argument_unpacking_done:;
10572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3616, __pyx_L1_error)
10573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3617, __pyx_L1_error)
10574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3618, __pyx_L1_error)
10575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3619, __pyx_L1_error)
10576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3620, __pyx_L1_error)
10577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3621, __pyx_L1_error)
10578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3622, __pyx_L1_error)
10579 __pyx_r = __pyx_pf_22ctransportCoefficients_52eikonalEquationEvaluate(__pyx_self, __pyx_v_rhs, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r);
10586 __Pyx_RefNannyFinishContext();
10590 static PyObject *__pyx_pf_22ctransportCoefficients_52eikonalEquationEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rhs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r) {
10591 PyObject *__pyx_r = NULL;
10592 __Pyx_RefNannyDeclarations
10593 PyObject *__pyx_t_1 = NULL;
10597 int __pyx_lineno = 0;
10598 const char *__pyx_filename = NULL;
10599 int __pyx_clineno = 0;
10600 __Pyx_RefNannySetupContext(
"eikonalEquationEvaluate", 0);
10609 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3623, __pyx_L1_error)
10610 __Pyx_GOTREF(__pyx_t_1);
10611 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3623, __pyx_L1_error)
10612 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10621 __pyx_t_3 = (__pyx_v_dH->nd - 1);
10622 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3624, __pyx_L1_error)
10623 __Pyx_GOTREF(__pyx_t_1);
10624 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3624, __pyx_L1_error)
10625 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10634 eikonalEquationEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_rhs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_r->data));
10645 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10648 __Pyx_XDECREF(__pyx_t_1);
10649 __Pyx_AddTraceback(
"ctransportCoefficients.eikonalEquationEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10652 __Pyx_XGIVEREF(__pyx_r);
10653 __Pyx_RefNannyFinishContext();
10666 static PyObject *__pyx_pw_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10667 static PyMethodDef __pyx_mdef_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate = {
"redistanceLevelSetCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10668 static PyObject *__pyx_pw_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10669 double __pyx_v_eps;
10670 PyArrayObject *__pyx_v_u_levelSet = 0;
10671 PyArrayObject *__pyx_v_u = 0;
10672 PyArrayObject *__pyx_v_grad_u = 0;
10673 PyArrayObject *__pyx_v_m = 0;
10674 PyArrayObject *__pyx_v_dm = 0;
10675 PyArrayObject *__pyx_v_H = 0;
10676 PyArrayObject *__pyx_v_dH = 0;
10677 PyArrayObject *__pyx_v_r = 0;
10678 int __pyx_lineno = 0;
10679 const char *__pyx_filename = NULL;
10680 int __pyx_clineno = 0;
10681 PyObject *__pyx_r = 0;
10682 __Pyx_RefNannyDeclarations
10683 __Pyx_RefNannySetupContext(
"redistanceLevelSetCoefficientsEvaluate (wrapper)", 0);
10685 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,0};
10686 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
10687 if (unlikely(__pyx_kwds)) {
10688 Py_ssize_t kw_args;
10689 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10690 switch (pos_args) {
10691 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10692 CYTHON_FALLTHROUGH;
10693 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10694 CYTHON_FALLTHROUGH;
10695 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10696 CYTHON_FALLTHROUGH;
10697 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10698 CYTHON_FALLTHROUGH;
10699 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10700 CYTHON_FALLTHROUGH;
10701 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10702 CYTHON_FALLTHROUGH;
10703 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10704 CYTHON_FALLTHROUGH;
10705 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10706 CYTHON_FALLTHROUGH;
10707 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10708 CYTHON_FALLTHROUGH;
10710 default:
goto __pyx_L5_argtuple_error;
10712 kw_args = PyDict_Size(__pyx_kwds);
10713 switch (pos_args) {
10715 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
10716 else goto __pyx_L5_argtuple_error;
10717 CYTHON_FALLTHROUGH;
10719 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
10721 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 1); __PYX_ERR(0, 3633, __pyx_L3_error)
10723 CYTHON_FALLTHROUGH;
10725 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10727 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 2); __PYX_ERR(0, 3633, __pyx_L3_error)
10729 CYTHON_FALLTHROUGH;
10731 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10733 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 3); __PYX_ERR(0, 3633, __pyx_L3_error)
10735 CYTHON_FALLTHROUGH;
10737 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10739 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 4); __PYX_ERR(0, 3633, __pyx_L3_error)
10741 CYTHON_FALLTHROUGH;
10743 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10745 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 5); __PYX_ERR(0, 3633, __pyx_L3_error)
10747 CYTHON_FALLTHROUGH;
10749 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
10751 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 6); __PYX_ERR(0, 3633, __pyx_L3_error)
10753 CYTHON_FALLTHROUGH;
10755 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
10757 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 7); __PYX_ERR(0, 3633, __pyx_L3_error)
10759 CYTHON_FALLTHROUGH;
10761 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
10763 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, 8); __PYX_ERR(0, 3633, __pyx_L3_error)
10766 if (unlikely(kw_args > 0)) {
10767 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"redistanceLevelSetCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3633, __pyx_L3_error)
10769 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
10770 goto __pyx_L5_argtuple_error;
10772 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10773 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10774 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10775 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10776 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10777 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10778 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10779 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10780 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10782 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3633, __pyx_L3_error)
10783 __pyx_v_u_levelSet = ((PyArrayObject *)values[1]);
10784 __pyx_v_u = ((PyArrayObject *)values[2]);
10785 __pyx_v_grad_u = ((PyArrayObject *)values[3]);
10786 __pyx_v_m = ((PyArrayObject *)values[4]);
10787 __pyx_v_dm = ((PyArrayObject *)values[5]);
10788 __pyx_v_H = ((PyArrayObject *)values[6]);
10789 __pyx_v_dH = ((PyArrayObject *)values[7]);
10790 __pyx_v_r = ((PyArrayObject *)values[8]);
10792 goto __pyx_L4_argument_unpacking_done;
10793 __pyx_L5_argtuple_error:;
10794 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsEvaluate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3633, __pyx_L3_error)
10796 __Pyx_AddTraceback(
"ctransportCoefficients.redistanceLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10797 __Pyx_RefNannyFinishContext();
10799 __pyx_L4_argument_unpacking_done:;
10800 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 3634, __pyx_L1_error)
10801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3635, __pyx_L1_error)
10802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3636, __pyx_L1_error)
10803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3637, __pyx_L1_error)
10804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3638, __pyx_L1_error)
10805 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3639, __pyx_L1_error)
10806 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3640, __pyx_L1_error)
10807 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3641, __pyx_L1_error)
10808 __pyx_r = __pyx_pf_22ctransportCoefficients_54redistanceLevelSetCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r);
10815 __Pyx_RefNannyFinishContext();
10819 static PyObject *__pyx_pf_22ctransportCoefficients_54redistanceLevelSetCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r) {
10820 PyObject *__pyx_r = NULL;
10821 __Pyx_RefNannyDeclarations
10822 PyObject *__pyx_t_1 = NULL;
10826 int __pyx_lineno = 0;
10827 const char *__pyx_filename = NULL;
10828 int __pyx_clineno = 0;
10829 __Pyx_RefNannySetupContext(
"redistanceLevelSetCoefficientsEvaluate", 0);
10838 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3642, __pyx_L1_error)
10839 __Pyx_GOTREF(__pyx_t_1);
10840 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3642, __pyx_L1_error)
10841 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10850 __pyx_t_3 = (__pyx_v_dH->nd - 1);
10851 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3643, __pyx_L1_error)
10852 __Pyx_GOTREF(__pyx_t_1);
10853 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3643, __pyx_L1_error)
10854 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10863 redistanceLevelSetCoefficientsEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_eps, ((
double *)__pyx_v_u_levelSet->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_r->data));
10874 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10877 __Pyx_XDECREF(__pyx_t_1);
10878 __Pyx_AddTraceback(
"ctransportCoefficients.redistanceLevelSetCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
10881 __Pyx_XGIVEREF(__pyx_r);
10882 __Pyx_RefNannyFinishContext();
10895 static PyObject *__pyx_pw_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10896 static PyMethodDef __pyx_mdef_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate = {
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
10897 static PyObject *__pyx_pw_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10898 double __pyx_v_eps;
10899 double __pyx_v_Lambda_penalty;
10900 PyArrayObject *__pyx_v_u_levelSet = 0;
10901 PyArrayObject *__pyx_v_u = 0;
10902 PyArrayObject *__pyx_v_grad_u = 0;
10903 PyArrayObject *__pyx_v_m = 0;
10904 PyArrayObject *__pyx_v_dm = 0;
10905 PyArrayObject *__pyx_v_H = 0;
10906 PyArrayObject *__pyx_v_dH = 0;
10907 PyArrayObject *__pyx_v_r = 0;
10908 PyArrayObject *__pyx_v_dr = 0;
10909 int __pyx_lineno = 0;
10910 const char *__pyx_filename = NULL;
10911 int __pyx_clineno = 0;
10912 PyObject *__pyx_r = 0;
10913 __Pyx_RefNannyDeclarations
10914 __Pyx_RefNannySetupContext(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate (wrapper)", 0);
10916 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_Lambda_penalty,&__pyx_n_s_u_levelSet,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,&__pyx_n_s_dr,0};
10917 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
10918 if (unlikely(__pyx_kwds)) {
10919 Py_ssize_t kw_args;
10920 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10921 switch (pos_args) {
10922 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10923 CYTHON_FALLTHROUGH;
10924 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10925 CYTHON_FALLTHROUGH;
10926 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10927 CYTHON_FALLTHROUGH;
10928 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10929 CYTHON_FALLTHROUGH;
10930 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10931 CYTHON_FALLTHROUGH;
10932 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10933 CYTHON_FALLTHROUGH;
10934 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10935 CYTHON_FALLTHROUGH;
10936 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10937 CYTHON_FALLTHROUGH;
10938 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10939 CYTHON_FALLTHROUGH;
10940 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10941 CYTHON_FALLTHROUGH;
10942 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10943 CYTHON_FALLTHROUGH;
10945 default:
goto __pyx_L5_argtuple_error;
10947 kw_args = PyDict_Size(__pyx_kwds);
10948 switch (pos_args) {
10950 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
10951 else goto __pyx_L5_argtuple_error;
10952 CYTHON_FALLTHROUGH;
10954 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda_penalty)) != 0)) kw_args--;
10956 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 3653, __pyx_L3_error)
10958 CYTHON_FALLTHROUGH;
10960 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
10962 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 3653, __pyx_L3_error)
10964 CYTHON_FALLTHROUGH;
10966 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10968 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 3653, __pyx_L3_error)
10970 CYTHON_FALLTHROUGH;
10972 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
10974 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 3653, __pyx_L3_error)
10976 CYTHON_FALLTHROUGH;
10978 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
10980 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 3653, __pyx_L3_error)
10982 CYTHON_FALLTHROUGH;
10984 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
10986 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 3653, __pyx_L3_error)
10988 CYTHON_FALLTHROUGH;
10990 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
10992 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 3653, __pyx_L3_error)
10994 CYTHON_FALLTHROUGH;
10996 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
10998 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 3653, __pyx_L3_error)
11000 CYTHON_FALLTHROUGH;
11002 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
11004 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 3653, __pyx_L3_error)
11006 CYTHON_FALLTHROUGH;
11008 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
11010 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 3653, __pyx_L3_error)
11013 if (unlikely(kw_args > 0)) {
11014 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate") < 0)) __PYX_ERR(0, 3653, __pyx_L3_error)
11016 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
11017 goto __pyx_L5_argtuple_error;
11019 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11020 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11021 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11022 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11023 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11024 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11025 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11026 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11027 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11028 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11029 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11031 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3653, __pyx_L3_error)
11032 __pyx_v_Lambda_penalty = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_Lambda_penalty == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3654, __pyx_L3_error)
11033 __pyx_v_u_levelSet = ((PyArrayObject *)values[2]);
11034 __pyx_v_u = ((PyArrayObject *)values[3]);
11035 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
11036 __pyx_v_m = ((PyArrayObject *)values[5]);
11037 __pyx_v_dm = ((PyArrayObject *)values[6]);
11038 __pyx_v_H = ((PyArrayObject *)values[7]);
11039 __pyx_v_dH = ((PyArrayObject *)values[8]);
11040 __pyx_v_r = ((PyArrayObject *)values[9]);
11041 __pyx_v_dr = ((PyArrayObject *)values[10]);
11043 goto __pyx_L4_argument_unpacking_done;
11044 __pyx_L5_argtuple_error:;
11045 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3653, __pyx_L3_error)
11047 __Pyx_AddTraceback(
"ctransportCoefficients.redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11048 __Pyx_RefNannyFinishContext();
11050 __pyx_L4_argument_unpacking_done:;
11051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 3655, __pyx_L1_error)
11052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3656, __pyx_L1_error)
11053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3657, __pyx_L1_error)
11054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3658, __pyx_L1_error)
11055 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3659, __pyx_L1_error)
11056 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3660, __pyx_L1_error)
11057 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3661, __pyx_L1_error)
11058 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3662, __pyx_L1_error)
11059 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3663, __pyx_L1_error)
11060 __pyx_r = __pyx_pf_22ctransportCoefficients_56redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_Lambda_penalty, __pyx_v_u_levelSet, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r, __pyx_v_dr);
11067 __Pyx_RefNannyFinishContext();
11071 static PyObject *__pyx_pf_22ctransportCoefficients_56redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_Lambda_penalty, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
11072 PyObject *__pyx_r = NULL;
11073 __Pyx_RefNannyDeclarations
11074 PyObject *__pyx_t_1 = NULL;
11078 int __pyx_lineno = 0;
11079 const char *__pyx_filename = NULL;
11080 int __pyx_clineno = 0;
11081 __Pyx_RefNannySetupContext(
"redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", 0);
11090 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3664, __pyx_L1_error)
11091 __Pyx_GOTREF(__pyx_t_1);
11092 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3664, __pyx_L1_error)
11093 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11102 __pyx_t_3 = (__pyx_v_dH->nd - 1);
11103 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3665, __pyx_L1_error)
11104 __Pyx_GOTREF(__pyx_t_1);
11105 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3665, __pyx_L1_error)
11106 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11115 redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_eps, __pyx_v_Lambda_penalty, ((
double *)__pyx_v_u_levelSet->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
11126 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11129 __Pyx_XDECREF(__pyx_t_1);
11130 __Pyx_AddTraceback(
"ctransportCoefficients.redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11133 __Pyx_XGIVEREF(__pyx_r);
11134 __Pyx_RefNannyFinishContext();
11147 static PyObject *__pyx_pw_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11148 static PyMethodDef __pyx_mdef_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate = {
"redistanceLevelSetSandFCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
11149 static PyObject *__pyx_pw_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11150 double __pyx_v_eps;
11151 PyArrayObject *__pyx_v_u_levelSet = 0;
11152 PyArrayObject *__pyx_v_dV = 0;
11153 PyArrayObject *__pyx_v_u = 0;
11154 PyArrayObject *__pyx_v_grad_u = 0;
11155 PyArrayObject *__pyx_v_m = 0;
11156 PyArrayObject *__pyx_v_dm = 0;
11157 PyArrayObject *__pyx_v_H = 0;
11158 PyArrayObject *__pyx_v_dH = 0;
11159 PyArrayObject *__pyx_v_r = 0;
11160 int __pyx_lineno = 0;
11161 const char *__pyx_filename = NULL;
11162 int __pyx_clineno = 0;
11163 PyObject *__pyx_r = 0;
11164 __Pyx_RefNannyDeclarations
11165 __Pyx_RefNannySetupContext(
"redistanceLevelSetSandFCoefficientsEvaluate (wrapper)", 0);
11167 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_r,0};
11168 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
11169 if (unlikely(__pyx_kwds)) {
11170 Py_ssize_t kw_args;
11171 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11172 switch (pos_args) {
11173 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11174 CYTHON_FALLTHROUGH;
11175 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11176 CYTHON_FALLTHROUGH;
11177 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11178 CYTHON_FALLTHROUGH;
11179 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11180 CYTHON_FALLTHROUGH;
11181 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11182 CYTHON_FALLTHROUGH;
11183 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11184 CYTHON_FALLTHROUGH;
11185 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11186 CYTHON_FALLTHROUGH;
11187 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11188 CYTHON_FALLTHROUGH;
11189 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11190 CYTHON_FALLTHROUGH;
11191 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11192 CYTHON_FALLTHROUGH;
11194 default:
goto __pyx_L5_argtuple_error;
11196 kw_args = PyDict_Size(__pyx_kwds);
11197 switch (pos_args) {
11199 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
11200 else goto __pyx_L5_argtuple_error;
11201 CYTHON_FALLTHROUGH;
11203 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
11205 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 3677, __pyx_L3_error)
11207 CYTHON_FALLTHROUGH;
11209 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
11211 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 3677, __pyx_L3_error)
11213 CYTHON_FALLTHROUGH;
11215 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
11217 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 3677, __pyx_L3_error)
11219 CYTHON_FALLTHROUGH;
11221 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
11223 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 3677, __pyx_L3_error)
11225 CYTHON_FALLTHROUGH;
11227 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
11229 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 3677, __pyx_L3_error)
11231 CYTHON_FALLTHROUGH;
11233 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
11235 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 3677, __pyx_L3_error)
11237 CYTHON_FALLTHROUGH;
11239 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
11241 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 3677, __pyx_L3_error)
11243 CYTHON_FALLTHROUGH;
11245 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
11247 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 3677, __pyx_L3_error)
11249 CYTHON_FALLTHROUGH;
11251 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
11253 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 3677, __pyx_L3_error)
11256 if (unlikely(kw_args > 0)) {
11257 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"redistanceLevelSetSandFCoefficientsEvaluate") < 0)) __PYX_ERR(0, 3677, __pyx_L3_error)
11259 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
11260 goto __pyx_L5_argtuple_error;
11262 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11263 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11264 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11265 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11266 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11267 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11268 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11269 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11270 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11271 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11273 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3677, __pyx_L3_error)
11274 __pyx_v_u_levelSet = ((PyArrayObject *)values[1]);
11275 __pyx_v_dV = ((PyArrayObject *)values[2]);
11276 __pyx_v_u = ((PyArrayObject *)values[3]);
11277 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
11278 __pyx_v_m = ((PyArrayObject *)values[5]);
11279 __pyx_v_dm = ((PyArrayObject *)values[6]);
11280 __pyx_v_H = ((PyArrayObject *)values[7]);
11281 __pyx_v_dH = ((PyArrayObject *)values[8]);
11282 __pyx_v_r = ((PyArrayObject *)values[9]);
11284 goto __pyx_L4_argument_unpacking_done;
11285 __pyx_L5_argtuple_error:;
11286 __Pyx_RaiseArgtupleInvalid(
"redistanceLevelSetSandFCoefficientsEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3677, __pyx_L3_error)
11288 __Pyx_AddTraceback(
"ctransportCoefficients.redistanceLevelSetSandFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11289 __Pyx_RefNannyFinishContext();
11291 __pyx_L4_argument_unpacking_done:;
11292 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 3678, __pyx_L1_error)
11293 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 3679, __pyx_L1_error)
11294 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3680, __pyx_L1_error)
11295 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3681, __pyx_L1_error)
11296 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3682, __pyx_L1_error)
11297 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3683, __pyx_L1_error)
11298 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3684, __pyx_L1_error)
11299 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3685, __pyx_L1_error)
11300 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3686, __pyx_L1_error)
11301 __pyx_r = __pyx_pf_22ctransportCoefficients_58redistanceLevelSetSandFCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_dV, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH, __pyx_v_r);
11308 __Pyx_RefNannyFinishContext();
11312 static PyObject *__pyx_pf_22ctransportCoefficients_58redistanceLevelSetSandFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_r) {
11313 npy_intp __pyx_v_nSimplex;
11314 npy_intp __pyx_v_nPointsPerSimplex;
11315 PyObject *__pyx_r = NULL;
11316 __Pyx_RefNannyDeclarations
11319 PyObject *__pyx_t_3 = NULL;
11321 int __pyx_lineno = 0;
11322 const char *__pyx_filename = NULL;
11323 int __pyx_clineno = 0;
11324 __Pyx_RefNannySetupContext(
"redistanceLevelSetSandFCoefficientsEvaluate", 0);
11333 switch (__pyx_v_u->nd) {
11344 __pyx_t_1 = ((__pyx_v_u->nd == 2) != 0);
11354 __pyx_v_nSimplex = (__pyx_v_u->dimensions[0]);
11363 __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[1]);
11383 __pyx_v_nSimplex = ((__pyx_v_u->dimensions[0]) * (__pyx_v_u->dimensions[1]));
11392 __pyx_v_nPointsPerSimplex = (__pyx_v_u->dimensions[2]);
11403 __pyx_t_2 = (__pyx_v_dH->nd - 1);
11404 __pyx_t_3 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_2,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3696, __pyx_L1_error)
11405 __Pyx_GOTREF(__pyx_t_3);
11406 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3696, __pyx_L1_error)
11407 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11416 redistanceLevelSetSandFCoefficientsEvaluate(__pyx_v_nSimplex, __pyx_v_nPointsPerSimplex, __pyx_t_4, __pyx_v_eps, ((
double *)__pyx_v_u_levelSet->data), ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_r->data));
11435 #ifndef CYTHON_WITHOUT_ASSERTIONS
11436 if (unlikely(!Py_OptimizeFlag)) {
11437 if (unlikely(!0)) {
11438 PyErr_SetNone(PyExc_AssertionError);
11439 __PYX_ERR(0, 3708, __pyx_L1_error)
11455 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11458 __Pyx_XDECREF(__pyx_t_3);
11459 __Pyx_AddTraceback(
"ctransportCoefficients.redistanceLevelSetSandFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
11462 __Pyx_XGIVEREF(__pyx_r);
11463 __Pyx_RefNannyFinishContext();
11476 static PyObject *__pyx_pw_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11477 static PyMethodDef __pyx_mdef_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet = {
"setWeakDirichletConditionsForLevelSet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet, METH_VARARGS|METH_KEYWORDS, 0};
11478 static PyObject *__pyx_pw_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11479 int __pyx_v_nElements_global;
11480 int __pyx_v_nDOF_trial_element;
11481 double __pyx_v_epsilon_freeze_factor;
11482 PyArrayObject *__pyx_v_elementDiameter = 0;
11483 PyArrayObject *__pyx_v_u_l2g = 0;
11484 PyArrayObject *__pyx_v_u_dof = 0;
11485 PyArrayObject *__pyx_v_freeze_nodes_tmp = 0;
11486 PyArrayObject *__pyx_v_weakDirichletConditionFlags = 0;
11487 int __pyx_lineno = 0;
11488 const char *__pyx_filename = NULL;
11489 int __pyx_clineno = 0;
11490 PyObject *__pyx_r = 0;
11491 __Pyx_RefNannyDeclarations
11492 __Pyx_RefNannySetupContext(
"setWeakDirichletConditionsForLevelSet (wrapper)", 0);
11494 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_epsilon_freeze_factor,&__pyx_n_s_elementDiameter,&__pyx_n_s_u_l2g,&__pyx_n_s_u_dof,&__pyx_n_s_freeze_nodes_tmp,&__pyx_n_s_weakDirichletConditionFlags,0};
11495 PyObject* values[8] = {0,0,0,0,0,0,0,0};
11496 if (unlikely(__pyx_kwds)) {
11497 Py_ssize_t kw_args;
11498 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11499 switch (pos_args) {
11500 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11501 CYTHON_FALLTHROUGH;
11502 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11503 CYTHON_FALLTHROUGH;
11504 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11505 CYTHON_FALLTHROUGH;
11506 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11507 CYTHON_FALLTHROUGH;
11508 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11509 CYTHON_FALLTHROUGH;
11510 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11511 CYTHON_FALLTHROUGH;
11512 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11513 CYTHON_FALLTHROUGH;
11514 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11515 CYTHON_FALLTHROUGH;
11517 default:
goto __pyx_L5_argtuple_error;
11519 kw_args = PyDict_Size(__pyx_kwds);
11520 switch (pos_args) {
11522 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
11523 else goto __pyx_L5_argtuple_error;
11524 CYTHON_FALLTHROUGH;
11526 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
11528 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 1); __PYX_ERR(0, 3709, __pyx_L3_error)
11530 CYTHON_FALLTHROUGH;
11532 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon_freeze_factor)) != 0)) kw_args--;
11534 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 2); __PYX_ERR(0, 3709, __pyx_L3_error)
11536 CYTHON_FALLTHROUGH;
11538 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
11540 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 3); __PYX_ERR(0, 3709, __pyx_L3_error)
11542 CYTHON_FALLTHROUGH;
11544 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_l2g)) != 0)) kw_args--;
11546 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 4); __PYX_ERR(0, 3709, __pyx_L3_error)
11548 CYTHON_FALLTHROUGH;
11550 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_dof)) != 0)) kw_args--;
11552 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 5); __PYX_ERR(0, 3709, __pyx_L3_error)
11554 CYTHON_FALLTHROUGH;
11556 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeze_nodes_tmp)) != 0)) kw_args--;
11558 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 6); __PYX_ERR(0, 3709, __pyx_L3_error)
11560 CYTHON_FALLTHROUGH;
11562 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weakDirichletConditionFlags)) != 0)) kw_args--;
11564 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, 7); __PYX_ERR(0, 3709, __pyx_L3_error)
11567 if (unlikely(kw_args > 0)) {
11568 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setWeakDirichletConditionsForLevelSet") < 0)) __PYX_ERR(0, 3709, __pyx_L3_error)
11570 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
11571 goto __pyx_L5_argtuple_error;
11573 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11574 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11575 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11576 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11577 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11578 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11579 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11580 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11582 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3709, __pyx_L3_error)
11583 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3710, __pyx_L3_error)
11584 __pyx_v_epsilon_freeze_factor = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_epsilon_freeze_factor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3711, __pyx_L3_error)
11585 __pyx_v_elementDiameter = ((PyArrayObject *)values[3]);
11586 __pyx_v_u_l2g = ((PyArrayObject *)values[4]);
11587 __pyx_v_u_dof = ((PyArrayObject *)values[5]);
11588 __pyx_v_freeze_nodes_tmp = ((PyArrayObject *)values[6]);
11589 __pyx_v_weakDirichletConditionFlags = ((PyArrayObject *)values[7]);
11591 goto __pyx_L4_argument_unpacking_done;
11592 __pyx_L5_argtuple_error:;
11593 __Pyx_RaiseArgtupleInvalid(
"setWeakDirichletConditionsForLevelSet", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3709, __pyx_L3_error)
11595 __Pyx_AddTraceback(
"ctransportCoefficients.setWeakDirichletConditionsForLevelSet", __pyx_clineno, __pyx_lineno, __pyx_filename);
11596 __Pyx_RefNannyFinishContext();
11598 __pyx_L4_argument_unpacking_done:;
11599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 3712, __pyx_L1_error)
11600 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_l2g), __pyx_ptype_5numpy_ndarray, 1,
"u_l2g", 0))) __PYX_ERR(0, 3713, __pyx_L1_error)
11601 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_dof), __pyx_ptype_5numpy_ndarray, 1,
"u_dof", 0))) __PYX_ERR(0, 3714, __pyx_L1_error)
11602 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeze_nodes_tmp), __pyx_ptype_5numpy_ndarray, 1,
"freeze_nodes_tmp", 0))) __PYX_ERR(0, 3715, __pyx_L1_error)
11603 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weakDirichletConditionFlags), __pyx_ptype_5numpy_ndarray, 1,
"weakDirichletConditionFlags", 0))) __PYX_ERR(0, 3716, __pyx_L1_error)
11604 __pyx_r = __pyx_pf_22ctransportCoefficients_60setWeakDirichletConditionsForLevelSet(__pyx_self, __pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, __pyx_v_elementDiameter, __pyx_v_u_l2g, __pyx_v_u_dof, __pyx_v_freeze_nodes_tmp, __pyx_v_weakDirichletConditionFlags);
11611 __Pyx_RefNannyFinishContext();
11615 static PyObject *__pyx_pf_22ctransportCoefficients_60setWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nDOF_trial_element,
double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags) {
11616 PyObject *__pyx_r = NULL;
11617 __Pyx_RefNannyDeclarations
11618 __Pyx_RefNannySetupContext(
"setWeakDirichletConditionsForLevelSet", 0);
11627 setWeakDirichletConditionsForLevelSet(__pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, ((
double *)__pyx_v_elementDiameter->data), ((
int *)__pyx_v_u_l2g->data), ((
double *)__pyx_v_u_dof->data), ((
int *)__pyx_v_freeze_nodes_tmp->data), ((
int *)__pyx_v_weakDirichletConditionFlags->data));
11638 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11639 __Pyx_XGIVEREF(__pyx_r);
11640 __Pyx_RefNannyFinishContext();
11653 static PyObject *__pyx_pw_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11654 static PyMethodDef __pyx_mdef_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet = {
"setSimpleWeakDirichletConditionsForLevelSet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet, METH_VARARGS|METH_KEYWORDS, 0};
11655 static PyObject *__pyx_pw_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11656 int __pyx_v_nElements_global;
11657 int __pyx_v_nDOF_trial_element;
11658 double __pyx_v_epsilon_freeze_factor;
11659 PyArrayObject *__pyx_v_elementDiameter = 0;
11660 PyArrayObject *__pyx_v_u_l2g = 0;
11661 PyArrayObject *__pyx_v_u_dof = 0;
11662 PyArrayObject *__pyx_v_freeze_nodes_tmp = 0;
11663 PyArrayObject *__pyx_v_weakDirichletConditionFlags = 0;
11664 int __pyx_lineno = 0;
11665 const char *__pyx_filename = NULL;
11666 int __pyx_clineno = 0;
11667 PyObject *__pyx_r = 0;
11668 __Pyx_RefNannyDeclarations
11669 __Pyx_RefNannySetupContext(
"setSimpleWeakDirichletConditionsForLevelSet (wrapper)", 0);
11671 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_epsilon_freeze_factor,&__pyx_n_s_elementDiameter,&__pyx_n_s_u_l2g,&__pyx_n_s_u_dof,&__pyx_n_s_freeze_nodes_tmp,&__pyx_n_s_weakDirichletConditionFlags,0};
11672 PyObject* values[8] = {0,0,0,0,0,0,0,0};
11673 if (unlikely(__pyx_kwds)) {
11674 Py_ssize_t kw_args;
11675 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11676 switch (pos_args) {
11677 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11678 CYTHON_FALLTHROUGH;
11679 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11680 CYTHON_FALLTHROUGH;
11681 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11682 CYTHON_FALLTHROUGH;
11683 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11684 CYTHON_FALLTHROUGH;
11685 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11686 CYTHON_FALLTHROUGH;
11687 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11688 CYTHON_FALLTHROUGH;
11689 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11690 CYTHON_FALLTHROUGH;
11691 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11692 CYTHON_FALLTHROUGH;
11694 default:
goto __pyx_L5_argtuple_error;
11696 kw_args = PyDict_Size(__pyx_kwds);
11697 switch (pos_args) {
11699 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
11700 else goto __pyx_L5_argtuple_error;
11701 CYTHON_FALLTHROUGH;
11703 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
11705 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 1); __PYX_ERR(0, 3725, __pyx_L3_error)
11707 CYTHON_FALLTHROUGH;
11709 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon_freeze_factor)) != 0)) kw_args--;
11711 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 2); __PYX_ERR(0, 3725, __pyx_L3_error)
11713 CYTHON_FALLTHROUGH;
11715 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
11717 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 3); __PYX_ERR(0, 3725, __pyx_L3_error)
11719 CYTHON_FALLTHROUGH;
11721 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_l2g)) != 0)) kw_args--;
11723 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 4); __PYX_ERR(0, 3725, __pyx_L3_error)
11725 CYTHON_FALLTHROUGH;
11727 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_dof)) != 0)) kw_args--;
11729 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 5); __PYX_ERR(0, 3725, __pyx_L3_error)
11731 CYTHON_FALLTHROUGH;
11733 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeze_nodes_tmp)) != 0)) kw_args--;
11735 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 6); __PYX_ERR(0, 3725, __pyx_L3_error)
11737 CYTHON_FALLTHROUGH;
11739 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weakDirichletConditionFlags)) != 0)) kw_args--;
11741 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, 7); __PYX_ERR(0, 3725, __pyx_L3_error)
11744 if (unlikely(kw_args > 0)) {
11745 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setSimpleWeakDirichletConditionsForLevelSet") < 0)) __PYX_ERR(0, 3725, __pyx_L3_error)
11747 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
11748 goto __pyx_L5_argtuple_error;
11750 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11751 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11752 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11753 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11754 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11755 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11756 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11757 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11759 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3725, __pyx_L3_error)
11760 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3726, __pyx_L3_error)
11761 __pyx_v_epsilon_freeze_factor = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_epsilon_freeze_factor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3727, __pyx_L3_error)
11762 __pyx_v_elementDiameter = ((PyArrayObject *)values[3]);
11763 __pyx_v_u_l2g = ((PyArrayObject *)values[4]);
11764 __pyx_v_u_dof = ((PyArrayObject *)values[5]);
11765 __pyx_v_freeze_nodes_tmp = ((PyArrayObject *)values[6]);
11766 __pyx_v_weakDirichletConditionFlags = ((PyArrayObject *)values[7]);
11768 goto __pyx_L4_argument_unpacking_done;
11769 __pyx_L5_argtuple_error:;
11770 __Pyx_RaiseArgtupleInvalid(
"setSimpleWeakDirichletConditionsForLevelSet", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3725, __pyx_L3_error)
11772 __Pyx_AddTraceback(
"ctransportCoefficients.setSimpleWeakDirichletConditionsForLevelSet", __pyx_clineno, __pyx_lineno, __pyx_filename);
11773 __Pyx_RefNannyFinishContext();
11775 __pyx_L4_argument_unpacking_done:;
11776 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 3728, __pyx_L1_error)
11777 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_l2g), __pyx_ptype_5numpy_ndarray, 1,
"u_l2g", 0))) __PYX_ERR(0, 3729, __pyx_L1_error)
11778 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_dof), __pyx_ptype_5numpy_ndarray, 1,
"u_dof", 0))) __PYX_ERR(0, 3730, __pyx_L1_error)
11779 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeze_nodes_tmp), __pyx_ptype_5numpy_ndarray, 1,
"freeze_nodes_tmp", 0))) __PYX_ERR(0, 3731, __pyx_L1_error)
11780 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weakDirichletConditionFlags), __pyx_ptype_5numpy_ndarray, 1,
"weakDirichletConditionFlags", 0))) __PYX_ERR(0, 3732, __pyx_L1_error)
11781 __pyx_r = __pyx_pf_22ctransportCoefficients_62setSimpleWeakDirichletConditionsForLevelSet(__pyx_self, __pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, __pyx_v_elementDiameter, __pyx_v_u_l2g, __pyx_v_u_dof, __pyx_v_freeze_nodes_tmp, __pyx_v_weakDirichletConditionFlags);
11788 __Pyx_RefNannyFinishContext();
11792 static PyObject *__pyx_pf_22ctransportCoefficients_62setSimpleWeakDirichletConditionsForLevelSet(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nDOF_trial_element,
double __pyx_v_epsilon_freeze_factor, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_u_l2g, PyArrayObject *__pyx_v_u_dof, PyArrayObject *__pyx_v_freeze_nodes_tmp, PyArrayObject *__pyx_v_weakDirichletConditionFlags) {
11793 PyObject *__pyx_r = NULL;
11794 __Pyx_RefNannyDeclarations
11795 __Pyx_RefNannySetupContext(
"setSimpleWeakDirichletConditionsForLevelSet", 0);
11804 setSimpleWeakDirichletConditionsForLevelSet(__pyx_v_nElements_global, __pyx_v_nDOF_trial_element, __pyx_v_epsilon_freeze_factor, ((
double *)__pyx_v_elementDiameter->data), ((
int *)__pyx_v_u_l2g->data), ((
double *)__pyx_v_u_dof->data), ((
int *)__pyx_v_freeze_nodes_tmp->data), ((
int *)__pyx_v_weakDirichletConditionFlags->data));
11815 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11816 __Pyx_XGIVEREF(__pyx_r);
11817 __Pyx_RefNannyFinishContext();
11830 static PyObject *__pyx_pw_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11831 static PyMethodDef __pyx_mdef_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate = {
"darcySharpInterfaceFlowEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
11832 static PyObject *__pyx_pw_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11834 double __pyx_v_rhoM;
11836 double __pyx_v_rhoP;
11837 double __pyx_v_eps;
11838 PyArrayObject *__pyx_v_gravity_u = 0;
11839 PyArrayObject *__pyx_v_u = 0;
11840 PyArrayObject *__pyx_v_gradu = 0;
11841 PyArrayObject *__pyx_v_u_levelSet = 0;
11842 PyArrayObject *__pyx_v_phi_pot = 0;
11843 PyArrayObject *__pyx_v_a = 0;
11844 PyArrayObject *__pyx_v_f = 0;
11845 PyArrayObject *__pyx_v_r = 0;
11846 PyArrayObject *__pyx_v_m = 0;
11847 PyArrayObject *__pyx_v_dphi_pot = 0;
11848 PyArrayObject *__pyx_v_da = 0;
11849 PyArrayObject *__pyx_v_df = 0;
11850 PyArrayObject *__pyx_v_dr = 0;
11851 PyArrayObject *__pyx_v_dm = 0;
11852 int __pyx_lineno = 0;
11853 const char *__pyx_filename = NULL;
11854 int __pyx_clineno = 0;
11855 PyObject *__pyx_r = 0;
11856 __Pyx_RefNannyDeclarations
11857 __Pyx_RefNannySetupContext(
"darcySharpInterfaceFlowEvaluate (wrapper)", 0);
11859 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_Km,&__pyx_n_s_rhoM,&__pyx_n_s_Kp,&__pyx_n_s_rhoP,&__pyx_n_s_eps,&__pyx_n_s_gravity_u,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_u_levelSet,&__pyx_n_s_phi_pot,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_m,&__pyx_n_s_dphi_pot,&__pyx_n_s_da,&__pyx_n_s_df,&__pyx_n_s_dr,&__pyx_n_s_dm,0};
11860 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
11861 if (unlikely(__pyx_kwds)) {
11862 Py_ssize_t kw_args;
11863 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11864 switch (pos_args) {
11865 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
11866 CYTHON_FALLTHROUGH;
11867 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
11868 CYTHON_FALLTHROUGH;
11869 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
11870 CYTHON_FALLTHROUGH;
11871 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
11872 CYTHON_FALLTHROUGH;
11873 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
11874 CYTHON_FALLTHROUGH;
11875 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
11876 CYTHON_FALLTHROUGH;
11877 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
11878 CYTHON_FALLTHROUGH;
11879 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11880 CYTHON_FALLTHROUGH;
11881 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11882 CYTHON_FALLTHROUGH;
11883 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11884 CYTHON_FALLTHROUGH;
11885 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11886 CYTHON_FALLTHROUGH;
11887 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11888 CYTHON_FALLTHROUGH;
11889 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11890 CYTHON_FALLTHROUGH;
11891 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11892 CYTHON_FALLTHROUGH;
11893 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11894 CYTHON_FALLTHROUGH;
11895 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11896 CYTHON_FALLTHROUGH;
11897 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11898 CYTHON_FALLTHROUGH;
11899 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11900 CYTHON_FALLTHROUGH;
11901 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11902 CYTHON_FALLTHROUGH;
11904 default:
goto __pyx_L5_argtuple_error;
11906 kw_args = PyDict_Size(__pyx_kwds);
11907 switch (pos_args) {
11909 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Km)) != 0)) kw_args--;
11910 else goto __pyx_L5_argtuple_error;
11911 CYTHON_FALLTHROUGH;
11913 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoM)) != 0)) kw_args--;
11915 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 1); __PYX_ERR(0, 3741, __pyx_L3_error)
11917 CYTHON_FALLTHROUGH;
11919 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kp)) != 0)) kw_args--;
11921 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 2); __PYX_ERR(0, 3741, __pyx_L3_error)
11923 CYTHON_FALLTHROUGH;
11925 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoP)) != 0)) kw_args--;
11927 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 3); __PYX_ERR(0, 3741, __pyx_L3_error)
11929 CYTHON_FALLTHROUGH;
11931 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
11933 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 4); __PYX_ERR(0, 3741, __pyx_L3_error)
11935 CYTHON_FALLTHROUGH;
11937 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity_u)) != 0)) kw_args--;
11939 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 5); __PYX_ERR(0, 3741, __pyx_L3_error)
11941 CYTHON_FALLTHROUGH;
11943 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
11945 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 6); __PYX_ERR(0, 3741, __pyx_L3_error)
11947 CYTHON_FALLTHROUGH;
11949 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
11951 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 7); __PYX_ERR(0, 3741, __pyx_L3_error)
11953 CYTHON_FALLTHROUGH;
11955 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
11957 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 8); __PYX_ERR(0, 3741, __pyx_L3_error)
11959 CYTHON_FALLTHROUGH;
11961 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_pot)) != 0)) kw_args--;
11963 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 9); __PYX_ERR(0, 3741, __pyx_L3_error)
11965 CYTHON_FALLTHROUGH;
11967 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
11969 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 10); __PYX_ERR(0, 3741, __pyx_L3_error)
11971 CYTHON_FALLTHROUGH;
11973 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
11975 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 11); __PYX_ERR(0, 3741, __pyx_L3_error)
11977 CYTHON_FALLTHROUGH;
11979 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
11981 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 12); __PYX_ERR(0, 3741, __pyx_L3_error)
11983 CYTHON_FALLTHROUGH;
11985 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
11987 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 13); __PYX_ERR(0, 3741, __pyx_L3_error)
11989 CYTHON_FALLTHROUGH;
11991 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_pot)) != 0)) kw_args--;
11993 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 14); __PYX_ERR(0, 3741, __pyx_L3_error)
11995 CYTHON_FALLTHROUGH;
11997 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
11999 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 15); __PYX_ERR(0, 3741, __pyx_L3_error)
12001 CYTHON_FALLTHROUGH;
12003 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
12005 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 16); __PYX_ERR(0, 3741, __pyx_L3_error)
12007 CYTHON_FALLTHROUGH;
12009 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
12011 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 17); __PYX_ERR(0, 3741, __pyx_L3_error)
12013 CYTHON_FALLTHROUGH;
12015 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
12017 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, 18); __PYX_ERR(0, 3741, __pyx_L3_error)
12020 if (unlikely(kw_args > 0)) {
12021 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"darcySharpInterfaceFlowEvaluate") < 0)) __PYX_ERR(0, 3741, __pyx_L3_error)
12023 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
12024 goto __pyx_L5_argtuple_error;
12026 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12027 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12028 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12029 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12030 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12031 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12032 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12033 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12034 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12035 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12036 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12037 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12038 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12039 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12040 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12041 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12042 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12043 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12044 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12046 __pyx_v_Km = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_Km == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3741, __pyx_L3_error)
12047 __pyx_v_rhoM = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rhoM == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3742, __pyx_L3_error)
12048 __pyx_v_Kp = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_Kp == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3743, __pyx_L3_error)
12049 __pyx_v_rhoP = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rhoP == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3744, __pyx_L3_error)
12050 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3745, __pyx_L3_error)
12051 __pyx_v_gravity_u = ((PyArrayObject *)values[5]);
12052 __pyx_v_u = ((PyArrayObject *)values[6]);
12053 __pyx_v_gradu = ((PyArrayObject *)values[7]);
12054 __pyx_v_u_levelSet = ((PyArrayObject *)values[8]);
12055 __pyx_v_phi_pot = ((PyArrayObject *)values[9]);
12056 __pyx_v_a = ((PyArrayObject *)values[10]);
12057 __pyx_v_f = ((PyArrayObject *)values[11]);
12058 __pyx_v_r = ((PyArrayObject *)values[12]);
12059 __pyx_v_m = ((PyArrayObject *)values[13]);
12060 __pyx_v_dphi_pot = ((PyArrayObject *)values[14]);
12061 __pyx_v_da = ((PyArrayObject *)values[15]);
12062 __pyx_v_df = ((PyArrayObject *)values[16]);
12063 __pyx_v_dr = ((PyArrayObject *)values[17]);
12064 __pyx_v_dm = ((PyArrayObject *)values[18]);
12066 goto __pyx_L4_argument_unpacking_done;
12067 __pyx_L5_argtuple_error:;
12068 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowEvaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3741, __pyx_L3_error)
12070 __Pyx_AddTraceback(
"ctransportCoefficients.darcySharpInterfaceFlowEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12071 __Pyx_RefNannyFinishContext();
12073 __pyx_L4_argument_unpacking_done:;
12074 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity_u), __pyx_ptype_5numpy_ndarray, 1,
"gravity_u", 0))) __PYX_ERR(0, 3746, __pyx_L1_error)
12075 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3747, __pyx_L1_error)
12076 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 3748, __pyx_L1_error)
12077 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 3749, __pyx_L1_error)
12078 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_pot), __pyx_ptype_5numpy_ndarray, 1,
"phi_pot", 0))) __PYX_ERR(0, 3750, __pyx_L1_error)
12079 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3751, __pyx_L1_error)
12080 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3752, __pyx_L1_error)
12081 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3753, __pyx_L1_error)
12082 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3754, __pyx_L1_error)
12083 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_pot), __pyx_ptype_5numpy_ndarray, 1,
"dphi_pot", 0))) __PYX_ERR(0, 3755, __pyx_L1_error)
12084 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3756, __pyx_L1_error)
12085 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3757, __pyx_L1_error)
12086 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3758, __pyx_L1_error)
12087 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3759, __pyx_L1_error)
12088 __pyx_r = __pyx_pf_22ctransportCoefficients_64darcySharpInterfaceFlowEvaluate(__pyx_self, __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, __pyx_v_gravity_u, __pyx_v_u, __pyx_v_gradu, __pyx_v_u_levelSet, __pyx_v_phi_pot, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_m, __pyx_v_dphi_pot, __pyx_v_da, __pyx_v_df, __pyx_v_dr, __pyx_v_dm);
12095 __Pyx_RefNannyFinishContext();
12099 static PyObject *__pyx_pf_22ctransportCoefficients_64darcySharpInterfaceFlowEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_Km,
double __pyx_v_rhoM,
double __pyx_v_Kp,
double __pyx_v_rhoP,
double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm) {
12100 PyObject *__pyx_r = NULL;
12101 __Pyx_RefNannyDeclarations
12102 PyObject *__pyx_t_1 = NULL;
12104 int __pyx_lineno = 0;
12105 const char *__pyx_filename = NULL;
12106 int __pyx_clineno = 0;
12107 __Pyx_RefNannySetupContext(
"darcySharpInterfaceFlowEvaluate", 0);
12116 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3760, __pyx_L1_error)
12117 __Pyx_GOTREF(__pyx_t_1);
12118 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3760, __pyx_L1_error)
12119 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12128 darcySharpInterfaceFlowEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, ((
double *)__pyx_v_gravity_u->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_u_levelSet->data), ((
double *)__pyx_v_phi_pot->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dphi_pot->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_dm->data));
12139 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12142 __Pyx_XDECREF(__pyx_t_1);
12143 __Pyx_AddTraceback(
"ctransportCoefficients.darcySharpInterfaceFlowEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12146 __Pyx_XGIVEREF(__pyx_r);
12147 __Pyx_RefNannyFinishContext();
12160 static PyObject *__pyx_pw_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12161 static PyMethodDef __pyx_mdef_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate = {
"darcySharpInterfaceFlowImEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
12162 static PyObject *__pyx_pw_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12164 double __pyx_v_rhoM;
12166 double __pyx_v_rhoP;
12167 double __pyx_v_eps;
12168 PyArrayObject *__pyx_v_gravity_u = 0;
12169 PyArrayObject *__pyx_v_u = 0;
12170 PyArrayObject *__pyx_v_gradu = 0;
12171 PyArrayObject *__pyx_v_u_levelSet = 0;
12172 PyArrayObject *__pyx_v_phi_pot = 0;
12173 PyArrayObject *__pyx_v_a = 0;
12174 PyArrayObject *__pyx_v_f = 0;
12175 PyArrayObject *__pyx_v_r = 0;
12176 PyArrayObject *__pyx_v_m = 0;
12177 PyArrayObject *__pyx_v_dphi_pot = 0;
12178 PyArrayObject *__pyx_v_da = 0;
12179 PyArrayObject *__pyx_v_df = 0;
12180 PyArrayObject *__pyx_v_dr = 0;
12181 PyArrayObject *__pyx_v_dm = 0;
12182 int __pyx_lineno = 0;
12183 const char *__pyx_filename = NULL;
12184 int __pyx_clineno = 0;
12185 PyObject *__pyx_r = 0;
12186 __Pyx_RefNannyDeclarations
12187 __Pyx_RefNannySetupContext(
"darcySharpInterfaceFlowImEvaluate (wrapper)", 0);
12189 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_Km,&__pyx_n_s_rhoM,&__pyx_n_s_Kp,&__pyx_n_s_rhoP,&__pyx_n_s_eps,&__pyx_n_s_gravity_u,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_u_levelSet,&__pyx_n_s_phi_pot,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_m,&__pyx_n_s_dphi_pot,&__pyx_n_s_da,&__pyx_n_s_df,&__pyx_n_s_dr,&__pyx_n_s_dm,0};
12190 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12191 if (unlikely(__pyx_kwds)) {
12192 Py_ssize_t kw_args;
12193 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12194 switch (pos_args) {
12195 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12196 CYTHON_FALLTHROUGH;
12197 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12198 CYTHON_FALLTHROUGH;
12199 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12200 CYTHON_FALLTHROUGH;
12201 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12202 CYTHON_FALLTHROUGH;
12203 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12204 CYTHON_FALLTHROUGH;
12205 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12206 CYTHON_FALLTHROUGH;
12207 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12208 CYTHON_FALLTHROUGH;
12209 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12210 CYTHON_FALLTHROUGH;
12211 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12212 CYTHON_FALLTHROUGH;
12213 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12214 CYTHON_FALLTHROUGH;
12215 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12216 CYTHON_FALLTHROUGH;
12217 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12218 CYTHON_FALLTHROUGH;
12219 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12220 CYTHON_FALLTHROUGH;
12221 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12222 CYTHON_FALLTHROUGH;
12223 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12224 CYTHON_FALLTHROUGH;
12225 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12226 CYTHON_FALLTHROUGH;
12227 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12228 CYTHON_FALLTHROUGH;
12229 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12230 CYTHON_FALLTHROUGH;
12231 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12232 CYTHON_FALLTHROUGH;
12234 default:
goto __pyx_L5_argtuple_error;
12236 kw_args = PyDict_Size(__pyx_kwds);
12237 switch (pos_args) {
12239 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Km)) != 0)) kw_args--;
12240 else goto __pyx_L5_argtuple_error;
12241 CYTHON_FALLTHROUGH;
12243 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoM)) != 0)) kw_args--;
12245 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 1); __PYX_ERR(0, 3781, __pyx_L3_error)
12247 CYTHON_FALLTHROUGH;
12249 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Kp)) != 0)) kw_args--;
12251 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 2); __PYX_ERR(0, 3781, __pyx_L3_error)
12253 CYTHON_FALLTHROUGH;
12255 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoP)) != 0)) kw_args--;
12257 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 3); __PYX_ERR(0, 3781, __pyx_L3_error)
12259 CYTHON_FALLTHROUGH;
12261 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
12263 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 4); __PYX_ERR(0, 3781, __pyx_L3_error)
12265 CYTHON_FALLTHROUGH;
12267 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity_u)) != 0)) kw_args--;
12269 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 5); __PYX_ERR(0, 3781, __pyx_L3_error)
12271 CYTHON_FALLTHROUGH;
12273 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
12275 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 6); __PYX_ERR(0, 3781, __pyx_L3_error)
12277 CYTHON_FALLTHROUGH;
12279 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
12281 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 7); __PYX_ERR(0, 3781, __pyx_L3_error)
12283 CYTHON_FALLTHROUGH;
12285 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
12287 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 8); __PYX_ERR(0, 3781, __pyx_L3_error)
12289 CYTHON_FALLTHROUGH;
12291 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_pot)) != 0)) kw_args--;
12293 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 9); __PYX_ERR(0, 3781, __pyx_L3_error)
12295 CYTHON_FALLTHROUGH;
12297 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
12299 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 10); __PYX_ERR(0, 3781, __pyx_L3_error)
12301 CYTHON_FALLTHROUGH;
12303 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
12305 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 11); __PYX_ERR(0, 3781, __pyx_L3_error)
12307 CYTHON_FALLTHROUGH;
12309 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
12311 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 12); __PYX_ERR(0, 3781, __pyx_L3_error)
12313 CYTHON_FALLTHROUGH;
12315 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
12317 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 13); __PYX_ERR(0, 3781, __pyx_L3_error)
12319 CYTHON_FALLTHROUGH;
12321 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_pot)) != 0)) kw_args--;
12323 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 14); __PYX_ERR(0, 3781, __pyx_L3_error)
12325 CYTHON_FALLTHROUGH;
12327 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
12329 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 15); __PYX_ERR(0, 3781, __pyx_L3_error)
12331 CYTHON_FALLTHROUGH;
12333 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
12335 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 16); __PYX_ERR(0, 3781, __pyx_L3_error)
12337 CYTHON_FALLTHROUGH;
12339 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
12341 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 17); __PYX_ERR(0, 3781, __pyx_L3_error)
12343 CYTHON_FALLTHROUGH;
12345 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
12347 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, 18); __PYX_ERR(0, 3781, __pyx_L3_error)
12350 if (unlikely(kw_args > 0)) {
12351 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"darcySharpInterfaceFlowImEvaluate") < 0)) __PYX_ERR(0, 3781, __pyx_L3_error)
12353 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
12354 goto __pyx_L5_argtuple_error;
12356 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12357 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12358 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12359 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12360 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12361 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12362 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12363 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12364 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12365 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12366 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12367 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12368 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12369 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12370 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12371 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12372 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12373 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12374 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12376 __pyx_v_Km = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_Km == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3781, __pyx_L3_error)
12377 __pyx_v_rhoM = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rhoM == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3782, __pyx_L3_error)
12378 __pyx_v_Kp = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_Kp == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3783, __pyx_L3_error)
12379 __pyx_v_rhoP = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rhoP == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3784, __pyx_L3_error)
12380 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3785, __pyx_L3_error)
12381 __pyx_v_gravity_u = ((PyArrayObject *)values[5]);
12382 __pyx_v_u = ((PyArrayObject *)values[6]);
12383 __pyx_v_gradu = ((PyArrayObject *)values[7]);
12384 __pyx_v_u_levelSet = ((PyArrayObject *)values[8]);
12385 __pyx_v_phi_pot = ((PyArrayObject *)values[9]);
12386 __pyx_v_a = ((PyArrayObject *)values[10]);
12387 __pyx_v_f = ((PyArrayObject *)values[11]);
12388 __pyx_v_r = ((PyArrayObject *)values[12]);
12389 __pyx_v_m = ((PyArrayObject *)values[13]);
12390 __pyx_v_dphi_pot = ((PyArrayObject *)values[14]);
12391 __pyx_v_da = ((PyArrayObject *)values[15]);
12392 __pyx_v_df = ((PyArrayObject *)values[16]);
12393 __pyx_v_dr = ((PyArrayObject *)values[17]);
12394 __pyx_v_dm = ((PyArrayObject *)values[18]);
12396 goto __pyx_L4_argument_unpacking_done;
12397 __pyx_L5_argtuple_error:;
12398 __Pyx_RaiseArgtupleInvalid(
"darcySharpInterfaceFlowImEvaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3781, __pyx_L3_error)
12400 __Pyx_AddTraceback(
"ctransportCoefficients.darcySharpInterfaceFlowImEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12401 __Pyx_RefNannyFinishContext();
12403 __pyx_L4_argument_unpacking_done:;
12404 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity_u), __pyx_ptype_5numpy_ndarray, 1,
"gravity_u", 0))) __PYX_ERR(0, 3786, __pyx_L1_error)
12405 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3787, __pyx_L1_error)
12406 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 3788, __pyx_L1_error)
12407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 3789, __pyx_L1_error)
12408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_pot), __pyx_ptype_5numpy_ndarray, 1,
"phi_pot", 0))) __PYX_ERR(0, 3790, __pyx_L1_error)
12409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3791, __pyx_L1_error)
12410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3792, __pyx_L1_error)
12411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3793, __pyx_L1_error)
12412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 3794, __pyx_L1_error)
12413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_pot), __pyx_ptype_5numpy_ndarray, 1,
"dphi_pot", 0))) __PYX_ERR(0, 3795, __pyx_L1_error)
12414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3796, __pyx_L1_error)
12415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3797, __pyx_L1_error)
12416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3798, __pyx_L1_error)
12417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 3799, __pyx_L1_error)
12418 __pyx_r = __pyx_pf_22ctransportCoefficients_66darcySharpInterfaceFlowImEvaluate(__pyx_self, __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, __pyx_v_gravity_u, __pyx_v_u, __pyx_v_gradu, __pyx_v_u_levelSet, __pyx_v_phi_pot, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_m, __pyx_v_dphi_pot, __pyx_v_da, __pyx_v_df, __pyx_v_dr, __pyx_v_dm);
12425 __Pyx_RefNannyFinishContext();
12429 static PyObject *__pyx_pf_22ctransportCoefficients_66darcySharpInterfaceFlowImEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_Km,
double __pyx_v_rhoM,
double __pyx_v_Kp,
double __pyx_v_rhoP,
double __pyx_v_eps, PyArrayObject *__pyx_v_gravity_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_phi_pot, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dphi_pot, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dm) {
12430 PyObject *__pyx_r = NULL;
12431 __Pyx_RefNannyDeclarations
12432 PyObject *__pyx_t_1 = NULL;
12434 int __pyx_lineno = 0;
12435 const char *__pyx_filename = NULL;
12436 int __pyx_clineno = 0;
12437 __Pyx_RefNannySetupContext(
"darcySharpInterfaceFlowImEvaluate", 0);
12446 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3800, __pyx_L1_error)
12447 __Pyx_GOTREF(__pyx_t_1);
12448 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3800, __pyx_L1_error)
12449 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12458 darcySharpInterfaceFlowImEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_Km, __pyx_v_rhoM, __pyx_v_Kp, __pyx_v_rhoP, __pyx_v_eps, ((
double *)__pyx_v_gravity_u->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_u_levelSet->data), ((
double *)__pyx_v_phi_pot->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dphi_pot->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_dm->data));
12469 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12472 __Pyx_XDECREF(__pyx_t_1);
12473 __Pyx_AddTraceback(
"ctransportCoefficients.darcySharpInterfaceFlowImEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12476 __Pyx_XGIVEREF(__pyx_r);
12477 __Pyx_RefNannyFinishContext();
12490 static PyObject *__pyx_pw_22ctransportCoefficients_69NavierStokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12491 static PyMethodDef __pyx_mdef_22ctransportCoefficients_69NavierStokes_2D_Evaluate = {
"NavierStokes_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_69NavierStokes_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
12492 static PyObject *__pyx_pw_22ctransportCoefficients_69NavierStokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12493 double __pyx_v_rho;
12495 PyArrayObject *__pyx_v_g = 0;
12496 PyArrayObject *__pyx_v_p = 0;
12497 PyArrayObject *__pyx_v_grad_p = 0;
12498 PyArrayObject *__pyx_v_u = 0;
12499 PyArrayObject *__pyx_v_v = 0;
12500 PyArrayObject *__pyx_v_mom_u_acc = 0;
12501 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
12502 PyArrayObject *__pyx_v_mom_v_acc = 0;
12503 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
12504 PyArrayObject *__pyx_v_mass_adv = 0;
12505 PyArrayObject *__pyx_v_dmass_adv_u = 0;
12506 PyArrayObject *__pyx_v_dmass_adv_v = 0;
12507 PyArrayObject *__pyx_v_mom_u_adv = 0;
12508 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
12509 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
12510 PyArrayObject *__pyx_v_mom_v_adv = 0;
12511 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
12512 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
12513 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
12514 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
12515 PyArrayObject *__pyx_v_mom_u_source = 0;
12516 PyArrayObject *__pyx_v_mom_v_source = 0;
12517 PyArrayObject *__pyx_v_mom_u_ham = 0;
12518 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
12519 PyArrayObject *__pyx_v_mom_v_ham = 0;
12520 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
12521 int __pyx_lineno = 0;
12522 const char *__pyx_filename = NULL;
12523 int __pyx_clineno = 0;
12524 PyObject *__pyx_r = 0;
12525 __Pyx_RefNannyDeclarations
12526 __Pyx_RefNannySetupContext(
"NavierStokes_2D_Evaluate (wrapper)", 0);
12528 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
12529 PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12530 if (unlikely(__pyx_kwds)) {
12531 Py_ssize_t kw_args;
12532 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12533 switch (pos_args) {
12534 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12535 CYTHON_FALLTHROUGH;
12536 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12537 CYTHON_FALLTHROUGH;
12538 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12539 CYTHON_FALLTHROUGH;
12540 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12541 CYTHON_FALLTHROUGH;
12542 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12543 CYTHON_FALLTHROUGH;
12544 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12545 CYTHON_FALLTHROUGH;
12546 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12547 CYTHON_FALLTHROUGH;
12548 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12549 CYTHON_FALLTHROUGH;
12550 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12551 CYTHON_FALLTHROUGH;
12552 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12553 CYTHON_FALLTHROUGH;
12554 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12555 CYTHON_FALLTHROUGH;
12556 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12557 CYTHON_FALLTHROUGH;
12558 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12559 CYTHON_FALLTHROUGH;
12560 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12561 CYTHON_FALLTHROUGH;
12562 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12563 CYTHON_FALLTHROUGH;
12564 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12565 CYTHON_FALLTHROUGH;
12566 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12567 CYTHON_FALLTHROUGH;
12568 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12569 CYTHON_FALLTHROUGH;
12570 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12571 CYTHON_FALLTHROUGH;
12572 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12573 CYTHON_FALLTHROUGH;
12574 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12575 CYTHON_FALLTHROUGH;
12576 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12577 CYTHON_FALLTHROUGH;
12578 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12579 CYTHON_FALLTHROUGH;
12580 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12581 CYTHON_FALLTHROUGH;
12582 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12583 CYTHON_FALLTHROUGH;
12584 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12585 CYTHON_FALLTHROUGH;
12586 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12587 CYTHON_FALLTHROUGH;
12588 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12589 CYTHON_FALLTHROUGH;
12591 default:
goto __pyx_L5_argtuple_error;
12593 kw_args = PyDict_Size(__pyx_kwds);
12594 switch (pos_args) {
12596 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
12597 else goto __pyx_L5_argtuple_error;
12598 CYTHON_FALLTHROUGH;
12600 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
12602 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 1); __PYX_ERR(0, 3819, __pyx_L3_error)
12604 CYTHON_FALLTHROUGH;
12606 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
12608 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 2); __PYX_ERR(0, 3819, __pyx_L3_error)
12610 CYTHON_FALLTHROUGH;
12612 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
12614 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 3); __PYX_ERR(0, 3819, __pyx_L3_error)
12616 CYTHON_FALLTHROUGH;
12618 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
12620 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 4); __PYX_ERR(0, 3819, __pyx_L3_error)
12622 CYTHON_FALLTHROUGH;
12624 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
12626 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 5); __PYX_ERR(0, 3819, __pyx_L3_error)
12628 CYTHON_FALLTHROUGH;
12630 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
12632 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 6); __PYX_ERR(0, 3819, __pyx_L3_error)
12634 CYTHON_FALLTHROUGH;
12636 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
12638 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 7); __PYX_ERR(0, 3819, __pyx_L3_error)
12640 CYTHON_FALLTHROUGH;
12642 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
12644 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 8); __PYX_ERR(0, 3819, __pyx_L3_error)
12646 CYTHON_FALLTHROUGH;
12648 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
12650 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 9); __PYX_ERR(0, 3819, __pyx_L3_error)
12652 CYTHON_FALLTHROUGH;
12654 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
12656 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 10); __PYX_ERR(0, 3819, __pyx_L3_error)
12658 CYTHON_FALLTHROUGH;
12660 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
12662 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 11); __PYX_ERR(0, 3819, __pyx_L3_error)
12664 CYTHON_FALLTHROUGH;
12666 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
12668 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 12); __PYX_ERR(0, 3819, __pyx_L3_error)
12670 CYTHON_FALLTHROUGH;
12672 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
12674 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 13); __PYX_ERR(0, 3819, __pyx_L3_error)
12676 CYTHON_FALLTHROUGH;
12678 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
12680 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 14); __PYX_ERR(0, 3819, __pyx_L3_error)
12682 CYTHON_FALLTHROUGH;
12684 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
12686 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 15); __PYX_ERR(0, 3819, __pyx_L3_error)
12688 CYTHON_FALLTHROUGH;
12690 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
12692 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 16); __PYX_ERR(0, 3819, __pyx_L3_error)
12694 CYTHON_FALLTHROUGH;
12696 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
12698 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 17); __PYX_ERR(0, 3819, __pyx_L3_error)
12700 CYTHON_FALLTHROUGH;
12702 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
12704 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 18); __PYX_ERR(0, 3819, __pyx_L3_error)
12706 CYTHON_FALLTHROUGH;
12708 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
12710 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 19); __PYX_ERR(0, 3819, __pyx_L3_error)
12712 CYTHON_FALLTHROUGH;
12714 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
12716 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 20); __PYX_ERR(0, 3819, __pyx_L3_error)
12718 CYTHON_FALLTHROUGH;
12720 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
12722 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 21); __PYX_ERR(0, 3819, __pyx_L3_error)
12724 CYTHON_FALLTHROUGH;
12726 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
12728 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 22); __PYX_ERR(0, 3819, __pyx_L3_error)
12730 CYTHON_FALLTHROUGH;
12732 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
12734 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 23); __PYX_ERR(0, 3819, __pyx_L3_error)
12736 CYTHON_FALLTHROUGH;
12738 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
12740 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 24); __PYX_ERR(0, 3819, __pyx_L3_error)
12742 CYTHON_FALLTHROUGH;
12744 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
12746 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 25); __PYX_ERR(0, 3819, __pyx_L3_error)
12748 CYTHON_FALLTHROUGH;
12750 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
12752 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 26); __PYX_ERR(0, 3819, __pyx_L3_error)
12754 CYTHON_FALLTHROUGH;
12756 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
12758 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, 27); __PYX_ERR(0, 3819, __pyx_L3_error)
12761 if (unlikely(kw_args > 0)) {
12762 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"NavierStokes_2D_Evaluate") < 0)) __PYX_ERR(0, 3819, __pyx_L3_error)
12764 }
else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
12765 goto __pyx_L5_argtuple_error;
12767 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12768 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12769 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12770 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12771 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12772 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12773 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12774 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12775 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12776 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12777 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12778 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12779 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12780 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12781 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12782 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12783 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12784 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12785 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12786 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12787 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12788 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12789 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12790 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12791 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12792 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12793 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12794 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12796 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3819, __pyx_L3_error)
12797 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3820, __pyx_L3_error)
12798 __pyx_v_g = ((PyArrayObject *)values[2]);
12799 __pyx_v_p = ((PyArrayObject *)values[3]);
12800 __pyx_v_grad_p = ((PyArrayObject *)values[4]);
12801 __pyx_v_u = ((PyArrayObject *)values[5]);
12802 __pyx_v_v = ((PyArrayObject *)values[6]);
12803 __pyx_v_mom_u_acc = ((PyArrayObject *)values[7]);
12804 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[8]);
12805 __pyx_v_mom_v_acc = ((PyArrayObject *)values[9]);
12806 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[10]);
12807 __pyx_v_mass_adv = ((PyArrayObject *)values[11]);
12808 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[12]);
12809 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[13]);
12810 __pyx_v_mom_u_adv = ((PyArrayObject *)values[14]);
12811 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[15]);
12812 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[16]);
12813 __pyx_v_mom_v_adv = ((PyArrayObject *)values[17]);
12814 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[18]);
12815 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[19]);
12816 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[20]);
12817 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[21]);
12818 __pyx_v_mom_u_source = ((PyArrayObject *)values[22]);
12819 __pyx_v_mom_v_source = ((PyArrayObject *)values[23]);
12820 __pyx_v_mom_u_ham = ((PyArrayObject *)values[24]);
12821 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[25]);
12822 __pyx_v_mom_v_ham = ((PyArrayObject *)values[26]);
12823 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[27]);
12825 goto __pyx_L4_argument_unpacking_done;
12826 __pyx_L5_argtuple_error:;
12827 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_2D_Evaluate", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3819, __pyx_L3_error)
12829 __Pyx_AddTraceback(
"ctransportCoefficients.NavierStokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12830 __Pyx_RefNannyFinishContext();
12832 __pyx_L4_argument_unpacking_done:;
12833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 3821, __pyx_L1_error)
12834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 3822, __pyx_L1_error)
12835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 3823, __pyx_L1_error)
12836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3824, __pyx_L1_error)
12837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3825, __pyx_L1_error)
12838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 3826, __pyx_L1_error)
12839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 3827, __pyx_L1_error)
12840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 3828, __pyx_L1_error)
12841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 3829, __pyx_L1_error)
12842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 3830, __pyx_L1_error)
12843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 3831, __pyx_L1_error)
12844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 3832, __pyx_L1_error)
12845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 3833, __pyx_L1_error)
12846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 3834, __pyx_L1_error)
12847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 3835, __pyx_L1_error)
12848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 3836, __pyx_L1_error)
12849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
12850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 3838, __pyx_L1_error)
12851 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 3839, __pyx_L1_error)
12852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 3840, __pyx_L1_error)
12853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 3841, __pyx_L1_error)
12854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 3842, __pyx_L1_error)
12855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 3843, __pyx_L1_error)
12856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 3844, __pyx_L1_error)
12857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 3845, __pyx_L1_error)
12858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 3846, __pyx_L1_error)
12859 __pyx_r = __pyx_pf_22ctransportCoefficients_68NavierStokes_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
12866 __Pyx_RefNannyFinishContext();
12870 static PyObject *__pyx_pf_22ctransportCoefficients_68NavierStokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
12871 PyObject *__pyx_r = NULL;
12872 __Pyx_RefNannyDeclarations
12873 PyObject *__pyx_t_1 = NULL;
12875 int __pyx_lineno = 0;
12876 const char *__pyx_filename = NULL;
12877 int __pyx_clineno = 0;
12878 __Pyx_RefNannySetupContext(
"NavierStokes_2D_Evaluate", 0);
12887 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3847, __pyx_L1_error)
12888 __Pyx_GOTREF(__pyx_t_1);
12889 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3847, __pyx_L1_error)
12890 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12899 NavierStokes_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
12910 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12913 __Pyx_XDECREF(__pyx_t_1);
12914 __Pyx_AddTraceback(
"ctransportCoefficients.NavierStokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
12917 __Pyx_XGIVEREF(__pyx_r);
12918 __Pyx_RefNannyFinishContext();
12931 static PyObject *__pyx_pw_22ctransportCoefficients_71NavierStokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12932 static PyMethodDef __pyx_mdef_22ctransportCoefficients_71NavierStokes_3D_Evaluate = {
"NavierStokes_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_71NavierStokes_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
12933 static PyObject *__pyx_pw_22ctransportCoefficients_71NavierStokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12934 double __pyx_v_rho;
12936 PyArrayObject *__pyx_v_g = 0;
12937 PyArrayObject *__pyx_v_p = 0;
12938 PyArrayObject *__pyx_v_grad_p = 0;
12939 PyArrayObject *__pyx_v_u = 0;
12940 PyArrayObject *__pyx_v_v = 0;
12941 PyArrayObject *__pyx_v_w = 0;
12942 PyArrayObject *__pyx_v_mom_u_acc = 0;
12943 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
12944 PyArrayObject *__pyx_v_mom_v_acc = 0;
12945 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
12946 PyArrayObject *__pyx_v_mom_w_acc = 0;
12947 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
12948 PyArrayObject *__pyx_v_mass_adv = 0;
12949 PyArrayObject *__pyx_v_dmass_adv_u = 0;
12950 PyArrayObject *__pyx_v_dmass_adv_v = 0;
12951 PyArrayObject *__pyx_v_dmass_adv_w = 0;
12952 PyArrayObject *__pyx_v_mom_u_adv = 0;
12953 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
12954 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
12955 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
12956 PyArrayObject *__pyx_v_mom_v_adv = 0;
12957 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
12958 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
12959 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
12960 PyArrayObject *__pyx_v_mom_w_adv = 0;
12961 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
12962 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
12963 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
12964 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
12965 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
12966 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
12967 PyArrayObject *__pyx_v_mom_u_source = 0;
12968 PyArrayObject *__pyx_v_mom_v_source = 0;
12969 PyArrayObject *__pyx_v_mom_w_source = 0;
12970 PyArrayObject *__pyx_v_mom_u_ham = 0;
12971 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
12972 PyArrayObject *__pyx_v_mom_v_ham = 0;
12973 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
12974 PyArrayObject *__pyx_v_mom_w_ham = 0;
12975 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
12976 int __pyx_lineno = 0;
12977 const char *__pyx_filename = NULL;
12978 int __pyx_clineno = 0;
12979 PyObject *__pyx_r = 0;
12980 __Pyx_RefNannyDeclarations
12981 __Pyx_RefNannySetupContext(
"NavierStokes_3D_Evaluate (wrapper)", 0);
12983 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
12984 PyObject* values[42] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12985 if (unlikely(__pyx_kwds)) {
12986 Py_ssize_t kw_args;
12987 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12988 switch (pos_args) {
12989 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
12990 CYTHON_FALLTHROUGH;
12991 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
12992 CYTHON_FALLTHROUGH;
12993 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
12994 CYTHON_FALLTHROUGH;
12995 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
12996 CYTHON_FALLTHROUGH;
12997 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
12998 CYTHON_FALLTHROUGH;
12999 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
13000 CYTHON_FALLTHROUGH;
13001 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
13002 CYTHON_FALLTHROUGH;
13003 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
13004 CYTHON_FALLTHROUGH;
13005 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13006 CYTHON_FALLTHROUGH;
13007 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13008 CYTHON_FALLTHROUGH;
13009 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13010 CYTHON_FALLTHROUGH;
13011 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13012 CYTHON_FALLTHROUGH;
13013 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13014 CYTHON_FALLTHROUGH;
13015 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13016 CYTHON_FALLTHROUGH;
13017 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13018 CYTHON_FALLTHROUGH;
13019 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13020 CYTHON_FALLTHROUGH;
13021 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13022 CYTHON_FALLTHROUGH;
13023 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13024 CYTHON_FALLTHROUGH;
13025 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13026 CYTHON_FALLTHROUGH;
13027 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13028 CYTHON_FALLTHROUGH;
13029 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13030 CYTHON_FALLTHROUGH;
13031 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13032 CYTHON_FALLTHROUGH;
13033 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13034 CYTHON_FALLTHROUGH;
13035 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13036 CYTHON_FALLTHROUGH;
13037 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13038 CYTHON_FALLTHROUGH;
13039 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13040 CYTHON_FALLTHROUGH;
13041 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13042 CYTHON_FALLTHROUGH;
13043 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13044 CYTHON_FALLTHROUGH;
13045 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13046 CYTHON_FALLTHROUGH;
13047 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13048 CYTHON_FALLTHROUGH;
13049 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13050 CYTHON_FALLTHROUGH;
13051 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13052 CYTHON_FALLTHROUGH;
13053 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13054 CYTHON_FALLTHROUGH;
13055 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13056 CYTHON_FALLTHROUGH;
13057 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13058 CYTHON_FALLTHROUGH;
13059 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13060 CYTHON_FALLTHROUGH;
13061 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13062 CYTHON_FALLTHROUGH;
13063 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13064 CYTHON_FALLTHROUGH;
13065 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13066 CYTHON_FALLTHROUGH;
13067 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13068 CYTHON_FALLTHROUGH;
13069 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13070 CYTHON_FALLTHROUGH;
13071 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13072 CYTHON_FALLTHROUGH;
13074 default:
goto __pyx_L5_argtuple_error;
13076 kw_args = PyDict_Size(__pyx_kwds);
13077 switch (pos_args) {
13079 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
13080 else goto __pyx_L5_argtuple_error;
13081 CYTHON_FALLTHROUGH;
13083 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
13085 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 1); __PYX_ERR(0, 3876, __pyx_L3_error)
13087 CYTHON_FALLTHROUGH;
13089 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
13091 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 2); __PYX_ERR(0, 3876, __pyx_L3_error)
13093 CYTHON_FALLTHROUGH;
13095 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
13097 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 3); __PYX_ERR(0, 3876, __pyx_L3_error)
13099 CYTHON_FALLTHROUGH;
13101 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
13103 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 4); __PYX_ERR(0, 3876, __pyx_L3_error)
13105 CYTHON_FALLTHROUGH;
13107 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
13109 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 5); __PYX_ERR(0, 3876, __pyx_L3_error)
13111 CYTHON_FALLTHROUGH;
13113 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13115 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 6); __PYX_ERR(0, 3876, __pyx_L3_error)
13117 CYTHON_FALLTHROUGH;
13119 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
13121 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 7); __PYX_ERR(0, 3876, __pyx_L3_error)
13123 CYTHON_FALLTHROUGH;
13125 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
13127 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 8); __PYX_ERR(0, 3876, __pyx_L3_error)
13129 CYTHON_FALLTHROUGH;
13131 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
13133 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 9); __PYX_ERR(0, 3876, __pyx_L3_error)
13135 CYTHON_FALLTHROUGH;
13137 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
13139 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 10); __PYX_ERR(0, 3876, __pyx_L3_error)
13141 CYTHON_FALLTHROUGH;
13143 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
13145 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 11); __PYX_ERR(0, 3876, __pyx_L3_error)
13147 CYTHON_FALLTHROUGH;
13149 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
13151 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 12); __PYX_ERR(0, 3876, __pyx_L3_error)
13153 CYTHON_FALLTHROUGH;
13155 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
13157 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 13); __PYX_ERR(0, 3876, __pyx_L3_error)
13159 CYTHON_FALLTHROUGH;
13161 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
13163 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 14); __PYX_ERR(0, 3876, __pyx_L3_error)
13165 CYTHON_FALLTHROUGH;
13167 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
13169 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 15); __PYX_ERR(0, 3876, __pyx_L3_error)
13171 CYTHON_FALLTHROUGH;
13173 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
13175 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 16); __PYX_ERR(0, 3876, __pyx_L3_error)
13177 CYTHON_FALLTHROUGH;
13179 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
13181 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 17); __PYX_ERR(0, 3876, __pyx_L3_error)
13183 CYTHON_FALLTHROUGH;
13185 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
13187 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 18); __PYX_ERR(0, 3876, __pyx_L3_error)
13189 CYTHON_FALLTHROUGH;
13191 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
13193 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 19); __PYX_ERR(0, 3876, __pyx_L3_error)
13195 CYTHON_FALLTHROUGH;
13197 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
13199 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 20); __PYX_ERR(0, 3876, __pyx_L3_error)
13201 CYTHON_FALLTHROUGH;
13203 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
13205 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 21); __PYX_ERR(0, 3876, __pyx_L3_error)
13207 CYTHON_FALLTHROUGH;
13209 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
13211 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 22); __PYX_ERR(0, 3876, __pyx_L3_error)
13213 CYTHON_FALLTHROUGH;
13215 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
13217 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 23); __PYX_ERR(0, 3876, __pyx_L3_error)
13219 CYTHON_FALLTHROUGH;
13221 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
13223 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 24); __PYX_ERR(0, 3876, __pyx_L3_error)
13225 CYTHON_FALLTHROUGH;
13227 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
13229 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 25); __PYX_ERR(0, 3876, __pyx_L3_error)
13231 CYTHON_FALLTHROUGH;
13233 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
13235 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 26); __PYX_ERR(0, 3876, __pyx_L3_error)
13237 CYTHON_FALLTHROUGH;
13239 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
13241 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 27); __PYX_ERR(0, 3876, __pyx_L3_error)
13243 CYTHON_FALLTHROUGH;
13245 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
13247 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 28); __PYX_ERR(0, 3876, __pyx_L3_error)
13249 CYTHON_FALLTHROUGH;
13251 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
13253 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 29); __PYX_ERR(0, 3876, __pyx_L3_error)
13255 CYTHON_FALLTHROUGH;
13257 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
13259 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 30); __PYX_ERR(0, 3876, __pyx_L3_error)
13261 CYTHON_FALLTHROUGH;
13263 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
13265 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 31); __PYX_ERR(0, 3876, __pyx_L3_error)
13267 CYTHON_FALLTHROUGH;
13269 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
13271 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 32); __PYX_ERR(0, 3876, __pyx_L3_error)
13273 CYTHON_FALLTHROUGH;
13275 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
13277 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 33); __PYX_ERR(0, 3876, __pyx_L3_error)
13279 CYTHON_FALLTHROUGH;
13281 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
13283 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 34); __PYX_ERR(0, 3876, __pyx_L3_error)
13285 CYTHON_FALLTHROUGH;
13287 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
13289 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 35); __PYX_ERR(0, 3876, __pyx_L3_error)
13291 CYTHON_FALLTHROUGH;
13293 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
13295 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 36); __PYX_ERR(0, 3876, __pyx_L3_error)
13297 CYTHON_FALLTHROUGH;
13299 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
13301 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 37); __PYX_ERR(0, 3876, __pyx_L3_error)
13303 CYTHON_FALLTHROUGH;
13305 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
13307 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 38); __PYX_ERR(0, 3876, __pyx_L3_error)
13309 CYTHON_FALLTHROUGH;
13311 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
13313 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 39); __PYX_ERR(0, 3876, __pyx_L3_error)
13315 CYTHON_FALLTHROUGH;
13317 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
13319 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 40); __PYX_ERR(0, 3876, __pyx_L3_error)
13321 CYTHON_FALLTHROUGH;
13323 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
13325 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, 41); __PYX_ERR(0, 3876, __pyx_L3_error)
13328 if (unlikely(kw_args > 0)) {
13329 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"NavierStokes_3D_Evaluate") < 0)) __PYX_ERR(0, 3876, __pyx_L3_error)
13331 }
else if (PyTuple_GET_SIZE(__pyx_args) != 42) {
13332 goto __pyx_L5_argtuple_error;
13334 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13335 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13336 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13337 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13338 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13339 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13340 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13341 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13342 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13343 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13344 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13345 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13346 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13347 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13348 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13349 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13350 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13351 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13352 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13353 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13354 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13355 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13356 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13357 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13358 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13359 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13360 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13361 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13362 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13363 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13364 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13365 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13366 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13367 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13368 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
13369 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
13370 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
13371 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
13372 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
13373 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
13374 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
13375 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
13377 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3876, __pyx_L3_error)
13378 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3877, __pyx_L3_error)
13379 __pyx_v_g = ((PyArrayObject *)values[2]);
13380 __pyx_v_p = ((PyArrayObject *)values[3]);
13381 __pyx_v_grad_p = ((PyArrayObject *)values[4]);
13382 __pyx_v_u = ((PyArrayObject *)values[5]);
13383 __pyx_v_v = ((PyArrayObject *)values[6]);
13384 __pyx_v_w = ((PyArrayObject *)values[7]);
13385 __pyx_v_mom_u_acc = ((PyArrayObject *)values[8]);
13386 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[9]);
13387 __pyx_v_mom_v_acc = ((PyArrayObject *)values[10]);
13388 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
13389 __pyx_v_mom_w_acc = ((PyArrayObject *)values[12]);
13390 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[13]);
13391 __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
13392 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[15]);
13393 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[16]);
13394 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[17]);
13395 __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
13396 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[19]);
13397 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[20]);
13398 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[21]);
13399 __pyx_v_mom_v_adv = ((PyArrayObject *)values[22]);
13400 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[23]);
13401 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[24]);
13402 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[25]);
13403 __pyx_v_mom_w_adv = ((PyArrayObject *)values[26]);
13404 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[27]);
13405 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[28]);
13406 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[29]);
13407 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[30]);
13408 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[31]);
13409 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[32]);
13410 __pyx_v_mom_u_source = ((PyArrayObject *)values[33]);
13411 __pyx_v_mom_v_source = ((PyArrayObject *)values[34]);
13412 __pyx_v_mom_w_source = ((PyArrayObject *)values[35]);
13413 __pyx_v_mom_u_ham = ((PyArrayObject *)values[36]);
13414 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[37]);
13415 __pyx_v_mom_v_ham = ((PyArrayObject *)values[38]);
13416 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[39]);
13417 __pyx_v_mom_w_ham = ((PyArrayObject *)values[40]);
13418 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[41]);
13420 goto __pyx_L4_argument_unpacking_done;
13421 __pyx_L5_argtuple_error:;
13422 __Pyx_RaiseArgtupleInvalid(
"NavierStokes_3D_Evaluate", 1, 42, 42, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3876, __pyx_L3_error)
13424 __Pyx_AddTraceback(
"ctransportCoefficients.NavierStokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13425 __Pyx_RefNannyFinishContext();
13427 __pyx_L4_argument_unpacking_done:;
13428 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 3878, __pyx_L1_error)
13429 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 3879, __pyx_L1_error)
13430 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 3880, __pyx_L1_error)
13431 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3881, __pyx_L1_error)
13432 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3882, __pyx_L1_error)
13433 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 3883, __pyx_L1_error)
13434 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 3884, __pyx_L1_error)
13435 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 3885, __pyx_L1_error)
13436 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 3886, __pyx_L1_error)
13437 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 3887, __pyx_L1_error)
13438 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 3888, __pyx_L1_error)
13439 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 3889, __pyx_L1_error)
13440 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 3890, __pyx_L1_error)
13441 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 3891, __pyx_L1_error)
13442 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 3892, __pyx_L1_error)
13443 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 3893, __pyx_L1_error)
13444 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 3894, __pyx_L1_error)
13445 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 3895, __pyx_L1_error)
13446 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 3896, __pyx_L1_error)
13447 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 3897, __pyx_L1_error)
13448 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 3898, __pyx_L1_error)
13449 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 3899, __pyx_L1_error)
13450 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 3900, __pyx_L1_error)
13451 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
13452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 3902, __pyx_L1_error)
13453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 3903, __pyx_L1_error)
13454 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 3904, __pyx_L1_error)
13455 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 3905, __pyx_L1_error)
13456 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 3906, __pyx_L1_error)
13457 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 3907, __pyx_L1_error)
13458 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 3908, __pyx_L1_error)
13459 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 3909, __pyx_L1_error)
13460 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 3910, __pyx_L1_error)
13461 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 3911, __pyx_L1_error)
13462 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 3912, __pyx_L1_error)
13463 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 3913, __pyx_L1_error)
13464 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 3914, __pyx_L1_error)
13465 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 3915, __pyx_L1_error)
13466 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 3916, __pyx_L1_error)
13467 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 3917, __pyx_L1_error)
13468 __pyx_r = __pyx_pf_22ctransportCoefficients_70NavierStokes_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
13475 __Pyx_RefNannyFinishContext();
13479 static PyObject *__pyx_pf_22ctransportCoefficients_70NavierStokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
13480 PyObject *__pyx_r = NULL;
13481 __Pyx_RefNannyDeclarations
13482 PyObject *__pyx_t_1 = NULL;
13484 int __pyx_lineno = 0;
13485 const char *__pyx_filename = NULL;
13486 int __pyx_clineno = 0;
13487 __Pyx_RefNannySetupContext(
"NavierStokes_3D_Evaluate", 0);
13496 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3918, __pyx_L1_error)
13497 __Pyx_GOTREF(__pyx_t_1);
13498 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3918, __pyx_L1_error)
13499 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13508 NavierStokes_3D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
13519 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13522 __Pyx_XDECREF(__pyx_t_1);
13523 __Pyx_AddTraceback(
"ctransportCoefficients.NavierStokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13526 __Pyx_XGIVEREF(__pyx_r);
13527 __Pyx_RefNannyFinishContext();
13540 static PyObject *__pyx_pw_22ctransportCoefficients_73Stokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13541 static PyMethodDef __pyx_mdef_22ctransportCoefficients_73Stokes_2D_Evaluate = {
"Stokes_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_73Stokes_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
13542 static PyObject *__pyx_pw_22ctransportCoefficients_73Stokes_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13543 double __pyx_v_rho;
13545 PyArrayObject *__pyx_v_g = 0;
13546 PyArrayObject *__pyx_v_p = 0;
13547 PyArrayObject *__pyx_v_grad_p = 0;
13548 PyArrayObject *__pyx_v_u = 0;
13549 PyArrayObject *__pyx_v_v = 0;
13550 PyArrayObject *__pyx_v_mom_u_acc = 0;
13551 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
13552 PyArrayObject *__pyx_v_mom_v_acc = 0;
13553 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
13554 PyArrayObject *__pyx_v_mass_adv = 0;
13555 PyArrayObject *__pyx_v_dmass_adv_u = 0;
13556 PyArrayObject *__pyx_v_dmass_adv_v = 0;
13557 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
13558 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
13559 PyArrayObject *__pyx_v_mom_u_source = 0;
13560 PyArrayObject *__pyx_v_mom_v_source = 0;
13561 PyArrayObject *__pyx_v_mom_u_ham = 0;
13562 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
13563 PyArrayObject *__pyx_v_mom_v_ham = 0;
13564 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
13565 int __pyx_lineno = 0;
13566 const char *__pyx_filename = NULL;
13567 int __pyx_clineno = 0;
13568 PyObject *__pyx_r = 0;
13569 __Pyx_RefNannyDeclarations
13570 __Pyx_RefNannySetupContext(
"Stokes_2D_Evaluate (wrapper)", 0);
13572 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
13573 PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13574 if (unlikely(__pyx_kwds)) {
13575 Py_ssize_t kw_args;
13576 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13577 switch (pos_args) {
13578 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13579 CYTHON_FALLTHROUGH;
13580 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13581 CYTHON_FALLTHROUGH;
13582 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13583 CYTHON_FALLTHROUGH;
13584 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13585 CYTHON_FALLTHROUGH;
13586 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13587 CYTHON_FALLTHROUGH;
13588 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13589 CYTHON_FALLTHROUGH;
13590 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13591 CYTHON_FALLTHROUGH;
13592 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13593 CYTHON_FALLTHROUGH;
13594 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13595 CYTHON_FALLTHROUGH;
13596 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13597 CYTHON_FALLTHROUGH;
13598 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13599 CYTHON_FALLTHROUGH;
13600 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13601 CYTHON_FALLTHROUGH;
13602 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13603 CYTHON_FALLTHROUGH;
13604 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13605 CYTHON_FALLTHROUGH;
13606 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13607 CYTHON_FALLTHROUGH;
13608 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13609 CYTHON_FALLTHROUGH;
13610 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13611 CYTHON_FALLTHROUGH;
13612 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13613 CYTHON_FALLTHROUGH;
13614 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13615 CYTHON_FALLTHROUGH;
13616 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13617 CYTHON_FALLTHROUGH;
13618 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13619 CYTHON_FALLTHROUGH;
13620 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13621 CYTHON_FALLTHROUGH;
13623 default:
goto __pyx_L5_argtuple_error;
13625 kw_args = PyDict_Size(__pyx_kwds);
13626 switch (pos_args) {
13628 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
13629 else goto __pyx_L5_argtuple_error;
13630 CYTHON_FALLTHROUGH;
13632 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
13634 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 1); __PYX_ERR(0, 3961, __pyx_L3_error)
13636 CYTHON_FALLTHROUGH;
13638 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
13640 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 2); __PYX_ERR(0, 3961, __pyx_L3_error)
13642 CYTHON_FALLTHROUGH;
13644 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
13646 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 3); __PYX_ERR(0, 3961, __pyx_L3_error)
13648 CYTHON_FALLTHROUGH;
13650 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
13652 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 4); __PYX_ERR(0, 3961, __pyx_L3_error)
13654 CYTHON_FALLTHROUGH;
13656 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
13658 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 5); __PYX_ERR(0, 3961, __pyx_L3_error)
13660 CYTHON_FALLTHROUGH;
13662 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13664 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 6); __PYX_ERR(0, 3961, __pyx_L3_error)
13666 CYTHON_FALLTHROUGH;
13668 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
13670 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 7); __PYX_ERR(0, 3961, __pyx_L3_error)
13672 CYTHON_FALLTHROUGH;
13674 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
13676 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 8); __PYX_ERR(0, 3961, __pyx_L3_error)
13678 CYTHON_FALLTHROUGH;
13680 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
13682 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 9); __PYX_ERR(0, 3961, __pyx_L3_error)
13684 CYTHON_FALLTHROUGH;
13686 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
13688 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 10); __PYX_ERR(0, 3961, __pyx_L3_error)
13690 CYTHON_FALLTHROUGH;
13692 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
13694 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 11); __PYX_ERR(0, 3961, __pyx_L3_error)
13696 CYTHON_FALLTHROUGH;
13698 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
13700 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 12); __PYX_ERR(0, 3961, __pyx_L3_error)
13702 CYTHON_FALLTHROUGH;
13704 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
13706 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 13); __PYX_ERR(0, 3961, __pyx_L3_error)
13708 CYTHON_FALLTHROUGH;
13710 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
13712 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 14); __PYX_ERR(0, 3961, __pyx_L3_error)
13714 CYTHON_FALLTHROUGH;
13716 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
13718 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 15); __PYX_ERR(0, 3961, __pyx_L3_error)
13720 CYTHON_FALLTHROUGH;
13722 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
13724 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 16); __PYX_ERR(0, 3961, __pyx_L3_error)
13726 CYTHON_FALLTHROUGH;
13728 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
13730 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 17); __PYX_ERR(0, 3961, __pyx_L3_error)
13732 CYTHON_FALLTHROUGH;
13734 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
13736 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 18); __PYX_ERR(0, 3961, __pyx_L3_error)
13738 CYTHON_FALLTHROUGH;
13740 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
13742 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 19); __PYX_ERR(0, 3961, __pyx_L3_error)
13744 CYTHON_FALLTHROUGH;
13746 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
13748 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 20); __PYX_ERR(0, 3961, __pyx_L3_error)
13750 CYTHON_FALLTHROUGH;
13752 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
13754 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, 21); __PYX_ERR(0, 3961, __pyx_L3_error)
13757 if (unlikely(kw_args > 0)) {
13758 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"Stokes_2D_Evaluate") < 0)) __PYX_ERR(0, 3961, __pyx_L3_error)
13760 }
else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
13761 goto __pyx_L5_argtuple_error;
13763 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13764 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13765 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13766 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13767 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13768 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13769 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13770 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13771 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13772 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13773 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13774 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13775 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13776 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13777 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13778 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13779 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13780 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13781 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13782 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13783 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13784 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13786 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3961, __pyx_L3_error)
13787 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3962, __pyx_L3_error)
13788 __pyx_v_g = ((PyArrayObject *)values[2]);
13789 __pyx_v_p = ((PyArrayObject *)values[3]);
13790 __pyx_v_grad_p = ((PyArrayObject *)values[4]);
13791 __pyx_v_u = ((PyArrayObject *)values[5]);
13792 __pyx_v_v = ((PyArrayObject *)values[6]);
13793 __pyx_v_mom_u_acc = ((PyArrayObject *)values[7]);
13794 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[8]);
13795 __pyx_v_mom_v_acc = ((PyArrayObject *)values[9]);
13796 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[10]);
13797 __pyx_v_mass_adv = ((PyArrayObject *)values[11]);
13798 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[12]);
13799 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[13]);
13800 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[14]);
13801 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[15]);
13802 __pyx_v_mom_u_source = ((PyArrayObject *)values[16]);
13803 __pyx_v_mom_v_source = ((PyArrayObject *)values[17]);
13804 __pyx_v_mom_u_ham = ((PyArrayObject *)values[18]);
13805 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[19]);
13806 __pyx_v_mom_v_ham = ((PyArrayObject *)values[20]);
13807 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[21]);
13809 goto __pyx_L4_argument_unpacking_done;
13810 __pyx_L5_argtuple_error:;
13811 __Pyx_RaiseArgtupleInvalid(
"Stokes_2D_Evaluate", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3961, __pyx_L3_error)
13813 __Pyx_AddTraceback(
"ctransportCoefficients.Stokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13814 __Pyx_RefNannyFinishContext();
13816 __pyx_L4_argument_unpacking_done:;
13817 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 3963, __pyx_L1_error)
13818 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 3964, __pyx_L1_error)
13819 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 3965, __pyx_L1_error)
13820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3966, __pyx_L1_error)
13821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3967, __pyx_L1_error)
13822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 3968, __pyx_L1_error)
13823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 3969, __pyx_L1_error)
13824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 3970, __pyx_L1_error)
13825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 3971, __pyx_L1_error)
13826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 3972, __pyx_L1_error)
13827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 3973, __pyx_L1_error)
13828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 3974, __pyx_L1_error)
13829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 3975, __pyx_L1_error)
13830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 3976, __pyx_L1_error)
13831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 3977, __pyx_L1_error)
13832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 3978, __pyx_L1_error)
13833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 3979, __pyx_L1_error)
13834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 3980, __pyx_L1_error)
13835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 3981, __pyx_L1_error)
13836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 3982, __pyx_L1_error)
13837 __pyx_r = __pyx_pf_22ctransportCoefficients_72Stokes_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
13844 __Pyx_RefNannyFinishContext();
13848 static PyObject *__pyx_pf_22ctransportCoefficients_72Stokes_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
13849 PyObject *__pyx_r = NULL;
13850 __Pyx_RefNannyDeclarations
13851 PyObject *__pyx_t_1 = NULL;
13853 int __pyx_lineno = 0;
13854 const char *__pyx_filename = NULL;
13855 int __pyx_clineno = 0;
13856 __Pyx_RefNannySetupContext(
"Stokes_2D_Evaluate", 0);
13865 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3983, __pyx_L1_error)
13866 __Pyx_GOTREF(__pyx_t_1);
13867 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3983, __pyx_L1_error)
13868 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13877 Stokes_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
13888 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13891 __Pyx_XDECREF(__pyx_t_1);
13892 __Pyx_AddTraceback(
"ctransportCoefficients.Stokes_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
13895 __Pyx_XGIVEREF(__pyx_r);
13896 __Pyx_RefNannyFinishContext();
13909 static PyObject *__pyx_pw_22ctransportCoefficients_75StokesP_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13910 static PyMethodDef __pyx_mdef_22ctransportCoefficients_75StokesP_2D_Evaluate = {
"StokesP_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_75StokesP_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
13911 static PyObject *__pyx_pw_22ctransportCoefficients_75StokesP_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13912 double __pyx_v_rho;
13914 PyArrayObject *__pyx_v_g = 0;
13915 PyArrayObject *__pyx_v_p = 0;
13916 PyArrayObject *__pyx_v_u = 0;
13917 PyArrayObject *__pyx_v_v = 0;
13918 PyArrayObject *__pyx_v_mom_u_acc = 0;
13919 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
13920 PyArrayObject *__pyx_v_mom_v_acc = 0;
13921 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
13922 PyArrayObject *__pyx_v_mass_adv = 0;
13923 PyArrayObject *__pyx_v_dmass_adv_u = 0;
13924 PyArrayObject *__pyx_v_dmass_adv_v = 0;
13925 PyArrayObject *__pyx_v_mom_u_adv = 0;
13926 PyArrayObject *__pyx_v_dmom_u_adv_p = 0;
13927 PyArrayObject *__pyx_v_mom_v_adv = 0;
13928 PyArrayObject *__pyx_v_dmom_v_adv_p = 0;
13929 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
13930 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
13931 PyArrayObject *__pyx_v_mom_u_source = 0;
13932 PyArrayObject *__pyx_v_mom_v_source = 0;
13933 int __pyx_lineno = 0;
13934 const char *__pyx_filename = NULL;
13935 int __pyx_clineno = 0;
13936 PyObject *__pyx_r = 0;
13937 __Pyx_RefNannyDeclarations
13938 __Pyx_RefNannySetupContext(
"StokesP_2D_Evaluate (wrapper)", 0);
13940 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_p,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_p,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,0};
13941 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13942 if (unlikely(__pyx_kwds)) {
13943 Py_ssize_t kw_args;
13944 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13945 switch (pos_args) {
13946 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13947 CYTHON_FALLTHROUGH;
13948 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13949 CYTHON_FALLTHROUGH;
13950 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13951 CYTHON_FALLTHROUGH;
13952 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13953 CYTHON_FALLTHROUGH;
13954 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13955 CYTHON_FALLTHROUGH;
13956 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13957 CYTHON_FALLTHROUGH;
13958 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13959 CYTHON_FALLTHROUGH;
13960 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13961 CYTHON_FALLTHROUGH;
13962 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13963 CYTHON_FALLTHROUGH;
13964 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13965 CYTHON_FALLTHROUGH;
13966 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13967 CYTHON_FALLTHROUGH;
13968 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13969 CYTHON_FALLTHROUGH;
13970 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13971 CYTHON_FALLTHROUGH;
13972 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13973 CYTHON_FALLTHROUGH;
13974 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13975 CYTHON_FALLTHROUGH;
13976 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13977 CYTHON_FALLTHROUGH;
13978 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13979 CYTHON_FALLTHROUGH;
13980 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13981 CYTHON_FALLTHROUGH;
13982 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13983 CYTHON_FALLTHROUGH;
13984 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13985 CYTHON_FALLTHROUGH;
13986 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13987 CYTHON_FALLTHROUGH;
13989 default:
goto __pyx_L5_argtuple_error;
13991 kw_args = PyDict_Size(__pyx_kwds);
13992 switch (pos_args) {
13994 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
13995 else goto __pyx_L5_argtuple_error;
13996 CYTHON_FALLTHROUGH;
13998 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
14000 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 1); __PYX_ERR(0, 4006, __pyx_L3_error)
14002 CYTHON_FALLTHROUGH;
14004 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
14006 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 2); __PYX_ERR(0, 4006, __pyx_L3_error)
14008 CYTHON_FALLTHROUGH;
14010 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
14012 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 3); __PYX_ERR(0, 4006, __pyx_L3_error)
14014 CYTHON_FALLTHROUGH;
14016 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
14018 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 4); __PYX_ERR(0, 4006, __pyx_L3_error)
14020 CYTHON_FALLTHROUGH;
14022 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
14024 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 5); __PYX_ERR(0, 4006, __pyx_L3_error)
14026 CYTHON_FALLTHROUGH;
14028 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
14030 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 6); __PYX_ERR(0, 4006, __pyx_L3_error)
14032 CYTHON_FALLTHROUGH;
14034 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
14036 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 7); __PYX_ERR(0, 4006, __pyx_L3_error)
14038 CYTHON_FALLTHROUGH;
14040 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
14042 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 8); __PYX_ERR(0, 4006, __pyx_L3_error)
14044 CYTHON_FALLTHROUGH;
14046 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
14048 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 9); __PYX_ERR(0, 4006, __pyx_L3_error)
14050 CYTHON_FALLTHROUGH;
14052 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
14054 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 10); __PYX_ERR(0, 4006, __pyx_L3_error)
14056 CYTHON_FALLTHROUGH;
14058 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
14060 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 11); __PYX_ERR(0, 4006, __pyx_L3_error)
14062 CYTHON_FALLTHROUGH;
14064 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
14066 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 12); __PYX_ERR(0, 4006, __pyx_L3_error)
14068 CYTHON_FALLTHROUGH;
14070 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
14072 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 13); __PYX_ERR(0, 4006, __pyx_L3_error)
14074 CYTHON_FALLTHROUGH;
14076 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_p)) != 0)) kw_args--;
14078 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 14); __PYX_ERR(0, 4006, __pyx_L3_error)
14080 CYTHON_FALLTHROUGH;
14082 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
14084 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 15); __PYX_ERR(0, 4006, __pyx_L3_error)
14086 CYTHON_FALLTHROUGH;
14088 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_p)) != 0)) kw_args--;
14090 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 16); __PYX_ERR(0, 4006, __pyx_L3_error)
14092 CYTHON_FALLTHROUGH;
14094 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
14096 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 17); __PYX_ERR(0, 4006, __pyx_L3_error)
14098 CYTHON_FALLTHROUGH;
14100 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
14102 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 18); __PYX_ERR(0, 4006, __pyx_L3_error)
14104 CYTHON_FALLTHROUGH;
14106 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
14108 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 19); __PYX_ERR(0, 4006, __pyx_L3_error)
14110 CYTHON_FALLTHROUGH;
14112 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
14114 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, 20); __PYX_ERR(0, 4006, __pyx_L3_error)
14117 if (unlikely(kw_args > 0)) {
14118 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"StokesP_2D_Evaluate") < 0)) __PYX_ERR(0, 4006, __pyx_L3_error)
14120 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
14121 goto __pyx_L5_argtuple_error;
14123 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14124 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14125 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14126 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14127 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14128 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14129 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14130 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14131 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14132 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14133 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14134 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14135 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14136 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14137 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14138 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14139 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14140 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14141 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14142 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14143 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14145 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4006, __pyx_L3_error)
14146 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4007, __pyx_L3_error)
14147 __pyx_v_g = ((PyArrayObject *)values[2]);
14148 __pyx_v_p = ((PyArrayObject *)values[3]);
14149 __pyx_v_u = ((PyArrayObject *)values[4]);
14150 __pyx_v_v = ((PyArrayObject *)values[5]);
14151 __pyx_v_mom_u_acc = ((PyArrayObject *)values[6]);
14152 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[7]);
14153 __pyx_v_mom_v_acc = ((PyArrayObject *)values[8]);
14154 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[9]);
14155 __pyx_v_mass_adv = ((PyArrayObject *)values[10]);
14156 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[11]);
14157 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[12]);
14158 __pyx_v_mom_u_adv = ((PyArrayObject *)values[13]);
14159 __pyx_v_dmom_u_adv_p = ((PyArrayObject *)values[14]);
14160 __pyx_v_mom_v_adv = ((PyArrayObject *)values[15]);
14161 __pyx_v_dmom_v_adv_p = ((PyArrayObject *)values[16]);
14162 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[17]);
14163 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[18]);
14164 __pyx_v_mom_u_source = ((PyArrayObject *)values[19]);
14165 __pyx_v_mom_v_source = ((PyArrayObject *)values[20]);
14167 goto __pyx_L4_argument_unpacking_done;
14168 __pyx_L5_argtuple_error:;
14169 __Pyx_RaiseArgtupleInvalid(
"StokesP_2D_Evaluate", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4006, __pyx_L3_error)
14171 __Pyx_AddTraceback(
"ctransportCoefficients.StokesP_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14172 __Pyx_RefNannyFinishContext();
14174 __pyx_L4_argument_unpacking_done:;
14175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4008, __pyx_L1_error)
14176 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4009, __pyx_L1_error)
14177 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4010, __pyx_L1_error)
14178 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4011, __pyx_L1_error)
14179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4012, __pyx_L1_error)
14180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4013, __pyx_L1_error)
14181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4014, __pyx_L1_error)
14182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4015, __pyx_L1_error)
14183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4016, __pyx_L1_error)
14184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4017, __pyx_L1_error)
14185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4018, __pyx_L1_error)
14186 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4019, __pyx_L1_error)
14187 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_p", 0))) __PYX_ERR(0, 4020, __pyx_L1_error)
14188 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4021, __pyx_L1_error)
14189 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_p", 0))) __PYX_ERR(0, 4022, __pyx_L1_error)
14190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4023, __pyx_L1_error)
14191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4024, __pyx_L1_error)
14192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4025, __pyx_L1_error)
14193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4026, __pyx_L1_error)
14194 __pyx_r = __pyx_pf_22ctransportCoefficients_74StokesP_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_p, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_p, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source);
14201 __Pyx_RefNannyFinishContext();
14205 static PyObject *__pyx_pf_22ctransportCoefficients_74StokesP_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source) {
14206 PyObject *__pyx_r = NULL;
14207 __Pyx_RefNannyDeclarations
14208 PyObject *__pyx_t_1 = NULL;
14210 int __pyx_lineno = 0;
14211 const char *__pyx_filename = NULL;
14212 int __pyx_clineno = 0;
14213 __Pyx_RefNannySetupContext(
"StokesP_2D_Evaluate", 0);
14222 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4027, __pyx_L1_error)
14223 __Pyx_GOTREF(__pyx_t_1);
14224 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4027, __pyx_L1_error)
14225 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14234 StokesP_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_p->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_p->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data));
14245 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14248 __Pyx_XDECREF(__pyx_t_1);
14249 __Pyx_AddTraceback(
"ctransportCoefficients.StokesP_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14252 __Pyx_XGIVEREF(__pyx_r);
14253 __Pyx_RefNannyFinishContext();
14266 static PyObject *__pyx_pw_22ctransportCoefficients_77Stokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14267 static PyMethodDef __pyx_mdef_22ctransportCoefficients_77Stokes_3D_Evaluate = {
"Stokes_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_77Stokes_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
14268 static PyObject *__pyx_pw_22ctransportCoefficients_77Stokes_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14269 double __pyx_v_rho;
14271 PyArrayObject *__pyx_v_g = 0;
14272 PyArrayObject *__pyx_v_p = 0;
14273 PyArrayObject *__pyx_v_grad_p = 0;
14274 PyArrayObject *__pyx_v_u = 0;
14275 PyArrayObject *__pyx_v_v = 0;
14276 PyArrayObject *__pyx_v_w = 0;
14277 PyArrayObject *__pyx_v_mom_u_acc = 0;
14278 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
14279 PyArrayObject *__pyx_v_mom_v_acc = 0;
14280 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
14281 PyArrayObject *__pyx_v_mom_w_acc = 0;
14282 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
14283 PyArrayObject *__pyx_v_mass_adv = 0;
14284 PyArrayObject *__pyx_v_dmass_adv_u = 0;
14285 PyArrayObject *__pyx_v_dmass_adv_v = 0;
14286 PyArrayObject *__pyx_v_dmass_adv_w = 0;
14287 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
14288 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
14289 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
14290 PyArrayObject *__pyx_v_mom_u_source = 0;
14291 PyArrayObject *__pyx_v_mom_v_source = 0;
14292 PyArrayObject *__pyx_v_mom_w_source = 0;
14293 PyArrayObject *__pyx_v_mom_u_ham = 0;
14294 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
14295 PyArrayObject *__pyx_v_mom_v_ham = 0;
14296 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
14297 PyArrayObject *__pyx_v_mom_w_ham = 0;
14298 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
14299 int __pyx_lineno = 0;
14300 const char *__pyx_filename = NULL;
14301 int __pyx_clineno = 0;
14302 PyObject *__pyx_r = 0;
14303 __Pyx_RefNannyDeclarations
14304 __Pyx_RefNannySetupContext(
"Stokes_3D_Evaluate (wrapper)", 0);
14306 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
14307 PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14308 if (unlikely(__pyx_kwds)) {
14309 Py_ssize_t kw_args;
14310 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14311 switch (pos_args) {
14312 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14313 CYTHON_FALLTHROUGH;
14314 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14315 CYTHON_FALLTHROUGH;
14316 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14317 CYTHON_FALLTHROUGH;
14318 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14319 CYTHON_FALLTHROUGH;
14320 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14321 CYTHON_FALLTHROUGH;
14322 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14323 CYTHON_FALLTHROUGH;
14324 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14325 CYTHON_FALLTHROUGH;
14326 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14327 CYTHON_FALLTHROUGH;
14328 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14329 CYTHON_FALLTHROUGH;
14330 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14331 CYTHON_FALLTHROUGH;
14332 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14333 CYTHON_FALLTHROUGH;
14334 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14335 CYTHON_FALLTHROUGH;
14336 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14337 CYTHON_FALLTHROUGH;
14338 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14339 CYTHON_FALLTHROUGH;
14340 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14341 CYTHON_FALLTHROUGH;
14342 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14343 CYTHON_FALLTHROUGH;
14344 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14345 CYTHON_FALLTHROUGH;
14346 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14347 CYTHON_FALLTHROUGH;
14348 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14349 CYTHON_FALLTHROUGH;
14350 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14351 CYTHON_FALLTHROUGH;
14352 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14353 CYTHON_FALLTHROUGH;
14354 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14355 CYTHON_FALLTHROUGH;
14356 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14357 CYTHON_FALLTHROUGH;
14358 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14359 CYTHON_FALLTHROUGH;
14360 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14361 CYTHON_FALLTHROUGH;
14362 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14363 CYTHON_FALLTHROUGH;
14364 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14365 CYTHON_FALLTHROUGH;
14366 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14367 CYTHON_FALLTHROUGH;
14368 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14369 CYTHON_FALLTHROUGH;
14370 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14371 CYTHON_FALLTHROUGH;
14373 default:
goto __pyx_L5_argtuple_error;
14375 kw_args = PyDict_Size(__pyx_kwds);
14376 switch (pos_args) {
14378 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
14379 else goto __pyx_L5_argtuple_error;
14380 CYTHON_FALLTHROUGH;
14382 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
14384 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 1); __PYX_ERR(0, 4049, __pyx_L3_error)
14386 CYTHON_FALLTHROUGH;
14388 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
14390 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 2); __PYX_ERR(0, 4049, __pyx_L3_error)
14392 CYTHON_FALLTHROUGH;
14394 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
14396 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 3); __PYX_ERR(0, 4049, __pyx_L3_error)
14398 CYTHON_FALLTHROUGH;
14400 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
14402 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 4); __PYX_ERR(0, 4049, __pyx_L3_error)
14404 CYTHON_FALLTHROUGH;
14406 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
14408 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 5); __PYX_ERR(0, 4049, __pyx_L3_error)
14410 CYTHON_FALLTHROUGH;
14412 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
14414 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 6); __PYX_ERR(0, 4049, __pyx_L3_error)
14416 CYTHON_FALLTHROUGH;
14418 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
14420 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 7); __PYX_ERR(0, 4049, __pyx_L3_error)
14422 CYTHON_FALLTHROUGH;
14424 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
14426 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 8); __PYX_ERR(0, 4049, __pyx_L3_error)
14428 CYTHON_FALLTHROUGH;
14430 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
14432 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 9); __PYX_ERR(0, 4049, __pyx_L3_error)
14434 CYTHON_FALLTHROUGH;
14436 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
14438 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 10); __PYX_ERR(0, 4049, __pyx_L3_error)
14440 CYTHON_FALLTHROUGH;
14442 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
14444 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 11); __PYX_ERR(0, 4049, __pyx_L3_error)
14446 CYTHON_FALLTHROUGH;
14448 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
14450 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 12); __PYX_ERR(0, 4049, __pyx_L3_error)
14452 CYTHON_FALLTHROUGH;
14454 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
14456 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 13); __PYX_ERR(0, 4049, __pyx_L3_error)
14458 CYTHON_FALLTHROUGH;
14460 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
14462 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 14); __PYX_ERR(0, 4049, __pyx_L3_error)
14464 CYTHON_FALLTHROUGH;
14466 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
14468 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 15); __PYX_ERR(0, 4049, __pyx_L3_error)
14470 CYTHON_FALLTHROUGH;
14472 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
14474 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 16); __PYX_ERR(0, 4049, __pyx_L3_error)
14476 CYTHON_FALLTHROUGH;
14478 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
14480 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 17); __PYX_ERR(0, 4049, __pyx_L3_error)
14482 CYTHON_FALLTHROUGH;
14484 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
14486 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 18); __PYX_ERR(0, 4049, __pyx_L3_error)
14488 CYTHON_FALLTHROUGH;
14490 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
14492 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 19); __PYX_ERR(0, 4049, __pyx_L3_error)
14494 CYTHON_FALLTHROUGH;
14496 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
14498 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 20); __PYX_ERR(0, 4049, __pyx_L3_error)
14500 CYTHON_FALLTHROUGH;
14502 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
14504 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 21); __PYX_ERR(0, 4049, __pyx_L3_error)
14506 CYTHON_FALLTHROUGH;
14508 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
14510 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 22); __PYX_ERR(0, 4049, __pyx_L3_error)
14512 CYTHON_FALLTHROUGH;
14514 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
14516 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 23); __PYX_ERR(0, 4049, __pyx_L3_error)
14518 CYTHON_FALLTHROUGH;
14520 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
14522 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 24); __PYX_ERR(0, 4049, __pyx_L3_error)
14524 CYTHON_FALLTHROUGH;
14526 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
14528 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 25); __PYX_ERR(0, 4049, __pyx_L3_error)
14530 CYTHON_FALLTHROUGH;
14532 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
14534 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 26); __PYX_ERR(0, 4049, __pyx_L3_error)
14536 CYTHON_FALLTHROUGH;
14538 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
14540 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 27); __PYX_ERR(0, 4049, __pyx_L3_error)
14542 CYTHON_FALLTHROUGH;
14544 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
14546 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 28); __PYX_ERR(0, 4049, __pyx_L3_error)
14548 CYTHON_FALLTHROUGH;
14550 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
14552 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, 29); __PYX_ERR(0, 4049, __pyx_L3_error)
14555 if (unlikely(kw_args > 0)) {
14556 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"Stokes_3D_Evaluate") < 0)) __PYX_ERR(0, 4049, __pyx_L3_error)
14558 }
else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
14559 goto __pyx_L5_argtuple_error;
14561 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14562 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14563 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14564 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14565 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14566 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14567 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14568 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14569 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14570 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14571 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14572 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14573 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14574 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14575 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14576 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14577 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14578 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14579 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14580 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14581 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14582 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14583 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14584 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14585 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14586 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14587 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14588 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14589 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14590 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14592 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4049, __pyx_L3_error)
14593 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4050, __pyx_L3_error)
14594 __pyx_v_g = ((PyArrayObject *)values[2]);
14595 __pyx_v_p = ((PyArrayObject *)values[3]);
14596 __pyx_v_grad_p = ((PyArrayObject *)values[4]);
14597 __pyx_v_u = ((PyArrayObject *)values[5]);
14598 __pyx_v_v = ((PyArrayObject *)values[6]);
14599 __pyx_v_w = ((PyArrayObject *)values[7]);
14600 __pyx_v_mom_u_acc = ((PyArrayObject *)values[8]);
14601 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[9]);
14602 __pyx_v_mom_v_acc = ((PyArrayObject *)values[10]);
14603 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
14604 __pyx_v_mom_w_acc = ((PyArrayObject *)values[12]);
14605 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[13]);
14606 __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
14607 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[15]);
14608 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[16]);
14609 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[17]);
14610 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[18]);
14611 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[19]);
14612 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[20]);
14613 __pyx_v_mom_u_source = ((PyArrayObject *)values[21]);
14614 __pyx_v_mom_v_source = ((PyArrayObject *)values[22]);
14615 __pyx_v_mom_w_source = ((PyArrayObject *)values[23]);
14616 __pyx_v_mom_u_ham = ((PyArrayObject *)values[24]);
14617 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[25]);
14618 __pyx_v_mom_v_ham = ((PyArrayObject *)values[26]);
14619 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[27]);
14620 __pyx_v_mom_w_ham = ((PyArrayObject *)values[28]);
14621 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[29]);
14623 goto __pyx_L4_argument_unpacking_done;
14624 __pyx_L5_argtuple_error:;
14625 __Pyx_RaiseArgtupleInvalid(
"Stokes_3D_Evaluate", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4049, __pyx_L3_error)
14627 __Pyx_AddTraceback(
"ctransportCoefficients.Stokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14628 __Pyx_RefNannyFinishContext();
14630 __pyx_L4_argument_unpacking_done:;
14631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4051, __pyx_L1_error)
14632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4052, __pyx_L1_error)
14633 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4053, __pyx_L1_error)
14634 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4054, __pyx_L1_error)
14635 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4055, __pyx_L1_error)
14636 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4056, __pyx_L1_error)
14637 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4057, __pyx_L1_error)
14638 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4058, __pyx_L1_error)
14639 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4059, __pyx_L1_error)
14640 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4060, __pyx_L1_error)
14641 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 4061, __pyx_L1_error)
14642 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 4062, __pyx_L1_error)
14643 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4063, __pyx_L1_error)
14644 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4064, __pyx_L1_error)
14645 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4065, __pyx_L1_error)
14646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 4066, __pyx_L1_error)
14647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4067, __pyx_L1_error)
14648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4068, __pyx_L1_error)
14649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 4069, __pyx_L1_error)
14650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4070, __pyx_L1_error)
14651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4071, __pyx_L1_error)
14652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 4072, __pyx_L1_error)
14653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4073, __pyx_L1_error)
14654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4074, __pyx_L1_error)
14655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4075, __pyx_L1_error)
14656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4076, __pyx_L1_error)
14657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 4077, __pyx_L1_error)
14658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4078, __pyx_L1_error)
14659 __pyx_r = __pyx_pf_22ctransportCoefficients_76Stokes_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
14666 __Pyx_RefNannyFinishContext();
14670 static PyObject *__pyx_pf_22ctransportCoefficients_76Stokes_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
14671 PyObject *__pyx_r = NULL;
14672 __Pyx_RefNannyDeclarations
14673 PyObject *__pyx_t_1 = NULL;
14675 int __pyx_lineno = 0;
14676 const char *__pyx_filename = NULL;
14677 int __pyx_clineno = 0;
14678 __Pyx_RefNannySetupContext(
"Stokes_3D_Evaluate", 0);
14687 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4079, __pyx_L1_error)
14688 __Pyx_GOTREF(__pyx_t_1);
14689 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4079, __pyx_L1_error)
14690 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14699 Stokes_3D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
14710 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14713 __Pyx_XDECREF(__pyx_t_1);
14714 __Pyx_AddTraceback(
"ctransportCoefficients.Stokes_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
14717 __Pyx_XGIVEREF(__pyx_r);
14718 __Pyx_RefNannyFinishContext();
14731 static PyObject *__pyx_pw_22ctransportCoefficients_79StokesP_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14732 static PyMethodDef __pyx_mdef_22ctransportCoefficients_79StokesP_3D_Evaluate = {
"StokesP_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_79StokesP_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
14733 static PyObject *__pyx_pw_22ctransportCoefficients_79StokesP_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14734 int __pyx_v_nPoints;
14735 double __pyx_v_rho;
14737 PyArrayObject *__pyx_v_g = 0;
14738 PyArrayObject *__pyx_v_p = 0;
14739 PyArrayObject *__pyx_v_u = 0;
14740 PyArrayObject *__pyx_v_v = 0;
14741 PyArrayObject *__pyx_v_w = 0;
14742 PyArrayObject *__pyx_v_mom_u_acc = 0;
14743 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
14744 PyArrayObject *__pyx_v_mom_v_acc = 0;
14745 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
14746 PyArrayObject *__pyx_v_mom_w_acc = 0;
14747 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
14748 PyArrayObject *__pyx_v_mass_adv = 0;
14749 PyArrayObject *__pyx_v_dmass_adv_u = 0;
14750 PyArrayObject *__pyx_v_dmass_adv_v = 0;
14751 PyArrayObject *__pyx_v_dmass_adv_w = 0;
14752 PyArrayObject *__pyx_v_mom_u_adv = 0;
14753 PyArrayObject *__pyx_v_dmom_u_adv_p = 0;
14754 PyArrayObject *__pyx_v_mom_v_adv = 0;
14755 PyArrayObject *__pyx_v_dmom_v_adv_p = 0;
14756 PyArrayObject *__pyx_v_mom_w_adv = 0;
14757 PyArrayObject *__pyx_v_dmom_w_adv_p = 0;
14758 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
14759 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
14760 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
14761 PyArrayObject *__pyx_v_mom_u_source = 0;
14762 PyArrayObject *__pyx_v_mom_v_source = 0;
14763 PyArrayObject *__pyx_v_mom_w_source = 0;
14764 int __pyx_lineno = 0;
14765 const char *__pyx_filename = NULL;
14766 int __pyx_clineno = 0;
14767 PyObject *__pyx_r = 0;
14768 __Pyx_RefNannyDeclarations
14769 __Pyx_RefNannySetupContext(
"StokesP_3D_Evaluate (wrapper)", 0);
14771 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_p,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_p,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_p,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,0};
14772 PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14773 if (unlikely(__pyx_kwds)) {
14774 Py_ssize_t kw_args;
14775 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14776 switch (pos_args) {
14777 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14778 CYTHON_FALLTHROUGH;
14779 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14780 CYTHON_FALLTHROUGH;
14781 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14782 CYTHON_FALLTHROUGH;
14783 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14784 CYTHON_FALLTHROUGH;
14785 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14786 CYTHON_FALLTHROUGH;
14787 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14788 CYTHON_FALLTHROUGH;
14789 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14790 CYTHON_FALLTHROUGH;
14791 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14792 CYTHON_FALLTHROUGH;
14793 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14794 CYTHON_FALLTHROUGH;
14795 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14796 CYTHON_FALLTHROUGH;
14797 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14798 CYTHON_FALLTHROUGH;
14799 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14800 CYTHON_FALLTHROUGH;
14801 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14802 CYTHON_FALLTHROUGH;
14803 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14804 CYTHON_FALLTHROUGH;
14805 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14806 CYTHON_FALLTHROUGH;
14807 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14808 CYTHON_FALLTHROUGH;
14809 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14810 CYTHON_FALLTHROUGH;
14811 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14812 CYTHON_FALLTHROUGH;
14813 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14814 CYTHON_FALLTHROUGH;
14815 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14816 CYTHON_FALLTHROUGH;
14817 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14818 CYTHON_FALLTHROUGH;
14819 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14820 CYTHON_FALLTHROUGH;
14821 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14822 CYTHON_FALLTHROUGH;
14823 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14824 CYTHON_FALLTHROUGH;
14825 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14826 CYTHON_FALLTHROUGH;
14827 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14828 CYTHON_FALLTHROUGH;
14829 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14830 CYTHON_FALLTHROUGH;
14831 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14832 CYTHON_FALLTHROUGH;
14833 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14834 CYTHON_FALLTHROUGH;
14835 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14836 CYTHON_FALLTHROUGH;
14838 default:
goto __pyx_L5_argtuple_error;
14840 kw_args = PyDict_Size(__pyx_kwds);
14841 switch (pos_args) {
14843 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
14844 else goto __pyx_L5_argtuple_error;
14845 CYTHON_FALLTHROUGH;
14847 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
14849 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 1); __PYX_ERR(0, 4110, __pyx_L3_error)
14851 CYTHON_FALLTHROUGH;
14853 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
14855 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 2); __PYX_ERR(0, 4110, __pyx_L3_error)
14857 CYTHON_FALLTHROUGH;
14859 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
14861 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 3); __PYX_ERR(0, 4110, __pyx_L3_error)
14863 CYTHON_FALLTHROUGH;
14865 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
14867 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 4); __PYX_ERR(0, 4110, __pyx_L3_error)
14869 CYTHON_FALLTHROUGH;
14871 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
14873 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 5); __PYX_ERR(0, 4110, __pyx_L3_error)
14875 CYTHON_FALLTHROUGH;
14877 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
14879 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 6); __PYX_ERR(0, 4110, __pyx_L3_error)
14881 CYTHON_FALLTHROUGH;
14883 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
14885 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 7); __PYX_ERR(0, 4110, __pyx_L3_error)
14887 CYTHON_FALLTHROUGH;
14889 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
14891 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 8); __PYX_ERR(0, 4110, __pyx_L3_error)
14893 CYTHON_FALLTHROUGH;
14895 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
14897 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 9); __PYX_ERR(0, 4110, __pyx_L3_error)
14899 CYTHON_FALLTHROUGH;
14901 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
14903 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 10); __PYX_ERR(0, 4110, __pyx_L3_error)
14905 CYTHON_FALLTHROUGH;
14907 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
14909 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 11); __PYX_ERR(0, 4110, __pyx_L3_error)
14911 CYTHON_FALLTHROUGH;
14913 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
14915 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 12); __PYX_ERR(0, 4110, __pyx_L3_error)
14917 CYTHON_FALLTHROUGH;
14919 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
14921 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 13); __PYX_ERR(0, 4110, __pyx_L3_error)
14923 CYTHON_FALLTHROUGH;
14925 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
14927 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 14); __PYX_ERR(0, 4110, __pyx_L3_error)
14929 CYTHON_FALLTHROUGH;
14931 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
14933 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 15); __PYX_ERR(0, 4110, __pyx_L3_error)
14935 CYTHON_FALLTHROUGH;
14937 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
14939 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 16); __PYX_ERR(0, 4110, __pyx_L3_error)
14941 CYTHON_FALLTHROUGH;
14943 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
14945 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 17); __PYX_ERR(0, 4110, __pyx_L3_error)
14947 CYTHON_FALLTHROUGH;
14949 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
14951 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 18); __PYX_ERR(0, 4110, __pyx_L3_error)
14953 CYTHON_FALLTHROUGH;
14955 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_p)) != 0)) kw_args--;
14957 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 19); __PYX_ERR(0, 4110, __pyx_L3_error)
14959 CYTHON_FALLTHROUGH;
14961 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
14963 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 20); __PYX_ERR(0, 4110, __pyx_L3_error)
14965 CYTHON_FALLTHROUGH;
14967 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_p)) != 0)) kw_args--;
14969 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 21); __PYX_ERR(0, 4110, __pyx_L3_error)
14971 CYTHON_FALLTHROUGH;
14973 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
14975 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 22); __PYX_ERR(0, 4110, __pyx_L3_error)
14977 CYTHON_FALLTHROUGH;
14979 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_p)) != 0)) kw_args--;
14981 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 23); __PYX_ERR(0, 4110, __pyx_L3_error)
14983 CYTHON_FALLTHROUGH;
14985 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
14987 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 24); __PYX_ERR(0, 4110, __pyx_L3_error)
14989 CYTHON_FALLTHROUGH;
14991 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
14993 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 25); __PYX_ERR(0, 4110, __pyx_L3_error)
14995 CYTHON_FALLTHROUGH;
14997 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
14999 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 26); __PYX_ERR(0, 4110, __pyx_L3_error)
15001 CYTHON_FALLTHROUGH;
15003 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
15005 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 27); __PYX_ERR(0, 4110, __pyx_L3_error)
15007 CYTHON_FALLTHROUGH;
15009 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
15011 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 28); __PYX_ERR(0, 4110, __pyx_L3_error)
15013 CYTHON_FALLTHROUGH;
15015 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
15017 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, 29); __PYX_ERR(0, 4110, __pyx_L3_error)
15020 if (unlikely(kw_args > 0)) {
15021 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"StokesP_3D_Evaluate") < 0)) __PYX_ERR(0, 4110, __pyx_L3_error)
15023 }
else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
15024 goto __pyx_L5_argtuple_error;
15026 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15027 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15028 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15029 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15030 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15031 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15032 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15033 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15034 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15035 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15036 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15037 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15038 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15039 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15040 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15041 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15042 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15043 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15044 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15045 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15046 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15047 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15048 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15049 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15050 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15051 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15052 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15053 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15054 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15055 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15057 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4110, __pyx_L3_error)
15058 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4111, __pyx_L3_error)
15059 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4112, __pyx_L3_error)
15060 __pyx_v_g = ((PyArrayObject *)values[3]);
15061 __pyx_v_p = ((PyArrayObject *)values[4]);
15062 __pyx_v_u = ((PyArrayObject *)values[5]);
15063 __pyx_v_v = ((PyArrayObject *)values[6]);
15064 __pyx_v_w = ((PyArrayObject *)values[7]);
15065 __pyx_v_mom_u_acc = ((PyArrayObject *)values[8]);
15066 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[9]);
15067 __pyx_v_mom_v_acc = ((PyArrayObject *)values[10]);
15068 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
15069 __pyx_v_mom_w_acc = ((PyArrayObject *)values[12]);
15070 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[13]);
15071 __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
15072 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[15]);
15073 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[16]);
15074 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[17]);
15075 __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
15076 __pyx_v_dmom_u_adv_p = ((PyArrayObject *)values[19]);
15077 __pyx_v_mom_v_adv = ((PyArrayObject *)values[20]);
15078 __pyx_v_dmom_v_adv_p = ((PyArrayObject *)values[21]);
15079 __pyx_v_mom_w_adv = ((PyArrayObject *)values[22]);
15080 __pyx_v_dmom_w_adv_p = ((PyArrayObject *)values[23]);
15081 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[24]);
15082 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[25]);
15083 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[26]);
15084 __pyx_v_mom_u_source = ((PyArrayObject *)values[27]);
15085 __pyx_v_mom_v_source = ((PyArrayObject *)values[28]);
15086 __pyx_v_mom_w_source = ((PyArrayObject *)values[29]);
15088 goto __pyx_L4_argument_unpacking_done;
15089 __pyx_L5_argtuple_error:;
15090 __Pyx_RaiseArgtupleInvalid(
"StokesP_3D_Evaluate", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4110, __pyx_L3_error)
15092 __Pyx_AddTraceback(
"ctransportCoefficients.StokesP_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
15093 __Pyx_RefNannyFinishContext();
15095 __pyx_L4_argument_unpacking_done:;
15096 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4113, __pyx_L1_error)
15097 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4114, __pyx_L1_error)
15098 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4115, __pyx_L1_error)
15099 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4116, __pyx_L1_error)
15100 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4117, __pyx_L1_error)
15101 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4118, __pyx_L1_error)
15102 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4119, __pyx_L1_error)
15103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4120, __pyx_L1_error)
15104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4121, __pyx_L1_error)
15105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 4122, __pyx_L1_error)
15106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 4123, __pyx_L1_error)
15107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4124, __pyx_L1_error)
15108 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4125, __pyx_L1_error)
15109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4126, __pyx_L1_error)
15110 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 4127, __pyx_L1_error)
15111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4128, __pyx_L1_error)
15112 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_p", 0))) __PYX_ERR(0, 4129, __pyx_L1_error)
15113 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4130, __pyx_L1_error)
15114 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_p", 0))) __PYX_ERR(0, 4131, __pyx_L1_error)
15115 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 4132, __pyx_L1_error)
15116 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_p", 0))) __PYX_ERR(0, 4133, __pyx_L1_error)
15117 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4134, __pyx_L1_error)
15118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4135, __pyx_L1_error)
15119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 4136, __pyx_L1_error)
15120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4137, __pyx_L1_error)
15121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4138, __pyx_L1_error)
15122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 4139, __pyx_L1_error)
15123 __pyx_r = __pyx_pf_22ctransportCoefficients_78StokesP_3D_Evaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_rho, __pyx_v_nu, __pyx_v_g, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_p, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_p, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_p, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source);
15130 __Pyx_RefNannyFinishContext();
15134 static PyObject *__pyx_pf_22ctransportCoefficients_78StokesP_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
double __pyx_v_rho,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_p, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_p, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_p, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source) {
15135 PyObject *__pyx_r = NULL;
15136 __Pyx_RefNannyDeclarations
15137 __Pyx_RefNannySetupContext(
"StokesP_3D_Evaluate", 0);
15146 StokesP_3D_Evaluate(__pyx_v_nPoints, __pyx_v_rho, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_p->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_p->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_p->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data));
15157 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15158 __Pyx_XGIVEREF(__pyx_r);
15159 __Pyx_RefNannyFinishContext();
15172 static PyObject *__pyx_pw_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15173 static PyMethodDef __pyx_mdef_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate = {
"TwophaseNavierStokes_LS_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
15174 static PyObject *__pyx_pw_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15175 double __pyx_v_eps;
15176 double __pyx_v_rho_0;
15177 double __pyx_v_nu_0;
15178 double __pyx_v_rho_1;
15179 double __pyx_v_nu_1;
15180 PyArrayObject *__pyx_v_g = 0;
15181 PyArrayObject *__pyx_v_phi = 0;
15182 PyArrayObject *__pyx_v_p = 0;
15183 PyArrayObject *__pyx_v_grad_p = 0;
15184 PyArrayObject *__pyx_v_u = 0;
15185 PyArrayObject *__pyx_v_v = 0;
15186 PyArrayObject *__pyx_v_mom_u_acc = 0;
15187 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
15188 PyArrayObject *__pyx_v_mom_v_acc = 0;
15189 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
15190 PyArrayObject *__pyx_v_mass_adv = 0;
15191 PyArrayObject *__pyx_v_dmass_adv_u = 0;
15192 PyArrayObject *__pyx_v_dmass_adv_v = 0;
15193 PyArrayObject *__pyx_v_mom_u_adv = 0;
15194 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
15195 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
15196 PyArrayObject *__pyx_v_mom_v_adv = 0;
15197 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
15198 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
15199 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
15200 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
15201 PyArrayObject *__pyx_v_mom_u_source = 0;
15202 PyArrayObject *__pyx_v_mom_v_source = 0;
15203 PyArrayObject *__pyx_v_mom_u_ham = 0;
15204 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
15205 PyArrayObject *__pyx_v_mom_v_ham = 0;
15206 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
15207 int __pyx_lineno = 0;
15208 const char *__pyx_filename = NULL;
15209 int __pyx_clineno = 0;
15210 PyObject *__pyx_r = 0;
15211 __Pyx_RefNannyDeclarations
15212 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_LS_SO_2D_Evaluate (wrapper)", 0);
15214 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
15215 PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
15216 if (unlikely(__pyx_kwds)) {
15217 Py_ssize_t kw_args;
15218 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15219 switch (pos_args) {
15220 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15221 CYTHON_FALLTHROUGH;
15222 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15223 CYTHON_FALLTHROUGH;
15224 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15225 CYTHON_FALLTHROUGH;
15226 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15227 CYTHON_FALLTHROUGH;
15228 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15229 CYTHON_FALLTHROUGH;
15230 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15231 CYTHON_FALLTHROUGH;
15232 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15233 CYTHON_FALLTHROUGH;
15234 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15235 CYTHON_FALLTHROUGH;
15236 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15237 CYTHON_FALLTHROUGH;
15238 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15239 CYTHON_FALLTHROUGH;
15240 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15241 CYTHON_FALLTHROUGH;
15242 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15243 CYTHON_FALLTHROUGH;
15244 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15245 CYTHON_FALLTHROUGH;
15246 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15247 CYTHON_FALLTHROUGH;
15248 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15249 CYTHON_FALLTHROUGH;
15250 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15251 CYTHON_FALLTHROUGH;
15252 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15253 CYTHON_FALLTHROUGH;
15254 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15255 CYTHON_FALLTHROUGH;
15256 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15257 CYTHON_FALLTHROUGH;
15258 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15259 CYTHON_FALLTHROUGH;
15260 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15261 CYTHON_FALLTHROUGH;
15262 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15263 CYTHON_FALLTHROUGH;
15264 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15265 CYTHON_FALLTHROUGH;
15266 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15267 CYTHON_FALLTHROUGH;
15268 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15269 CYTHON_FALLTHROUGH;
15270 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15271 CYTHON_FALLTHROUGH;
15272 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15273 CYTHON_FALLTHROUGH;
15274 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15275 CYTHON_FALLTHROUGH;
15276 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15277 CYTHON_FALLTHROUGH;
15278 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15279 CYTHON_FALLTHROUGH;
15280 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15281 CYTHON_FALLTHROUGH;
15282 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15283 CYTHON_FALLTHROUGH;
15285 default:
goto __pyx_L5_argtuple_error;
15287 kw_args = PyDict_Size(__pyx_kwds);
15288 switch (pos_args) {
15290 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
15291 else goto __pyx_L5_argtuple_error;
15292 CYTHON_FALLTHROUGH;
15294 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
15296 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 1); __PYX_ERR(0, 4170, __pyx_L3_error)
15298 CYTHON_FALLTHROUGH;
15300 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
15302 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 2); __PYX_ERR(0, 4170, __pyx_L3_error)
15304 CYTHON_FALLTHROUGH;
15306 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
15308 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 3); __PYX_ERR(0, 4170, __pyx_L3_error)
15310 CYTHON_FALLTHROUGH;
15312 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
15314 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 4); __PYX_ERR(0, 4170, __pyx_L3_error)
15316 CYTHON_FALLTHROUGH;
15318 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
15320 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 5); __PYX_ERR(0, 4170, __pyx_L3_error)
15322 CYTHON_FALLTHROUGH;
15324 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
15326 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 6); __PYX_ERR(0, 4170, __pyx_L3_error)
15328 CYTHON_FALLTHROUGH;
15330 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
15332 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 7); __PYX_ERR(0, 4170, __pyx_L3_error)
15334 CYTHON_FALLTHROUGH;
15336 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
15338 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 8); __PYX_ERR(0, 4170, __pyx_L3_error)
15340 CYTHON_FALLTHROUGH;
15342 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
15344 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 9); __PYX_ERR(0, 4170, __pyx_L3_error)
15346 CYTHON_FALLTHROUGH;
15348 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15350 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 10); __PYX_ERR(0, 4170, __pyx_L3_error)
15352 CYTHON_FALLTHROUGH;
15354 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
15356 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 11); __PYX_ERR(0, 4170, __pyx_L3_error)
15358 CYTHON_FALLTHROUGH;
15360 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
15362 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 12); __PYX_ERR(0, 4170, __pyx_L3_error)
15364 CYTHON_FALLTHROUGH;
15366 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
15368 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 13); __PYX_ERR(0, 4170, __pyx_L3_error)
15370 CYTHON_FALLTHROUGH;
15372 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
15374 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 14); __PYX_ERR(0, 4170, __pyx_L3_error)
15376 CYTHON_FALLTHROUGH;
15378 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
15380 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 15); __PYX_ERR(0, 4170, __pyx_L3_error)
15382 CYTHON_FALLTHROUGH;
15384 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
15386 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 16); __PYX_ERR(0, 4170, __pyx_L3_error)
15388 CYTHON_FALLTHROUGH;
15390 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
15392 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 17); __PYX_ERR(0, 4170, __pyx_L3_error)
15394 CYTHON_FALLTHROUGH;
15396 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
15398 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 18); __PYX_ERR(0, 4170, __pyx_L3_error)
15400 CYTHON_FALLTHROUGH;
15402 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
15404 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 19); __PYX_ERR(0, 4170, __pyx_L3_error)
15406 CYTHON_FALLTHROUGH;
15408 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
15410 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 20); __PYX_ERR(0, 4170, __pyx_L3_error)
15412 CYTHON_FALLTHROUGH;
15414 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
15416 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 21); __PYX_ERR(0, 4170, __pyx_L3_error)
15418 CYTHON_FALLTHROUGH;
15420 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
15422 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 22); __PYX_ERR(0, 4170, __pyx_L3_error)
15424 CYTHON_FALLTHROUGH;
15426 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
15428 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 23); __PYX_ERR(0, 4170, __pyx_L3_error)
15430 CYTHON_FALLTHROUGH;
15432 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
15434 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 24); __PYX_ERR(0, 4170, __pyx_L3_error)
15436 CYTHON_FALLTHROUGH;
15438 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
15440 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 25); __PYX_ERR(0, 4170, __pyx_L3_error)
15442 CYTHON_FALLTHROUGH;
15444 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
15446 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 26); __PYX_ERR(0, 4170, __pyx_L3_error)
15448 CYTHON_FALLTHROUGH;
15450 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
15452 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 27); __PYX_ERR(0, 4170, __pyx_L3_error)
15454 CYTHON_FALLTHROUGH;
15456 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
15458 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 28); __PYX_ERR(0, 4170, __pyx_L3_error)
15460 CYTHON_FALLTHROUGH;
15462 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
15464 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 29); __PYX_ERR(0, 4170, __pyx_L3_error)
15466 CYTHON_FALLTHROUGH;
15468 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
15470 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 30); __PYX_ERR(0, 4170, __pyx_L3_error)
15472 CYTHON_FALLTHROUGH;
15474 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
15476 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, 31); __PYX_ERR(0, 4170, __pyx_L3_error)
15479 if (unlikely(kw_args > 0)) {
15480 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4170, __pyx_L3_error)
15482 }
else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
15483 goto __pyx_L5_argtuple_error;
15485 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15486 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15487 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15488 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15489 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15490 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15491 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15492 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15493 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15494 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15495 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15496 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15497 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15498 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15499 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15500 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15501 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15502 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15503 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15504 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15505 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15506 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15507 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15508 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15509 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15510 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15511 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15512 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15513 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15514 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15515 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15516 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15518 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4170, __pyx_L3_error)
15519 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4171, __pyx_L3_error)
15520 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4172, __pyx_L3_error)
15521 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4173, __pyx_L3_error)
15522 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4174, __pyx_L3_error)
15523 __pyx_v_g = ((PyArrayObject *)values[5]);
15524 __pyx_v_phi = ((PyArrayObject *)values[6]);
15525 __pyx_v_p = ((PyArrayObject *)values[7]);
15526 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
15527 __pyx_v_u = ((PyArrayObject *)values[9]);
15528 __pyx_v_v = ((PyArrayObject *)values[10]);
15529 __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
15530 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
15531 __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
15532 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
15533 __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
15534 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
15535 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
15536 __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
15537 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[19]);
15538 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[20]);
15539 __pyx_v_mom_v_adv = ((PyArrayObject *)values[21]);
15540 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[22]);
15541 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[23]);
15542 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[24]);
15543 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[25]);
15544 __pyx_v_mom_u_source = ((PyArrayObject *)values[26]);
15545 __pyx_v_mom_v_source = ((PyArrayObject *)values[27]);
15546 __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
15547 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
15548 __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
15549 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
15551 goto __pyx_L4_argument_unpacking_done;
15552 __pyx_L5_argtuple_error:;
15553 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4170, __pyx_L3_error)
15555 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
15556 __Pyx_RefNannyFinishContext();
15558 __pyx_L4_argument_unpacking_done:;
15559 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4175, __pyx_L1_error)
15560 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4176, __pyx_L1_error)
15561 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4177, __pyx_L1_error)
15562 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4178, __pyx_L1_error)
15563 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4179, __pyx_L1_error)
15564 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4180, __pyx_L1_error)
15565 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4181, __pyx_L1_error)
15566 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4182, __pyx_L1_error)
15567 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4183, __pyx_L1_error)
15568 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4184, __pyx_L1_error)
15569 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4185, __pyx_L1_error)
15570 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4186, __pyx_L1_error)
15571 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4187, __pyx_L1_error)
15572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4188, __pyx_L1_error)
15573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4189, __pyx_L1_error)
15574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4190, __pyx_L1_error)
15575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4191, __pyx_L1_error)
15576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4192, __pyx_L1_error)
15577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4193, __pyx_L1_error)
15578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4194, __pyx_L1_error)
15579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4195, __pyx_L1_error)
15580 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4196, __pyx_L1_error)
15581 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4197, __pyx_L1_error)
15582 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4198, __pyx_L1_error)
15583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4199, __pyx_L1_error)
15584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4200, __pyx_L1_error)
15585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4201, __pyx_L1_error)
15586 __pyx_r = __pyx_pf_22ctransportCoefficients_80TwophaseNavierStokes_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
15593 __Pyx_RefNannyFinishContext();
15597 static PyObject *__pyx_pf_22ctransportCoefficients_80TwophaseNavierStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
15598 PyObject *__pyx_r = NULL;
15599 __Pyx_RefNannyDeclarations
15600 PyObject *__pyx_t_1 = NULL;
15602 int __pyx_lineno = 0;
15603 const char *__pyx_filename = NULL;
15604 int __pyx_clineno = 0;
15605 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_LS_SO_2D_Evaluate", 0);
15614 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4202, __pyx_L1_error)
15615 __Pyx_GOTREF(__pyx_t_1);
15616 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4202, __pyx_L1_error)
15617 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15626 TwophaseNavierStokes_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
15637 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15640 __Pyx_XDECREF(__pyx_t_1);
15641 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
15644 __Pyx_XGIVEREF(__pyx_r);
15645 __Pyx_RefNannyFinishContext();
15658 static PyObject *__pyx_pw_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15659 static PyMethodDef __pyx_mdef_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate = {
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
15660 static PyObject *__pyx_pw_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15661 double __pyx_v_eps_rho;
15662 double __pyx_v_eps_mu;
15663 double __pyx_v_sigma;
15664 double __pyx_v_rho_0;
15665 double __pyx_v_nu_0;
15666 double __pyx_v_rho_1;
15667 double __pyx_v_nu_1;
15668 PyArrayObject *__pyx_v_g = 0;
15669 PyArrayObject *__pyx_v_phi = 0;
15670 PyArrayObject *__pyx_v_n = 0;
15671 PyArrayObject *__pyx_v_kappa = 0;
15672 PyArrayObject *__pyx_v_p = 0;
15673 PyArrayObject *__pyx_v_grad_p = 0;
15674 PyArrayObject *__pyx_v_u = 0;
15675 PyArrayObject *__pyx_v_v = 0;
15676 PyArrayObject *__pyx_v_mom_u_acc = 0;
15677 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
15678 PyArrayObject *__pyx_v_mom_v_acc = 0;
15679 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
15680 PyArrayObject *__pyx_v_mass_adv = 0;
15681 PyArrayObject *__pyx_v_dmass_adv_u = 0;
15682 PyArrayObject *__pyx_v_dmass_adv_v = 0;
15683 PyArrayObject *__pyx_v_mom_u_adv = 0;
15684 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
15685 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
15686 PyArrayObject *__pyx_v_mom_v_adv = 0;
15687 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
15688 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
15689 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
15690 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
15691 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
15692 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
15693 PyArrayObject *__pyx_v_mom_u_source = 0;
15694 PyArrayObject *__pyx_v_mom_v_source = 0;
15695 PyArrayObject *__pyx_v_mom_u_ham = 0;
15696 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
15697 PyArrayObject *__pyx_v_mom_v_ham = 0;
15698 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
15699 int __pyx_lineno = 0;
15700 const char *__pyx_filename = NULL;
15701 int __pyx_clineno = 0;
15702 PyObject *__pyx_r = 0;
15703 __Pyx_RefNannyDeclarations
15704 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate (wrapper)", 0);
15706 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
15707 PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
15708 if (unlikely(__pyx_kwds)) {
15709 Py_ssize_t kw_args;
15710 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15711 switch (pos_args) {
15712 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
15713 CYTHON_FALLTHROUGH;
15714 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
15715 CYTHON_FALLTHROUGH;
15716 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
15717 CYTHON_FALLTHROUGH;
15718 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
15719 CYTHON_FALLTHROUGH;
15720 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
15721 CYTHON_FALLTHROUGH;
15722 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
15723 CYTHON_FALLTHROUGH;
15724 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15725 CYTHON_FALLTHROUGH;
15726 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15727 CYTHON_FALLTHROUGH;
15728 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15729 CYTHON_FALLTHROUGH;
15730 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15731 CYTHON_FALLTHROUGH;
15732 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15733 CYTHON_FALLTHROUGH;
15734 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15735 CYTHON_FALLTHROUGH;
15736 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15737 CYTHON_FALLTHROUGH;
15738 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15739 CYTHON_FALLTHROUGH;
15740 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15741 CYTHON_FALLTHROUGH;
15742 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15743 CYTHON_FALLTHROUGH;
15744 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15745 CYTHON_FALLTHROUGH;
15746 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15747 CYTHON_FALLTHROUGH;
15748 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15749 CYTHON_FALLTHROUGH;
15750 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15751 CYTHON_FALLTHROUGH;
15752 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15753 CYTHON_FALLTHROUGH;
15754 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15755 CYTHON_FALLTHROUGH;
15756 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15757 CYTHON_FALLTHROUGH;
15758 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15759 CYTHON_FALLTHROUGH;
15760 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15761 CYTHON_FALLTHROUGH;
15762 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15763 CYTHON_FALLTHROUGH;
15764 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15765 CYTHON_FALLTHROUGH;
15766 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15767 CYTHON_FALLTHROUGH;
15768 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15769 CYTHON_FALLTHROUGH;
15770 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15771 CYTHON_FALLTHROUGH;
15772 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15773 CYTHON_FALLTHROUGH;
15774 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15775 CYTHON_FALLTHROUGH;
15776 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15777 CYTHON_FALLTHROUGH;
15778 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15779 CYTHON_FALLTHROUGH;
15780 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15781 CYTHON_FALLTHROUGH;
15782 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15783 CYTHON_FALLTHROUGH;
15784 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15785 CYTHON_FALLTHROUGH;
15786 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15787 CYTHON_FALLTHROUGH;
15789 default:
goto __pyx_L5_argtuple_error;
15791 kw_args = PyDict_Size(__pyx_kwds);
15792 switch (pos_args) {
15794 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
15795 else goto __pyx_L5_argtuple_error;
15796 CYTHON_FALLTHROUGH;
15798 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
15800 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 1); __PYX_ERR(0, 4235, __pyx_L3_error)
15802 CYTHON_FALLTHROUGH;
15804 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
15806 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 2); __PYX_ERR(0, 4235, __pyx_L3_error)
15808 CYTHON_FALLTHROUGH;
15810 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
15812 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 3); __PYX_ERR(0, 4235, __pyx_L3_error)
15814 CYTHON_FALLTHROUGH;
15816 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
15818 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 4); __PYX_ERR(0, 4235, __pyx_L3_error)
15820 CYTHON_FALLTHROUGH;
15822 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
15824 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 5); __PYX_ERR(0, 4235, __pyx_L3_error)
15826 CYTHON_FALLTHROUGH;
15828 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
15830 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 6); __PYX_ERR(0, 4235, __pyx_L3_error)
15832 CYTHON_FALLTHROUGH;
15834 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
15836 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 7); __PYX_ERR(0, 4235, __pyx_L3_error)
15838 CYTHON_FALLTHROUGH;
15840 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
15842 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 8); __PYX_ERR(0, 4235, __pyx_L3_error)
15844 CYTHON_FALLTHROUGH;
15846 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
15848 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 9); __PYX_ERR(0, 4235, __pyx_L3_error)
15850 CYTHON_FALLTHROUGH;
15852 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
15854 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 10); __PYX_ERR(0, 4235, __pyx_L3_error)
15856 CYTHON_FALLTHROUGH;
15858 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
15860 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 11); __PYX_ERR(0, 4235, __pyx_L3_error)
15862 CYTHON_FALLTHROUGH;
15864 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
15866 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 12); __PYX_ERR(0, 4235, __pyx_L3_error)
15868 CYTHON_FALLTHROUGH;
15870 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
15872 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 13); __PYX_ERR(0, 4235, __pyx_L3_error)
15874 CYTHON_FALLTHROUGH;
15876 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15878 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 14); __PYX_ERR(0, 4235, __pyx_L3_error)
15880 CYTHON_FALLTHROUGH;
15882 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
15884 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 15); __PYX_ERR(0, 4235, __pyx_L3_error)
15886 CYTHON_FALLTHROUGH;
15888 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
15890 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 16); __PYX_ERR(0, 4235, __pyx_L3_error)
15892 CYTHON_FALLTHROUGH;
15894 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
15896 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 17); __PYX_ERR(0, 4235, __pyx_L3_error)
15898 CYTHON_FALLTHROUGH;
15900 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
15902 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 18); __PYX_ERR(0, 4235, __pyx_L3_error)
15904 CYTHON_FALLTHROUGH;
15906 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
15908 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 19); __PYX_ERR(0, 4235, __pyx_L3_error)
15910 CYTHON_FALLTHROUGH;
15912 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
15914 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 20); __PYX_ERR(0, 4235, __pyx_L3_error)
15916 CYTHON_FALLTHROUGH;
15918 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
15920 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 21); __PYX_ERR(0, 4235, __pyx_L3_error)
15922 CYTHON_FALLTHROUGH;
15924 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
15926 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 22); __PYX_ERR(0, 4235, __pyx_L3_error)
15928 CYTHON_FALLTHROUGH;
15930 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
15932 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 23); __PYX_ERR(0, 4235, __pyx_L3_error)
15934 CYTHON_FALLTHROUGH;
15936 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
15938 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 24); __PYX_ERR(0, 4235, __pyx_L3_error)
15940 CYTHON_FALLTHROUGH;
15942 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
15944 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 25); __PYX_ERR(0, 4235, __pyx_L3_error)
15946 CYTHON_FALLTHROUGH;
15948 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
15950 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 26); __PYX_ERR(0, 4235, __pyx_L3_error)
15952 CYTHON_FALLTHROUGH;
15954 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
15956 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 27); __PYX_ERR(0, 4235, __pyx_L3_error)
15958 CYTHON_FALLTHROUGH;
15960 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
15962 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 28); __PYX_ERR(0, 4235, __pyx_L3_error)
15964 CYTHON_FALLTHROUGH;
15966 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
15968 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 29); __PYX_ERR(0, 4235, __pyx_L3_error)
15970 CYTHON_FALLTHROUGH;
15972 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
15974 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 30); __PYX_ERR(0, 4235, __pyx_L3_error)
15976 CYTHON_FALLTHROUGH;
15978 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
15980 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 31); __PYX_ERR(0, 4235, __pyx_L3_error)
15982 CYTHON_FALLTHROUGH;
15984 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
15986 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 32); __PYX_ERR(0, 4235, __pyx_L3_error)
15988 CYTHON_FALLTHROUGH;
15990 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
15992 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 33); __PYX_ERR(0, 4235, __pyx_L3_error)
15994 CYTHON_FALLTHROUGH;
15996 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
15998 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 34); __PYX_ERR(0, 4235, __pyx_L3_error)
16000 CYTHON_FALLTHROUGH;
16002 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
16004 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 35); __PYX_ERR(0, 4235, __pyx_L3_error)
16006 CYTHON_FALLTHROUGH;
16008 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
16010 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 36); __PYX_ERR(0, 4235, __pyx_L3_error)
16012 CYTHON_FALLTHROUGH;
16014 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
16016 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, 37); __PYX_ERR(0, 4235, __pyx_L3_error)
16019 if (unlikely(kw_args > 0)) {
16020 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4235, __pyx_L3_error)
16022 }
else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
16023 goto __pyx_L5_argtuple_error;
16025 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16026 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16027 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16028 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16029 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16030 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16031 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16032 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16033 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16034 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16035 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16036 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16037 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16038 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16039 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16040 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16041 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16042 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16043 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16044 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16045 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16046 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16047 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16048 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16049 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16050 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16051 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16052 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16053 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16054 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16055 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16056 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16057 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16058 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16059 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16060 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16061 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16062 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16064 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4235, __pyx_L3_error)
16065 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4236, __pyx_L3_error)
16066 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4237, __pyx_L3_error)
16067 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4238, __pyx_L3_error)
16068 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4239, __pyx_L3_error)
16069 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4240, __pyx_L3_error)
16070 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4241, __pyx_L3_error)
16071 __pyx_v_g = ((PyArrayObject *)values[7]);
16072 __pyx_v_phi = ((PyArrayObject *)values[8]);
16073 __pyx_v_n = ((PyArrayObject *)values[9]);
16074 __pyx_v_kappa = ((PyArrayObject *)values[10]);
16075 __pyx_v_p = ((PyArrayObject *)values[11]);
16076 __pyx_v_grad_p = ((PyArrayObject *)values[12]);
16077 __pyx_v_u = ((PyArrayObject *)values[13]);
16078 __pyx_v_v = ((PyArrayObject *)values[14]);
16079 __pyx_v_mom_u_acc = ((PyArrayObject *)values[15]);
16080 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[16]);
16081 __pyx_v_mom_v_acc = ((PyArrayObject *)values[17]);
16082 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[18]);
16083 __pyx_v_mass_adv = ((PyArrayObject *)values[19]);
16084 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[20]);
16085 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[21]);
16086 __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
16087 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
16088 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
16089 __pyx_v_mom_v_adv = ((PyArrayObject *)values[25]);
16090 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[26]);
16091 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[27]);
16092 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[28]);
16093 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[29]);
16094 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[30]);
16095 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[31]);
16096 __pyx_v_mom_u_source = ((PyArrayObject *)values[32]);
16097 __pyx_v_mom_v_source = ((PyArrayObject *)values[33]);
16098 __pyx_v_mom_u_ham = ((PyArrayObject *)values[34]);
16099 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[35]);
16100 __pyx_v_mom_v_ham = ((PyArrayObject *)values[36]);
16101 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[37]);
16103 goto __pyx_L4_argument_unpacking_done;
16104 __pyx_L5_argtuple_error:;
16105 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4235, __pyx_L3_error)
16107 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
16108 __Pyx_RefNannyFinishContext();
16110 __pyx_L4_argument_unpacking_done:;
16111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4242, __pyx_L1_error)
16112 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4243, __pyx_L1_error)
16113 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4244, __pyx_L1_error)
16114 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 4245, __pyx_L1_error)
16115 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4246, __pyx_L1_error)
16116 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4247, __pyx_L1_error)
16117 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4248, __pyx_L1_error)
16118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4249, __pyx_L1_error)
16119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4250, __pyx_L1_error)
16120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4251, __pyx_L1_error)
16121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4252, __pyx_L1_error)
16122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4253, __pyx_L1_error)
16123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4254, __pyx_L1_error)
16124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4255, __pyx_L1_error)
16125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4256, __pyx_L1_error)
16126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4257, __pyx_L1_error)
16127 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4258, __pyx_L1_error)
16128 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4259, __pyx_L1_error)
16129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4260, __pyx_L1_error)
16130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4261, __pyx_L1_error)
16131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4262, __pyx_L1_error)
16132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4263, __pyx_L1_error)
16133 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4264, __pyx_L1_error)
16134 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 4265, __pyx_L1_error)
16135 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 4266, __pyx_L1_error)
16136 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4267, __pyx_L1_error)
16137 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4268, __pyx_L1_error)
16138 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4269, __pyx_L1_error)
16139 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4270, __pyx_L1_error)
16140 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4271, __pyx_L1_error)
16141 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4272, __pyx_L1_error)
16142 __pyx_r = __pyx_pf_22ctransportCoefficients_82TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
16149 __Pyx_RefNannyFinishContext();
16153 static PyObject *__pyx_pf_22ctransportCoefficients_82TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
16154 PyObject *__pyx_r = NULL;
16155 __Pyx_RefNannyDeclarations
16156 PyObject *__pyx_t_1 = NULL;
16158 int __pyx_lineno = 0;
16159 const char *__pyx_filename = NULL;
16160 int __pyx_clineno = 0;
16161 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 0);
16170 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4273, __pyx_L1_error)
16171 __Pyx_GOTREF(__pyx_t_1);
16172 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4273, __pyx_L1_error)
16173 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16182 TwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
16193 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16196 __Pyx_XDECREF(__pyx_t_1);
16197 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
16200 __Pyx_XGIVEREF(__pyx_r);
16201 __Pyx_RefNannyFinishContext();
16214 static PyObject *__pyx_pw_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16215 static PyMethodDef __pyx_mdef_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd = {
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
16216 static PyObject *__pyx_pw_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16217 double __pyx_v_eps_rho;
16218 double __pyx_v_eps_mu;
16219 double __pyx_v_sigma;
16220 double __pyx_v_rho_0;
16221 double __pyx_v_nu_0;
16222 double __pyx_v_rho_1;
16223 double __pyx_v_nu_1;
16224 PyArrayObject *__pyx_v_g = 0;
16225 PyArrayObject *__pyx_v_phi = 0;
16226 PyArrayObject *__pyx_v_n = 0;
16227 PyArrayObject *__pyx_v_kappa = 0;
16228 PyArrayObject *__pyx_v_p = 0;
16229 PyArrayObject *__pyx_v_grad_p = 0;
16230 PyArrayObject *__pyx_v_u = 0;
16231 PyArrayObject *__pyx_v_v = 0;
16232 PyArrayObject *__pyx_v_mom_u_acc = 0;
16233 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
16234 PyArrayObject *__pyx_v_mom_v_acc = 0;
16235 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
16236 PyArrayObject *__pyx_v_mass_adv = 0;
16237 PyArrayObject *__pyx_v_dmass_adv_u = 0;
16238 PyArrayObject *__pyx_v_dmass_adv_v = 0;
16239 PyArrayObject *__pyx_v_mom_u_adv = 0;
16240 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
16241 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
16242 PyArrayObject *__pyx_v_mom_v_adv = 0;
16243 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
16244 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
16245 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
16246 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
16247 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
16248 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
16249 PyArrayObject *__pyx_v_mom_u_source = 0;
16250 PyArrayObject *__pyx_v_mom_v_source = 0;
16251 PyArrayObject *__pyx_v_mom_u_ham = 0;
16252 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
16253 PyArrayObject *__pyx_v_mom_v_ham = 0;
16254 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
16255 int __pyx_lineno = 0;
16256 const char *__pyx_filename = NULL;
16257 int __pyx_clineno = 0;
16258 PyObject *__pyx_r = 0;
16259 __Pyx_RefNannyDeclarations
16260 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd (wrapper)", 0);
16262 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
16263 PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
16264 if (unlikely(__pyx_kwds)) {
16265 Py_ssize_t kw_args;
16266 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16267 switch (pos_args) {
16268 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16269 CYTHON_FALLTHROUGH;
16270 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16271 CYTHON_FALLTHROUGH;
16272 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16273 CYTHON_FALLTHROUGH;
16274 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16275 CYTHON_FALLTHROUGH;
16276 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16277 CYTHON_FALLTHROUGH;
16278 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16279 CYTHON_FALLTHROUGH;
16280 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16281 CYTHON_FALLTHROUGH;
16282 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16283 CYTHON_FALLTHROUGH;
16284 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16285 CYTHON_FALLTHROUGH;
16286 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16287 CYTHON_FALLTHROUGH;
16288 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16289 CYTHON_FALLTHROUGH;
16290 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16291 CYTHON_FALLTHROUGH;
16292 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16293 CYTHON_FALLTHROUGH;
16294 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16295 CYTHON_FALLTHROUGH;
16296 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16297 CYTHON_FALLTHROUGH;
16298 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16299 CYTHON_FALLTHROUGH;
16300 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16301 CYTHON_FALLTHROUGH;
16302 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16303 CYTHON_FALLTHROUGH;
16304 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16305 CYTHON_FALLTHROUGH;
16306 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16307 CYTHON_FALLTHROUGH;
16308 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16309 CYTHON_FALLTHROUGH;
16310 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16311 CYTHON_FALLTHROUGH;
16312 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16313 CYTHON_FALLTHROUGH;
16314 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16315 CYTHON_FALLTHROUGH;
16316 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16317 CYTHON_FALLTHROUGH;
16318 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16319 CYTHON_FALLTHROUGH;
16320 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16321 CYTHON_FALLTHROUGH;
16322 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16323 CYTHON_FALLTHROUGH;
16324 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16325 CYTHON_FALLTHROUGH;
16326 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16327 CYTHON_FALLTHROUGH;
16328 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16329 CYTHON_FALLTHROUGH;
16330 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16331 CYTHON_FALLTHROUGH;
16332 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16333 CYTHON_FALLTHROUGH;
16334 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16335 CYTHON_FALLTHROUGH;
16336 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16337 CYTHON_FALLTHROUGH;
16338 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16339 CYTHON_FALLTHROUGH;
16340 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16341 CYTHON_FALLTHROUGH;
16342 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16343 CYTHON_FALLTHROUGH;
16345 default:
goto __pyx_L5_argtuple_error;
16347 kw_args = PyDict_Size(__pyx_kwds);
16348 switch (pos_args) {
16350 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
16351 else goto __pyx_L5_argtuple_error;
16352 CYTHON_FALLTHROUGH;
16354 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
16356 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 1); __PYX_ERR(0, 4312, __pyx_L3_error)
16358 CYTHON_FALLTHROUGH;
16360 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
16362 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 2); __PYX_ERR(0, 4312, __pyx_L3_error)
16364 CYTHON_FALLTHROUGH;
16366 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
16368 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 3); __PYX_ERR(0, 4312, __pyx_L3_error)
16370 CYTHON_FALLTHROUGH;
16372 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
16374 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 4); __PYX_ERR(0, 4312, __pyx_L3_error)
16376 CYTHON_FALLTHROUGH;
16378 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
16380 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 5); __PYX_ERR(0, 4312, __pyx_L3_error)
16382 CYTHON_FALLTHROUGH;
16384 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
16386 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 6); __PYX_ERR(0, 4312, __pyx_L3_error)
16388 CYTHON_FALLTHROUGH;
16390 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16392 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 7); __PYX_ERR(0, 4312, __pyx_L3_error)
16394 CYTHON_FALLTHROUGH;
16396 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
16398 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 8); __PYX_ERR(0, 4312, __pyx_L3_error)
16400 CYTHON_FALLTHROUGH;
16402 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16404 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 9); __PYX_ERR(0, 4312, __pyx_L3_error)
16406 CYTHON_FALLTHROUGH;
16408 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
16410 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 10); __PYX_ERR(0, 4312, __pyx_L3_error)
16412 CYTHON_FALLTHROUGH;
16414 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
16416 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 11); __PYX_ERR(0, 4312, __pyx_L3_error)
16418 CYTHON_FALLTHROUGH;
16420 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
16422 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 12); __PYX_ERR(0, 4312, __pyx_L3_error)
16424 CYTHON_FALLTHROUGH;
16426 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
16428 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 13); __PYX_ERR(0, 4312, __pyx_L3_error)
16430 CYTHON_FALLTHROUGH;
16432 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
16434 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 14); __PYX_ERR(0, 4312, __pyx_L3_error)
16436 CYTHON_FALLTHROUGH;
16438 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
16440 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 15); __PYX_ERR(0, 4312, __pyx_L3_error)
16442 CYTHON_FALLTHROUGH;
16444 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
16446 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 16); __PYX_ERR(0, 4312, __pyx_L3_error)
16448 CYTHON_FALLTHROUGH;
16450 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
16452 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 17); __PYX_ERR(0, 4312, __pyx_L3_error)
16454 CYTHON_FALLTHROUGH;
16456 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
16458 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 18); __PYX_ERR(0, 4312, __pyx_L3_error)
16460 CYTHON_FALLTHROUGH;
16462 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
16464 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 19); __PYX_ERR(0, 4312, __pyx_L3_error)
16466 CYTHON_FALLTHROUGH;
16468 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
16470 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 20); __PYX_ERR(0, 4312, __pyx_L3_error)
16472 CYTHON_FALLTHROUGH;
16474 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
16476 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 21); __PYX_ERR(0, 4312, __pyx_L3_error)
16478 CYTHON_FALLTHROUGH;
16480 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
16482 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 22); __PYX_ERR(0, 4312, __pyx_L3_error)
16484 CYTHON_FALLTHROUGH;
16486 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
16488 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 23); __PYX_ERR(0, 4312, __pyx_L3_error)
16490 CYTHON_FALLTHROUGH;
16492 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
16494 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 24); __PYX_ERR(0, 4312, __pyx_L3_error)
16496 CYTHON_FALLTHROUGH;
16498 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
16500 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 25); __PYX_ERR(0, 4312, __pyx_L3_error)
16502 CYTHON_FALLTHROUGH;
16504 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
16506 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 26); __PYX_ERR(0, 4312, __pyx_L3_error)
16508 CYTHON_FALLTHROUGH;
16510 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
16512 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 27); __PYX_ERR(0, 4312, __pyx_L3_error)
16514 CYTHON_FALLTHROUGH;
16516 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
16518 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 28); __PYX_ERR(0, 4312, __pyx_L3_error)
16520 CYTHON_FALLTHROUGH;
16522 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
16524 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 29); __PYX_ERR(0, 4312, __pyx_L3_error)
16526 CYTHON_FALLTHROUGH;
16528 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
16530 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 30); __PYX_ERR(0, 4312, __pyx_L3_error)
16532 CYTHON_FALLTHROUGH;
16534 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
16536 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 31); __PYX_ERR(0, 4312, __pyx_L3_error)
16538 CYTHON_FALLTHROUGH;
16540 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
16542 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 32); __PYX_ERR(0, 4312, __pyx_L3_error)
16544 CYTHON_FALLTHROUGH;
16546 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
16548 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 33); __PYX_ERR(0, 4312, __pyx_L3_error)
16550 CYTHON_FALLTHROUGH;
16552 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
16554 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 34); __PYX_ERR(0, 4312, __pyx_L3_error)
16556 CYTHON_FALLTHROUGH;
16558 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
16560 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 35); __PYX_ERR(0, 4312, __pyx_L3_error)
16562 CYTHON_FALLTHROUGH;
16564 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
16566 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 36); __PYX_ERR(0, 4312, __pyx_L3_error)
16568 CYTHON_FALLTHROUGH;
16570 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
16572 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, 37); __PYX_ERR(0, 4312, __pyx_L3_error)
16575 if (unlikely(kw_args > 0)) {
16576 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 4312, __pyx_L3_error)
16578 }
else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
16579 goto __pyx_L5_argtuple_error;
16581 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16582 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16583 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16584 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16585 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16586 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16587 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16588 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16589 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16590 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16591 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16592 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16593 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16594 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16595 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16596 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16597 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16598 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16599 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16600 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16601 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16602 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16603 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16604 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16605 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16606 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16607 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16608 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16609 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16610 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16611 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16612 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16613 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16614 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16615 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16616 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16617 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16618 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16620 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4312, __pyx_L3_error)
16621 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4313, __pyx_L3_error)
16622 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4314, __pyx_L3_error)
16623 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4315, __pyx_L3_error)
16624 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4316, __pyx_L3_error)
16625 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4317, __pyx_L3_error)
16626 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4318, __pyx_L3_error)
16627 __pyx_v_g = ((PyArrayObject *)values[7]);
16628 __pyx_v_phi = ((PyArrayObject *)values[8]);
16629 __pyx_v_n = ((PyArrayObject *)values[9]);
16630 __pyx_v_kappa = ((PyArrayObject *)values[10]);
16631 __pyx_v_p = ((PyArrayObject *)values[11]);
16632 __pyx_v_grad_p = ((PyArrayObject *)values[12]);
16633 __pyx_v_u = ((PyArrayObject *)values[13]);
16634 __pyx_v_v = ((PyArrayObject *)values[14]);
16635 __pyx_v_mom_u_acc = ((PyArrayObject *)values[15]);
16636 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[16]);
16637 __pyx_v_mom_v_acc = ((PyArrayObject *)values[17]);
16638 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[18]);
16639 __pyx_v_mass_adv = ((PyArrayObject *)values[19]);
16640 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[20]);
16641 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[21]);
16642 __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
16643 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
16644 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
16645 __pyx_v_mom_v_adv = ((PyArrayObject *)values[25]);
16646 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[26]);
16647 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[27]);
16648 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[28]);
16649 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[29]);
16650 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[30]);
16651 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[31]);
16652 __pyx_v_mom_u_source = ((PyArrayObject *)values[32]);
16653 __pyx_v_mom_v_source = ((PyArrayObject *)values[33]);
16654 __pyx_v_mom_u_ham = ((PyArrayObject *)values[34]);
16655 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[35]);
16656 __pyx_v_mom_v_ham = ((PyArrayObject *)values[36]);
16657 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[37]);
16659 goto __pyx_L4_argument_unpacking_done;
16660 __pyx_L5_argtuple_error:;
16661 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4312, __pyx_L3_error)
16663 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
16664 __Pyx_RefNannyFinishContext();
16666 __pyx_L4_argument_unpacking_done:;
16667 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4319, __pyx_L1_error)
16668 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4320, __pyx_L1_error)
16669 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4321, __pyx_L1_error)
16670 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 4322, __pyx_L1_error)
16671 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4323, __pyx_L1_error)
16672 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4324, __pyx_L1_error)
16673 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4325, __pyx_L1_error)
16674 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4326, __pyx_L1_error)
16675 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4327, __pyx_L1_error)
16676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4328, __pyx_L1_error)
16677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4329, __pyx_L1_error)
16678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4330, __pyx_L1_error)
16679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4331, __pyx_L1_error)
16680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4332, __pyx_L1_error)
16681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4333, __pyx_L1_error)
16682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4334, __pyx_L1_error)
16683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4335, __pyx_L1_error)
16684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4336, __pyx_L1_error)
16685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4337, __pyx_L1_error)
16686 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4338, __pyx_L1_error)
16687 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4339, __pyx_L1_error)
16688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4340, __pyx_L1_error)
16689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4341, __pyx_L1_error)
16690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 4342, __pyx_L1_error)
16691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 4343, __pyx_L1_error)
16692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4344, __pyx_L1_error)
16693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4345, __pyx_L1_error)
16694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4346, __pyx_L1_error)
16695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4347, __pyx_L1_error)
16696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4348, __pyx_L1_error)
16697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4349, __pyx_L1_error)
16698 __pyx_r = __pyx_pf_22ctransportCoefficients_84TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
16705 __Pyx_RefNannyFinishContext();
16709 static PyObject *__pyx_pf_22ctransportCoefficients_84TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
16710 PyObject *__pyx_r = NULL;
16711 __Pyx_RefNannyDeclarations
16712 PyObject *__pyx_t_1 = NULL;
16714 int __pyx_lineno = 0;
16715 const char *__pyx_filename = NULL;
16716 int __pyx_clineno = 0;
16717 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 0);
16726 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4350, __pyx_L1_error)
16727 __Pyx_GOTREF(__pyx_t_1);
16728 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4350, __pyx_L1_error)
16729 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16738 TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
16749 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16752 __Pyx_XDECREF(__pyx_t_1);
16753 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
16756 __Pyx_XGIVEREF(__pyx_r);
16757 __Pyx_RefNannyFinishContext();
16770 static PyObject *__pyx_pw_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16771 static PyMethodDef __pyx_mdef_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate = {
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
16772 static PyObject *__pyx_pw_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16773 double __pyx_v_boundaryPenaltyCoef;
16774 double __pyx_v_volumePenaltyCoef;
16775 double __pyx_v_eps_rho;
16776 double __pyx_v_eps_mu;
16777 double __pyx_v_sigma;
16778 double __pyx_v_rho_0;
16779 double __pyx_v_nu_0;
16780 double __pyx_v_rho_1;
16781 double __pyx_v_nu_1;
16782 double __pyx_v_rho_s;
16783 double __pyx_v_nu_s;
16784 PyArrayObject *__pyx_v_g = 0;
16785 PyArrayObject *__pyx_v_phi = 0;
16786 PyArrayObject *__pyx_v_n = 0;
16787 PyArrayObject *__pyx_v_kappa = 0;
16788 PyArrayObject *__pyx_v_phi_s = 0;
16789 PyArrayObject *__pyx_v_n_s = 0;
16790 PyArrayObject *__pyx_v_p = 0;
16791 PyArrayObject *__pyx_v_grad_p = 0;
16792 PyArrayObject *__pyx_v_u = 0;
16793 PyArrayObject *__pyx_v_v = 0;
16794 PyArrayObject *__pyx_v_mom_u_acc = 0;
16795 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
16796 PyArrayObject *__pyx_v_mom_v_acc = 0;
16797 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
16798 PyArrayObject *__pyx_v_mass_adv = 0;
16799 PyArrayObject *__pyx_v_dmass_adv_u = 0;
16800 PyArrayObject *__pyx_v_dmass_adv_v = 0;
16801 PyArrayObject *__pyx_v_mom_u_adv = 0;
16802 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
16803 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
16804 PyArrayObject *__pyx_v_mom_v_adv = 0;
16805 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
16806 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
16807 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
16808 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
16809 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
16810 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
16811 PyArrayObject *__pyx_v_mom_u_source = 0;
16812 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
16813 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
16814 PyArrayObject *__pyx_v_mom_v_source = 0;
16815 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
16816 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
16817 PyArrayObject *__pyx_v_mom_u_ham = 0;
16818 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
16819 PyArrayObject *__pyx_v_mom_v_ham = 0;
16820 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
16821 int __pyx_lineno = 0;
16822 const char *__pyx_filename = NULL;
16823 int __pyx_clineno = 0;
16824 PyObject *__pyx_r = 0;
16825 __Pyx_RefNannyDeclarations
16826 __Pyx_RefNannySetupContext(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate (wrapper)", 0);
16828 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_boundaryPenaltyCoef,&__pyx_n_s_volumePenaltyCoef,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_rho_s,&__pyx_n_s_nu_s,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_phi_s,&__pyx_n_s_n_s,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
16829 PyObject* values[48] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
16830 if (unlikely(__pyx_kwds)) {
16831 Py_ssize_t kw_args;
16832 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16833 switch (pos_args) {
16834 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
16835 CYTHON_FALLTHROUGH;
16836 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
16837 CYTHON_FALLTHROUGH;
16838 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
16839 CYTHON_FALLTHROUGH;
16840 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
16841 CYTHON_FALLTHROUGH;
16842 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
16843 CYTHON_FALLTHROUGH;
16844 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
16845 CYTHON_FALLTHROUGH;
16846 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
16847 CYTHON_FALLTHROUGH;
16848 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
16849 CYTHON_FALLTHROUGH;
16850 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
16851 CYTHON_FALLTHROUGH;
16852 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
16853 CYTHON_FALLTHROUGH;
16854 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
16855 CYTHON_FALLTHROUGH;
16856 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
16857 CYTHON_FALLTHROUGH;
16858 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
16859 CYTHON_FALLTHROUGH;
16860 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
16861 CYTHON_FALLTHROUGH;
16862 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
16863 CYTHON_FALLTHROUGH;
16864 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
16865 CYTHON_FALLTHROUGH;
16866 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
16867 CYTHON_FALLTHROUGH;
16868 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
16869 CYTHON_FALLTHROUGH;
16870 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
16871 CYTHON_FALLTHROUGH;
16872 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
16873 CYTHON_FALLTHROUGH;
16874 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
16875 CYTHON_FALLTHROUGH;
16876 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
16877 CYTHON_FALLTHROUGH;
16878 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
16879 CYTHON_FALLTHROUGH;
16880 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
16881 CYTHON_FALLTHROUGH;
16882 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
16883 CYTHON_FALLTHROUGH;
16884 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
16885 CYTHON_FALLTHROUGH;
16886 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
16887 CYTHON_FALLTHROUGH;
16888 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
16889 CYTHON_FALLTHROUGH;
16890 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
16891 CYTHON_FALLTHROUGH;
16892 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
16893 CYTHON_FALLTHROUGH;
16894 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
16895 CYTHON_FALLTHROUGH;
16896 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
16897 CYTHON_FALLTHROUGH;
16898 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
16899 CYTHON_FALLTHROUGH;
16900 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
16901 CYTHON_FALLTHROUGH;
16902 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16903 CYTHON_FALLTHROUGH;
16904 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16905 CYTHON_FALLTHROUGH;
16906 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16907 CYTHON_FALLTHROUGH;
16908 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16909 CYTHON_FALLTHROUGH;
16910 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16911 CYTHON_FALLTHROUGH;
16912 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16913 CYTHON_FALLTHROUGH;
16914 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16915 CYTHON_FALLTHROUGH;
16916 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16917 CYTHON_FALLTHROUGH;
16918 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16919 CYTHON_FALLTHROUGH;
16920 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16921 CYTHON_FALLTHROUGH;
16922 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16923 CYTHON_FALLTHROUGH;
16924 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16925 CYTHON_FALLTHROUGH;
16926 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16927 CYTHON_FALLTHROUGH;
16928 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16929 CYTHON_FALLTHROUGH;
16931 default:
goto __pyx_L5_argtuple_error;
16933 kw_args = PyDict_Size(__pyx_kwds);
16934 switch (pos_args) {
16936 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryPenaltyCoef)) != 0)) kw_args--;
16937 else goto __pyx_L5_argtuple_error;
16938 CYTHON_FALLTHROUGH;
16940 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_volumePenaltyCoef)) != 0)) kw_args--;
16942 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 1); __PYX_ERR(0, 4389, __pyx_L3_error)
16944 CYTHON_FALLTHROUGH;
16946 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
16948 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 2); __PYX_ERR(0, 4389, __pyx_L3_error)
16950 CYTHON_FALLTHROUGH;
16952 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
16954 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 3); __PYX_ERR(0, 4389, __pyx_L3_error)
16956 CYTHON_FALLTHROUGH;
16958 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
16960 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 4); __PYX_ERR(0, 4389, __pyx_L3_error)
16962 CYTHON_FALLTHROUGH;
16964 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
16966 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 5); __PYX_ERR(0, 4389, __pyx_L3_error)
16968 CYTHON_FALLTHROUGH;
16970 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
16972 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 6); __PYX_ERR(0, 4389, __pyx_L3_error)
16974 CYTHON_FALLTHROUGH;
16976 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
16978 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 7); __PYX_ERR(0, 4389, __pyx_L3_error)
16980 CYTHON_FALLTHROUGH;
16982 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
16984 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 8); __PYX_ERR(0, 4389, __pyx_L3_error)
16986 CYTHON_FALLTHROUGH;
16988 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_s)) != 0)) kw_args--;
16990 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 9); __PYX_ERR(0, 4389, __pyx_L3_error)
16992 CYTHON_FALLTHROUGH;
16994 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_s)) != 0)) kw_args--;
16996 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 10); __PYX_ERR(0, 4389, __pyx_L3_error)
16998 CYTHON_FALLTHROUGH;
17000 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
17002 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 11); __PYX_ERR(0, 4389, __pyx_L3_error)
17004 CYTHON_FALLTHROUGH;
17006 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
17008 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 12); __PYX_ERR(0, 4389, __pyx_L3_error)
17010 CYTHON_FALLTHROUGH;
17012 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17014 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 13); __PYX_ERR(0, 4389, __pyx_L3_error)
17016 CYTHON_FALLTHROUGH;
17018 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
17020 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 14); __PYX_ERR(0, 4389, __pyx_L3_error)
17022 CYTHON_FALLTHROUGH;
17024 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_s)) != 0)) kw_args--;
17026 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 15); __PYX_ERR(0, 4389, __pyx_L3_error)
17028 CYTHON_FALLTHROUGH;
17030 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_s)) != 0)) kw_args--;
17032 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 16); __PYX_ERR(0, 4389, __pyx_L3_error)
17034 CYTHON_FALLTHROUGH;
17036 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
17038 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 17); __PYX_ERR(0, 4389, __pyx_L3_error)
17040 CYTHON_FALLTHROUGH;
17042 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
17044 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 18); __PYX_ERR(0, 4389, __pyx_L3_error)
17046 CYTHON_FALLTHROUGH;
17048 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
17050 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 19); __PYX_ERR(0, 4389, __pyx_L3_error)
17052 CYTHON_FALLTHROUGH;
17054 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
17056 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 20); __PYX_ERR(0, 4389, __pyx_L3_error)
17058 CYTHON_FALLTHROUGH;
17060 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
17062 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 21); __PYX_ERR(0, 4389, __pyx_L3_error)
17064 CYTHON_FALLTHROUGH;
17066 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
17068 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 22); __PYX_ERR(0, 4389, __pyx_L3_error)
17070 CYTHON_FALLTHROUGH;
17072 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
17074 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 23); __PYX_ERR(0, 4389, __pyx_L3_error)
17076 CYTHON_FALLTHROUGH;
17078 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
17080 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 24); __PYX_ERR(0, 4389, __pyx_L3_error)
17082 CYTHON_FALLTHROUGH;
17084 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
17086 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 25); __PYX_ERR(0, 4389, __pyx_L3_error)
17088 CYTHON_FALLTHROUGH;
17090 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
17092 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 26); __PYX_ERR(0, 4389, __pyx_L3_error)
17094 CYTHON_FALLTHROUGH;
17096 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
17098 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 27); __PYX_ERR(0, 4389, __pyx_L3_error)
17100 CYTHON_FALLTHROUGH;
17102 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
17104 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 28); __PYX_ERR(0, 4389, __pyx_L3_error)
17106 CYTHON_FALLTHROUGH;
17108 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
17110 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 29); __PYX_ERR(0, 4389, __pyx_L3_error)
17112 CYTHON_FALLTHROUGH;
17114 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
17116 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 30); __PYX_ERR(0, 4389, __pyx_L3_error)
17118 CYTHON_FALLTHROUGH;
17120 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
17122 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 31); __PYX_ERR(0, 4389, __pyx_L3_error)
17124 CYTHON_FALLTHROUGH;
17126 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
17128 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 32); __PYX_ERR(0, 4389, __pyx_L3_error)
17130 CYTHON_FALLTHROUGH;
17132 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
17134 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 33); __PYX_ERR(0, 4389, __pyx_L3_error)
17136 CYTHON_FALLTHROUGH;
17138 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
17140 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 34); __PYX_ERR(0, 4389, __pyx_L3_error)
17142 CYTHON_FALLTHROUGH;
17144 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
17146 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 35); __PYX_ERR(0, 4389, __pyx_L3_error)
17148 CYTHON_FALLTHROUGH;
17150 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
17152 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 36); __PYX_ERR(0, 4389, __pyx_L3_error)
17154 CYTHON_FALLTHROUGH;
17156 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
17158 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 37); __PYX_ERR(0, 4389, __pyx_L3_error)
17160 CYTHON_FALLTHROUGH;
17162 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
17164 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 38); __PYX_ERR(0, 4389, __pyx_L3_error)
17166 CYTHON_FALLTHROUGH;
17168 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
17170 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 39); __PYX_ERR(0, 4389, __pyx_L3_error)
17172 CYTHON_FALLTHROUGH;
17174 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
17176 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 40); __PYX_ERR(0, 4389, __pyx_L3_error)
17178 CYTHON_FALLTHROUGH;
17180 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
17182 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 41); __PYX_ERR(0, 4389, __pyx_L3_error)
17184 CYTHON_FALLTHROUGH;
17186 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
17188 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 42); __PYX_ERR(0, 4389, __pyx_L3_error)
17190 CYTHON_FALLTHROUGH;
17192 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
17194 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 43); __PYX_ERR(0, 4389, __pyx_L3_error)
17196 CYTHON_FALLTHROUGH;
17198 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
17200 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 44); __PYX_ERR(0, 4389, __pyx_L3_error)
17202 CYTHON_FALLTHROUGH;
17204 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
17206 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 45); __PYX_ERR(0, 4389, __pyx_L3_error)
17208 CYTHON_FALLTHROUGH;
17210 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
17212 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 46); __PYX_ERR(0, 4389, __pyx_L3_error)
17214 CYTHON_FALLTHROUGH;
17216 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
17218 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, 47); __PYX_ERR(0, 4389, __pyx_L3_error)
17221 if (unlikely(kw_args > 0)) {
17222 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4389, __pyx_L3_error)
17224 }
else if (PyTuple_GET_SIZE(__pyx_args) != 48) {
17225 goto __pyx_L5_argtuple_error;
17227 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17228 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17229 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17230 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17231 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17232 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17233 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17234 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17235 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17236 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17237 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17238 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17239 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17240 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17241 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17242 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17243 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17244 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17245 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17246 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17247 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17248 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17249 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17250 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17251 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17252 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17253 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17254 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17255 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
17256 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
17257 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
17258 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
17259 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
17260 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
17261 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
17262 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
17263 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
17264 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
17265 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
17266 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
17267 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
17268 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
17269 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
17270 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
17271 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
17272 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
17273 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
17274 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
17276 __pyx_v_boundaryPenaltyCoef = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_boundaryPenaltyCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4389, __pyx_L3_error)
17277 __pyx_v_volumePenaltyCoef = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_volumePenaltyCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4390, __pyx_L3_error)
17278 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4391, __pyx_L3_error)
17279 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4392, __pyx_L3_error)
17280 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4393, __pyx_L3_error)
17281 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4394, __pyx_L3_error)
17282 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4395, __pyx_L3_error)
17283 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4396, __pyx_L3_error)
17284 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4397, __pyx_L3_error)
17285 __pyx_v_rho_s = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_rho_s == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4398, __pyx_L3_error)
17286 __pyx_v_nu_s = __pyx_PyFloat_AsDouble(values[10]);
if (unlikely((__pyx_v_nu_s == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4399, __pyx_L3_error)
17287 __pyx_v_g = ((PyArrayObject *)values[11]);
17288 __pyx_v_phi = ((PyArrayObject *)values[12]);
17289 __pyx_v_n = ((PyArrayObject *)values[13]);
17290 __pyx_v_kappa = ((PyArrayObject *)values[14]);
17291 __pyx_v_phi_s = ((PyArrayObject *)values[15]);
17292 __pyx_v_n_s = ((PyArrayObject *)values[16]);
17293 __pyx_v_p = ((PyArrayObject *)values[17]);
17294 __pyx_v_grad_p = ((PyArrayObject *)values[18]);
17295 __pyx_v_u = ((PyArrayObject *)values[19]);
17296 __pyx_v_v = ((PyArrayObject *)values[20]);
17297 __pyx_v_mom_u_acc = ((PyArrayObject *)values[21]);
17298 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[22]);
17299 __pyx_v_mom_v_acc = ((PyArrayObject *)values[23]);
17300 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[24]);
17301 __pyx_v_mass_adv = ((PyArrayObject *)values[25]);
17302 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[26]);
17303 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[27]);
17304 __pyx_v_mom_u_adv = ((PyArrayObject *)values[28]);
17305 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[29]);
17306 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[30]);
17307 __pyx_v_mom_v_adv = ((PyArrayObject *)values[31]);
17308 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[32]);
17309 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[33]);
17310 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[34]);
17311 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[35]);
17312 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[36]);
17313 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[37]);
17314 __pyx_v_mom_u_source = ((PyArrayObject *)values[38]);
17315 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[39]);
17316 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[40]);
17317 __pyx_v_mom_v_source = ((PyArrayObject *)values[41]);
17318 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[42]);
17319 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[43]);
17320 __pyx_v_mom_u_ham = ((PyArrayObject *)values[44]);
17321 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[45]);
17322 __pyx_v_mom_v_ham = ((PyArrayObject *)values[46]);
17323 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[47]);
17325 goto __pyx_L4_argument_unpacking_done;
17326 __pyx_L5_argtuple_error:;
17327 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 48, 48, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4389, __pyx_L3_error)
17329 __Pyx_AddTraceback(
"ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
17330 __Pyx_RefNannyFinishContext();
17332 __pyx_L4_argument_unpacking_done:;
17333 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4400, __pyx_L1_error)
17334 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4401, __pyx_L1_error)
17335 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4402, __pyx_L1_error)
17336 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 4403, __pyx_L1_error)
17337 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_s), __pyx_ptype_5numpy_ndarray, 1,
"phi_s", 0))) __PYX_ERR(0, 4404, __pyx_L1_error)
17338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_s), __pyx_ptype_5numpy_ndarray, 1,
"n_s", 0))) __PYX_ERR(0, 4405, __pyx_L1_error)
17339 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4406, __pyx_L1_error)
17340 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4407, __pyx_L1_error)
17341 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4408, __pyx_L1_error)
17342 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4409, __pyx_L1_error)
17343 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4410, __pyx_L1_error)
17344 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4411, __pyx_L1_error)
17345 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4412, __pyx_L1_error)
17346 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
17347 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4414, __pyx_L1_error)
17348 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4415, __pyx_L1_error)
17349 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4416, __pyx_L1_error)
17350 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4417, __pyx_L1_error)
17351 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4418, __pyx_L1_error)
17352 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4419, __pyx_L1_error)
17353 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4420, __pyx_L1_error)
17354 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4421, __pyx_L1_error)
17355 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4422, __pyx_L1_error)
17356 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4423, __pyx_L1_error)
17357 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4424, __pyx_L1_error)
17358 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 4425, __pyx_L1_error)
17359 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 4426, __pyx_L1_error)
17360 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4427, __pyx_L1_error)
17361 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 4428, __pyx_L1_error)
17362 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 4429, __pyx_L1_error)
17363 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4430, __pyx_L1_error)
17364 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 4431, __pyx_L1_error)
17365 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 4432, __pyx_L1_error)
17366 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4433, __pyx_L1_error)
17367 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4434, __pyx_L1_error)
17368 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4435, __pyx_L1_error)
17369 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4436, __pyx_L1_error)
17370 __pyx_r = __pyx_pf_22ctransportCoefficients_86ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_phi_s, __pyx_v_n_s, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_mom_v_source, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
17377 __Pyx_RefNannyFinishContext();
17381 static PyObject *__pyx_pf_22ctransportCoefficients_86ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_boundaryPenaltyCoef,
double __pyx_v_volumePenaltyCoef,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1,
double __pyx_v_rho_s,
double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
17382 PyObject *__pyx_r = NULL;
17383 __Pyx_RefNannyDeclarations
17384 PyObject *__pyx_t_1 = NULL;
17386 int __pyx_lineno = 0;
17387 const char *__pyx_filename = NULL;
17388 int __pyx_clineno = 0;
17389 __Pyx_RefNannySetupContext(
"ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", 0);
17398 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4437, __pyx_L1_error)
17399 __Pyx_GOTREF(__pyx_t_1);
17400 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4437, __pyx_L1_error)
17401 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17410 ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_phi_s->data), ((
double *)__pyx_v_n_s->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
17421 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17424 __Pyx_XDECREF(__pyx_t_1);
17425 __Pyx_AddTraceback(
"ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
17428 __Pyx_XGIVEREF(__pyx_r);
17429 __Pyx_RefNannyFinishContext();
17442 static PyObject *__pyx_pw_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17443 static PyMethodDef __pyx_mdef_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate = {
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
17444 static PyObject *__pyx_pw_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17445 double __pyx_v_eps_rho;
17446 double __pyx_v_eps_mu;
17447 double __pyx_v_sigma;
17448 double __pyx_v_rho_0;
17449 double __pyx_v_nu_0;
17450 double __pyx_v_rho_1;
17451 double __pyx_v_nu_1;
17452 PyArrayObject *__pyx_v_g = 0;
17453 PyArrayObject *__pyx_v_phi = 0;
17454 PyArrayObject *__pyx_v_n = 0;
17455 PyArrayObject *__pyx_v_kappa = 0;
17456 PyArrayObject *__pyx_v_p = 0;
17457 PyArrayObject *__pyx_v_grad_p = 0;
17458 PyArrayObject *__pyx_v_u = 0;
17459 PyArrayObject *__pyx_v_v = 0;
17460 PyArrayObject *__pyx_v_w = 0;
17461 PyArrayObject *__pyx_v_mom_u_acc = 0;
17462 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
17463 PyArrayObject *__pyx_v_mom_v_acc = 0;
17464 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
17465 PyArrayObject *__pyx_v_mom_w_acc = 0;
17466 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
17467 PyArrayObject *__pyx_v_mass_adv = 0;
17468 PyArrayObject *__pyx_v_dmass_adv_u = 0;
17469 PyArrayObject *__pyx_v_dmass_adv_v = 0;
17470 PyArrayObject *__pyx_v_dmass_adv_w = 0;
17471 PyArrayObject *__pyx_v_mom_u_adv = 0;
17472 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
17473 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
17474 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
17475 PyArrayObject *__pyx_v_mom_v_adv = 0;
17476 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
17477 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
17478 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
17479 PyArrayObject *__pyx_v_mom_w_adv = 0;
17480 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
17481 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
17482 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
17483 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
17484 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
17485 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
17486 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
17487 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
17488 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
17489 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
17490 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
17491 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
17492 PyArrayObject *__pyx_v_mom_u_source = 0;
17493 PyArrayObject *__pyx_v_mom_v_source = 0;
17494 PyArrayObject *__pyx_v_mom_w_source = 0;
17495 PyArrayObject *__pyx_v_mom_u_ham = 0;
17496 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
17497 PyArrayObject *__pyx_v_mom_v_ham = 0;
17498 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
17499 PyArrayObject *__pyx_v_mom_w_ham = 0;
17500 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
17501 int __pyx_lineno = 0;
17502 const char *__pyx_filename = NULL;
17503 int __pyx_clineno = 0;
17504 PyObject *__pyx_r = 0;
17505 __Pyx_RefNannyDeclarations
17506 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate (wrapper)", 0);
17508 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
17509 PyObject* values[56] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
17510 if (unlikely(__pyx_kwds)) {
17511 Py_ssize_t kw_args;
17512 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17513 switch (pos_args) {
17514 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
17515 CYTHON_FALLTHROUGH;
17516 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
17517 CYTHON_FALLTHROUGH;
17518 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
17519 CYTHON_FALLTHROUGH;
17520 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
17521 CYTHON_FALLTHROUGH;
17522 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
17523 CYTHON_FALLTHROUGH;
17524 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
17525 CYTHON_FALLTHROUGH;
17526 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
17527 CYTHON_FALLTHROUGH;
17528 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
17529 CYTHON_FALLTHROUGH;
17530 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
17531 CYTHON_FALLTHROUGH;
17532 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
17533 CYTHON_FALLTHROUGH;
17534 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
17535 CYTHON_FALLTHROUGH;
17536 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
17537 CYTHON_FALLTHROUGH;
17538 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
17539 CYTHON_FALLTHROUGH;
17540 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
17541 CYTHON_FALLTHROUGH;
17542 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
17543 CYTHON_FALLTHROUGH;
17544 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
17545 CYTHON_FALLTHROUGH;
17546 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
17547 CYTHON_FALLTHROUGH;
17548 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
17549 CYTHON_FALLTHROUGH;
17550 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
17551 CYTHON_FALLTHROUGH;
17552 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
17553 CYTHON_FALLTHROUGH;
17554 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
17555 CYTHON_FALLTHROUGH;
17556 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
17557 CYTHON_FALLTHROUGH;
17558 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
17559 CYTHON_FALLTHROUGH;
17560 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
17561 CYTHON_FALLTHROUGH;
17562 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
17563 CYTHON_FALLTHROUGH;
17564 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
17565 CYTHON_FALLTHROUGH;
17566 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
17567 CYTHON_FALLTHROUGH;
17568 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
17569 CYTHON_FALLTHROUGH;
17570 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17571 CYTHON_FALLTHROUGH;
17572 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17573 CYTHON_FALLTHROUGH;
17574 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17575 CYTHON_FALLTHROUGH;
17576 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17577 CYTHON_FALLTHROUGH;
17578 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17579 CYTHON_FALLTHROUGH;
17580 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17581 CYTHON_FALLTHROUGH;
17582 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17583 CYTHON_FALLTHROUGH;
17584 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17585 CYTHON_FALLTHROUGH;
17586 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17587 CYTHON_FALLTHROUGH;
17588 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17589 CYTHON_FALLTHROUGH;
17590 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17591 CYTHON_FALLTHROUGH;
17592 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17593 CYTHON_FALLTHROUGH;
17594 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17595 CYTHON_FALLTHROUGH;
17596 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17597 CYTHON_FALLTHROUGH;
17598 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17599 CYTHON_FALLTHROUGH;
17600 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17601 CYTHON_FALLTHROUGH;
17602 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17603 CYTHON_FALLTHROUGH;
17604 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17605 CYTHON_FALLTHROUGH;
17606 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17607 CYTHON_FALLTHROUGH;
17608 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17609 CYTHON_FALLTHROUGH;
17610 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17611 CYTHON_FALLTHROUGH;
17612 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17613 CYTHON_FALLTHROUGH;
17614 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17615 CYTHON_FALLTHROUGH;
17616 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17617 CYTHON_FALLTHROUGH;
17618 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17619 CYTHON_FALLTHROUGH;
17620 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17621 CYTHON_FALLTHROUGH;
17622 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17623 CYTHON_FALLTHROUGH;
17624 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17625 CYTHON_FALLTHROUGH;
17627 default:
goto __pyx_L5_argtuple_error;
17629 kw_args = PyDict_Size(__pyx_kwds);
17630 switch (pos_args) {
17632 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
17633 else goto __pyx_L5_argtuple_error;
17634 CYTHON_FALLTHROUGH;
17636 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
17638 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 1); __PYX_ERR(0, 4486, __pyx_L3_error)
17640 CYTHON_FALLTHROUGH;
17642 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
17644 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 2); __PYX_ERR(0, 4486, __pyx_L3_error)
17646 CYTHON_FALLTHROUGH;
17648 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
17650 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 3); __PYX_ERR(0, 4486, __pyx_L3_error)
17652 CYTHON_FALLTHROUGH;
17654 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
17656 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 4); __PYX_ERR(0, 4486, __pyx_L3_error)
17658 CYTHON_FALLTHROUGH;
17660 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
17662 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 5); __PYX_ERR(0, 4486, __pyx_L3_error)
17664 CYTHON_FALLTHROUGH;
17666 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
17668 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 6); __PYX_ERR(0, 4486, __pyx_L3_error)
17670 CYTHON_FALLTHROUGH;
17672 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
17674 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 7); __PYX_ERR(0, 4486, __pyx_L3_error)
17676 CYTHON_FALLTHROUGH;
17678 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
17680 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 8); __PYX_ERR(0, 4486, __pyx_L3_error)
17682 CYTHON_FALLTHROUGH;
17684 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17686 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 9); __PYX_ERR(0, 4486, __pyx_L3_error)
17688 CYTHON_FALLTHROUGH;
17690 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
17692 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 10); __PYX_ERR(0, 4486, __pyx_L3_error)
17694 CYTHON_FALLTHROUGH;
17696 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
17698 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 11); __PYX_ERR(0, 4486, __pyx_L3_error)
17700 CYTHON_FALLTHROUGH;
17702 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
17704 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 12); __PYX_ERR(0, 4486, __pyx_L3_error)
17706 CYTHON_FALLTHROUGH;
17708 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
17710 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 13); __PYX_ERR(0, 4486, __pyx_L3_error)
17712 CYTHON_FALLTHROUGH;
17714 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
17716 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 14); __PYX_ERR(0, 4486, __pyx_L3_error)
17718 CYTHON_FALLTHROUGH;
17720 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
17722 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 15); __PYX_ERR(0, 4486, __pyx_L3_error)
17724 CYTHON_FALLTHROUGH;
17726 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
17728 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 16); __PYX_ERR(0, 4486, __pyx_L3_error)
17730 CYTHON_FALLTHROUGH;
17732 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
17734 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 17); __PYX_ERR(0, 4486, __pyx_L3_error)
17736 CYTHON_FALLTHROUGH;
17738 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
17740 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 18); __PYX_ERR(0, 4486, __pyx_L3_error)
17742 CYTHON_FALLTHROUGH;
17744 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
17746 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 19); __PYX_ERR(0, 4486, __pyx_L3_error)
17748 CYTHON_FALLTHROUGH;
17750 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
17752 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 20); __PYX_ERR(0, 4486, __pyx_L3_error)
17754 CYTHON_FALLTHROUGH;
17756 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
17758 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 21); __PYX_ERR(0, 4486, __pyx_L3_error)
17760 CYTHON_FALLTHROUGH;
17762 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
17764 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 22); __PYX_ERR(0, 4486, __pyx_L3_error)
17766 CYTHON_FALLTHROUGH;
17768 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
17770 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 23); __PYX_ERR(0, 4486, __pyx_L3_error)
17772 CYTHON_FALLTHROUGH;
17774 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
17776 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 24); __PYX_ERR(0, 4486, __pyx_L3_error)
17778 CYTHON_FALLTHROUGH;
17780 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
17782 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 25); __PYX_ERR(0, 4486, __pyx_L3_error)
17784 CYTHON_FALLTHROUGH;
17786 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
17788 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 26); __PYX_ERR(0, 4486, __pyx_L3_error)
17790 CYTHON_FALLTHROUGH;
17792 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
17794 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 27); __PYX_ERR(0, 4486, __pyx_L3_error)
17796 CYTHON_FALLTHROUGH;
17798 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
17800 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 28); __PYX_ERR(0, 4486, __pyx_L3_error)
17802 CYTHON_FALLTHROUGH;
17804 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
17806 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 29); __PYX_ERR(0, 4486, __pyx_L3_error)
17808 CYTHON_FALLTHROUGH;
17810 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
17812 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 30); __PYX_ERR(0, 4486, __pyx_L3_error)
17814 CYTHON_FALLTHROUGH;
17816 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
17818 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 31); __PYX_ERR(0, 4486, __pyx_L3_error)
17820 CYTHON_FALLTHROUGH;
17822 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
17824 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 32); __PYX_ERR(0, 4486, __pyx_L3_error)
17826 CYTHON_FALLTHROUGH;
17828 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
17830 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 33); __PYX_ERR(0, 4486, __pyx_L3_error)
17832 CYTHON_FALLTHROUGH;
17834 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
17836 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 34); __PYX_ERR(0, 4486, __pyx_L3_error)
17838 CYTHON_FALLTHROUGH;
17840 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
17842 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 35); __PYX_ERR(0, 4486, __pyx_L3_error)
17844 CYTHON_FALLTHROUGH;
17846 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
17848 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 36); __PYX_ERR(0, 4486, __pyx_L3_error)
17850 CYTHON_FALLTHROUGH;
17852 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
17854 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 37); __PYX_ERR(0, 4486, __pyx_L3_error)
17856 CYTHON_FALLTHROUGH;
17858 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
17860 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 38); __PYX_ERR(0, 4486, __pyx_L3_error)
17862 CYTHON_FALLTHROUGH;
17864 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
17866 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 39); __PYX_ERR(0, 4486, __pyx_L3_error)
17868 CYTHON_FALLTHROUGH;
17870 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
17872 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 40); __PYX_ERR(0, 4486, __pyx_L3_error)
17874 CYTHON_FALLTHROUGH;
17876 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
17878 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 41); __PYX_ERR(0, 4486, __pyx_L3_error)
17880 CYTHON_FALLTHROUGH;
17882 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
17884 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 42); __PYX_ERR(0, 4486, __pyx_L3_error)
17886 CYTHON_FALLTHROUGH;
17888 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
17890 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 43); __PYX_ERR(0, 4486, __pyx_L3_error)
17892 CYTHON_FALLTHROUGH;
17894 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
17896 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 44); __PYX_ERR(0, 4486, __pyx_L3_error)
17898 CYTHON_FALLTHROUGH;
17900 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
17902 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 45); __PYX_ERR(0, 4486, __pyx_L3_error)
17904 CYTHON_FALLTHROUGH;
17906 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
17908 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 46); __PYX_ERR(0, 4486, __pyx_L3_error)
17910 CYTHON_FALLTHROUGH;
17912 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
17914 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 47); __PYX_ERR(0, 4486, __pyx_L3_error)
17916 CYTHON_FALLTHROUGH;
17918 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
17920 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 48); __PYX_ERR(0, 4486, __pyx_L3_error)
17922 CYTHON_FALLTHROUGH;
17924 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
17926 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 49); __PYX_ERR(0, 4486, __pyx_L3_error)
17928 CYTHON_FALLTHROUGH;
17930 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
17932 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 50); __PYX_ERR(0, 4486, __pyx_L3_error)
17934 CYTHON_FALLTHROUGH;
17936 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
17938 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 51); __PYX_ERR(0, 4486, __pyx_L3_error)
17940 CYTHON_FALLTHROUGH;
17942 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
17944 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 52); __PYX_ERR(0, 4486, __pyx_L3_error)
17946 CYTHON_FALLTHROUGH;
17948 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
17950 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 53); __PYX_ERR(0, 4486, __pyx_L3_error)
17952 CYTHON_FALLTHROUGH;
17954 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
17956 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 54); __PYX_ERR(0, 4486, __pyx_L3_error)
17958 CYTHON_FALLTHROUGH;
17960 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
17962 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, 55); __PYX_ERR(0, 4486, __pyx_L3_error)
17965 if (unlikely(kw_args > 0)) {
17966 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 4486, __pyx_L3_error)
17968 }
else if (PyTuple_GET_SIZE(__pyx_args) != 56) {
17969 goto __pyx_L5_argtuple_error;
17971 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17972 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17973 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17974 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17975 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17976 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17977 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17978 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17979 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17980 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17981 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17982 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17983 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17984 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17985 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17986 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17987 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17988 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17989 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17990 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17991 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17992 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17993 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17994 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17995 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17996 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17997 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17998 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17999 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18000 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18001 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18002 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18003 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18004 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18005 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18006 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18007 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18008 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18009 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18010 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18011 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18012 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18013 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18014 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18015 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18016 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18017 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18018 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18019 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18020 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18021 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18022 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18023 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18024 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
18025 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
18026 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
18028 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4486, __pyx_L3_error)
18029 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4487, __pyx_L3_error)
18030 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4488, __pyx_L3_error)
18031 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4489, __pyx_L3_error)
18032 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4490, __pyx_L3_error)
18033 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4491, __pyx_L3_error)
18034 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4492, __pyx_L3_error)
18035 __pyx_v_g = ((PyArrayObject *)values[7]);
18036 __pyx_v_phi = ((PyArrayObject *)values[8]);
18037 __pyx_v_n = ((PyArrayObject *)values[9]);
18038 __pyx_v_kappa = ((PyArrayObject *)values[10]);
18039 __pyx_v_p = ((PyArrayObject *)values[11]);
18040 __pyx_v_grad_p = ((PyArrayObject *)values[12]);
18041 __pyx_v_u = ((PyArrayObject *)values[13]);
18042 __pyx_v_v = ((PyArrayObject *)values[14]);
18043 __pyx_v_w = ((PyArrayObject *)values[15]);
18044 __pyx_v_mom_u_acc = ((PyArrayObject *)values[16]);
18045 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[17]);
18046 __pyx_v_mom_v_acc = ((PyArrayObject *)values[18]);
18047 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[19]);
18048 __pyx_v_mom_w_acc = ((PyArrayObject *)values[20]);
18049 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[21]);
18050 __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
18051 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
18052 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
18053 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[25]);
18054 __pyx_v_mom_u_adv = ((PyArrayObject *)values[26]);
18055 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[27]);
18056 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[28]);
18057 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[29]);
18058 __pyx_v_mom_v_adv = ((PyArrayObject *)values[30]);
18059 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[31]);
18060 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[32]);
18061 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[33]);
18062 __pyx_v_mom_w_adv = ((PyArrayObject *)values[34]);
18063 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[35]);
18064 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[36]);
18065 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[37]);
18066 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[38]);
18067 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[39]);
18068 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[40]);
18069 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[41]);
18070 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[42]);
18071 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[43]);
18072 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[44]);
18073 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[45]);
18074 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[46]);
18075 __pyx_v_mom_u_source = ((PyArrayObject *)values[47]);
18076 __pyx_v_mom_v_source = ((PyArrayObject *)values[48]);
18077 __pyx_v_mom_w_source = ((PyArrayObject *)values[49]);
18078 __pyx_v_mom_u_ham = ((PyArrayObject *)values[50]);
18079 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[51]);
18080 __pyx_v_mom_v_ham = ((PyArrayObject *)values[52]);
18081 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[53]);
18082 __pyx_v_mom_w_ham = ((PyArrayObject *)values[54]);
18083 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[55]);
18085 goto __pyx_L4_argument_unpacking_done;
18086 __pyx_L5_argtuple_error:;
18087 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 56, 56, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4486, __pyx_L3_error)
18089 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
18090 __Pyx_RefNannyFinishContext();
18092 __pyx_L4_argument_unpacking_done:;
18093 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4493, __pyx_L1_error)
18094 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4494, __pyx_L1_error)
18095 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4495, __pyx_L1_error)
18096 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 4496, __pyx_L1_error)
18097 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4497, __pyx_L1_error)
18098 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4498, __pyx_L1_error)
18099 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4499, __pyx_L1_error)
18100 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4500, __pyx_L1_error)
18101 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4501, __pyx_L1_error)
18102 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4502, __pyx_L1_error)
18103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4503, __pyx_L1_error)
18104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4504, __pyx_L1_error)
18105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4505, __pyx_L1_error)
18106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 4506, __pyx_L1_error)
18107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 4507, __pyx_L1_error)
18108 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4508, __pyx_L1_error)
18109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4509, __pyx_L1_error)
18110 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4510, __pyx_L1_error)
18111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 4511, __pyx_L1_error)
18112 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4512, __pyx_L1_error)
18113 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4513, __pyx_L1_error)
18114 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4514, __pyx_L1_error)
18115 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 4515, __pyx_L1_error)
18116 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4516, __pyx_L1_error)
18117 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4517, __pyx_L1_error)
18118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4518, __pyx_L1_error)
18119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 4519, __pyx_L1_error)
18120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 4520, __pyx_L1_error)
18121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 4521, __pyx_L1_error)
18122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 4522, __pyx_L1_error)
18123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 4523, __pyx_L1_error)
18124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4524, __pyx_L1_error)
18125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4525, __pyx_L1_error)
18126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 4526, __pyx_L1_error)
18127 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 4527, __pyx_L1_error)
18128 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 4528, __pyx_L1_error)
18129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 4529, __pyx_L1_error)
18130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 4530, __pyx_L1_error)
18131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 4531, __pyx_L1_error)
18132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 4532, __pyx_L1_error)
18133 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4533, __pyx_L1_error)
18134 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4534, __pyx_L1_error)
18135 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 4535, __pyx_L1_error)
18136 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4536, __pyx_L1_error)
18137 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4537, __pyx_L1_error)
18138 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4538, __pyx_L1_error)
18139 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4539, __pyx_L1_error)
18140 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 4540, __pyx_L1_error)
18141 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4541, __pyx_L1_error)
18142 __pyx_r = __pyx_pf_22ctransportCoefficients_88TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
18149 __Pyx_RefNannyFinishContext();
18153 static PyObject *__pyx_pf_22ctransportCoefficients_88TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
18154 PyObject *__pyx_r = NULL;
18155 __Pyx_RefNannyDeclarations
18156 PyObject *__pyx_t_1 = NULL;
18158 int __pyx_lineno = 0;
18159 const char *__pyx_filename = NULL;
18160 int __pyx_clineno = 0;
18161 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 0);
18170 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4542, __pyx_L1_error)
18171 __Pyx_GOTREF(__pyx_t_1);
18172 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4542, __pyx_L1_error)
18173 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18182 TwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
18193 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18196 __Pyx_XDECREF(__pyx_t_1);
18197 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
18200 __Pyx_XGIVEREF(__pyx_r);
18201 __Pyx_RefNannyFinishContext();
18214 static PyObject *__pyx_pw_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18215 static PyMethodDef __pyx_mdef_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd = {
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
18216 static PyObject *__pyx_pw_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18217 double __pyx_v_eps_rho;
18218 double __pyx_v_eps_mu;
18219 double __pyx_v_sigma;
18220 double __pyx_v_rho_0;
18221 double __pyx_v_nu_0;
18222 double __pyx_v_rho_1;
18223 double __pyx_v_nu_1;
18224 PyArrayObject *__pyx_v_g = 0;
18225 PyArrayObject *__pyx_v_phi = 0;
18226 PyArrayObject *__pyx_v_n = 0;
18227 PyArrayObject *__pyx_v_kappa = 0;
18228 PyArrayObject *__pyx_v_p = 0;
18229 PyArrayObject *__pyx_v_grad_p = 0;
18230 PyArrayObject *__pyx_v_u = 0;
18231 PyArrayObject *__pyx_v_v = 0;
18232 PyArrayObject *__pyx_v_w = 0;
18233 PyArrayObject *__pyx_v_mom_u_acc = 0;
18234 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
18235 PyArrayObject *__pyx_v_mom_v_acc = 0;
18236 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
18237 PyArrayObject *__pyx_v_mom_w_acc = 0;
18238 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
18239 PyArrayObject *__pyx_v_mass_adv = 0;
18240 PyArrayObject *__pyx_v_dmass_adv_u = 0;
18241 PyArrayObject *__pyx_v_dmass_adv_v = 0;
18242 PyArrayObject *__pyx_v_dmass_adv_w = 0;
18243 PyArrayObject *__pyx_v_mom_u_adv = 0;
18244 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
18245 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
18246 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
18247 PyArrayObject *__pyx_v_mom_v_adv = 0;
18248 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
18249 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
18250 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
18251 PyArrayObject *__pyx_v_mom_w_adv = 0;
18252 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
18253 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
18254 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
18255 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
18256 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
18257 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
18258 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
18259 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
18260 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
18261 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
18262 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
18263 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
18264 PyArrayObject *__pyx_v_mom_u_source = 0;
18265 PyArrayObject *__pyx_v_mom_v_source = 0;
18266 PyArrayObject *__pyx_v_mom_w_source = 0;
18267 PyArrayObject *__pyx_v_mom_u_ham = 0;
18268 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
18269 PyArrayObject *__pyx_v_mom_v_ham = 0;
18270 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
18271 PyArrayObject *__pyx_v_mom_w_ham = 0;
18272 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
18273 int __pyx_lineno = 0;
18274 const char *__pyx_filename = NULL;
18275 int __pyx_clineno = 0;
18276 PyObject *__pyx_r = 0;
18277 __Pyx_RefNannyDeclarations
18278 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd (wrapper)", 0);
18280 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
18281 PyObject* values[56] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18282 if (unlikely(__pyx_kwds)) {
18283 Py_ssize_t kw_args;
18284 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18285 switch (pos_args) {
18286 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
18287 CYTHON_FALLTHROUGH;
18288 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
18289 CYTHON_FALLTHROUGH;
18290 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
18291 CYTHON_FALLTHROUGH;
18292 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18293 CYTHON_FALLTHROUGH;
18294 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18295 CYTHON_FALLTHROUGH;
18296 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18297 CYTHON_FALLTHROUGH;
18298 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18299 CYTHON_FALLTHROUGH;
18300 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18301 CYTHON_FALLTHROUGH;
18302 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18303 CYTHON_FALLTHROUGH;
18304 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18305 CYTHON_FALLTHROUGH;
18306 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18307 CYTHON_FALLTHROUGH;
18308 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18309 CYTHON_FALLTHROUGH;
18310 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18311 CYTHON_FALLTHROUGH;
18312 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18313 CYTHON_FALLTHROUGH;
18314 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18315 CYTHON_FALLTHROUGH;
18316 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18317 CYTHON_FALLTHROUGH;
18318 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18319 CYTHON_FALLTHROUGH;
18320 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18321 CYTHON_FALLTHROUGH;
18322 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18323 CYTHON_FALLTHROUGH;
18324 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18325 CYTHON_FALLTHROUGH;
18326 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18327 CYTHON_FALLTHROUGH;
18328 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18329 CYTHON_FALLTHROUGH;
18330 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18331 CYTHON_FALLTHROUGH;
18332 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18333 CYTHON_FALLTHROUGH;
18334 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18335 CYTHON_FALLTHROUGH;
18336 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18337 CYTHON_FALLTHROUGH;
18338 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18339 CYTHON_FALLTHROUGH;
18340 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18341 CYTHON_FALLTHROUGH;
18342 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
18343 CYTHON_FALLTHROUGH;
18344 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
18345 CYTHON_FALLTHROUGH;
18346 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
18347 CYTHON_FALLTHROUGH;
18348 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
18349 CYTHON_FALLTHROUGH;
18350 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
18351 CYTHON_FALLTHROUGH;
18352 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
18353 CYTHON_FALLTHROUGH;
18354 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
18355 CYTHON_FALLTHROUGH;
18356 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
18357 CYTHON_FALLTHROUGH;
18358 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
18359 CYTHON_FALLTHROUGH;
18360 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18361 CYTHON_FALLTHROUGH;
18362 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18363 CYTHON_FALLTHROUGH;
18364 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18365 CYTHON_FALLTHROUGH;
18366 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18367 CYTHON_FALLTHROUGH;
18368 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18369 CYTHON_FALLTHROUGH;
18370 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18371 CYTHON_FALLTHROUGH;
18372 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18373 CYTHON_FALLTHROUGH;
18374 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18375 CYTHON_FALLTHROUGH;
18376 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18377 CYTHON_FALLTHROUGH;
18378 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18379 CYTHON_FALLTHROUGH;
18380 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18381 CYTHON_FALLTHROUGH;
18382 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18383 CYTHON_FALLTHROUGH;
18384 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18385 CYTHON_FALLTHROUGH;
18386 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18387 CYTHON_FALLTHROUGH;
18388 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18389 CYTHON_FALLTHROUGH;
18390 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18391 CYTHON_FALLTHROUGH;
18392 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18393 CYTHON_FALLTHROUGH;
18394 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18395 CYTHON_FALLTHROUGH;
18396 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18397 CYTHON_FALLTHROUGH;
18399 default:
goto __pyx_L5_argtuple_error;
18401 kw_args = PyDict_Size(__pyx_kwds);
18402 switch (pos_args) {
18404 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
18405 else goto __pyx_L5_argtuple_error;
18406 CYTHON_FALLTHROUGH;
18408 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
18410 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 1); __PYX_ERR(0, 4599, __pyx_L3_error)
18412 CYTHON_FALLTHROUGH;
18414 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
18416 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 2); __PYX_ERR(0, 4599, __pyx_L3_error)
18418 CYTHON_FALLTHROUGH;
18420 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
18422 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 3); __PYX_ERR(0, 4599, __pyx_L3_error)
18424 CYTHON_FALLTHROUGH;
18426 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
18428 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 4); __PYX_ERR(0, 4599, __pyx_L3_error)
18430 CYTHON_FALLTHROUGH;
18432 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
18434 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 5); __PYX_ERR(0, 4599, __pyx_L3_error)
18436 CYTHON_FALLTHROUGH;
18438 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
18440 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 6); __PYX_ERR(0, 4599, __pyx_L3_error)
18442 CYTHON_FALLTHROUGH;
18444 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
18446 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 7); __PYX_ERR(0, 4599, __pyx_L3_error)
18448 CYTHON_FALLTHROUGH;
18450 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
18452 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 8); __PYX_ERR(0, 4599, __pyx_L3_error)
18454 CYTHON_FALLTHROUGH;
18456 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
18458 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 9); __PYX_ERR(0, 4599, __pyx_L3_error)
18460 CYTHON_FALLTHROUGH;
18462 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
18464 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 10); __PYX_ERR(0, 4599, __pyx_L3_error)
18466 CYTHON_FALLTHROUGH;
18468 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
18470 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 11); __PYX_ERR(0, 4599, __pyx_L3_error)
18472 CYTHON_FALLTHROUGH;
18474 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
18476 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 12); __PYX_ERR(0, 4599, __pyx_L3_error)
18478 CYTHON_FALLTHROUGH;
18480 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
18482 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 13); __PYX_ERR(0, 4599, __pyx_L3_error)
18484 CYTHON_FALLTHROUGH;
18486 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
18488 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 14); __PYX_ERR(0, 4599, __pyx_L3_error)
18490 CYTHON_FALLTHROUGH;
18492 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
18494 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 15); __PYX_ERR(0, 4599, __pyx_L3_error)
18496 CYTHON_FALLTHROUGH;
18498 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
18500 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 16); __PYX_ERR(0, 4599, __pyx_L3_error)
18502 CYTHON_FALLTHROUGH;
18504 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
18506 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 17); __PYX_ERR(0, 4599, __pyx_L3_error)
18508 CYTHON_FALLTHROUGH;
18510 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
18512 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 18); __PYX_ERR(0, 4599, __pyx_L3_error)
18514 CYTHON_FALLTHROUGH;
18516 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
18518 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 19); __PYX_ERR(0, 4599, __pyx_L3_error)
18520 CYTHON_FALLTHROUGH;
18522 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
18524 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 20); __PYX_ERR(0, 4599, __pyx_L3_error)
18526 CYTHON_FALLTHROUGH;
18528 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
18530 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 21); __PYX_ERR(0, 4599, __pyx_L3_error)
18532 CYTHON_FALLTHROUGH;
18534 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
18536 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 22); __PYX_ERR(0, 4599, __pyx_L3_error)
18538 CYTHON_FALLTHROUGH;
18540 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
18542 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 23); __PYX_ERR(0, 4599, __pyx_L3_error)
18544 CYTHON_FALLTHROUGH;
18546 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
18548 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 24); __PYX_ERR(0, 4599, __pyx_L3_error)
18550 CYTHON_FALLTHROUGH;
18552 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
18554 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 25); __PYX_ERR(0, 4599, __pyx_L3_error)
18556 CYTHON_FALLTHROUGH;
18558 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
18560 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 26); __PYX_ERR(0, 4599, __pyx_L3_error)
18562 CYTHON_FALLTHROUGH;
18564 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
18566 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 27); __PYX_ERR(0, 4599, __pyx_L3_error)
18568 CYTHON_FALLTHROUGH;
18570 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
18572 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 28); __PYX_ERR(0, 4599, __pyx_L3_error)
18574 CYTHON_FALLTHROUGH;
18576 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
18578 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 29); __PYX_ERR(0, 4599, __pyx_L3_error)
18580 CYTHON_FALLTHROUGH;
18582 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
18584 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 30); __PYX_ERR(0, 4599, __pyx_L3_error)
18586 CYTHON_FALLTHROUGH;
18588 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
18590 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 31); __PYX_ERR(0, 4599, __pyx_L3_error)
18592 CYTHON_FALLTHROUGH;
18594 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
18596 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 32); __PYX_ERR(0, 4599, __pyx_L3_error)
18598 CYTHON_FALLTHROUGH;
18600 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
18602 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 33); __PYX_ERR(0, 4599, __pyx_L3_error)
18604 CYTHON_FALLTHROUGH;
18606 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
18608 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 34); __PYX_ERR(0, 4599, __pyx_L3_error)
18610 CYTHON_FALLTHROUGH;
18612 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
18614 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 35); __PYX_ERR(0, 4599, __pyx_L3_error)
18616 CYTHON_FALLTHROUGH;
18618 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
18620 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 36); __PYX_ERR(0, 4599, __pyx_L3_error)
18622 CYTHON_FALLTHROUGH;
18624 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
18626 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 37); __PYX_ERR(0, 4599, __pyx_L3_error)
18628 CYTHON_FALLTHROUGH;
18630 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
18632 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 38); __PYX_ERR(0, 4599, __pyx_L3_error)
18634 CYTHON_FALLTHROUGH;
18636 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
18638 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 39); __PYX_ERR(0, 4599, __pyx_L3_error)
18640 CYTHON_FALLTHROUGH;
18642 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
18644 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 40); __PYX_ERR(0, 4599, __pyx_L3_error)
18646 CYTHON_FALLTHROUGH;
18648 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
18650 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 41); __PYX_ERR(0, 4599, __pyx_L3_error)
18652 CYTHON_FALLTHROUGH;
18654 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
18656 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 42); __PYX_ERR(0, 4599, __pyx_L3_error)
18658 CYTHON_FALLTHROUGH;
18660 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
18662 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 43); __PYX_ERR(0, 4599, __pyx_L3_error)
18664 CYTHON_FALLTHROUGH;
18666 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
18668 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 44); __PYX_ERR(0, 4599, __pyx_L3_error)
18670 CYTHON_FALLTHROUGH;
18672 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
18674 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 45); __PYX_ERR(0, 4599, __pyx_L3_error)
18676 CYTHON_FALLTHROUGH;
18678 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
18680 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 46); __PYX_ERR(0, 4599, __pyx_L3_error)
18682 CYTHON_FALLTHROUGH;
18684 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
18686 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 47); __PYX_ERR(0, 4599, __pyx_L3_error)
18688 CYTHON_FALLTHROUGH;
18690 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
18692 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 48); __PYX_ERR(0, 4599, __pyx_L3_error)
18694 CYTHON_FALLTHROUGH;
18696 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
18698 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 49); __PYX_ERR(0, 4599, __pyx_L3_error)
18700 CYTHON_FALLTHROUGH;
18702 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
18704 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 50); __PYX_ERR(0, 4599, __pyx_L3_error)
18706 CYTHON_FALLTHROUGH;
18708 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
18710 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 51); __PYX_ERR(0, 4599, __pyx_L3_error)
18712 CYTHON_FALLTHROUGH;
18714 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
18716 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 52); __PYX_ERR(0, 4599, __pyx_L3_error)
18718 CYTHON_FALLTHROUGH;
18720 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
18722 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 53); __PYX_ERR(0, 4599, __pyx_L3_error)
18724 CYTHON_FALLTHROUGH;
18726 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
18728 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 54); __PYX_ERR(0, 4599, __pyx_L3_error)
18730 CYTHON_FALLTHROUGH;
18732 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
18734 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, 55); __PYX_ERR(0, 4599, __pyx_L3_error)
18737 if (unlikely(kw_args > 0)) {
18738 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 4599, __pyx_L3_error)
18740 }
else if (PyTuple_GET_SIZE(__pyx_args) != 56) {
18741 goto __pyx_L5_argtuple_error;
18743 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18744 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18745 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18746 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18747 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18748 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18749 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18750 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18751 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18752 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18753 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18754 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18755 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18756 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18757 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18758 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18759 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18760 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18761 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18762 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
18763 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
18764 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
18765 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
18766 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
18767 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
18768 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
18769 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
18770 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
18771 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18772 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18773 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18774 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18775 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18776 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18777 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18778 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18779 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18780 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18781 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18782 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18783 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18784 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18785 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18786 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18787 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18788 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18789 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18790 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18791 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18792 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18793 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18794 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18795 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18796 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
18797 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
18798 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
18800 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4599, __pyx_L3_error)
18801 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4600, __pyx_L3_error)
18802 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4601, __pyx_L3_error)
18803 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4602, __pyx_L3_error)
18804 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4603, __pyx_L3_error)
18805 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4604, __pyx_L3_error)
18806 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4605, __pyx_L3_error)
18807 __pyx_v_g = ((PyArrayObject *)values[7]);
18808 __pyx_v_phi = ((PyArrayObject *)values[8]);
18809 __pyx_v_n = ((PyArrayObject *)values[9]);
18810 __pyx_v_kappa = ((PyArrayObject *)values[10]);
18811 __pyx_v_p = ((PyArrayObject *)values[11]);
18812 __pyx_v_grad_p = ((PyArrayObject *)values[12]);
18813 __pyx_v_u = ((PyArrayObject *)values[13]);
18814 __pyx_v_v = ((PyArrayObject *)values[14]);
18815 __pyx_v_w = ((PyArrayObject *)values[15]);
18816 __pyx_v_mom_u_acc = ((PyArrayObject *)values[16]);
18817 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[17]);
18818 __pyx_v_mom_v_acc = ((PyArrayObject *)values[18]);
18819 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[19]);
18820 __pyx_v_mom_w_acc = ((PyArrayObject *)values[20]);
18821 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[21]);
18822 __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
18823 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
18824 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
18825 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[25]);
18826 __pyx_v_mom_u_adv = ((PyArrayObject *)values[26]);
18827 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[27]);
18828 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[28]);
18829 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[29]);
18830 __pyx_v_mom_v_adv = ((PyArrayObject *)values[30]);
18831 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[31]);
18832 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[32]);
18833 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[33]);
18834 __pyx_v_mom_w_adv = ((PyArrayObject *)values[34]);
18835 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[35]);
18836 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[36]);
18837 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[37]);
18838 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[38]);
18839 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[39]);
18840 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[40]);
18841 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[41]);
18842 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[42]);
18843 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[43]);
18844 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[44]);
18845 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[45]);
18846 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[46]);
18847 __pyx_v_mom_u_source = ((PyArrayObject *)values[47]);
18848 __pyx_v_mom_v_source = ((PyArrayObject *)values[48]);
18849 __pyx_v_mom_w_source = ((PyArrayObject *)values[49]);
18850 __pyx_v_mom_u_ham = ((PyArrayObject *)values[50]);
18851 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[51]);
18852 __pyx_v_mom_v_ham = ((PyArrayObject *)values[52]);
18853 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[53]);
18854 __pyx_v_mom_w_ham = ((PyArrayObject *)values[54]);
18855 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[55]);
18857 goto __pyx_L4_argument_unpacking_done;
18858 __pyx_L5_argtuple_error:;
18859 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 56, 56, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4599, __pyx_L3_error)
18861 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
18862 __Pyx_RefNannyFinishContext();
18864 __pyx_L4_argument_unpacking_done:;
18865 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4606, __pyx_L1_error)
18866 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4607, __pyx_L1_error)
18867 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4608, __pyx_L1_error)
18868 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 4609, __pyx_L1_error)
18869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4610, __pyx_L1_error)
18870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4611, __pyx_L1_error)
18871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4612, __pyx_L1_error)
18872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4613, __pyx_L1_error)
18873 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4614, __pyx_L1_error)
18874 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4615, __pyx_L1_error)
18875 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4616, __pyx_L1_error)
18876 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4617, __pyx_L1_error)
18877 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4618, __pyx_L1_error)
18878 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 4619, __pyx_L1_error)
18879 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 4620, __pyx_L1_error)
18880 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4621, __pyx_L1_error)
18881 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4622, __pyx_L1_error)
18882 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4623, __pyx_L1_error)
18883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 4624, __pyx_L1_error)
18884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4625, __pyx_L1_error)
18885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4626, __pyx_L1_error)
18886 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4627, __pyx_L1_error)
18887 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 4628, __pyx_L1_error)
18888 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4629, __pyx_L1_error)
18889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4630, __pyx_L1_error)
18890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4631, __pyx_L1_error)
18891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 4632, __pyx_L1_error)
18892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 4633, __pyx_L1_error)
18893 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 4634, __pyx_L1_error)
18894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 4635, __pyx_L1_error)
18895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 4636, __pyx_L1_error)
18896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4637, __pyx_L1_error)
18897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4638, __pyx_L1_error)
18898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 4639, __pyx_L1_error)
18899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 4640, __pyx_L1_error)
18900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 4641, __pyx_L1_error)
18901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 4642, __pyx_L1_error)
18902 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 4643, __pyx_L1_error)
18903 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 4644, __pyx_L1_error)
18904 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 4645, __pyx_L1_error)
18905 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4646, __pyx_L1_error)
18906 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4647, __pyx_L1_error)
18907 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 4648, __pyx_L1_error)
18908 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4649, __pyx_L1_error)
18909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4650, __pyx_L1_error)
18910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4651, __pyx_L1_error)
18911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4652, __pyx_L1_error)
18912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 4653, __pyx_L1_error)
18913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4654, __pyx_L1_error)
18914 __pyx_r = __pyx_pf_22ctransportCoefficients_90TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_self, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
18921 __Pyx_RefNannyFinishContext();
18925 static PyObject *__pyx_pf_22ctransportCoefficients_90TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
18926 PyObject *__pyx_r = NULL;
18927 __Pyx_RefNannyDeclarations
18928 PyObject *__pyx_t_1 = NULL;
18930 int __pyx_lineno = 0;
18931 const char *__pyx_filename = NULL;
18932 int __pyx_clineno = 0;
18933 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 0);
18942 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4655, __pyx_L1_error)
18943 __Pyx_GOTREF(__pyx_t_1);
18944 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4655, __pyx_L1_error)
18945 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18954 TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_t_2, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
18965 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18968 __Pyx_XDECREF(__pyx_t_1);
18969 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
18972 __Pyx_XGIVEREF(__pyx_r);
18973 __Pyx_RefNannyFinishContext();
18986 static PyObject *__pyx_pw_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18987 static PyMethodDef __pyx_mdef_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate = {
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
18988 static PyObject *__pyx_pw_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18989 double __pyx_v_boundaryPenaltyCoef;
18990 double __pyx_v_volumePenaltyCoef;
18991 double __pyx_v_eps_rho;
18992 double __pyx_v_eps_mu;
18993 double __pyx_v_sigma;
18994 double __pyx_v_rho_0;
18995 double __pyx_v_nu_0;
18996 double __pyx_v_rho_1;
18997 double __pyx_v_nu_1;
18998 double __pyx_v_rho_s;
18999 double __pyx_v_nu_s;
19000 PyArrayObject *__pyx_v_g = 0;
19001 PyArrayObject *__pyx_v_phi = 0;
19002 PyArrayObject *__pyx_v_n = 0;
19003 PyArrayObject *__pyx_v_kappa = 0;
19004 PyArrayObject *__pyx_v_phi_s = 0;
19005 PyArrayObject *__pyx_v_n_s = 0;
19006 PyArrayObject *__pyx_v_p = 0;
19007 PyArrayObject *__pyx_v_grad_p = 0;
19008 PyArrayObject *__pyx_v_u = 0;
19009 PyArrayObject *__pyx_v_v = 0;
19010 PyArrayObject *__pyx_v_w = 0;
19011 PyArrayObject *__pyx_v_mom_u_acc = 0;
19012 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
19013 PyArrayObject *__pyx_v_mom_v_acc = 0;
19014 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
19015 PyArrayObject *__pyx_v_mom_w_acc = 0;
19016 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
19017 PyArrayObject *__pyx_v_mass_adv = 0;
19018 PyArrayObject *__pyx_v_dmass_adv_u = 0;
19019 PyArrayObject *__pyx_v_dmass_adv_v = 0;
19020 PyArrayObject *__pyx_v_dmass_adv_w = 0;
19021 PyArrayObject *__pyx_v_mom_u_adv = 0;
19022 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
19023 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
19024 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
19025 PyArrayObject *__pyx_v_mom_v_adv = 0;
19026 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
19027 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
19028 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
19029 PyArrayObject *__pyx_v_mom_w_adv = 0;
19030 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
19031 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
19032 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
19033 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
19034 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
19035 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
19036 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
19037 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
19038 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
19039 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
19040 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
19041 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
19042 PyArrayObject *__pyx_v_mom_u_source = 0;
19043 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
19044 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
19045 PyArrayObject *__pyx_v_dmom_u_source_w = 0;
19046 PyArrayObject *__pyx_v_mom_v_source = 0;
19047 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
19048 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
19049 PyArrayObject *__pyx_v_dmom_v_source_w = 0;
19050 PyArrayObject *__pyx_v_mom_w_source = 0;
19051 PyArrayObject *__pyx_v_dmom_w_source_u = 0;
19052 PyArrayObject *__pyx_v_dmom_w_source_v = 0;
19053 PyArrayObject *__pyx_v_dmom_w_source_w = 0;
19054 PyArrayObject *__pyx_v_mom_u_ham = 0;
19055 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
19056 PyArrayObject *__pyx_v_mom_v_ham = 0;
19057 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
19058 PyArrayObject *__pyx_v_mom_w_ham = 0;
19059 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
19060 int __pyx_lineno = 0;
19061 const char *__pyx_filename = NULL;
19062 int __pyx_clineno = 0;
19063 PyObject *__pyx_r = 0;
19064 __Pyx_RefNannyDeclarations
19065 __Pyx_RefNannySetupContext(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate (wrapper)", 0);
19067 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_boundaryPenaltyCoef,&__pyx_n_s_volumePenaltyCoef,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_rho_s,&__pyx_n_s_nu_s,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_phi_s,&__pyx_n_s_n_s,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
19068 PyObject* values[71] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19069 if (unlikely(__pyx_kwds)) {
19070 Py_ssize_t kw_args;
19071 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19072 switch (pos_args) {
19073 case 71: values[70] = PyTuple_GET_ITEM(__pyx_args, 70);
19074 CYTHON_FALLTHROUGH;
19075 case 70: values[69] = PyTuple_GET_ITEM(__pyx_args, 69);
19076 CYTHON_FALLTHROUGH;
19077 case 69: values[68] = PyTuple_GET_ITEM(__pyx_args, 68);
19078 CYTHON_FALLTHROUGH;
19079 case 68: values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
19080 CYTHON_FALLTHROUGH;
19081 case 67: values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
19082 CYTHON_FALLTHROUGH;
19083 case 66: values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
19084 CYTHON_FALLTHROUGH;
19085 case 65: values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
19086 CYTHON_FALLTHROUGH;
19087 case 64: values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
19088 CYTHON_FALLTHROUGH;
19089 case 63: values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
19090 CYTHON_FALLTHROUGH;
19091 case 62: values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
19092 CYTHON_FALLTHROUGH;
19093 case 61: values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
19094 CYTHON_FALLTHROUGH;
19095 case 60: values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
19096 CYTHON_FALLTHROUGH;
19097 case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
19098 CYTHON_FALLTHROUGH;
19099 case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
19100 CYTHON_FALLTHROUGH;
19101 case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
19102 CYTHON_FALLTHROUGH;
19103 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
19104 CYTHON_FALLTHROUGH;
19105 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
19106 CYTHON_FALLTHROUGH;
19107 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
19108 CYTHON_FALLTHROUGH;
19109 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
19110 CYTHON_FALLTHROUGH;
19111 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
19112 CYTHON_FALLTHROUGH;
19113 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
19114 CYTHON_FALLTHROUGH;
19115 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
19116 CYTHON_FALLTHROUGH;
19117 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
19118 CYTHON_FALLTHROUGH;
19119 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
19120 CYTHON_FALLTHROUGH;
19121 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
19122 CYTHON_FALLTHROUGH;
19123 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
19124 CYTHON_FALLTHROUGH;
19125 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
19126 CYTHON_FALLTHROUGH;
19127 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
19128 CYTHON_FALLTHROUGH;
19129 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
19130 CYTHON_FALLTHROUGH;
19131 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
19132 CYTHON_FALLTHROUGH;
19133 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
19134 CYTHON_FALLTHROUGH;
19135 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
19136 CYTHON_FALLTHROUGH;
19137 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
19138 CYTHON_FALLTHROUGH;
19139 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
19140 CYTHON_FALLTHROUGH;
19141 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
19142 CYTHON_FALLTHROUGH;
19143 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
19144 CYTHON_FALLTHROUGH;
19145 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
19146 CYTHON_FALLTHROUGH;
19147 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
19148 CYTHON_FALLTHROUGH;
19149 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
19150 CYTHON_FALLTHROUGH;
19151 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
19152 CYTHON_FALLTHROUGH;
19153 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
19154 CYTHON_FALLTHROUGH;
19155 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
19156 CYTHON_FALLTHROUGH;
19157 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
19158 CYTHON_FALLTHROUGH;
19159 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
19160 CYTHON_FALLTHROUGH;
19161 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
19162 CYTHON_FALLTHROUGH;
19163 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
19164 CYTHON_FALLTHROUGH;
19165 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
19166 CYTHON_FALLTHROUGH;
19167 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
19168 CYTHON_FALLTHROUGH;
19169 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
19170 CYTHON_FALLTHROUGH;
19171 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
19172 CYTHON_FALLTHROUGH;
19173 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
19174 CYTHON_FALLTHROUGH;
19175 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19176 CYTHON_FALLTHROUGH;
19177 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19178 CYTHON_FALLTHROUGH;
19179 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19180 CYTHON_FALLTHROUGH;
19181 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19182 CYTHON_FALLTHROUGH;
19183 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19184 CYTHON_FALLTHROUGH;
19185 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19186 CYTHON_FALLTHROUGH;
19187 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19188 CYTHON_FALLTHROUGH;
19189 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19190 CYTHON_FALLTHROUGH;
19191 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19192 CYTHON_FALLTHROUGH;
19193 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19194 CYTHON_FALLTHROUGH;
19195 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19196 CYTHON_FALLTHROUGH;
19197 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19198 CYTHON_FALLTHROUGH;
19199 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19200 CYTHON_FALLTHROUGH;
19201 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19202 CYTHON_FALLTHROUGH;
19203 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19204 CYTHON_FALLTHROUGH;
19205 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19206 CYTHON_FALLTHROUGH;
19207 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19208 CYTHON_FALLTHROUGH;
19209 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19210 CYTHON_FALLTHROUGH;
19211 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19212 CYTHON_FALLTHROUGH;
19213 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19214 CYTHON_FALLTHROUGH;
19216 default:
goto __pyx_L5_argtuple_error;
19218 kw_args = PyDict_Size(__pyx_kwds);
19219 switch (pos_args) {
19221 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryPenaltyCoef)) != 0)) kw_args--;
19222 else goto __pyx_L5_argtuple_error;
19223 CYTHON_FALLTHROUGH;
19225 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_volumePenaltyCoef)) != 0)) kw_args--;
19227 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 1); __PYX_ERR(0, 4712, __pyx_L3_error)
19229 CYTHON_FALLTHROUGH;
19231 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
19233 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 2); __PYX_ERR(0, 4712, __pyx_L3_error)
19235 CYTHON_FALLTHROUGH;
19237 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
19239 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 3); __PYX_ERR(0, 4712, __pyx_L3_error)
19241 CYTHON_FALLTHROUGH;
19243 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
19245 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 4); __PYX_ERR(0, 4712, __pyx_L3_error)
19247 CYTHON_FALLTHROUGH;
19249 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
19251 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 5); __PYX_ERR(0, 4712, __pyx_L3_error)
19253 CYTHON_FALLTHROUGH;
19255 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
19257 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 6); __PYX_ERR(0, 4712, __pyx_L3_error)
19259 CYTHON_FALLTHROUGH;
19261 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
19263 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 7); __PYX_ERR(0, 4712, __pyx_L3_error)
19265 CYTHON_FALLTHROUGH;
19267 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
19269 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 8); __PYX_ERR(0, 4712, __pyx_L3_error)
19271 CYTHON_FALLTHROUGH;
19273 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_s)) != 0)) kw_args--;
19275 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 9); __PYX_ERR(0, 4712, __pyx_L3_error)
19277 CYTHON_FALLTHROUGH;
19279 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_s)) != 0)) kw_args--;
19281 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 10); __PYX_ERR(0, 4712, __pyx_L3_error)
19283 CYTHON_FALLTHROUGH;
19285 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
19287 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 11); __PYX_ERR(0, 4712, __pyx_L3_error)
19289 CYTHON_FALLTHROUGH;
19291 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
19293 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 12); __PYX_ERR(0, 4712, __pyx_L3_error)
19295 CYTHON_FALLTHROUGH;
19297 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
19299 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 13); __PYX_ERR(0, 4712, __pyx_L3_error)
19301 CYTHON_FALLTHROUGH;
19303 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
19305 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 14); __PYX_ERR(0, 4712, __pyx_L3_error)
19307 CYTHON_FALLTHROUGH;
19309 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_s)) != 0)) kw_args--;
19311 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 15); __PYX_ERR(0, 4712, __pyx_L3_error)
19313 CYTHON_FALLTHROUGH;
19315 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_s)) != 0)) kw_args--;
19317 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 16); __PYX_ERR(0, 4712, __pyx_L3_error)
19319 CYTHON_FALLTHROUGH;
19321 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
19323 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 17); __PYX_ERR(0, 4712, __pyx_L3_error)
19325 CYTHON_FALLTHROUGH;
19327 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
19329 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 18); __PYX_ERR(0, 4712, __pyx_L3_error)
19331 CYTHON_FALLTHROUGH;
19333 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
19335 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 19); __PYX_ERR(0, 4712, __pyx_L3_error)
19337 CYTHON_FALLTHROUGH;
19339 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
19341 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 20); __PYX_ERR(0, 4712, __pyx_L3_error)
19343 CYTHON_FALLTHROUGH;
19345 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
19347 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 21); __PYX_ERR(0, 4712, __pyx_L3_error)
19349 CYTHON_FALLTHROUGH;
19351 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
19353 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 22); __PYX_ERR(0, 4712, __pyx_L3_error)
19355 CYTHON_FALLTHROUGH;
19357 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
19359 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 23); __PYX_ERR(0, 4712, __pyx_L3_error)
19361 CYTHON_FALLTHROUGH;
19363 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
19365 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 24); __PYX_ERR(0, 4712, __pyx_L3_error)
19367 CYTHON_FALLTHROUGH;
19369 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
19371 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 25); __PYX_ERR(0, 4712, __pyx_L3_error)
19373 CYTHON_FALLTHROUGH;
19375 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
19377 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 26); __PYX_ERR(0, 4712, __pyx_L3_error)
19379 CYTHON_FALLTHROUGH;
19381 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
19383 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 27); __PYX_ERR(0, 4712, __pyx_L3_error)
19385 CYTHON_FALLTHROUGH;
19387 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
19389 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 28); __PYX_ERR(0, 4712, __pyx_L3_error)
19391 CYTHON_FALLTHROUGH;
19393 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
19395 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 29); __PYX_ERR(0, 4712, __pyx_L3_error)
19397 CYTHON_FALLTHROUGH;
19399 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
19401 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 30); __PYX_ERR(0, 4712, __pyx_L3_error)
19403 CYTHON_FALLTHROUGH;
19405 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
19407 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 31); __PYX_ERR(0, 4712, __pyx_L3_error)
19409 CYTHON_FALLTHROUGH;
19411 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
19413 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 32); __PYX_ERR(0, 4712, __pyx_L3_error)
19415 CYTHON_FALLTHROUGH;
19417 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
19419 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 33); __PYX_ERR(0, 4712, __pyx_L3_error)
19421 CYTHON_FALLTHROUGH;
19423 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
19425 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 34); __PYX_ERR(0, 4712, __pyx_L3_error)
19427 CYTHON_FALLTHROUGH;
19429 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
19431 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 35); __PYX_ERR(0, 4712, __pyx_L3_error)
19433 CYTHON_FALLTHROUGH;
19435 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
19437 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 36); __PYX_ERR(0, 4712, __pyx_L3_error)
19439 CYTHON_FALLTHROUGH;
19441 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
19443 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 37); __PYX_ERR(0, 4712, __pyx_L3_error)
19445 CYTHON_FALLTHROUGH;
19447 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
19449 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 38); __PYX_ERR(0, 4712, __pyx_L3_error)
19451 CYTHON_FALLTHROUGH;
19453 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
19455 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 39); __PYX_ERR(0, 4712, __pyx_L3_error)
19457 CYTHON_FALLTHROUGH;
19459 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
19461 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 40); __PYX_ERR(0, 4712, __pyx_L3_error)
19463 CYTHON_FALLTHROUGH;
19465 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
19467 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 41); __PYX_ERR(0, 4712, __pyx_L3_error)
19469 CYTHON_FALLTHROUGH;
19471 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
19473 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 42); __PYX_ERR(0, 4712, __pyx_L3_error)
19475 CYTHON_FALLTHROUGH;
19477 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
19479 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 43); __PYX_ERR(0, 4712, __pyx_L3_error)
19481 CYTHON_FALLTHROUGH;
19483 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
19485 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 44); __PYX_ERR(0, 4712, __pyx_L3_error)
19487 CYTHON_FALLTHROUGH;
19489 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
19491 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 45); __PYX_ERR(0, 4712, __pyx_L3_error)
19493 CYTHON_FALLTHROUGH;
19495 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
19497 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 46); __PYX_ERR(0, 4712, __pyx_L3_error)
19499 CYTHON_FALLTHROUGH;
19501 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
19503 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 47); __PYX_ERR(0, 4712, __pyx_L3_error)
19505 CYTHON_FALLTHROUGH;
19507 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
19509 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 48); __PYX_ERR(0, 4712, __pyx_L3_error)
19511 CYTHON_FALLTHROUGH;
19513 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
19515 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 49); __PYX_ERR(0, 4712, __pyx_L3_error)
19517 CYTHON_FALLTHROUGH;
19519 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
19521 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 50); __PYX_ERR(0, 4712, __pyx_L3_error)
19523 CYTHON_FALLTHROUGH;
19525 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
19527 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 51); __PYX_ERR(0, 4712, __pyx_L3_error)
19529 CYTHON_FALLTHROUGH;
19531 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
19533 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 52); __PYX_ERR(0, 4712, __pyx_L3_error)
19535 CYTHON_FALLTHROUGH;
19537 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
19539 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 53); __PYX_ERR(0, 4712, __pyx_L3_error)
19541 CYTHON_FALLTHROUGH;
19543 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
19545 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 54); __PYX_ERR(0, 4712, __pyx_L3_error)
19547 CYTHON_FALLTHROUGH;
19549 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
19551 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 55); __PYX_ERR(0, 4712, __pyx_L3_error)
19553 CYTHON_FALLTHROUGH;
19555 if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
19557 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 56); __PYX_ERR(0, 4712, __pyx_L3_error)
19559 CYTHON_FALLTHROUGH;
19561 if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
19563 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 57); __PYX_ERR(0, 4712, __pyx_L3_error)
19565 CYTHON_FALLTHROUGH;
19567 if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
19569 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 58); __PYX_ERR(0, 4712, __pyx_L3_error)
19571 CYTHON_FALLTHROUGH;
19573 if (likely((values[59] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
19575 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 59); __PYX_ERR(0, 4712, __pyx_L3_error)
19577 CYTHON_FALLTHROUGH;
19579 if (likely((values[60] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
19581 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 60); __PYX_ERR(0, 4712, __pyx_L3_error)
19583 CYTHON_FALLTHROUGH;
19585 if (likely((values[61] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
19587 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 61); __PYX_ERR(0, 4712, __pyx_L3_error)
19589 CYTHON_FALLTHROUGH;
19591 if (likely((values[62] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
19593 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 62); __PYX_ERR(0, 4712, __pyx_L3_error)
19595 CYTHON_FALLTHROUGH;
19597 if (likely((values[63] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
19599 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 63); __PYX_ERR(0, 4712, __pyx_L3_error)
19601 CYTHON_FALLTHROUGH;
19603 if (likely((values[64] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
19605 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 64); __PYX_ERR(0, 4712, __pyx_L3_error)
19607 CYTHON_FALLTHROUGH;
19609 if (likely((values[65] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
19611 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 65); __PYX_ERR(0, 4712, __pyx_L3_error)
19613 CYTHON_FALLTHROUGH;
19615 if (likely((values[66] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
19617 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 66); __PYX_ERR(0, 4712, __pyx_L3_error)
19619 CYTHON_FALLTHROUGH;
19621 if (likely((values[67] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
19623 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 67); __PYX_ERR(0, 4712, __pyx_L3_error)
19625 CYTHON_FALLTHROUGH;
19627 if (likely((values[68] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
19629 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 68); __PYX_ERR(0, 4712, __pyx_L3_error)
19631 CYTHON_FALLTHROUGH;
19633 if (likely((values[69] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
19635 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 69); __PYX_ERR(0, 4712, __pyx_L3_error)
19637 CYTHON_FALLTHROUGH;
19639 if (likely((values[70] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
19641 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, 70); __PYX_ERR(0, 4712, __pyx_L3_error)
19644 if (unlikely(kw_args > 0)) {
19645 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 4712, __pyx_L3_error)
19647 }
else if (PyTuple_GET_SIZE(__pyx_args) != 71) {
19648 goto __pyx_L5_argtuple_error;
19650 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19651 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19652 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19653 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19654 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19655 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19656 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19657 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19658 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19659 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19660 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19661 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19662 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19663 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19664 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19665 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19666 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19667 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19668 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19669 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19670 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
19671 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
19672 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
19673 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
19674 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
19675 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
19676 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
19677 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
19678 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
19679 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
19680 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
19681 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
19682 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
19683 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
19684 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
19685 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
19686 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
19687 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
19688 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
19689 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
19690 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
19691 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
19692 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
19693 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
19694 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
19695 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
19696 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
19697 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
19698 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
19699 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
19700 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
19701 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
19702 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
19703 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
19704 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
19705 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
19706 values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
19707 values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
19708 values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
19709 values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
19710 values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
19711 values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
19712 values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
19713 values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
19714 values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
19715 values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
19716 values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
19717 values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
19718 values[68] = PyTuple_GET_ITEM(__pyx_args, 68);
19719 values[69] = PyTuple_GET_ITEM(__pyx_args, 69);
19720 values[70] = PyTuple_GET_ITEM(__pyx_args, 70);
19722 __pyx_v_boundaryPenaltyCoef = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_boundaryPenaltyCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4712, __pyx_L3_error)
19723 __pyx_v_volumePenaltyCoef = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_volumePenaltyCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4713, __pyx_L3_error)
19724 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4714, __pyx_L3_error)
19725 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4715, __pyx_L3_error)
19726 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4716, __pyx_L3_error)
19727 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4717, __pyx_L3_error)
19728 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4718, __pyx_L3_error)
19729 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4719, __pyx_L3_error)
19730 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4720, __pyx_L3_error)
19731 __pyx_v_rho_s = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_rho_s == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4721, __pyx_L3_error)
19732 __pyx_v_nu_s = __pyx_PyFloat_AsDouble(values[10]);
if (unlikely((__pyx_v_nu_s == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4722, __pyx_L3_error)
19733 __pyx_v_g = ((PyArrayObject *)values[11]);
19734 __pyx_v_phi = ((PyArrayObject *)values[12]);
19735 __pyx_v_n = ((PyArrayObject *)values[13]);
19736 __pyx_v_kappa = ((PyArrayObject *)values[14]);
19737 __pyx_v_phi_s = ((PyArrayObject *)values[15]);
19738 __pyx_v_n_s = ((PyArrayObject *)values[16]);
19739 __pyx_v_p = ((PyArrayObject *)values[17]);
19740 __pyx_v_grad_p = ((PyArrayObject *)values[18]);
19741 __pyx_v_u = ((PyArrayObject *)values[19]);
19742 __pyx_v_v = ((PyArrayObject *)values[20]);
19743 __pyx_v_w = ((PyArrayObject *)values[21]);
19744 __pyx_v_mom_u_acc = ((PyArrayObject *)values[22]);
19745 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[23]);
19746 __pyx_v_mom_v_acc = ((PyArrayObject *)values[24]);
19747 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[25]);
19748 __pyx_v_mom_w_acc = ((PyArrayObject *)values[26]);
19749 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[27]);
19750 __pyx_v_mass_adv = ((PyArrayObject *)values[28]);
19751 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[29]);
19752 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[30]);
19753 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[31]);
19754 __pyx_v_mom_u_adv = ((PyArrayObject *)values[32]);
19755 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[33]);
19756 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[34]);
19757 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[35]);
19758 __pyx_v_mom_v_adv = ((PyArrayObject *)values[36]);
19759 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[37]);
19760 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[38]);
19761 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[39]);
19762 __pyx_v_mom_w_adv = ((PyArrayObject *)values[40]);
19763 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[41]);
19764 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[42]);
19765 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[43]);
19766 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[44]);
19767 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[45]);
19768 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[46]);
19769 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[47]);
19770 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[48]);
19771 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[49]);
19772 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[50]);
19773 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[51]);
19774 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[52]);
19775 __pyx_v_mom_u_source = ((PyArrayObject *)values[53]);
19776 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[54]);
19777 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[55]);
19778 __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[56]);
19779 __pyx_v_mom_v_source = ((PyArrayObject *)values[57]);
19780 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[58]);
19781 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[59]);
19782 __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[60]);
19783 __pyx_v_mom_w_source = ((PyArrayObject *)values[61]);
19784 __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[62]);
19785 __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[63]);
19786 __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[64]);
19787 __pyx_v_mom_u_ham = ((PyArrayObject *)values[65]);
19788 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[66]);
19789 __pyx_v_mom_v_ham = ((PyArrayObject *)values[67]);
19790 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[68]);
19791 __pyx_v_mom_w_ham = ((PyArrayObject *)values[69]);
19792 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[70]);
19794 goto __pyx_L4_argument_unpacking_done;
19795 __pyx_L5_argtuple_error:;
19796 __Pyx_RaiseArgtupleInvalid(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 71, 71, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4712, __pyx_L3_error)
19798 __Pyx_AddTraceback(
"ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
19799 __Pyx_RefNannyFinishContext();
19801 __pyx_L4_argument_unpacking_done:;
19802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4723, __pyx_L1_error)
19803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4724, __pyx_L1_error)
19804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4725, __pyx_L1_error)
19805 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 4726, __pyx_L1_error)
19806 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_s), __pyx_ptype_5numpy_ndarray, 1,
"phi_s", 0))) __PYX_ERR(0, 4727, __pyx_L1_error)
19807 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_s), __pyx_ptype_5numpy_ndarray, 1,
"n_s", 0))) __PYX_ERR(0, 4728, __pyx_L1_error)
19808 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4729, __pyx_L1_error)
19809 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4730, __pyx_L1_error)
19810 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4731, __pyx_L1_error)
19811 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4732, __pyx_L1_error)
19812 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4733, __pyx_L1_error)
19813 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4734, __pyx_L1_error)
19814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4735, __pyx_L1_error)
19815 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4736, __pyx_L1_error)
19816 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4737, __pyx_L1_error)
19817 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 4738, __pyx_L1_error)
19818 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 4739, __pyx_L1_error)
19819 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4740, __pyx_L1_error)
19820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4741, __pyx_L1_error)
19821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4742, __pyx_L1_error)
19822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 4743, __pyx_L1_error)
19823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4744, __pyx_L1_error)
19824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4745, __pyx_L1_error)
19825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4746, __pyx_L1_error)
19826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 4747, __pyx_L1_error)
19827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4748, __pyx_L1_error)
19828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4749, __pyx_L1_error)
19829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4750, __pyx_L1_error)
19830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 4751, __pyx_L1_error)
19831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 4752, __pyx_L1_error)
19832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 4753, __pyx_L1_error)
19833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 4754, __pyx_L1_error)
19834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 4755, __pyx_L1_error)
19835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4756, __pyx_L1_error)
19836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4757, __pyx_L1_error)
19837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 4758, __pyx_L1_error)
19838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 4759, __pyx_L1_error)
19839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 4760, __pyx_L1_error)
19840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 4761, __pyx_L1_error)
19841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 4762, __pyx_L1_error)
19842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 4763, __pyx_L1_error)
19843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 4764, __pyx_L1_error)
19844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4765, __pyx_L1_error)
19845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 4766, __pyx_L1_error)
19846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 4767, __pyx_L1_error)
19847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_w", 0))) __PYX_ERR(0, 4768, __pyx_L1_error)
19848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4769, __pyx_L1_error)
19849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 4770, __pyx_L1_error)
19850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 4771, __pyx_L1_error)
19851 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_w", 0))) __PYX_ERR(0, 4772, __pyx_L1_error)
19852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 4773, __pyx_L1_error)
19853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_u", 0))) __PYX_ERR(0, 4774, __pyx_L1_error)
19854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_v", 0))) __PYX_ERR(0, 4775, __pyx_L1_error)
19855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_w", 0))) __PYX_ERR(0, 4776, __pyx_L1_error)
19856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4777, __pyx_L1_error)
19857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4778, __pyx_L1_error)
19858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4779, __pyx_L1_error)
19859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4780, __pyx_L1_error)
19860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 4781, __pyx_L1_error)
19861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4782, __pyx_L1_error)
19862 __pyx_r = __pyx_pf_22ctransportCoefficients_92ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_phi_s, __pyx_v_n_s, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_mom_v_source, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_mom_w_source, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
19869 __Pyx_RefNannyFinishContext();
19873 static PyObject *__pyx_pf_22ctransportCoefficients_92ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_boundaryPenaltyCoef,
double __pyx_v_volumePenaltyCoef,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1,
double __pyx_v_rho_s,
double __pyx_v_nu_s, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_phi_s, PyArrayObject *__pyx_v_n_s, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
19874 PyObject *__pyx_r = NULL;
19875 __Pyx_RefNannyDeclarations
19876 PyObject *__pyx_t_1 = NULL;
19878 int __pyx_lineno = 0;
19879 const char *__pyx_filename = NULL;
19880 int __pyx_clineno = 0;
19881 __Pyx_RefNannySetupContext(
"ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", 0);
19890 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4783, __pyx_L1_error)
19891 __Pyx_GOTREF(__pyx_t_1);
19892 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4783, __pyx_L1_error)
19893 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19902 ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_boundaryPenaltyCoef, __pyx_v_volumePenaltyCoef, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_rho_s, __pyx_v_nu_s, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_phi_s->data), ((
double *)__pyx_v_n_s->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_u_source_w->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_dmom_v_source_w->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_dmom_w_source_u->data), ((
double *)__pyx_v_dmom_w_source_v->data), ((
double *)__pyx_v_dmom_w_source_w->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
19913 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19916 __Pyx_XDECREF(__pyx_t_1);
19917 __Pyx_AddTraceback(
"ctransportCoefficients.ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
19920 __Pyx_XGIVEREF(__pyx_r);
19921 __Pyx_RefNannyFinishContext();
19934 static PyObject *__pyx_pw_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19935 static PyMethodDef __pyx_mdef_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate = {
"TwophaseNavierStokes_LS_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
19936 static PyObject *__pyx_pw_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19937 double __pyx_v_eps;
19938 double __pyx_v_rho_0;
19939 double __pyx_v_nu_0;
19940 double __pyx_v_rho_1;
19941 double __pyx_v_nu_1;
19942 PyArrayObject *__pyx_v_g = 0;
19943 PyArrayObject *__pyx_v_phi = 0;
19944 PyArrayObject *__pyx_v_p = 0;
19945 PyArrayObject *__pyx_v_grad_p = 0;
19946 PyArrayObject *__pyx_v_u = 0;
19947 PyArrayObject *__pyx_v_v = 0;
19948 PyArrayObject *__pyx_v_w = 0;
19949 PyArrayObject *__pyx_v_mom_u_acc = 0;
19950 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
19951 PyArrayObject *__pyx_v_mom_v_acc = 0;
19952 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
19953 PyArrayObject *__pyx_v_mom_w_acc = 0;
19954 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
19955 PyArrayObject *__pyx_v_mass_adv = 0;
19956 PyArrayObject *__pyx_v_dmass_adv_u = 0;
19957 PyArrayObject *__pyx_v_dmass_adv_v = 0;
19958 PyArrayObject *__pyx_v_dmass_adv_w = 0;
19959 PyArrayObject *__pyx_v_mom_u_adv = 0;
19960 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
19961 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
19962 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
19963 PyArrayObject *__pyx_v_mom_v_adv = 0;
19964 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
19965 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
19966 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
19967 PyArrayObject *__pyx_v_mom_w_adv = 0;
19968 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
19969 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
19970 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
19971 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
19972 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
19973 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
19974 PyArrayObject *__pyx_v_mom_u_source = 0;
19975 PyArrayObject *__pyx_v_mom_v_source = 0;
19976 PyArrayObject *__pyx_v_mom_w_source = 0;
19977 PyArrayObject *__pyx_v_mom_u_ham = 0;
19978 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
19979 PyArrayObject *__pyx_v_mom_v_ham = 0;
19980 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
19981 PyArrayObject *__pyx_v_mom_w_ham = 0;
19982 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
19983 int __pyx_lineno = 0;
19984 const char *__pyx_filename = NULL;
19985 int __pyx_clineno = 0;
19986 PyObject *__pyx_r = 0;
19987 __Pyx_RefNannyDeclarations
19988 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_LS_SO_3D_Evaluate (wrapper)", 0);
19990 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
19991 PyObject* values[46] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19992 if (unlikely(__pyx_kwds)) {
19993 Py_ssize_t kw_args;
19994 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19995 switch (pos_args) {
19996 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
19997 CYTHON_FALLTHROUGH;
19998 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
19999 CYTHON_FALLTHROUGH;
20000 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
20001 CYTHON_FALLTHROUGH;
20002 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
20003 CYTHON_FALLTHROUGH;
20004 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
20005 CYTHON_FALLTHROUGH;
20006 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
20007 CYTHON_FALLTHROUGH;
20008 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
20009 CYTHON_FALLTHROUGH;
20010 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
20011 CYTHON_FALLTHROUGH;
20012 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
20013 CYTHON_FALLTHROUGH;
20014 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
20015 CYTHON_FALLTHROUGH;
20016 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
20017 CYTHON_FALLTHROUGH;
20018 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
20019 CYTHON_FALLTHROUGH;
20020 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
20021 CYTHON_FALLTHROUGH;
20022 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
20023 CYTHON_FALLTHROUGH;
20024 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
20025 CYTHON_FALLTHROUGH;
20026 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
20027 CYTHON_FALLTHROUGH;
20028 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
20029 CYTHON_FALLTHROUGH;
20030 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
20031 CYTHON_FALLTHROUGH;
20032 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
20033 CYTHON_FALLTHROUGH;
20034 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
20035 CYTHON_FALLTHROUGH;
20036 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20037 CYTHON_FALLTHROUGH;
20038 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20039 CYTHON_FALLTHROUGH;
20040 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20041 CYTHON_FALLTHROUGH;
20042 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20043 CYTHON_FALLTHROUGH;
20044 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20045 CYTHON_FALLTHROUGH;
20046 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20047 CYTHON_FALLTHROUGH;
20048 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20049 CYTHON_FALLTHROUGH;
20050 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20051 CYTHON_FALLTHROUGH;
20052 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20053 CYTHON_FALLTHROUGH;
20054 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20055 CYTHON_FALLTHROUGH;
20056 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20057 CYTHON_FALLTHROUGH;
20058 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20059 CYTHON_FALLTHROUGH;
20060 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20061 CYTHON_FALLTHROUGH;
20062 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20063 CYTHON_FALLTHROUGH;
20064 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20065 CYTHON_FALLTHROUGH;
20066 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20067 CYTHON_FALLTHROUGH;
20068 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20069 CYTHON_FALLTHROUGH;
20070 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20071 CYTHON_FALLTHROUGH;
20072 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20073 CYTHON_FALLTHROUGH;
20074 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20075 CYTHON_FALLTHROUGH;
20076 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20077 CYTHON_FALLTHROUGH;
20078 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20079 CYTHON_FALLTHROUGH;
20080 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20081 CYTHON_FALLTHROUGH;
20082 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20083 CYTHON_FALLTHROUGH;
20084 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20085 CYTHON_FALLTHROUGH;
20086 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20087 CYTHON_FALLTHROUGH;
20089 default:
goto __pyx_L5_argtuple_error;
20091 kw_args = PyDict_Size(__pyx_kwds);
20092 switch (pos_args) {
20094 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
20095 else goto __pyx_L5_argtuple_error;
20096 CYTHON_FALLTHROUGH;
20098 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
20100 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 1); __PYX_ERR(0, 4855, __pyx_L3_error)
20102 CYTHON_FALLTHROUGH;
20104 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
20106 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 2); __PYX_ERR(0, 4855, __pyx_L3_error)
20108 CYTHON_FALLTHROUGH;
20110 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
20112 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 3); __PYX_ERR(0, 4855, __pyx_L3_error)
20114 CYTHON_FALLTHROUGH;
20116 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
20118 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 4); __PYX_ERR(0, 4855, __pyx_L3_error)
20120 CYTHON_FALLTHROUGH;
20122 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
20124 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 5); __PYX_ERR(0, 4855, __pyx_L3_error)
20126 CYTHON_FALLTHROUGH;
20128 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
20130 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 6); __PYX_ERR(0, 4855, __pyx_L3_error)
20132 CYTHON_FALLTHROUGH;
20134 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
20136 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 7); __PYX_ERR(0, 4855, __pyx_L3_error)
20138 CYTHON_FALLTHROUGH;
20140 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
20142 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 8); __PYX_ERR(0, 4855, __pyx_L3_error)
20144 CYTHON_FALLTHROUGH;
20146 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20148 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 9); __PYX_ERR(0, 4855, __pyx_L3_error)
20150 CYTHON_FALLTHROUGH;
20152 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
20154 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 10); __PYX_ERR(0, 4855, __pyx_L3_error)
20156 CYTHON_FALLTHROUGH;
20158 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
20160 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 11); __PYX_ERR(0, 4855, __pyx_L3_error)
20162 CYTHON_FALLTHROUGH;
20164 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
20166 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 12); __PYX_ERR(0, 4855, __pyx_L3_error)
20168 CYTHON_FALLTHROUGH;
20170 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
20172 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 13); __PYX_ERR(0, 4855, __pyx_L3_error)
20174 CYTHON_FALLTHROUGH;
20176 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
20178 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 14); __PYX_ERR(0, 4855, __pyx_L3_error)
20180 CYTHON_FALLTHROUGH;
20182 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
20184 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 15); __PYX_ERR(0, 4855, __pyx_L3_error)
20186 CYTHON_FALLTHROUGH;
20188 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
20190 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 16); __PYX_ERR(0, 4855, __pyx_L3_error)
20192 CYTHON_FALLTHROUGH;
20194 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
20196 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 17); __PYX_ERR(0, 4855, __pyx_L3_error)
20198 CYTHON_FALLTHROUGH;
20200 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
20202 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 18); __PYX_ERR(0, 4855, __pyx_L3_error)
20204 CYTHON_FALLTHROUGH;
20206 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
20208 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 19); __PYX_ERR(0, 4855, __pyx_L3_error)
20210 CYTHON_FALLTHROUGH;
20212 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
20214 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 20); __PYX_ERR(0, 4855, __pyx_L3_error)
20216 CYTHON_FALLTHROUGH;
20218 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
20220 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 21); __PYX_ERR(0, 4855, __pyx_L3_error)
20222 CYTHON_FALLTHROUGH;
20224 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
20226 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 22); __PYX_ERR(0, 4855, __pyx_L3_error)
20228 CYTHON_FALLTHROUGH;
20230 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
20232 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 23); __PYX_ERR(0, 4855, __pyx_L3_error)
20234 CYTHON_FALLTHROUGH;
20236 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
20238 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 24); __PYX_ERR(0, 4855, __pyx_L3_error)
20240 CYTHON_FALLTHROUGH;
20242 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
20244 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 25); __PYX_ERR(0, 4855, __pyx_L3_error)
20246 CYTHON_FALLTHROUGH;
20248 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
20250 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 26); __PYX_ERR(0, 4855, __pyx_L3_error)
20252 CYTHON_FALLTHROUGH;
20254 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
20256 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 27); __PYX_ERR(0, 4855, __pyx_L3_error)
20258 CYTHON_FALLTHROUGH;
20260 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
20262 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 28); __PYX_ERR(0, 4855, __pyx_L3_error)
20264 CYTHON_FALLTHROUGH;
20266 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
20268 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 29); __PYX_ERR(0, 4855, __pyx_L3_error)
20270 CYTHON_FALLTHROUGH;
20272 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
20274 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 30); __PYX_ERR(0, 4855, __pyx_L3_error)
20276 CYTHON_FALLTHROUGH;
20278 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
20280 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 31); __PYX_ERR(0, 4855, __pyx_L3_error)
20282 CYTHON_FALLTHROUGH;
20284 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
20286 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 32); __PYX_ERR(0, 4855, __pyx_L3_error)
20288 CYTHON_FALLTHROUGH;
20290 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
20292 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 33); __PYX_ERR(0, 4855, __pyx_L3_error)
20294 CYTHON_FALLTHROUGH;
20296 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
20298 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 34); __PYX_ERR(0, 4855, __pyx_L3_error)
20300 CYTHON_FALLTHROUGH;
20302 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
20304 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 35); __PYX_ERR(0, 4855, __pyx_L3_error)
20306 CYTHON_FALLTHROUGH;
20308 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
20310 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 36); __PYX_ERR(0, 4855, __pyx_L3_error)
20312 CYTHON_FALLTHROUGH;
20314 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
20316 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 37); __PYX_ERR(0, 4855, __pyx_L3_error)
20318 CYTHON_FALLTHROUGH;
20320 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
20322 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 38); __PYX_ERR(0, 4855, __pyx_L3_error)
20324 CYTHON_FALLTHROUGH;
20326 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
20328 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 39); __PYX_ERR(0, 4855, __pyx_L3_error)
20330 CYTHON_FALLTHROUGH;
20332 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
20334 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 40); __PYX_ERR(0, 4855, __pyx_L3_error)
20336 CYTHON_FALLTHROUGH;
20338 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
20340 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 41); __PYX_ERR(0, 4855, __pyx_L3_error)
20342 CYTHON_FALLTHROUGH;
20344 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
20346 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 42); __PYX_ERR(0, 4855, __pyx_L3_error)
20348 CYTHON_FALLTHROUGH;
20350 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
20352 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 43); __PYX_ERR(0, 4855, __pyx_L3_error)
20354 CYTHON_FALLTHROUGH;
20356 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
20358 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 44); __PYX_ERR(0, 4855, __pyx_L3_error)
20360 CYTHON_FALLTHROUGH;
20362 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
20364 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, 45); __PYX_ERR(0, 4855, __pyx_L3_error)
20367 if (unlikely(kw_args > 0)) {
20368 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 4855, __pyx_L3_error)
20370 }
else if (PyTuple_GET_SIZE(__pyx_args) != 46) {
20371 goto __pyx_L5_argtuple_error;
20373 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20374 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20375 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20376 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20377 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20378 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20379 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20380 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20381 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20382 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20383 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20384 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20385 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20386 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20387 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20388 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20389 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20390 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20391 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20392 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20393 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20394 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20395 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20396 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20397 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20398 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20399 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
20400 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
20401 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
20402 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
20403 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
20404 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
20405 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
20406 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
20407 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
20408 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
20409 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
20410 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
20411 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
20412 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
20413 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
20414 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
20415 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
20416 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
20417 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
20418 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
20420 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4855, __pyx_L3_error)
20421 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4856, __pyx_L3_error)
20422 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4857, __pyx_L3_error)
20423 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4858, __pyx_L3_error)
20424 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4859, __pyx_L3_error)
20425 __pyx_v_g = ((PyArrayObject *)values[5]);
20426 __pyx_v_phi = ((PyArrayObject *)values[6]);
20427 __pyx_v_p = ((PyArrayObject *)values[7]);
20428 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
20429 __pyx_v_u = ((PyArrayObject *)values[9]);
20430 __pyx_v_v = ((PyArrayObject *)values[10]);
20431 __pyx_v_w = ((PyArrayObject *)values[11]);
20432 __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
20433 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
20434 __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
20435 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
20436 __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
20437 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
20438 __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
20439 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
20440 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
20441 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
20442 __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
20443 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
20444 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
20445 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[25]);
20446 __pyx_v_mom_v_adv = ((PyArrayObject *)values[26]);
20447 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[27]);
20448 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[28]);
20449 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[29]);
20450 __pyx_v_mom_w_adv = ((PyArrayObject *)values[30]);
20451 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[31]);
20452 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[32]);
20453 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[33]);
20454 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[34]);
20455 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[35]);
20456 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[36]);
20457 __pyx_v_mom_u_source = ((PyArrayObject *)values[37]);
20458 __pyx_v_mom_v_source = ((PyArrayObject *)values[38]);
20459 __pyx_v_mom_w_source = ((PyArrayObject *)values[39]);
20460 __pyx_v_mom_u_ham = ((PyArrayObject *)values[40]);
20461 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[41]);
20462 __pyx_v_mom_v_ham = ((PyArrayObject *)values[42]);
20463 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[43]);
20464 __pyx_v_mom_w_ham = ((PyArrayObject *)values[44]);
20465 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[45]);
20467 goto __pyx_L4_argument_unpacking_done;
20468 __pyx_L5_argtuple_error:;
20469 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 1, 46, 46, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4855, __pyx_L3_error)
20471 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20472 __Pyx_RefNannyFinishContext();
20474 __pyx_L4_argument_unpacking_done:;
20475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4860, __pyx_L1_error)
20476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4861, __pyx_L1_error)
20477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4862, __pyx_L1_error)
20478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4863, __pyx_L1_error)
20479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4864, __pyx_L1_error)
20480 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4865, __pyx_L1_error)
20481 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4866, __pyx_L1_error)
20482 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4867, __pyx_L1_error)
20483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4868, __pyx_L1_error)
20484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4869, __pyx_L1_error)
20485 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4870, __pyx_L1_error)
20486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 4871, __pyx_L1_error)
20487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 4872, __pyx_L1_error)
20488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4873, __pyx_L1_error)
20489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4874, __pyx_L1_error)
20490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4875, __pyx_L1_error)
20491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 4876, __pyx_L1_error)
20492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 4877, __pyx_L1_error)
20493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 4878, __pyx_L1_error)
20494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 4879, __pyx_L1_error)
20495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 4880, __pyx_L1_error)
20496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 4881, __pyx_L1_error)
20497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 4882, __pyx_L1_error)
20498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 4883, __pyx_L1_error)
20499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 4884, __pyx_L1_error)
20500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 4885, __pyx_L1_error)
20501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 4886, __pyx_L1_error)
20502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 4887, __pyx_L1_error)
20503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 4888, __pyx_L1_error)
20504 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4889, __pyx_L1_error)
20505 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4890, __pyx_L1_error)
20506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 4891, __pyx_L1_error)
20507 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4892, __pyx_L1_error)
20508 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4893, __pyx_L1_error)
20509 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 4894, __pyx_L1_error)
20510 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4895, __pyx_L1_error)
20511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4896, __pyx_L1_error)
20512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4897, __pyx_L1_error)
20513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4898, __pyx_L1_error)
20514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 4899, __pyx_L1_error)
20515 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 4900, __pyx_L1_error)
20516 __pyx_r = __pyx_pf_22ctransportCoefficients_94TwophaseNavierStokes_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
20523 __Pyx_RefNannyFinishContext();
20527 static PyObject *__pyx_pf_22ctransportCoefficients_94TwophaseNavierStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
20528 PyObject *__pyx_r = NULL;
20529 __Pyx_RefNannyDeclarations
20530 PyObject *__pyx_t_1 = NULL;
20532 int __pyx_lineno = 0;
20533 const char *__pyx_filename = NULL;
20534 int __pyx_clineno = 0;
20535 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_LS_SO_3D_Evaluate", 0);
20544 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4901, __pyx_L1_error)
20545 __Pyx_GOTREF(__pyx_t_1);
20546 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4901, __pyx_L1_error)
20547 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20556 TwophaseNavierStokes_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
20567 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20570 __Pyx_XDECREF(__pyx_t_1);
20571 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20574 __Pyx_XGIVEREF(__pyx_r);
20575 __Pyx_RefNannyFinishContext();
20588 static PyObject *__pyx_pw_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20589 static PyMethodDef __pyx_mdef_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate = {
"TwophaseStokes_LS_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
20590 static PyObject *__pyx_pw_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20591 double __pyx_v_eps;
20592 double __pyx_v_rho_0;
20593 double __pyx_v_nu_0;
20594 double __pyx_v_rho_1;
20595 double __pyx_v_nu_1;
20596 PyArrayObject *__pyx_v_g = 0;
20597 PyArrayObject *__pyx_v_phi = 0;
20598 PyArrayObject *__pyx_v_p = 0;
20599 PyArrayObject *__pyx_v_grad_p = 0;
20600 PyArrayObject *__pyx_v_u = 0;
20601 PyArrayObject *__pyx_v_v = 0;
20602 PyArrayObject *__pyx_v_mom_u_acc = 0;
20603 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
20604 PyArrayObject *__pyx_v_mom_v_acc = 0;
20605 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
20606 PyArrayObject *__pyx_v_mass_adv = 0;
20607 PyArrayObject *__pyx_v_dmass_adv_u = 0;
20608 PyArrayObject *__pyx_v_dmass_adv_v = 0;
20609 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
20610 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
20611 PyArrayObject *__pyx_v_mom_u_source = 0;
20612 PyArrayObject *__pyx_v_mom_v_source = 0;
20613 PyArrayObject *__pyx_v_mom_u_ham = 0;
20614 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
20615 PyArrayObject *__pyx_v_mom_v_ham = 0;
20616 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
20617 int __pyx_lineno = 0;
20618 const char *__pyx_filename = NULL;
20619 int __pyx_clineno = 0;
20620 PyObject *__pyx_r = 0;
20621 __Pyx_RefNannyDeclarations
20622 __Pyx_RefNannySetupContext(
"TwophaseStokes_LS_SO_2D_Evaluate (wrapper)", 0);
20624 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
20625 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
20626 if (unlikely(__pyx_kwds)) {
20627 Py_ssize_t kw_args;
20628 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20629 switch (pos_args) {
20630 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20631 CYTHON_FALLTHROUGH;
20632 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20633 CYTHON_FALLTHROUGH;
20634 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20635 CYTHON_FALLTHROUGH;
20636 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20637 CYTHON_FALLTHROUGH;
20638 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20639 CYTHON_FALLTHROUGH;
20640 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20641 CYTHON_FALLTHROUGH;
20642 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20643 CYTHON_FALLTHROUGH;
20644 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20645 CYTHON_FALLTHROUGH;
20646 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20647 CYTHON_FALLTHROUGH;
20648 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20649 CYTHON_FALLTHROUGH;
20650 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20651 CYTHON_FALLTHROUGH;
20652 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20653 CYTHON_FALLTHROUGH;
20654 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20655 CYTHON_FALLTHROUGH;
20656 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20657 CYTHON_FALLTHROUGH;
20658 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20659 CYTHON_FALLTHROUGH;
20660 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20661 CYTHON_FALLTHROUGH;
20662 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20663 CYTHON_FALLTHROUGH;
20664 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20665 CYTHON_FALLTHROUGH;
20666 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20667 CYTHON_FALLTHROUGH;
20668 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20669 CYTHON_FALLTHROUGH;
20670 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20671 CYTHON_FALLTHROUGH;
20672 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20673 CYTHON_FALLTHROUGH;
20674 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20675 CYTHON_FALLTHROUGH;
20676 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20677 CYTHON_FALLTHROUGH;
20678 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20679 CYTHON_FALLTHROUGH;
20680 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20681 CYTHON_FALLTHROUGH;
20683 default:
goto __pyx_L5_argtuple_error;
20685 kw_args = PyDict_Size(__pyx_kwds);
20686 switch (pos_args) {
20688 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
20689 else goto __pyx_L5_argtuple_error;
20690 CYTHON_FALLTHROUGH;
20692 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
20694 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 1); __PYX_ERR(0, 4948, __pyx_L3_error)
20696 CYTHON_FALLTHROUGH;
20698 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
20700 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 2); __PYX_ERR(0, 4948, __pyx_L3_error)
20702 CYTHON_FALLTHROUGH;
20704 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
20706 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 3); __PYX_ERR(0, 4948, __pyx_L3_error)
20708 CYTHON_FALLTHROUGH;
20710 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
20712 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 4); __PYX_ERR(0, 4948, __pyx_L3_error)
20714 CYTHON_FALLTHROUGH;
20716 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
20718 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 5); __PYX_ERR(0, 4948, __pyx_L3_error)
20720 CYTHON_FALLTHROUGH;
20722 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
20724 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 6); __PYX_ERR(0, 4948, __pyx_L3_error)
20726 CYTHON_FALLTHROUGH;
20728 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
20730 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 7); __PYX_ERR(0, 4948, __pyx_L3_error)
20732 CYTHON_FALLTHROUGH;
20734 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
20736 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 8); __PYX_ERR(0, 4948, __pyx_L3_error)
20738 CYTHON_FALLTHROUGH;
20740 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20742 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 9); __PYX_ERR(0, 4948, __pyx_L3_error)
20744 CYTHON_FALLTHROUGH;
20746 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
20748 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 10); __PYX_ERR(0, 4948, __pyx_L3_error)
20750 CYTHON_FALLTHROUGH;
20752 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
20754 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 11); __PYX_ERR(0, 4948, __pyx_L3_error)
20756 CYTHON_FALLTHROUGH;
20758 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
20760 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 12); __PYX_ERR(0, 4948, __pyx_L3_error)
20762 CYTHON_FALLTHROUGH;
20764 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
20766 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 13); __PYX_ERR(0, 4948, __pyx_L3_error)
20768 CYTHON_FALLTHROUGH;
20770 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
20772 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 14); __PYX_ERR(0, 4948, __pyx_L3_error)
20774 CYTHON_FALLTHROUGH;
20776 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
20778 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 15); __PYX_ERR(0, 4948, __pyx_L3_error)
20780 CYTHON_FALLTHROUGH;
20782 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
20784 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 16); __PYX_ERR(0, 4948, __pyx_L3_error)
20786 CYTHON_FALLTHROUGH;
20788 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
20790 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 17); __PYX_ERR(0, 4948, __pyx_L3_error)
20792 CYTHON_FALLTHROUGH;
20794 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
20796 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 18); __PYX_ERR(0, 4948, __pyx_L3_error)
20798 CYTHON_FALLTHROUGH;
20800 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
20802 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 19); __PYX_ERR(0, 4948, __pyx_L3_error)
20804 CYTHON_FALLTHROUGH;
20806 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
20808 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 20); __PYX_ERR(0, 4948, __pyx_L3_error)
20810 CYTHON_FALLTHROUGH;
20812 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
20814 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 21); __PYX_ERR(0, 4948, __pyx_L3_error)
20816 CYTHON_FALLTHROUGH;
20818 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
20820 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 22); __PYX_ERR(0, 4948, __pyx_L3_error)
20822 CYTHON_FALLTHROUGH;
20824 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
20826 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 23); __PYX_ERR(0, 4948, __pyx_L3_error)
20828 CYTHON_FALLTHROUGH;
20830 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
20832 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 24); __PYX_ERR(0, 4948, __pyx_L3_error)
20834 CYTHON_FALLTHROUGH;
20836 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
20838 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, 25); __PYX_ERR(0, 4948, __pyx_L3_error)
20841 if (unlikely(kw_args > 0)) {
20842 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseStokes_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 4948, __pyx_L3_error)
20844 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
20845 goto __pyx_L5_argtuple_error;
20847 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20848 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20849 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20850 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20851 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20852 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20853 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20854 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20855 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20856 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20857 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20858 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20859 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20860 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20861 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20862 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20863 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20864 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20865 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
20866 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
20867 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
20868 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
20869 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
20870 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
20871 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
20872 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
20874 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4948, __pyx_L3_error)
20875 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4949, __pyx_L3_error)
20876 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4950, __pyx_L3_error)
20877 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4951, __pyx_L3_error)
20878 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4952, __pyx_L3_error)
20879 __pyx_v_g = ((PyArrayObject *)values[5]);
20880 __pyx_v_phi = ((PyArrayObject *)values[6]);
20881 __pyx_v_p = ((PyArrayObject *)values[7]);
20882 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
20883 __pyx_v_u = ((PyArrayObject *)values[9]);
20884 __pyx_v_v = ((PyArrayObject *)values[10]);
20885 __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
20886 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
20887 __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
20888 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
20889 __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
20890 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
20891 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
20892 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[18]);
20893 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[19]);
20894 __pyx_v_mom_u_source = ((PyArrayObject *)values[20]);
20895 __pyx_v_mom_v_source = ((PyArrayObject *)values[21]);
20896 __pyx_v_mom_u_ham = ((PyArrayObject *)values[22]);
20897 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[23]);
20898 __pyx_v_mom_v_ham = ((PyArrayObject *)values[24]);
20899 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[25]);
20901 goto __pyx_L4_argument_unpacking_done;
20902 __pyx_L5_argtuple_error:;
20903 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_2D_Evaluate", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4948, __pyx_L3_error)
20905 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20906 __Pyx_RefNannyFinishContext();
20908 __pyx_L4_argument_unpacking_done:;
20909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 4953, __pyx_L1_error)
20910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 4954, __pyx_L1_error)
20911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4955, __pyx_L1_error)
20912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 4956, __pyx_L1_error)
20913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4957, __pyx_L1_error)
20914 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4958, __pyx_L1_error)
20915 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 4959, __pyx_L1_error)
20916 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 4960, __pyx_L1_error)
20917 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 4961, __pyx_L1_error)
20918 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 4962, __pyx_L1_error)
20919 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 4963, __pyx_L1_error)
20920 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 4964, __pyx_L1_error)
20921 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 4965, __pyx_L1_error)
20922 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 4966, __pyx_L1_error)
20923 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 4967, __pyx_L1_error)
20924 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 4968, __pyx_L1_error)
20925 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 4969, __pyx_L1_error)
20926 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 4970, __pyx_L1_error)
20927 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 4971, __pyx_L1_error)
20928 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 4972, __pyx_L1_error)
20929 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 4973, __pyx_L1_error)
20930 __pyx_r = __pyx_pf_22ctransportCoefficients_96TwophaseStokes_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
20937 __Pyx_RefNannyFinishContext();
20941 static PyObject *__pyx_pf_22ctransportCoefficients_96TwophaseStokes_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
20942 PyObject *__pyx_r = NULL;
20943 __Pyx_RefNannyDeclarations
20944 PyObject *__pyx_t_1 = NULL;
20946 int __pyx_lineno = 0;
20947 const char *__pyx_filename = NULL;
20948 int __pyx_clineno = 0;
20949 __Pyx_RefNannySetupContext(
"TwophaseStokes_LS_SO_2D_Evaluate", 0);
20958 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4974, __pyx_L1_error)
20959 __Pyx_GOTREF(__pyx_t_1);
20960 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4974, __pyx_L1_error)
20961 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20970 TwophaseStokes_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
20981 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20984 __Pyx_XDECREF(__pyx_t_1);
20985 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
20988 __Pyx_XGIVEREF(__pyx_r);
20989 __Pyx_RefNannyFinishContext();
21002 static PyObject *__pyx_pw_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21003 static PyMethodDef __pyx_mdef_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate = {
"TwophaseStokes_LS_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
21004 static PyObject *__pyx_pw_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21005 double __pyx_v_eps;
21006 double __pyx_v_rho_0;
21007 double __pyx_v_nu_0;
21008 double __pyx_v_rho_1;
21009 double __pyx_v_nu_1;
21010 PyArrayObject *__pyx_v_g = 0;
21011 PyArrayObject *__pyx_v_phi = 0;
21012 PyArrayObject *__pyx_v_p = 0;
21013 PyArrayObject *__pyx_v_grad_p = 0;
21014 PyArrayObject *__pyx_v_u = 0;
21015 PyArrayObject *__pyx_v_v = 0;
21016 PyArrayObject *__pyx_v_w = 0;
21017 PyArrayObject *__pyx_v_mom_u_acc = 0;
21018 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
21019 PyArrayObject *__pyx_v_mom_v_acc = 0;
21020 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
21021 PyArrayObject *__pyx_v_mom_w_acc = 0;
21022 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
21023 PyArrayObject *__pyx_v_mass_adv = 0;
21024 PyArrayObject *__pyx_v_dmass_adv_u = 0;
21025 PyArrayObject *__pyx_v_dmass_adv_v = 0;
21026 PyArrayObject *__pyx_v_dmass_adv_w = 0;
21027 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
21028 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
21029 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
21030 PyArrayObject *__pyx_v_mom_u_source = 0;
21031 PyArrayObject *__pyx_v_mom_v_source = 0;
21032 PyArrayObject *__pyx_v_mom_w_source = 0;
21033 PyArrayObject *__pyx_v_mom_u_ham = 0;
21034 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
21035 PyArrayObject *__pyx_v_mom_v_ham = 0;
21036 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
21037 PyArrayObject *__pyx_v_mom_w_ham = 0;
21038 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
21039 int __pyx_lineno = 0;
21040 const char *__pyx_filename = NULL;
21041 int __pyx_clineno = 0;
21042 PyObject *__pyx_r = 0;
21043 __Pyx_RefNannyDeclarations
21044 __Pyx_RefNannySetupContext(
"TwophaseStokes_LS_SO_3D_Evaluate (wrapper)", 0);
21046 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
21047 PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21048 if (unlikely(__pyx_kwds)) {
21049 Py_ssize_t kw_args;
21050 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21051 switch (pos_args) {
21052 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
21053 CYTHON_FALLTHROUGH;
21054 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
21055 CYTHON_FALLTHROUGH;
21056 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21057 CYTHON_FALLTHROUGH;
21058 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21059 CYTHON_FALLTHROUGH;
21060 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21061 CYTHON_FALLTHROUGH;
21062 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21063 CYTHON_FALLTHROUGH;
21064 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21065 CYTHON_FALLTHROUGH;
21066 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21067 CYTHON_FALLTHROUGH;
21068 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21069 CYTHON_FALLTHROUGH;
21070 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21071 CYTHON_FALLTHROUGH;
21072 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21073 CYTHON_FALLTHROUGH;
21074 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21075 CYTHON_FALLTHROUGH;
21076 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21077 CYTHON_FALLTHROUGH;
21078 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21079 CYTHON_FALLTHROUGH;
21080 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21081 CYTHON_FALLTHROUGH;
21082 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21083 CYTHON_FALLTHROUGH;
21084 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21085 CYTHON_FALLTHROUGH;
21086 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21087 CYTHON_FALLTHROUGH;
21088 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21089 CYTHON_FALLTHROUGH;
21090 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21091 CYTHON_FALLTHROUGH;
21092 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21093 CYTHON_FALLTHROUGH;
21094 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21095 CYTHON_FALLTHROUGH;
21096 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21097 CYTHON_FALLTHROUGH;
21098 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21099 CYTHON_FALLTHROUGH;
21100 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21101 CYTHON_FALLTHROUGH;
21102 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21103 CYTHON_FALLTHROUGH;
21104 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21105 CYTHON_FALLTHROUGH;
21106 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21107 CYTHON_FALLTHROUGH;
21108 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21109 CYTHON_FALLTHROUGH;
21110 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21111 CYTHON_FALLTHROUGH;
21112 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21113 CYTHON_FALLTHROUGH;
21114 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21115 CYTHON_FALLTHROUGH;
21116 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21117 CYTHON_FALLTHROUGH;
21118 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21119 CYTHON_FALLTHROUGH;
21121 default:
goto __pyx_L5_argtuple_error;
21123 kw_args = PyDict_Size(__pyx_kwds);
21124 switch (pos_args) {
21126 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
21127 else goto __pyx_L5_argtuple_error;
21128 CYTHON_FALLTHROUGH;
21130 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
21132 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 1); __PYX_ERR(0, 5001, __pyx_L3_error)
21134 CYTHON_FALLTHROUGH;
21136 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
21138 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 2); __PYX_ERR(0, 5001, __pyx_L3_error)
21140 CYTHON_FALLTHROUGH;
21142 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
21144 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 3); __PYX_ERR(0, 5001, __pyx_L3_error)
21146 CYTHON_FALLTHROUGH;
21148 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
21150 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 4); __PYX_ERR(0, 5001, __pyx_L3_error)
21152 CYTHON_FALLTHROUGH;
21154 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
21156 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 5); __PYX_ERR(0, 5001, __pyx_L3_error)
21158 CYTHON_FALLTHROUGH;
21160 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
21162 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 6); __PYX_ERR(0, 5001, __pyx_L3_error)
21164 CYTHON_FALLTHROUGH;
21166 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
21168 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 7); __PYX_ERR(0, 5001, __pyx_L3_error)
21170 CYTHON_FALLTHROUGH;
21172 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
21174 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 8); __PYX_ERR(0, 5001, __pyx_L3_error)
21176 CYTHON_FALLTHROUGH;
21178 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21180 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 9); __PYX_ERR(0, 5001, __pyx_L3_error)
21182 CYTHON_FALLTHROUGH;
21184 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
21186 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 10); __PYX_ERR(0, 5001, __pyx_L3_error)
21188 CYTHON_FALLTHROUGH;
21190 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
21192 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 11); __PYX_ERR(0, 5001, __pyx_L3_error)
21194 CYTHON_FALLTHROUGH;
21196 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
21198 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 12); __PYX_ERR(0, 5001, __pyx_L3_error)
21200 CYTHON_FALLTHROUGH;
21202 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
21204 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 13); __PYX_ERR(0, 5001, __pyx_L3_error)
21206 CYTHON_FALLTHROUGH;
21208 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
21210 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 14); __PYX_ERR(0, 5001, __pyx_L3_error)
21212 CYTHON_FALLTHROUGH;
21214 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
21216 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 15); __PYX_ERR(0, 5001, __pyx_L3_error)
21218 CYTHON_FALLTHROUGH;
21220 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
21222 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 16); __PYX_ERR(0, 5001, __pyx_L3_error)
21224 CYTHON_FALLTHROUGH;
21226 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
21228 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 17); __PYX_ERR(0, 5001, __pyx_L3_error)
21230 CYTHON_FALLTHROUGH;
21232 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
21234 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 18); __PYX_ERR(0, 5001, __pyx_L3_error)
21236 CYTHON_FALLTHROUGH;
21238 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
21240 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 19); __PYX_ERR(0, 5001, __pyx_L3_error)
21242 CYTHON_FALLTHROUGH;
21244 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
21246 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 20); __PYX_ERR(0, 5001, __pyx_L3_error)
21248 CYTHON_FALLTHROUGH;
21250 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
21252 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 21); __PYX_ERR(0, 5001, __pyx_L3_error)
21254 CYTHON_FALLTHROUGH;
21256 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
21258 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 22); __PYX_ERR(0, 5001, __pyx_L3_error)
21260 CYTHON_FALLTHROUGH;
21262 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
21264 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 23); __PYX_ERR(0, 5001, __pyx_L3_error)
21266 CYTHON_FALLTHROUGH;
21268 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
21270 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 24); __PYX_ERR(0, 5001, __pyx_L3_error)
21272 CYTHON_FALLTHROUGH;
21274 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
21276 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 25); __PYX_ERR(0, 5001, __pyx_L3_error)
21278 CYTHON_FALLTHROUGH;
21280 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
21282 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 26); __PYX_ERR(0, 5001, __pyx_L3_error)
21284 CYTHON_FALLTHROUGH;
21286 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
21288 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 27); __PYX_ERR(0, 5001, __pyx_L3_error)
21290 CYTHON_FALLTHROUGH;
21292 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
21294 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 28); __PYX_ERR(0, 5001, __pyx_L3_error)
21296 CYTHON_FALLTHROUGH;
21298 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
21300 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 29); __PYX_ERR(0, 5001, __pyx_L3_error)
21302 CYTHON_FALLTHROUGH;
21304 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
21306 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 30); __PYX_ERR(0, 5001, __pyx_L3_error)
21308 CYTHON_FALLTHROUGH;
21310 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
21312 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 31); __PYX_ERR(0, 5001, __pyx_L3_error)
21314 CYTHON_FALLTHROUGH;
21316 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
21318 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 32); __PYX_ERR(0, 5001, __pyx_L3_error)
21320 CYTHON_FALLTHROUGH;
21322 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
21324 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, 33); __PYX_ERR(0, 5001, __pyx_L3_error)
21327 if (unlikely(kw_args > 0)) {
21328 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseStokes_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 5001, __pyx_L3_error)
21330 }
else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
21331 goto __pyx_L5_argtuple_error;
21333 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21334 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21335 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21336 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21337 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21338 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21339 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21340 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21341 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21342 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21343 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21344 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21345 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21346 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21347 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21348 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21349 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21350 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21351 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21352 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21353 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21354 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21355 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21356 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21357 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21358 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21359 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21360 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21361 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21362 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21363 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21364 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21365 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
21366 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
21368 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5001, __pyx_L3_error)
21369 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5002, __pyx_L3_error)
21370 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5003, __pyx_L3_error)
21371 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5004, __pyx_L3_error)
21372 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5005, __pyx_L3_error)
21373 __pyx_v_g = ((PyArrayObject *)values[5]);
21374 __pyx_v_phi = ((PyArrayObject *)values[6]);
21375 __pyx_v_p = ((PyArrayObject *)values[7]);
21376 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
21377 __pyx_v_u = ((PyArrayObject *)values[9]);
21378 __pyx_v_v = ((PyArrayObject *)values[10]);
21379 __pyx_v_w = ((PyArrayObject *)values[11]);
21380 __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
21381 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
21382 __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
21383 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
21384 __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
21385 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
21386 __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
21387 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
21388 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
21389 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
21390 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[22]);
21391 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[23]);
21392 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[24]);
21393 __pyx_v_mom_u_source = ((PyArrayObject *)values[25]);
21394 __pyx_v_mom_v_source = ((PyArrayObject *)values[26]);
21395 __pyx_v_mom_w_source = ((PyArrayObject *)values[27]);
21396 __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
21397 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
21398 __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
21399 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
21400 __pyx_v_mom_w_ham = ((PyArrayObject *)values[32]);
21401 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[33]);
21403 goto __pyx_L4_argument_unpacking_done;
21404 __pyx_L5_argtuple_error:;
21405 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_LS_SO_3D_Evaluate", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5001, __pyx_L3_error)
21407 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21408 __Pyx_RefNannyFinishContext();
21410 __pyx_L4_argument_unpacking_done:;
21411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 5006, __pyx_L1_error)
21412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5007, __pyx_L1_error)
21413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5008, __pyx_L1_error)
21414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 5009, __pyx_L1_error)
21415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5010, __pyx_L1_error)
21416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5011, __pyx_L1_error)
21417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 5012, __pyx_L1_error)
21418 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 5013, __pyx_L1_error)
21419 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 5014, __pyx_L1_error)
21420 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 5015, __pyx_L1_error)
21421 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 5016, __pyx_L1_error)
21422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 5017, __pyx_L1_error)
21423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 5018, __pyx_L1_error)
21424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 5019, __pyx_L1_error)
21425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 5020, __pyx_L1_error)
21426 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 5021, __pyx_L1_error)
21427 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 5022, __pyx_L1_error)
21428 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 5023, __pyx_L1_error)
21429 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 5024, __pyx_L1_error)
21430 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 5025, __pyx_L1_error)
21431 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 5026, __pyx_L1_error)
21432 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 5027, __pyx_L1_error)
21433 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 5028, __pyx_L1_error)
21434 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 5029, __pyx_L1_error)
21435 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5030, __pyx_L1_error)
21436 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 5031, __pyx_L1_error)
21437 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5032, __pyx_L1_error)
21438 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 5033, __pyx_L1_error)
21439 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 5034, __pyx_L1_error)
21440 __pyx_r = __pyx_pf_22ctransportCoefficients_98TwophaseStokes_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_phi, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
21447 __Pyx_RefNannyFinishContext();
21451 static PyObject *__pyx_pf_22ctransportCoefficients_98TwophaseStokes_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
21452 PyObject *__pyx_r = NULL;
21453 __Pyx_RefNannyDeclarations
21454 PyObject *__pyx_t_1 = NULL;
21456 int __pyx_lineno = 0;
21457 const char *__pyx_filename = NULL;
21458 int __pyx_clineno = 0;
21459 __Pyx_RefNannySetupContext(
"TwophaseStokes_LS_SO_3D_Evaluate", 0);
21468 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5035, __pyx_L1_error)
21469 __Pyx_GOTREF(__pyx_t_1);
21470 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5035, __pyx_L1_error)
21471 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21480 TwophaseStokes_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
21491 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21494 __Pyx_XDECREF(__pyx_t_1);
21495 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21498 __Pyx_XGIVEREF(__pyx_r);
21499 __Pyx_RefNannyFinishContext();
21512 static PyObject *__pyx_pw_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21513 static PyMethodDef __pyx_mdef_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate = {
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
21514 static PyObject *__pyx_pw_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21515 double __pyx_v_eps;
21516 double __pyx_v_rho_0;
21517 double __pyx_v_nu_0;
21518 double __pyx_v_rho_1;
21519 double __pyx_v_nu_1;
21520 PyArrayObject *__pyx_v_g = 0;
21521 PyArrayObject *__pyx_v_vof = 0;
21522 PyArrayObject *__pyx_v_p = 0;
21523 PyArrayObject *__pyx_v_grad_p = 0;
21524 PyArrayObject *__pyx_v_u = 0;
21525 PyArrayObject *__pyx_v_v = 0;
21526 PyArrayObject *__pyx_v_mom_u_acc = 0;
21527 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
21528 PyArrayObject *__pyx_v_mom_v_acc = 0;
21529 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
21530 PyArrayObject *__pyx_v_mass_adv = 0;
21531 PyArrayObject *__pyx_v_dmass_adv_u = 0;
21532 PyArrayObject *__pyx_v_dmass_adv_v = 0;
21533 PyArrayObject *__pyx_v_mom_u_adv = 0;
21534 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
21535 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
21536 PyArrayObject *__pyx_v_mom_v_adv = 0;
21537 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
21538 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
21539 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
21540 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
21541 PyArrayObject *__pyx_v_mom_u_source = 0;
21542 PyArrayObject *__pyx_v_mom_v_source = 0;
21543 PyArrayObject *__pyx_v_mom_u_ham = 0;
21544 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
21545 PyArrayObject *__pyx_v_mom_v_ham = 0;
21546 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
21547 int __pyx_lineno = 0;
21548 const char *__pyx_filename = NULL;
21549 int __pyx_clineno = 0;
21550 PyObject *__pyx_r = 0;
21551 __Pyx_RefNannyDeclarations
21552 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate (wrapper)", 0);
21554 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
21555 PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21556 if (unlikely(__pyx_kwds)) {
21557 Py_ssize_t kw_args;
21558 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21559 switch (pos_args) {
21560 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21561 CYTHON_FALLTHROUGH;
21562 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21563 CYTHON_FALLTHROUGH;
21564 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21565 CYTHON_FALLTHROUGH;
21566 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21567 CYTHON_FALLTHROUGH;
21568 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21569 CYTHON_FALLTHROUGH;
21570 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21571 CYTHON_FALLTHROUGH;
21572 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21573 CYTHON_FALLTHROUGH;
21574 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21575 CYTHON_FALLTHROUGH;
21576 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21577 CYTHON_FALLTHROUGH;
21578 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21579 CYTHON_FALLTHROUGH;
21580 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21581 CYTHON_FALLTHROUGH;
21582 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21583 CYTHON_FALLTHROUGH;
21584 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21585 CYTHON_FALLTHROUGH;
21586 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21587 CYTHON_FALLTHROUGH;
21588 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21589 CYTHON_FALLTHROUGH;
21590 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21591 CYTHON_FALLTHROUGH;
21592 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21593 CYTHON_FALLTHROUGH;
21594 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21595 CYTHON_FALLTHROUGH;
21596 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21597 CYTHON_FALLTHROUGH;
21598 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21599 CYTHON_FALLTHROUGH;
21600 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21601 CYTHON_FALLTHROUGH;
21602 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21603 CYTHON_FALLTHROUGH;
21604 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21605 CYTHON_FALLTHROUGH;
21606 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21607 CYTHON_FALLTHROUGH;
21608 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21609 CYTHON_FALLTHROUGH;
21610 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21611 CYTHON_FALLTHROUGH;
21612 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21613 CYTHON_FALLTHROUGH;
21614 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21615 CYTHON_FALLTHROUGH;
21616 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21617 CYTHON_FALLTHROUGH;
21618 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21619 CYTHON_FALLTHROUGH;
21620 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21621 CYTHON_FALLTHROUGH;
21622 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21623 CYTHON_FALLTHROUGH;
21625 default:
goto __pyx_L5_argtuple_error;
21627 kw_args = PyDict_Size(__pyx_kwds);
21628 switch (pos_args) {
21630 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
21631 else goto __pyx_L5_argtuple_error;
21632 CYTHON_FALLTHROUGH;
21634 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
21636 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 1); __PYX_ERR(0, 5070, __pyx_L3_error)
21638 CYTHON_FALLTHROUGH;
21640 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
21642 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 2); __PYX_ERR(0, 5070, __pyx_L3_error)
21644 CYTHON_FALLTHROUGH;
21646 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
21648 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 3); __PYX_ERR(0, 5070, __pyx_L3_error)
21650 CYTHON_FALLTHROUGH;
21652 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
21654 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 4); __PYX_ERR(0, 5070, __pyx_L3_error)
21656 CYTHON_FALLTHROUGH;
21658 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
21660 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 5); __PYX_ERR(0, 5070, __pyx_L3_error)
21662 CYTHON_FALLTHROUGH;
21664 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
21666 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 6); __PYX_ERR(0, 5070, __pyx_L3_error)
21668 CYTHON_FALLTHROUGH;
21670 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
21672 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 7); __PYX_ERR(0, 5070, __pyx_L3_error)
21674 CYTHON_FALLTHROUGH;
21676 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
21678 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 8); __PYX_ERR(0, 5070, __pyx_L3_error)
21680 CYTHON_FALLTHROUGH;
21682 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21684 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 9); __PYX_ERR(0, 5070, __pyx_L3_error)
21686 CYTHON_FALLTHROUGH;
21688 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
21690 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 10); __PYX_ERR(0, 5070, __pyx_L3_error)
21692 CYTHON_FALLTHROUGH;
21694 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
21696 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 11); __PYX_ERR(0, 5070, __pyx_L3_error)
21698 CYTHON_FALLTHROUGH;
21700 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
21702 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 12); __PYX_ERR(0, 5070, __pyx_L3_error)
21704 CYTHON_FALLTHROUGH;
21706 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
21708 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 13); __PYX_ERR(0, 5070, __pyx_L3_error)
21710 CYTHON_FALLTHROUGH;
21712 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
21714 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 14); __PYX_ERR(0, 5070, __pyx_L3_error)
21716 CYTHON_FALLTHROUGH;
21718 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
21720 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 15); __PYX_ERR(0, 5070, __pyx_L3_error)
21722 CYTHON_FALLTHROUGH;
21724 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
21726 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 16); __PYX_ERR(0, 5070, __pyx_L3_error)
21728 CYTHON_FALLTHROUGH;
21730 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
21732 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 17); __PYX_ERR(0, 5070, __pyx_L3_error)
21734 CYTHON_FALLTHROUGH;
21736 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
21738 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 18); __PYX_ERR(0, 5070, __pyx_L3_error)
21740 CYTHON_FALLTHROUGH;
21742 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
21744 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 19); __PYX_ERR(0, 5070, __pyx_L3_error)
21746 CYTHON_FALLTHROUGH;
21748 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
21750 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 20); __PYX_ERR(0, 5070, __pyx_L3_error)
21752 CYTHON_FALLTHROUGH;
21754 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
21756 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 21); __PYX_ERR(0, 5070, __pyx_L3_error)
21758 CYTHON_FALLTHROUGH;
21760 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
21762 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 22); __PYX_ERR(0, 5070, __pyx_L3_error)
21764 CYTHON_FALLTHROUGH;
21766 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
21768 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 23); __PYX_ERR(0, 5070, __pyx_L3_error)
21770 CYTHON_FALLTHROUGH;
21772 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
21774 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 24); __PYX_ERR(0, 5070, __pyx_L3_error)
21776 CYTHON_FALLTHROUGH;
21778 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
21780 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 25); __PYX_ERR(0, 5070, __pyx_L3_error)
21782 CYTHON_FALLTHROUGH;
21784 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
21786 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 26); __PYX_ERR(0, 5070, __pyx_L3_error)
21788 CYTHON_FALLTHROUGH;
21790 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
21792 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 27); __PYX_ERR(0, 5070, __pyx_L3_error)
21794 CYTHON_FALLTHROUGH;
21796 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
21798 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 28); __PYX_ERR(0, 5070, __pyx_L3_error)
21800 CYTHON_FALLTHROUGH;
21802 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
21804 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 29); __PYX_ERR(0, 5070, __pyx_L3_error)
21806 CYTHON_FALLTHROUGH;
21808 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
21810 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 30); __PYX_ERR(0, 5070, __pyx_L3_error)
21812 CYTHON_FALLTHROUGH;
21814 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
21816 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, 31); __PYX_ERR(0, 5070, __pyx_L3_error)
21819 if (unlikely(kw_args > 0)) {
21820 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_VOF_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 5070, __pyx_L3_error)
21822 }
else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
21823 goto __pyx_L5_argtuple_error;
21825 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21826 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21827 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21828 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21829 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21830 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21831 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21832 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21833 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21834 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21835 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21836 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21837 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21838 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21839 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21840 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21841 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21842 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
21843 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
21844 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
21845 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
21846 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
21847 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
21848 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
21849 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
21850 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
21851 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
21852 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
21853 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
21854 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
21855 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
21856 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
21858 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5070, __pyx_L3_error)
21859 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5071, __pyx_L3_error)
21860 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5072, __pyx_L3_error)
21861 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5073, __pyx_L3_error)
21862 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5074, __pyx_L3_error)
21863 __pyx_v_g = ((PyArrayObject *)values[5]);
21864 __pyx_v_vof = ((PyArrayObject *)values[6]);
21865 __pyx_v_p = ((PyArrayObject *)values[7]);
21866 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
21867 __pyx_v_u = ((PyArrayObject *)values[9]);
21868 __pyx_v_v = ((PyArrayObject *)values[10]);
21869 __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
21870 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
21871 __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
21872 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
21873 __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
21874 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
21875 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
21876 __pyx_v_mom_u_adv = ((PyArrayObject *)values[18]);
21877 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[19]);
21878 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[20]);
21879 __pyx_v_mom_v_adv = ((PyArrayObject *)values[21]);
21880 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[22]);
21881 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[23]);
21882 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[24]);
21883 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[25]);
21884 __pyx_v_mom_u_source = ((PyArrayObject *)values[26]);
21885 __pyx_v_mom_v_source = ((PyArrayObject *)values[27]);
21886 __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
21887 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
21888 __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
21889 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
21891 goto __pyx_L4_argument_unpacking_done;
21892 __pyx_L5_argtuple_error:;
21893 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5070, __pyx_L3_error)
21895 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21896 __Pyx_RefNannyFinishContext();
21898 __pyx_L4_argument_unpacking_done:;
21899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 5075, __pyx_L1_error)
21900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1,
"vof", 0))) __PYX_ERR(0, 5076, __pyx_L1_error)
21901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5077, __pyx_L1_error)
21902 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 5078, __pyx_L1_error)
21903 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5079, __pyx_L1_error)
21904 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5080, __pyx_L1_error)
21905 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 5081, __pyx_L1_error)
21906 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 5082, __pyx_L1_error)
21907 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 5083, __pyx_L1_error)
21908 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 5084, __pyx_L1_error)
21909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 5085, __pyx_L1_error)
21910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 5086, __pyx_L1_error)
21911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 5087, __pyx_L1_error)
21912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 5088, __pyx_L1_error)
21913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 5089, __pyx_L1_error)
21914 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 5090, __pyx_L1_error)
21915 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 5091, __pyx_L1_error)
21916 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 5092, __pyx_L1_error)
21917 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 5093, __pyx_L1_error)
21918 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 5094, __pyx_L1_error)
21919 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 5095, __pyx_L1_error)
21920 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 5096, __pyx_L1_error)
21921 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 5097, __pyx_L1_error)
21922 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 5098, __pyx_L1_error)
21923 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5099, __pyx_L1_error)
21924 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 5100, __pyx_L1_error)
21925 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5101, __pyx_L1_error)
21926 __pyx_r = __pyx_pf_22ctransportCoefficients_100TwophaseNavierStokes_VOF_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
21933 __Pyx_RefNannyFinishContext();
21937 static PyObject *__pyx_pf_22ctransportCoefficients_100TwophaseNavierStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
21938 PyObject *__pyx_r = NULL;
21939 __Pyx_RefNannyDeclarations
21940 PyObject *__pyx_t_1 = NULL;
21942 int __pyx_lineno = 0;
21943 const char *__pyx_filename = NULL;
21944 int __pyx_clineno = 0;
21945 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_VOF_SO_2D_Evaluate", 0);
21954 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5102, __pyx_L1_error)
21955 __Pyx_GOTREF(__pyx_t_1);
21956 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5102, __pyx_L1_error)
21957 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21966 TwophaseNavierStokes_VOF_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_vof->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
21977 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21980 __Pyx_XDECREF(__pyx_t_1);
21981 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
21984 __Pyx_XGIVEREF(__pyx_r);
21985 __Pyx_RefNannyFinishContext();
21998 static PyObject *__pyx_pw_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21999 static PyMethodDef __pyx_mdef_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate = {
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
22000 static PyObject *__pyx_pw_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22001 double __pyx_v_eps;
22002 double __pyx_v_rho_0;
22003 double __pyx_v_nu_0;
22004 double __pyx_v_rho_1;
22005 double __pyx_v_nu_1;
22006 PyArrayObject *__pyx_v_g = 0;
22007 PyArrayObject *__pyx_v_vof = 0;
22008 PyArrayObject *__pyx_v_p = 0;
22009 PyArrayObject *__pyx_v_grad_p = 0;
22010 PyArrayObject *__pyx_v_u = 0;
22011 PyArrayObject *__pyx_v_v = 0;
22012 PyArrayObject *__pyx_v_w = 0;
22013 PyArrayObject *__pyx_v_mom_u_acc = 0;
22014 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
22015 PyArrayObject *__pyx_v_mom_v_acc = 0;
22016 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
22017 PyArrayObject *__pyx_v_mom_w_acc = 0;
22018 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
22019 PyArrayObject *__pyx_v_mass_adv = 0;
22020 PyArrayObject *__pyx_v_dmass_adv_u = 0;
22021 PyArrayObject *__pyx_v_dmass_adv_v = 0;
22022 PyArrayObject *__pyx_v_dmass_adv_w = 0;
22023 PyArrayObject *__pyx_v_mom_u_adv = 0;
22024 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
22025 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
22026 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
22027 PyArrayObject *__pyx_v_mom_v_adv = 0;
22028 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
22029 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
22030 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
22031 PyArrayObject *__pyx_v_mom_w_adv = 0;
22032 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
22033 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
22034 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
22035 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
22036 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
22037 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
22038 PyArrayObject *__pyx_v_mom_u_source = 0;
22039 PyArrayObject *__pyx_v_mom_v_source = 0;
22040 PyArrayObject *__pyx_v_mom_w_source = 0;
22041 PyArrayObject *__pyx_v_mom_u_ham = 0;
22042 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
22043 PyArrayObject *__pyx_v_mom_v_ham = 0;
22044 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
22045 PyArrayObject *__pyx_v_mom_w_ham = 0;
22046 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
22047 int __pyx_lineno = 0;
22048 const char *__pyx_filename = NULL;
22049 int __pyx_clineno = 0;
22050 PyObject *__pyx_r = 0;
22051 __Pyx_RefNannyDeclarations
22052 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate (wrapper)", 0);
22054 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
22055 PyObject* values[46] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22056 if (unlikely(__pyx_kwds)) {
22057 Py_ssize_t kw_args;
22058 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22059 switch (pos_args) {
22060 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
22061 CYTHON_FALLTHROUGH;
22062 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
22063 CYTHON_FALLTHROUGH;
22064 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
22065 CYTHON_FALLTHROUGH;
22066 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
22067 CYTHON_FALLTHROUGH;
22068 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
22069 CYTHON_FALLTHROUGH;
22070 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
22071 CYTHON_FALLTHROUGH;
22072 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
22073 CYTHON_FALLTHROUGH;
22074 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
22075 CYTHON_FALLTHROUGH;
22076 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
22077 CYTHON_FALLTHROUGH;
22078 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
22079 CYTHON_FALLTHROUGH;
22080 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
22081 CYTHON_FALLTHROUGH;
22082 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
22083 CYTHON_FALLTHROUGH;
22084 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
22085 CYTHON_FALLTHROUGH;
22086 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
22087 CYTHON_FALLTHROUGH;
22088 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
22089 CYTHON_FALLTHROUGH;
22090 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
22091 CYTHON_FALLTHROUGH;
22092 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
22093 CYTHON_FALLTHROUGH;
22094 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
22095 CYTHON_FALLTHROUGH;
22096 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
22097 CYTHON_FALLTHROUGH;
22098 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
22099 CYTHON_FALLTHROUGH;
22100 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22101 CYTHON_FALLTHROUGH;
22102 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22103 CYTHON_FALLTHROUGH;
22104 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22105 CYTHON_FALLTHROUGH;
22106 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22107 CYTHON_FALLTHROUGH;
22108 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22109 CYTHON_FALLTHROUGH;
22110 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22111 CYTHON_FALLTHROUGH;
22112 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22113 CYTHON_FALLTHROUGH;
22114 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22115 CYTHON_FALLTHROUGH;
22116 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22117 CYTHON_FALLTHROUGH;
22118 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22119 CYTHON_FALLTHROUGH;
22120 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22121 CYTHON_FALLTHROUGH;
22122 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22123 CYTHON_FALLTHROUGH;
22124 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22125 CYTHON_FALLTHROUGH;
22126 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22127 CYTHON_FALLTHROUGH;
22128 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22129 CYTHON_FALLTHROUGH;
22130 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22131 CYTHON_FALLTHROUGH;
22132 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22133 CYTHON_FALLTHROUGH;
22134 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22135 CYTHON_FALLTHROUGH;
22136 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22137 CYTHON_FALLTHROUGH;
22138 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22139 CYTHON_FALLTHROUGH;
22140 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22141 CYTHON_FALLTHROUGH;
22142 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22143 CYTHON_FALLTHROUGH;
22144 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22145 CYTHON_FALLTHROUGH;
22146 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22147 CYTHON_FALLTHROUGH;
22148 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22149 CYTHON_FALLTHROUGH;
22150 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22151 CYTHON_FALLTHROUGH;
22153 default:
goto __pyx_L5_argtuple_error;
22155 kw_args = PyDict_Size(__pyx_kwds);
22156 switch (pos_args) {
22158 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
22159 else goto __pyx_L5_argtuple_error;
22160 CYTHON_FALLTHROUGH;
22162 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
22164 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 1); __PYX_ERR(0, 5135, __pyx_L3_error)
22166 CYTHON_FALLTHROUGH;
22168 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
22170 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 2); __PYX_ERR(0, 5135, __pyx_L3_error)
22172 CYTHON_FALLTHROUGH;
22174 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
22176 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 3); __PYX_ERR(0, 5135, __pyx_L3_error)
22178 CYTHON_FALLTHROUGH;
22180 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
22182 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 4); __PYX_ERR(0, 5135, __pyx_L3_error)
22184 CYTHON_FALLTHROUGH;
22186 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
22188 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 5); __PYX_ERR(0, 5135, __pyx_L3_error)
22190 CYTHON_FALLTHROUGH;
22192 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
22194 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 6); __PYX_ERR(0, 5135, __pyx_L3_error)
22196 CYTHON_FALLTHROUGH;
22198 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
22200 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 7); __PYX_ERR(0, 5135, __pyx_L3_error)
22202 CYTHON_FALLTHROUGH;
22204 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
22206 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 8); __PYX_ERR(0, 5135, __pyx_L3_error)
22208 CYTHON_FALLTHROUGH;
22210 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22212 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 9); __PYX_ERR(0, 5135, __pyx_L3_error)
22214 CYTHON_FALLTHROUGH;
22216 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
22218 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 10); __PYX_ERR(0, 5135, __pyx_L3_error)
22220 CYTHON_FALLTHROUGH;
22222 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
22224 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 11); __PYX_ERR(0, 5135, __pyx_L3_error)
22226 CYTHON_FALLTHROUGH;
22228 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
22230 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 12); __PYX_ERR(0, 5135, __pyx_L3_error)
22232 CYTHON_FALLTHROUGH;
22234 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
22236 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 13); __PYX_ERR(0, 5135, __pyx_L3_error)
22238 CYTHON_FALLTHROUGH;
22240 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
22242 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 14); __PYX_ERR(0, 5135, __pyx_L3_error)
22244 CYTHON_FALLTHROUGH;
22246 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
22248 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 15); __PYX_ERR(0, 5135, __pyx_L3_error)
22250 CYTHON_FALLTHROUGH;
22252 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
22254 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 16); __PYX_ERR(0, 5135, __pyx_L3_error)
22256 CYTHON_FALLTHROUGH;
22258 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
22260 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 17); __PYX_ERR(0, 5135, __pyx_L3_error)
22262 CYTHON_FALLTHROUGH;
22264 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
22266 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 18); __PYX_ERR(0, 5135, __pyx_L3_error)
22268 CYTHON_FALLTHROUGH;
22270 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
22272 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 19); __PYX_ERR(0, 5135, __pyx_L3_error)
22274 CYTHON_FALLTHROUGH;
22276 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
22278 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 20); __PYX_ERR(0, 5135, __pyx_L3_error)
22280 CYTHON_FALLTHROUGH;
22282 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
22284 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 21); __PYX_ERR(0, 5135, __pyx_L3_error)
22286 CYTHON_FALLTHROUGH;
22288 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
22290 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 22); __PYX_ERR(0, 5135, __pyx_L3_error)
22292 CYTHON_FALLTHROUGH;
22294 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
22296 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 23); __PYX_ERR(0, 5135, __pyx_L3_error)
22298 CYTHON_FALLTHROUGH;
22300 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
22302 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 24); __PYX_ERR(0, 5135, __pyx_L3_error)
22304 CYTHON_FALLTHROUGH;
22306 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
22308 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 25); __PYX_ERR(0, 5135, __pyx_L3_error)
22310 CYTHON_FALLTHROUGH;
22312 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
22314 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 26); __PYX_ERR(0, 5135, __pyx_L3_error)
22316 CYTHON_FALLTHROUGH;
22318 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
22320 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 27); __PYX_ERR(0, 5135, __pyx_L3_error)
22322 CYTHON_FALLTHROUGH;
22324 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
22326 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 28); __PYX_ERR(0, 5135, __pyx_L3_error)
22328 CYTHON_FALLTHROUGH;
22330 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
22332 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 29); __PYX_ERR(0, 5135, __pyx_L3_error)
22334 CYTHON_FALLTHROUGH;
22336 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
22338 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 30); __PYX_ERR(0, 5135, __pyx_L3_error)
22340 CYTHON_FALLTHROUGH;
22342 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
22344 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 31); __PYX_ERR(0, 5135, __pyx_L3_error)
22346 CYTHON_FALLTHROUGH;
22348 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
22350 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 32); __PYX_ERR(0, 5135, __pyx_L3_error)
22352 CYTHON_FALLTHROUGH;
22354 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
22356 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 33); __PYX_ERR(0, 5135, __pyx_L3_error)
22358 CYTHON_FALLTHROUGH;
22360 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
22362 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 34); __PYX_ERR(0, 5135, __pyx_L3_error)
22364 CYTHON_FALLTHROUGH;
22366 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
22368 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 35); __PYX_ERR(0, 5135, __pyx_L3_error)
22370 CYTHON_FALLTHROUGH;
22372 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
22374 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 36); __PYX_ERR(0, 5135, __pyx_L3_error)
22376 CYTHON_FALLTHROUGH;
22378 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
22380 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 37); __PYX_ERR(0, 5135, __pyx_L3_error)
22382 CYTHON_FALLTHROUGH;
22384 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
22386 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 38); __PYX_ERR(0, 5135, __pyx_L3_error)
22388 CYTHON_FALLTHROUGH;
22390 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
22392 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 39); __PYX_ERR(0, 5135, __pyx_L3_error)
22394 CYTHON_FALLTHROUGH;
22396 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
22398 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 40); __PYX_ERR(0, 5135, __pyx_L3_error)
22400 CYTHON_FALLTHROUGH;
22402 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
22404 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 41); __PYX_ERR(0, 5135, __pyx_L3_error)
22406 CYTHON_FALLTHROUGH;
22408 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
22410 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 42); __PYX_ERR(0, 5135, __pyx_L3_error)
22412 CYTHON_FALLTHROUGH;
22414 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
22416 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 43); __PYX_ERR(0, 5135, __pyx_L3_error)
22418 CYTHON_FALLTHROUGH;
22420 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
22422 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 44); __PYX_ERR(0, 5135, __pyx_L3_error)
22424 CYTHON_FALLTHROUGH;
22426 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
22428 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, 45); __PYX_ERR(0, 5135, __pyx_L3_error)
22431 if (unlikely(kw_args > 0)) {
22432 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseNavierStokes_VOF_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 5135, __pyx_L3_error)
22434 }
else if (PyTuple_GET_SIZE(__pyx_args) != 46) {
22435 goto __pyx_L5_argtuple_error;
22437 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22438 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22439 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22440 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22441 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22442 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22443 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22444 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22445 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22446 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22447 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22448 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22449 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22450 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22451 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22452 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22453 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22454 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22455 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22456 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22457 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22458 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22459 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22460 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22461 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22462 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22463 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
22464 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
22465 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
22466 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
22467 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
22468 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
22469 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
22470 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
22471 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
22472 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
22473 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
22474 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
22475 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
22476 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
22477 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
22478 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
22479 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
22480 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
22481 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
22482 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
22484 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5135, __pyx_L3_error)
22485 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5136, __pyx_L3_error)
22486 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5137, __pyx_L3_error)
22487 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5138, __pyx_L3_error)
22488 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5139, __pyx_L3_error)
22489 __pyx_v_g = ((PyArrayObject *)values[5]);
22490 __pyx_v_vof = ((PyArrayObject *)values[6]);
22491 __pyx_v_p = ((PyArrayObject *)values[7]);
22492 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
22493 __pyx_v_u = ((PyArrayObject *)values[9]);
22494 __pyx_v_v = ((PyArrayObject *)values[10]);
22495 __pyx_v_w = ((PyArrayObject *)values[11]);
22496 __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
22497 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
22498 __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
22499 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
22500 __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
22501 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
22502 __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
22503 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
22504 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
22505 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
22506 __pyx_v_mom_u_adv = ((PyArrayObject *)values[22]);
22507 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[23]);
22508 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[24]);
22509 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[25]);
22510 __pyx_v_mom_v_adv = ((PyArrayObject *)values[26]);
22511 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[27]);
22512 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[28]);
22513 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[29]);
22514 __pyx_v_mom_w_adv = ((PyArrayObject *)values[30]);
22515 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[31]);
22516 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[32]);
22517 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[33]);
22518 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[34]);
22519 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[35]);
22520 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[36]);
22521 __pyx_v_mom_u_source = ((PyArrayObject *)values[37]);
22522 __pyx_v_mom_v_source = ((PyArrayObject *)values[38]);
22523 __pyx_v_mom_w_source = ((PyArrayObject *)values[39]);
22524 __pyx_v_mom_u_ham = ((PyArrayObject *)values[40]);
22525 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[41]);
22526 __pyx_v_mom_v_ham = ((PyArrayObject *)values[42]);
22527 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[43]);
22528 __pyx_v_mom_w_ham = ((PyArrayObject *)values[44]);
22529 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[45]);
22531 goto __pyx_L4_argument_unpacking_done;
22532 __pyx_L5_argtuple_error:;
22533 __Pyx_RaiseArgtupleInvalid(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 1, 46, 46, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5135, __pyx_L3_error)
22535 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
22536 __Pyx_RefNannyFinishContext();
22538 __pyx_L4_argument_unpacking_done:;
22539 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 5140, __pyx_L1_error)
22540 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1,
"vof", 0))) __PYX_ERR(0, 5141, __pyx_L1_error)
22541 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5142, __pyx_L1_error)
22542 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 5143, __pyx_L1_error)
22543 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5144, __pyx_L1_error)
22544 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5145, __pyx_L1_error)
22545 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 5146, __pyx_L1_error)
22546 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 5147, __pyx_L1_error)
22547 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 5148, __pyx_L1_error)
22548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 5149, __pyx_L1_error)
22549 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 5150, __pyx_L1_error)
22550 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 5151, __pyx_L1_error)
22551 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 5152, __pyx_L1_error)
22552 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 5153, __pyx_L1_error)
22553 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 5154, __pyx_L1_error)
22554 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 5155, __pyx_L1_error)
22555 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 5156, __pyx_L1_error)
22556 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 5157, __pyx_L1_error)
22557 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 5158, __pyx_L1_error)
22558 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 5159, __pyx_L1_error)
22559 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 5160, __pyx_L1_error)
22560 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 5161, __pyx_L1_error)
22561 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 5162, __pyx_L1_error)
22562 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 5163, __pyx_L1_error)
22563 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 5164, __pyx_L1_error)
22564 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 5165, __pyx_L1_error)
22565 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 5166, __pyx_L1_error)
22566 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 5167, __pyx_L1_error)
22567 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 5168, __pyx_L1_error)
22568 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 5169, __pyx_L1_error)
22569 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 5170, __pyx_L1_error)
22570 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 5171, __pyx_L1_error)
22571 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 5172, __pyx_L1_error)
22572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 5173, __pyx_L1_error)
22573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 5174, __pyx_L1_error)
22574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 5175, __pyx_L1_error)
22575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5176, __pyx_L1_error)
22576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 5177, __pyx_L1_error)
22577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5178, __pyx_L1_error)
22578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 5179, __pyx_L1_error)
22579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 5180, __pyx_L1_error)
22580 __pyx_r = __pyx_pf_22ctransportCoefficients_102TwophaseNavierStokes_VOF_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
22587 __Pyx_RefNannyFinishContext();
22591 static PyObject *__pyx_pf_22ctransportCoefficients_102TwophaseNavierStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
22592 PyObject *__pyx_r = NULL;
22593 __Pyx_RefNannyDeclarations
22594 PyObject *__pyx_t_1 = NULL;
22596 int __pyx_lineno = 0;
22597 const char *__pyx_filename = NULL;
22598 int __pyx_clineno = 0;
22599 __Pyx_RefNannySetupContext(
"TwophaseNavierStokes_VOF_SO_3D_Evaluate", 0);
22608 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5181, __pyx_L1_error)
22609 __Pyx_GOTREF(__pyx_t_1);
22610 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5181, __pyx_L1_error)
22611 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22620 TwophaseNavierStokes_VOF_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_vof->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
22631 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22634 __Pyx_XDECREF(__pyx_t_1);
22635 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseNavierStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
22638 __Pyx_XGIVEREF(__pyx_r);
22639 __Pyx_RefNannyFinishContext();
22652 static PyObject *__pyx_pw_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22653 static PyMethodDef __pyx_mdef_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate = {
"TwophaseStokes_VOF_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
22654 static PyObject *__pyx_pw_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22655 double __pyx_v_eps;
22656 double __pyx_v_rho_0;
22657 double __pyx_v_nu_0;
22658 double __pyx_v_rho_1;
22659 double __pyx_v_nu_1;
22660 PyArrayObject *__pyx_v_g = 0;
22661 PyArrayObject *__pyx_v_vof = 0;
22662 PyArrayObject *__pyx_v_p = 0;
22663 PyArrayObject *__pyx_v_grad_p = 0;
22664 PyArrayObject *__pyx_v_u = 0;
22665 PyArrayObject *__pyx_v_v = 0;
22666 PyArrayObject *__pyx_v_mom_u_acc = 0;
22667 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
22668 PyArrayObject *__pyx_v_mom_v_acc = 0;
22669 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
22670 PyArrayObject *__pyx_v_mass_adv = 0;
22671 PyArrayObject *__pyx_v_dmass_adv_u = 0;
22672 PyArrayObject *__pyx_v_dmass_adv_v = 0;
22673 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
22674 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
22675 PyArrayObject *__pyx_v_mom_u_source = 0;
22676 PyArrayObject *__pyx_v_mom_v_source = 0;
22677 PyArrayObject *__pyx_v_mom_u_ham = 0;
22678 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
22679 PyArrayObject *__pyx_v_mom_v_ham = 0;
22680 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
22681 int __pyx_lineno = 0;
22682 const char *__pyx_filename = NULL;
22683 int __pyx_clineno = 0;
22684 PyObject *__pyx_r = 0;
22685 __Pyx_RefNannyDeclarations
22686 __Pyx_RefNannySetupContext(
"TwophaseStokes_VOF_SO_2D_Evaluate (wrapper)", 0);
22688 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
22689 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22690 if (unlikely(__pyx_kwds)) {
22691 Py_ssize_t kw_args;
22692 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22693 switch (pos_args) {
22694 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22695 CYTHON_FALLTHROUGH;
22696 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22697 CYTHON_FALLTHROUGH;
22698 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22699 CYTHON_FALLTHROUGH;
22700 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22701 CYTHON_FALLTHROUGH;
22702 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22703 CYTHON_FALLTHROUGH;
22704 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22705 CYTHON_FALLTHROUGH;
22706 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22707 CYTHON_FALLTHROUGH;
22708 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22709 CYTHON_FALLTHROUGH;
22710 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22711 CYTHON_FALLTHROUGH;
22712 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22713 CYTHON_FALLTHROUGH;
22714 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22715 CYTHON_FALLTHROUGH;
22716 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22717 CYTHON_FALLTHROUGH;
22718 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22719 CYTHON_FALLTHROUGH;
22720 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22721 CYTHON_FALLTHROUGH;
22722 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22723 CYTHON_FALLTHROUGH;
22724 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22725 CYTHON_FALLTHROUGH;
22726 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22727 CYTHON_FALLTHROUGH;
22728 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22729 CYTHON_FALLTHROUGH;
22730 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22731 CYTHON_FALLTHROUGH;
22732 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22733 CYTHON_FALLTHROUGH;
22734 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22735 CYTHON_FALLTHROUGH;
22736 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22737 CYTHON_FALLTHROUGH;
22738 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22739 CYTHON_FALLTHROUGH;
22740 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22741 CYTHON_FALLTHROUGH;
22742 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22743 CYTHON_FALLTHROUGH;
22744 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22745 CYTHON_FALLTHROUGH;
22747 default:
goto __pyx_L5_argtuple_error;
22749 kw_args = PyDict_Size(__pyx_kwds);
22750 switch (pos_args) {
22752 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
22753 else goto __pyx_L5_argtuple_error;
22754 CYTHON_FALLTHROUGH;
22756 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
22758 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 1); __PYX_ERR(0, 5228, __pyx_L3_error)
22760 CYTHON_FALLTHROUGH;
22762 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
22764 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 2); __PYX_ERR(0, 5228, __pyx_L3_error)
22766 CYTHON_FALLTHROUGH;
22768 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
22770 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 3); __PYX_ERR(0, 5228, __pyx_L3_error)
22772 CYTHON_FALLTHROUGH;
22774 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
22776 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 4); __PYX_ERR(0, 5228, __pyx_L3_error)
22778 CYTHON_FALLTHROUGH;
22780 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
22782 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 5); __PYX_ERR(0, 5228, __pyx_L3_error)
22784 CYTHON_FALLTHROUGH;
22786 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
22788 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 6); __PYX_ERR(0, 5228, __pyx_L3_error)
22790 CYTHON_FALLTHROUGH;
22792 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
22794 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 7); __PYX_ERR(0, 5228, __pyx_L3_error)
22796 CYTHON_FALLTHROUGH;
22798 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
22800 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 8); __PYX_ERR(0, 5228, __pyx_L3_error)
22802 CYTHON_FALLTHROUGH;
22804 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22806 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 9); __PYX_ERR(0, 5228, __pyx_L3_error)
22808 CYTHON_FALLTHROUGH;
22810 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
22812 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 10); __PYX_ERR(0, 5228, __pyx_L3_error)
22814 CYTHON_FALLTHROUGH;
22816 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
22818 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 11); __PYX_ERR(0, 5228, __pyx_L3_error)
22820 CYTHON_FALLTHROUGH;
22822 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
22824 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 12); __PYX_ERR(0, 5228, __pyx_L3_error)
22826 CYTHON_FALLTHROUGH;
22828 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
22830 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 13); __PYX_ERR(0, 5228, __pyx_L3_error)
22832 CYTHON_FALLTHROUGH;
22834 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
22836 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 14); __PYX_ERR(0, 5228, __pyx_L3_error)
22838 CYTHON_FALLTHROUGH;
22840 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
22842 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 15); __PYX_ERR(0, 5228, __pyx_L3_error)
22844 CYTHON_FALLTHROUGH;
22846 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
22848 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 16); __PYX_ERR(0, 5228, __pyx_L3_error)
22850 CYTHON_FALLTHROUGH;
22852 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
22854 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 17); __PYX_ERR(0, 5228, __pyx_L3_error)
22856 CYTHON_FALLTHROUGH;
22858 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
22860 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 18); __PYX_ERR(0, 5228, __pyx_L3_error)
22862 CYTHON_FALLTHROUGH;
22864 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
22866 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 19); __PYX_ERR(0, 5228, __pyx_L3_error)
22868 CYTHON_FALLTHROUGH;
22870 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
22872 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 20); __PYX_ERR(0, 5228, __pyx_L3_error)
22874 CYTHON_FALLTHROUGH;
22876 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
22878 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 21); __PYX_ERR(0, 5228, __pyx_L3_error)
22880 CYTHON_FALLTHROUGH;
22882 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
22884 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 22); __PYX_ERR(0, 5228, __pyx_L3_error)
22886 CYTHON_FALLTHROUGH;
22888 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
22890 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 23); __PYX_ERR(0, 5228, __pyx_L3_error)
22892 CYTHON_FALLTHROUGH;
22894 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
22896 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 24); __PYX_ERR(0, 5228, __pyx_L3_error)
22898 CYTHON_FALLTHROUGH;
22900 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
22902 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, 25); __PYX_ERR(0, 5228, __pyx_L3_error)
22905 if (unlikely(kw_args > 0)) {
22906 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseStokes_VOF_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 5228, __pyx_L3_error)
22908 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
22909 goto __pyx_L5_argtuple_error;
22911 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22912 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22913 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22914 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22915 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22916 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22917 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22918 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22919 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22920 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22921 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22922 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22923 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22924 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22925 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22926 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22927 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22928 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22929 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
22930 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
22931 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
22932 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
22933 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
22934 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
22935 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
22936 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
22938 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5228, __pyx_L3_error)
22939 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5229, __pyx_L3_error)
22940 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5230, __pyx_L3_error)
22941 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5231, __pyx_L3_error)
22942 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5232, __pyx_L3_error)
22943 __pyx_v_g = ((PyArrayObject *)values[5]);
22944 __pyx_v_vof = ((PyArrayObject *)values[6]);
22945 __pyx_v_p = ((PyArrayObject *)values[7]);
22946 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
22947 __pyx_v_u = ((PyArrayObject *)values[9]);
22948 __pyx_v_v = ((PyArrayObject *)values[10]);
22949 __pyx_v_mom_u_acc = ((PyArrayObject *)values[11]);
22950 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[12]);
22951 __pyx_v_mom_v_acc = ((PyArrayObject *)values[13]);
22952 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[14]);
22953 __pyx_v_mass_adv = ((PyArrayObject *)values[15]);
22954 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[16]);
22955 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[17]);
22956 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[18]);
22957 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[19]);
22958 __pyx_v_mom_u_source = ((PyArrayObject *)values[20]);
22959 __pyx_v_mom_v_source = ((PyArrayObject *)values[21]);
22960 __pyx_v_mom_u_ham = ((PyArrayObject *)values[22]);
22961 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[23]);
22962 __pyx_v_mom_v_ham = ((PyArrayObject *)values[24]);
22963 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[25]);
22965 goto __pyx_L4_argument_unpacking_done;
22966 __pyx_L5_argtuple_error:;
22967 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_2D_Evaluate", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5228, __pyx_L3_error)
22969 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
22970 __Pyx_RefNannyFinishContext();
22972 __pyx_L4_argument_unpacking_done:;
22973 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 5233, __pyx_L1_error)
22974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1,
"vof", 0))) __PYX_ERR(0, 5234, __pyx_L1_error)
22975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5235, __pyx_L1_error)
22976 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 5236, __pyx_L1_error)
22977 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5237, __pyx_L1_error)
22978 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5238, __pyx_L1_error)
22979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 5239, __pyx_L1_error)
22980 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 5240, __pyx_L1_error)
22981 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 5241, __pyx_L1_error)
22982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 5242, __pyx_L1_error)
22983 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 5243, __pyx_L1_error)
22984 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 5244, __pyx_L1_error)
22985 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 5245, __pyx_L1_error)
22986 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 5246, __pyx_L1_error)
22987 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 5247, __pyx_L1_error)
22988 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 5248, __pyx_L1_error)
22989 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 5249, __pyx_L1_error)
22990 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 5250, __pyx_L1_error)
22991 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5251, __pyx_L1_error)
22992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 5252, __pyx_L1_error)
22993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5253, __pyx_L1_error)
22994 __pyx_r = __pyx_pf_22ctransportCoefficients_104TwophaseStokes_VOF_SO_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
23001 __Pyx_RefNannyFinishContext();
23005 static PyObject *__pyx_pf_22ctransportCoefficients_104TwophaseStokes_VOF_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
23006 PyObject *__pyx_r = NULL;
23007 __Pyx_RefNannyDeclarations
23008 PyObject *__pyx_t_1 = NULL;
23010 int __pyx_lineno = 0;
23011 const char *__pyx_filename = NULL;
23012 int __pyx_clineno = 0;
23013 __Pyx_RefNannySetupContext(
"TwophaseStokes_VOF_SO_2D_Evaluate", 0);
23022 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5254, __pyx_L1_error)
23023 __Pyx_GOTREF(__pyx_t_1);
23024 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5254, __pyx_L1_error)
23025 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23034 TwophaseStokes_VOF_SO_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_vof->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
23045 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23048 __Pyx_XDECREF(__pyx_t_1);
23049 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_VOF_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23052 __Pyx_XGIVEREF(__pyx_r);
23053 __Pyx_RefNannyFinishContext();
23066 static PyObject *__pyx_pw_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23067 static PyMethodDef __pyx_mdef_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate = {
"TwophaseStokes_VOF_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
23068 static PyObject *__pyx_pw_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23069 double __pyx_v_eps;
23070 double __pyx_v_rho_0;
23071 double __pyx_v_nu_0;
23072 double __pyx_v_rho_1;
23073 double __pyx_v_nu_1;
23074 PyArrayObject *__pyx_v_g = 0;
23075 PyArrayObject *__pyx_v_vof = 0;
23076 PyArrayObject *__pyx_v_p = 0;
23077 PyArrayObject *__pyx_v_grad_p = 0;
23078 PyArrayObject *__pyx_v_u = 0;
23079 PyArrayObject *__pyx_v_v = 0;
23080 PyArrayObject *__pyx_v_w = 0;
23081 PyArrayObject *__pyx_v_mom_u_acc = 0;
23082 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
23083 PyArrayObject *__pyx_v_mom_v_acc = 0;
23084 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
23085 PyArrayObject *__pyx_v_mom_w_acc = 0;
23086 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
23087 PyArrayObject *__pyx_v_mass_adv = 0;
23088 PyArrayObject *__pyx_v_dmass_adv_u = 0;
23089 PyArrayObject *__pyx_v_dmass_adv_v = 0;
23090 PyArrayObject *__pyx_v_dmass_adv_w = 0;
23091 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
23092 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
23093 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
23094 PyArrayObject *__pyx_v_mom_u_source = 0;
23095 PyArrayObject *__pyx_v_mom_v_source = 0;
23096 PyArrayObject *__pyx_v_mom_w_source = 0;
23097 PyArrayObject *__pyx_v_mom_u_ham = 0;
23098 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
23099 PyArrayObject *__pyx_v_mom_v_ham = 0;
23100 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
23101 PyArrayObject *__pyx_v_mom_w_ham = 0;
23102 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
23103 int __pyx_lineno = 0;
23104 const char *__pyx_filename = NULL;
23105 int __pyx_clineno = 0;
23106 PyObject *__pyx_r = 0;
23107 __Pyx_RefNannyDeclarations
23108 __Pyx_RefNannySetupContext(
"TwophaseStokes_VOF_SO_3D_Evaluate (wrapper)", 0);
23110 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_g,&__pyx_n_s_vof,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
23111 PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
23112 if (unlikely(__pyx_kwds)) {
23113 Py_ssize_t kw_args;
23114 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23115 switch (pos_args) {
23116 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
23117 CYTHON_FALLTHROUGH;
23118 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
23119 CYTHON_FALLTHROUGH;
23120 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
23121 CYTHON_FALLTHROUGH;
23122 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
23123 CYTHON_FALLTHROUGH;
23124 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
23125 CYTHON_FALLTHROUGH;
23126 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
23127 CYTHON_FALLTHROUGH;
23128 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
23129 CYTHON_FALLTHROUGH;
23130 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
23131 CYTHON_FALLTHROUGH;
23132 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
23133 CYTHON_FALLTHROUGH;
23134 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
23135 CYTHON_FALLTHROUGH;
23136 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
23137 CYTHON_FALLTHROUGH;
23138 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
23139 CYTHON_FALLTHROUGH;
23140 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
23141 CYTHON_FALLTHROUGH;
23142 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
23143 CYTHON_FALLTHROUGH;
23144 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23145 CYTHON_FALLTHROUGH;
23146 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23147 CYTHON_FALLTHROUGH;
23148 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23149 CYTHON_FALLTHROUGH;
23150 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23151 CYTHON_FALLTHROUGH;
23152 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23153 CYTHON_FALLTHROUGH;
23154 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23155 CYTHON_FALLTHROUGH;
23156 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23157 CYTHON_FALLTHROUGH;
23158 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23159 CYTHON_FALLTHROUGH;
23160 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23161 CYTHON_FALLTHROUGH;
23162 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23163 CYTHON_FALLTHROUGH;
23164 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23165 CYTHON_FALLTHROUGH;
23166 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23167 CYTHON_FALLTHROUGH;
23168 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23169 CYTHON_FALLTHROUGH;
23170 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23171 CYTHON_FALLTHROUGH;
23172 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23173 CYTHON_FALLTHROUGH;
23174 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23175 CYTHON_FALLTHROUGH;
23176 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23177 CYTHON_FALLTHROUGH;
23178 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23179 CYTHON_FALLTHROUGH;
23180 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23181 CYTHON_FALLTHROUGH;
23182 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23183 CYTHON_FALLTHROUGH;
23185 default:
goto __pyx_L5_argtuple_error;
23187 kw_args = PyDict_Size(__pyx_kwds);
23188 switch (pos_args) {
23190 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
23191 else goto __pyx_L5_argtuple_error;
23192 CYTHON_FALLTHROUGH;
23194 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
23196 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 1); __PYX_ERR(0, 5281, __pyx_L3_error)
23198 CYTHON_FALLTHROUGH;
23200 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
23202 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 2); __PYX_ERR(0, 5281, __pyx_L3_error)
23204 CYTHON_FALLTHROUGH;
23206 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
23208 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 3); __PYX_ERR(0, 5281, __pyx_L3_error)
23210 CYTHON_FALLTHROUGH;
23212 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
23214 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 4); __PYX_ERR(0, 5281, __pyx_L3_error)
23216 CYTHON_FALLTHROUGH;
23218 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
23220 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 5); __PYX_ERR(0, 5281, __pyx_L3_error)
23222 CYTHON_FALLTHROUGH;
23224 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof)) != 0)) kw_args--;
23226 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 6); __PYX_ERR(0, 5281, __pyx_L3_error)
23228 CYTHON_FALLTHROUGH;
23230 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
23232 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 7); __PYX_ERR(0, 5281, __pyx_L3_error)
23234 CYTHON_FALLTHROUGH;
23236 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
23238 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 8); __PYX_ERR(0, 5281, __pyx_L3_error)
23240 CYTHON_FALLTHROUGH;
23242 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
23244 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 9); __PYX_ERR(0, 5281, __pyx_L3_error)
23246 CYTHON_FALLTHROUGH;
23248 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
23250 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 10); __PYX_ERR(0, 5281, __pyx_L3_error)
23252 CYTHON_FALLTHROUGH;
23254 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
23256 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 11); __PYX_ERR(0, 5281, __pyx_L3_error)
23258 CYTHON_FALLTHROUGH;
23260 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
23262 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 12); __PYX_ERR(0, 5281, __pyx_L3_error)
23264 CYTHON_FALLTHROUGH;
23266 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
23268 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 13); __PYX_ERR(0, 5281, __pyx_L3_error)
23270 CYTHON_FALLTHROUGH;
23272 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
23274 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 14); __PYX_ERR(0, 5281, __pyx_L3_error)
23276 CYTHON_FALLTHROUGH;
23278 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
23280 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 15); __PYX_ERR(0, 5281, __pyx_L3_error)
23282 CYTHON_FALLTHROUGH;
23284 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
23286 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 16); __PYX_ERR(0, 5281, __pyx_L3_error)
23288 CYTHON_FALLTHROUGH;
23290 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
23292 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 17); __PYX_ERR(0, 5281, __pyx_L3_error)
23294 CYTHON_FALLTHROUGH;
23296 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
23298 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 18); __PYX_ERR(0, 5281, __pyx_L3_error)
23300 CYTHON_FALLTHROUGH;
23302 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
23304 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 19); __PYX_ERR(0, 5281, __pyx_L3_error)
23306 CYTHON_FALLTHROUGH;
23308 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
23310 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 20); __PYX_ERR(0, 5281, __pyx_L3_error)
23312 CYTHON_FALLTHROUGH;
23314 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
23316 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 21); __PYX_ERR(0, 5281, __pyx_L3_error)
23318 CYTHON_FALLTHROUGH;
23320 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
23322 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 22); __PYX_ERR(0, 5281, __pyx_L3_error)
23324 CYTHON_FALLTHROUGH;
23326 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
23328 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 23); __PYX_ERR(0, 5281, __pyx_L3_error)
23330 CYTHON_FALLTHROUGH;
23332 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
23334 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 24); __PYX_ERR(0, 5281, __pyx_L3_error)
23336 CYTHON_FALLTHROUGH;
23338 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
23340 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 25); __PYX_ERR(0, 5281, __pyx_L3_error)
23342 CYTHON_FALLTHROUGH;
23344 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
23346 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 26); __PYX_ERR(0, 5281, __pyx_L3_error)
23348 CYTHON_FALLTHROUGH;
23350 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
23352 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 27); __PYX_ERR(0, 5281, __pyx_L3_error)
23354 CYTHON_FALLTHROUGH;
23356 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
23358 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 28); __PYX_ERR(0, 5281, __pyx_L3_error)
23360 CYTHON_FALLTHROUGH;
23362 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
23364 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 29); __PYX_ERR(0, 5281, __pyx_L3_error)
23366 CYTHON_FALLTHROUGH;
23368 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
23370 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 30); __PYX_ERR(0, 5281, __pyx_L3_error)
23372 CYTHON_FALLTHROUGH;
23374 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
23376 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 31); __PYX_ERR(0, 5281, __pyx_L3_error)
23378 CYTHON_FALLTHROUGH;
23380 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
23382 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 32); __PYX_ERR(0, 5281, __pyx_L3_error)
23384 CYTHON_FALLTHROUGH;
23386 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
23388 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, 33); __PYX_ERR(0, 5281, __pyx_L3_error)
23391 if (unlikely(kw_args > 0)) {
23392 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwophaseStokes_VOF_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 5281, __pyx_L3_error)
23394 }
else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
23395 goto __pyx_L5_argtuple_error;
23397 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23398 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23399 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23400 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23401 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23402 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23403 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23404 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23405 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23406 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23407 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23408 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23409 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23410 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23411 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23412 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23413 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23414 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23415 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23416 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23417 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
23418 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
23419 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
23420 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
23421 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
23422 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
23423 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
23424 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
23425 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
23426 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
23427 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
23428 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
23429 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
23430 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
23432 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5281, __pyx_L3_error)
23433 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5282, __pyx_L3_error)
23434 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5283, __pyx_L3_error)
23435 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5284, __pyx_L3_error)
23436 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5285, __pyx_L3_error)
23437 __pyx_v_g = ((PyArrayObject *)values[5]);
23438 __pyx_v_vof = ((PyArrayObject *)values[6]);
23439 __pyx_v_p = ((PyArrayObject *)values[7]);
23440 __pyx_v_grad_p = ((PyArrayObject *)values[8]);
23441 __pyx_v_u = ((PyArrayObject *)values[9]);
23442 __pyx_v_v = ((PyArrayObject *)values[10]);
23443 __pyx_v_w = ((PyArrayObject *)values[11]);
23444 __pyx_v_mom_u_acc = ((PyArrayObject *)values[12]);
23445 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[13]);
23446 __pyx_v_mom_v_acc = ((PyArrayObject *)values[14]);
23447 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[15]);
23448 __pyx_v_mom_w_acc = ((PyArrayObject *)values[16]);
23449 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[17]);
23450 __pyx_v_mass_adv = ((PyArrayObject *)values[18]);
23451 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[19]);
23452 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[20]);
23453 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[21]);
23454 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[22]);
23455 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[23]);
23456 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[24]);
23457 __pyx_v_mom_u_source = ((PyArrayObject *)values[25]);
23458 __pyx_v_mom_v_source = ((PyArrayObject *)values[26]);
23459 __pyx_v_mom_w_source = ((PyArrayObject *)values[27]);
23460 __pyx_v_mom_u_ham = ((PyArrayObject *)values[28]);
23461 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[29]);
23462 __pyx_v_mom_v_ham = ((PyArrayObject *)values[30]);
23463 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[31]);
23464 __pyx_v_mom_w_ham = ((PyArrayObject *)values[32]);
23465 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[33]);
23467 goto __pyx_L4_argument_unpacking_done;
23468 __pyx_L5_argtuple_error:;
23469 __Pyx_RaiseArgtupleInvalid(
"TwophaseStokes_VOF_SO_3D_Evaluate", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5281, __pyx_L3_error)
23471 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23472 __Pyx_RefNannyFinishContext();
23474 __pyx_L4_argument_unpacking_done:;
23475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 5286, __pyx_L1_error)
23476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vof), __pyx_ptype_5numpy_ndarray, 1,
"vof", 0))) __PYX_ERR(0, 5287, __pyx_L1_error)
23477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5288, __pyx_L1_error)
23478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 5289, __pyx_L1_error)
23479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5290, __pyx_L1_error)
23480 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5291, __pyx_L1_error)
23481 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 5292, __pyx_L1_error)
23482 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 5293, __pyx_L1_error)
23483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 5294, __pyx_L1_error)
23484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 5295, __pyx_L1_error)
23485 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 5296, __pyx_L1_error)
23486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 5297, __pyx_L1_error)
23487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 5298, __pyx_L1_error)
23488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 5299, __pyx_L1_error)
23489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 5300, __pyx_L1_error)
23490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 5301, __pyx_L1_error)
23491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 5302, __pyx_L1_error)
23492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 5303, __pyx_L1_error)
23493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 5304, __pyx_L1_error)
23494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 5305, __pyx_L1_error)
23495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 5306, __pyx_L1_error)
23496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 5307, __pyx_L1_error)
23497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 5308, __pyx_L1_error)
23498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 5309, __pyx_L1_error)
23499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 5310, __pyx_L1_error)
23500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 5311, __pyx_L1_error)
23501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 5312, __pyx_L1_error)
23502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 5313, __pyx_L1_error)
23503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 5314, __pyx_L1_error)
23504 __pyx_r = __pyx_pf_22ctransportCoefficients_106TwophaseStokes_VOF_SO_3D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_g, __pyx_v_vof, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
23511 __Pyx_RefNannyFinishContext();
23515 static PyObject *__pyx_pf_22ctransportCoefficients_106TwophaseStokes_VOF_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_vof, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
23516 PyObject *__pyx_r = NULL;
23517 __Pyx_RefNannyDeclarations
23518 PyObject *__pyx_t_1 = NULL;
23520 int __pyx_lineno = 0;
23521 const char *__pyx_filename = NULL;
23522 int __pyx_clineno = 0;
23523 __Pyx_RefNannySetupContext(
"TwophaseStokes_VOF_SO_3D_Evaluate", 0);
23532 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5315, __pyx_L1_error)
23533 __Pyx_GOTREF(__pyx_t_1);
23534 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5315, __pyx_L1_error)
23535 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23544 TwophaseStokes_VOF_SO_3D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_vof->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
23555 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23558 __Pyx_XDECREF(__pyx_t_1);
23559 __Pyx_AddTraceback(
"ctransportCoefficients.TwophaseStokes_VOF_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23562 __Pyx_XGIVEREF(__pyx_r);
23563 __Pyx_RefNannyFinishContext();
23576 static PyObject *__pyx_pw_22ctransportCoefficients_109unitSquareVortexEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23577 static PyMethodDef __pyx_mdef_22ctransportCoefficients_109unitSquareVortexEvaluate = {
"unitSquareVortexEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_109unitSquareVortexEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
23578 static PyObject *__pyx_pw_22ctransportCoefficients_109unitSquareVortexEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23580 PyArrayObject *__pyx_v_x = 0;
23581 PyArrayObject *__pyx_v_u = 0;
23582 PyArrayObject *__pyx_v_m = 0;
23583 PyArrayObject *__pyx_v_dm = 0;
23584 PyArrayObject *__pyx_v_f = 0;
23585 PyArrayObject *__pyx_v_df = 0;
23586 int __pyx_lineno = 0;
23587 const char *__pyx_filename = NULL;
23588 int __pyx_clineno = 0;
23589 PyObject *__pyx_r = 0;
23590 __Pyx_RefNannyDeclarations
23591 __Pyx_RefNannySetupContext(
"unitSquareVortexEvaluate (wrapper)", 0);
23593 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
23594 PyObject* values[7] = {0,0,0,0,0,0,0};
23595 if (unlikely(__pyx_kwds)) {
23596 Py_ssize_t kw_args;
23597 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23598 switch (pos_args) {
23599 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23600 CYTHON_FALLTHROUGH;
23601 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23602 CYTHON_FALLTHROUGH;
23603 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23604 CYTHON_FALLTHROUGH;
23605 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23606 CYTHON_FALLTHROUGH;
23607 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23608 CYTHON_FALLTHROUGH;
23609 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23610 CYTHON_FALLTHROUGH;
23611 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23612 CYTHON_FALLTHROUGH;
23614 default:
goto __pyx_L5_argtuple_error;
23616 kw_args = PyDict_Size(__pyx_kwds);
23617 switch (pos_args) {
23619 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
23620 else goto __pyx_L5_argtuple_error;
23621 CYTHON_FALLTHROUGH;
23623 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
23625 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, 1); __PYX_ERR(0, 5350, __pyx_L3_error)
23627 CYTHON_FALLTHROUGH;
23629 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
23631 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, 2); __PYX_ERR(0, 5350, __pyx_L3_error)
23633 CYTHON_FALLTHROUGH;
23635 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
23637 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, 3); __PYX_ERR(0, 5350, __pyx_L3_error)
23639 CYTHON_FALLTHROUGH;
23641 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
23643 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, 4); __PYX_ERR(0, 5350, __pyx_L3_error)
23645 CYTHON_FALLTHROUGH;
23647 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
23649 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, 5); __PYX_ERR(0, 5350, __pyx_L3_error)
23651 CYTHON_FALLTHROUGH;
23653 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
23655 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, 6); __PYX_ERR(0, 5350, __pyx_L3_error)
23658 if (unlikely(kw_args > 0)) {
23659 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"unitSquareVortexEvaluate") < 0)) __PYX_ERR(0, 5350, __pyx_L3_error)
23661 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
23662 goto __pyx_L5_argtuple_error;
23664 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23665 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23666 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23667 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23668 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23669 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23670 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23672 __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5350, __pyx_L3_error)
23673 __pyx_v_x = ((PyArrayObject *)values[1]);
23674 __pyx_v_u = ((PyArrayObject *)values[2]);
23675 __pyx_v_m = ((PyArrayObject *)values[3]);
23676 __pyx_v_dm = ((PyArrayObject *)values[4]);
23677 __pyx_v_f = ((PyArrayObject *)values[5]);
23678 __pyx_v_df = ((PyArrayObject *)values[6]);
23680 goto __pyx_L4_argument_unpacking_done;
23681 __pyx_L5_argtuple_error:;
23682 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexEvaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5350, __pyx_L3_error)
23684 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareVortexEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23685 __Pyx_RefNannyFinishContext();
23687 __pyx_L4_argument_unpacking_done:;
23688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5351, __pyx_L1_error)
23689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5352, __pyx_L1_error)
23690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 5353, __pyx_L1_error)
23691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 5354, __pyx_L1_error)
23692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5355, __pyx_L1_error)
23693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5356, __pyx_L1_error)
23694 __pyx_r = __pyx_pf_22ctransportCoefficients_108unitSquareVortexEvaluate(__pyx_self, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
23701 __Pyx_RefNannyFinishContext();
23705 static PyObject *__pyx_pf_22ctransportCoefficients_108unitSquareVortexEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
23706 PyObject *__pyx_r = NULL;
23707 __Pyx_RefNannyDeclarations
23708 PyObject *__pyx_t_1 = NULL;
23710 int __pyx_lineno = 0;
23711 const char *__pyx_filename = NULL;
23712 int __pyx_clineno = 0;
23713 __Pyx_RefNannySetupContext(
"unitSquareVortexEvaluate", 0);
23722 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5357, __pyx_L1_error)
23723 __Pyx_GOTREF(__pyx_t_1);
23724 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5357, __pyx_L1_error)
23725 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23734 unitSquareVortexEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data));
23745 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23748 __Pyx_XDECREF(__pyx_t_1);
23749 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareVortexEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23752 __Pyx_XGIVEREF(__pyx_r);
23753 __Pyx_RefNannyFinishContext();
23766 static PyObject *__pyx_pw_22ctransportCoefficients_111constantVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23767 static PyMethodDef __pyx_mdef_22ctransportCoefficients_111constantVelocityLevelSetEvaluate = {
"constantVelocityLevelSetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_111constantVelocityLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
23768 static PyObject *__pyx_pw_22ctransportCoefficients_111constantVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23769 PyArrayObject *__pyx_v_b = 0;
23770 PyArrayObject *__pyx_v_x = 0;
23771 PyArrayObject *__pyx_v_u = 0;
23772 PyArrayObject *__pyx_v_gradu = 0;
23773 PyArrayObject *__pyx_v_m = 0;
23774 PyArrayObject *__pyx_v_dm = 0;
23775 PyArrayObject *__pyx_v_f = 0;
23776 PyArrayObject *__pyx_v_df = 0;
23777 PyArrayObject *__pyx_v_H = 0;
23778 PyArrayObject *__pyx_v_dH = 0;
23779 int __pyx_lineno = 0;
23780 const char *__pyx_filename = NULL;
23781 int __pyx_clineno = 0;
23782 PyObject *__pyx_r = 0;
23783 __Pyx_RefNannyDeclarations
23784 __Pyx_RefNannySetupContext(
"constantVelocityLevelSetEvaluate (wrapper)", 0);
23786 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_b,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
23787 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
23788 if (unlikely(__pyx_kwds)) {
23789 Py_ssize_t kw_args;
23790 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23791 switch (pos_args) {
23792 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23793 CYTHON_FALLTHROUGH;
23794 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23795 CYTHON_FALLTHROUGH;
23796 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23797 CYTHON_FALLTHROUGH;
23798 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23799 CYTHON_FALLTHROUGH;
23800 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23801 CYTHON_FALLTHROUGH;
23802 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23803 CYTHON_FALLTHROUGH;
23804 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23805 CYTHON_FALLTHROUGH;
23806 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23807 CYTHON_FALLTHROUGH;
23808 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23809 CYTHON_FALLTHROUGH;
23810 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23811 CYTHON_FALLTHROUGH;
23813 default:
goto __pyx_L5_argtuple_error;
23815 kw_args = PyDict_Size(__pyx_kwds);
23816 switch (pos_args) {
23818 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
23819 else goto __pyx_L5_argtuple_error;
23820 CYTHON_FALLTHROUGH;
23822 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
23824 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5366, __pyx_L3_error)
23826 CYTHON_FALLTHROUGH;
23828 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
23830 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5366, __pyx_L3_error)
23832 CYTHON_FALLTHROUGH;
23834 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
23836 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5366, __pyx_L3_error)
23838 CYTHON_FALLTHROUGH;
23840 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
23842 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5366, __pyx_L3_error)
23844 CYTHON_FALLTHROUGH;
23846 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
23848 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5366, __pyx_L3_error)
23850 CYTHON_FALLTHROUGH;
23852 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
23854 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5366, __pyx_L3_error)
23856 CYTHON_FALLTHROUGH;
23858 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
23860 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5366, __pyx_L3_error)
23862 CYTHON_FALLTHROUGH;
23864 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
23866 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5366, __pyx_L3_error)
23868 CYTHON_FALLTHROUGH;
23870 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
23872 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5366, __pyx_L3_error)
23875 if (unlikely(kw_args > 0)) {
23876 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"constantVelocityLevelSetEvaluate") < 0)) __PYX_ERR(0, 5366, __pyx_L3_error)
23878 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
23879 goto __pyx_L5_argtuple_error;
23881 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23882 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23883 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23884 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23885 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23886 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23887 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23888 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23889 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23890 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23892 __pyx_v_b = ((PyArrayObject *)values[0]);
23893 __pyx_v_x = ((PyArrayObject *)values[1]);
23894 __pyx_v_u = ((PyArrayObject *)values[2]);
23895 __pyx_v_gradu = ((PyArrayObject *)values[3]);
23896 __pyx_v_m = ((PyArrayObject *)values[4]);
23897 __pyx_v_dm = ((PyArrayObject *)values[5]);
23898 __pyx_v_f = ((PyArrayObject *)values[6]);
23899 __pyx_v_df = ((PyArrayObject *)values[7]);
23900 __pyx_v_H = ((PyArrayObject *)values[8]);
23901 __pyx_v_dH = ((PyArrayObject *)values[9]);
23903 goto __pyx_L4_argument_unpacking_done;
23904 __pyx_L5_argtuple_error:;
23905 __Pyx_RaiseArgtupleInvalid(
"constantVelocityLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5366, __pyx_L3_error)
23907 __Pyx_AddTraceback(
"ctransportCoefficients.constantVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23908 __Pyx_RefNannyFinishContext();
23910 __pyx_L4_argument_unpacking_done:;
23911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1,
"b", 0))) __PYX_ERR(0, 5366, __pyx_L1_error)
23912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5367, __pyx_L1_error)
23913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5368, __pyx_L1_error)
23914 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 5369, __pyx_L1_error)
23915 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 5370, __pyx_L1_error)
23916 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 5371, __pyx_L1_error)
23917 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5372, __pyx_L1_error)
23918 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5373, __pyx_L1_error)
23919 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 5374, __pyx_L1_error)
23920 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 5375, __pyx_L1_error)
23921 __pyx_r = __pyx_pf_22ctransportCoefficients_110constantVelocityLevelSetEvaluate(__pyx_self, __pyx_v_b, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
23928 __Pyx_RefNannyFinishContext();
23932 static PyObject *__pyx_pf_22ctransportCoefficients_110constantVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
23933 PyObject *__pyx_r = NULL;
23934 __Pyx_RefNannyDeclarations
23935 PyObject *__pyx_t_1 = NULL;
23937 int __pyx_lineno = 0;
23938 const char *__pyx_filename = NULL;
23939 int __pyx_clineno = 0;
23940 __Pyx_RefNannySetupContext(
"constantVelocityLevelSetEvaluate", 0);
23949 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5376, __pyx_L1_error)
23950 __Pyx_GOTREF(__pyx_t_1);
23951 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5376, __pyx_L1_error)
23952 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23961 constantVelocityLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
double *)__pyx_v_b->data), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data));
23972 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23975 __Pyx_XDECREF(__pyx_t_1);
23976 __Pyx_AddTraceback(
"ctransportCoefficients.constantVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
23979 __Pyx_XGIVEREF(__pyx_r);
23980 __Pyx_RefNannyFinishContext();
23993 static PyObject *__pyx_pw_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23994 static PyMethodDef __pyx_mdef_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate = {
"constantNormalVelocityLevelSetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
23995 static PyObject *__pyx_pw_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23997 PyArrayObject *__pyx_v_x = 0;
23998 PyArrayObject *__pyx_v_u = 0;
23999 PyArrayObject *__pyx_v_gradu = 0;
24000 PyArrayObject *__pyx_v_m = 0;
24001 PyArrayObject *__pyx_v_dm = 0;
24002 PyArrayObject *__pyx_v_f = 0;
24003 PyArrayObject *__pyx_v_df = 0;
24004 PyArrayObject *__pyx_v_H = 0;
24005 PyArrayObject *__pyx_v_dH = 0;
24006 int __pyx_lineno = 0;
24007 const char *__pyx_filename = NULL;
24008 int __pyx_clineno = 0;
24009 PyObject *__pyx_r = 0;
24010 __Pyx_RefNannyDeclarations
24011 __Pyx_RefNannySetupContext(
"constantNormalVelocityLevelSetEvaluate (wrapper)", 0);
24013 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_b,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24014 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
24015 if (unlikely(__pyx_kwds)) {
24016 Py_ssize_t kw_args;
24017 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24018 switch (pos_args) {
24019 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24020 CYTHON_FALLTHROUGH;
24021 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24022 CYTHON_FALLTHROUGH;
24023 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24024 CYTHON_FALLTHROUGH;
24025 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24026 CYTHON_FALLTHROUGH;
24027 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24028 CYTHON_FALLTHROUGH;
24029 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24030 CYTHON_FALLTHROUGH;
24031 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24032 CYTHON_FALLTHROUGH;
24033 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24034 CYTHON_FALLTHROUGH;
24035 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24036 CYTHON_FALLTHROUGH;
24037 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24038 CYTHON_FALLTHROUGH;
24040 default:
goto __pyx_L5_argtuple_error;
24042 kw_args = PyDict_Size(__pyx_kwds);
24043 switch (pos_args) {
24045 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
24046 else goto __pyx_L5_argtuple_error;
24047 CYTHON_FALLTHROUGH;
24049 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24051 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5388, __pyx_L3_error)
24053 CYTHON_FALLTHROUGH;
24055 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24057 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5388, __pyx_L3_error)
24059 CYTHON_FALLTHROUGH;
24061 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24063 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5388, __pyx_L3_error)
24065 CYTHON_FALLTHROUGH;
24067 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24069 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5388, __pyx_L3_error)
24071 CYTHON_FALLTHROUGH;
24073 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24075 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5388, __pyx_L3_error)
24077 CYTHON_FALLTHROUGH;
24079 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24081 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5388, __pyx_L3_error)
24083 CYTHON_FALLTHROUGH;
24085 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24087 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5388, __pyx_L3_error)
24089 CYTHON_FALLTHROUGH;
24091 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24093 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5388, __pyx_L3_error)
24095 CYTHON_FALLTHROUGH;
24097 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24099 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5388, __pyx_L3_error)
24102 if (unlikely(kw_args > 0)) {
24103 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"constantNormalVelocityLevelSetEvaluate") < 0)) __PYX_ERR(0, 5388, __pyx_L3_error)
24105 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
24106 goto __pyx_L5_argtuple_error;
24108 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24109 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24110 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24111 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24112 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24113 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24114 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24115 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24116 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24117 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24119 __pyx_v_b = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_b == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5388, __pyx_L3_error)
24120 __pyx_v_x = ((PyArrayObject *)values[1]);
24121 __pyx_v_u = ((PyArrayObject *)values[2]);
24122 __pyx_v_gradu = ((PyArrayObject *)values[3]);
24123 __pyx_v_m = ((PyArrayObject *)values[4]);
24124 __pyx_v_dm = ((PyArrayObject *)values[5]);
24125 __pyx_v_f = ((PyArrayObject *)values[6]);
24126 __pyx_v_df = ((PyArrayObject *)values[7]);
24127 __pyx_v_H = ((PyArrayObject *)values[8]);
24128 __pyx_v_dH = ((PyArrayObject *)values[9]);
24130 goto __pyx_L4_argument_unpacking_done;
24131 __pyx_L5_argtuple_error:;
24132 __Pyx_RaiseArgtupleInvalid(
"constantNormalVelocityLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5388, __pyx_L3_error)
24134 __Pyx_AddTraceback(
"ctransportCoefficients.constantNormalVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24135 __Pyx_RefNannyFinishContext();
24137 __pyx_L4_argument_unpacking_done:;
24138 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5389, __pyx_L1_error)
24139 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5390, __pyx_L1_error)
24140 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 5391, __pyx_L1_error)
24141 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 5392, __pyx_L1_error)
24142 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 5393, __pyx_L1_error)
24143 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5394, __pyx_L1_error)
24144 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5395, __pyx_L1_error)
24145 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 5396, __pyx_L1_error)
24146 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 5397, __pyx_L1_error)
24147 __pyx_r = __pyx_pf_22ctransportCoefficients_112constantNormalVelocityLevelSetEvaluate(__pyx_self, __pyx_v_b, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
24154 __Pyx_RefNannyFinishContext();
24158 static PyObject *__pyx_pf_22ctransportCoefficients_112constantNormalVelocityLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_b, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24159 PyObject *__pyx_r = NULL;
24160 __Pyx_RefNannyDeclarations
24161 PyObject *__pyx_t_1 = NULL;
24163 int __pyx_lineno = 0;
24164 const char *__pyx_filename = NULL;
24165 int __pyx_clineno = 0;
24166 __Pyx_RefNannySetupContext(
"constantNormalVelocityLevelSetEvaluate", 0);
24175 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5398, __pyx_L1_error)
24176 __Pyx_GOTREF(__pyx_t_1);
24177 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5398, __pyx_L1_error)
24178 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24187 constantNormalVelocityLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_b, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data));
24198 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24201 __Pyx_XDECREF(__pyx_t_1);
24202 __Pyx_AddTraceback(
"ctransportCoefficients.constantNormalVelocityLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24205 __Pyx_XGIVEREF(__pyx_r);
24206 __Pyx_RefNannyFinishContext();
24219 static PyObject *__pyx_pw_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24220 static PyMethodDef __pyx_mdef_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate = {
"unitSquareVortexLevelSetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24221 static PyObject *__pyx_pw_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24223 PyArrayObject *__pyx_v_x = 0;
24224 PyArrayObject *__pyx_v_u = 0;
24225 PyArrayObject *__pyx_v_gradu = 0;
24226 PyArrayObject *__pyx_v_m = 0;
24227 PyArrayObject *__pyx_v_dm = 0;
24228 PyArrayObject *__pyx_v_f = 0;
24229 PyArrayObject *__pyx_v_df = 0;
24230 PyArrayObject *__pyx_v_H = 0;
24231 PyArrayObject *__pyx_v_dH = 0;
24232 int __pyx_lineno = 0;
24233 const char *__pyx_filename = NULL;
24234 int __pyx_clineno = 0;
24235 PyObject *__pyx_r = 0;
24236 __Pyx_RefNannyDeclarations
24237 __Pyx_RefNannySetupContext(
"unitSquareVortexLevelSetEvaluate (wrapper)", 0);
24239 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24240 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
24241 if (unlikely(__pyx_kwds)) {
24242 Py_ssize_t kw_args;
24243 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24244 switch (pos_args) {
24245 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24246 CYTHON_FALLTHROUGH;
24247 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24248 CYTHON_FALLTHROUGH;
24249 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24250 CYTHON_FALLTHROUGH;
24251 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24252 CYTHON_FALLTHROUGH;
24253 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24254 CYTHON_FALLTHROUGH;
24255 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24256 CYTHON_FALLTHROUGH;
24257 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24258 CYTHON_FALLTHROUGH;
24259 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24260 CYTHON_FALLTHROUGH;
24261 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24262 CYTHON_FALLTHROUGH;
24263 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24264 CYTHON_FALLTHROUGH;
24266 default:
goto __pyx_L5_argtuple_error;
24268 kw_args = PyDict_Size(__pyx_kwds);
24269 switch (pos_args) {
24271 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
24272 else goto __pyx_L5_argtuple_error;
24273 CYTHON_FALLTHROUGH;
24275 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24277 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5410, __pyx_L3_error)
24279 CYTHON_FALLTHROUGH;
24281 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24283 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5410, __pyx_L3_error)
24285 CYTHON_FALLTHROUGH;
24287 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24289 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5410, __pyx_L3_error)
24291 CYTHON_FALLTHROUGH;
24293 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24295 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5410, __pyx_L3_error)
24297 CYTHON_FALLTHROUGH;
24299 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24301 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5410, __pyx_L3_error)
24303 CYTHON_FALLTHROUGH;
24305 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24307 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5410, __pyx_L3_error)
24309 CYTHON_FALLTHROUGH;
24311 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24313 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5410, __pyx_L3_error)
24315 CYTHON_FALLTHROUGH;
24317 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24319 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5410, __pyx_L3_error)
24321 CYTHON_FALLTHROUGH;
24323 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24325 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5410, __pyx_L3_error)
24328 if (unlikely(kw_args > 0)) {
24329 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"unitSquareVortexLevelSetEvaluate") < 0)) __PYX_ERR(0, 5410, __pyx_L3_error)
24331 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
24332 goto __pyx_L5_argtuple_error;
24334 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24335 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24336 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24337 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24338 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24339 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24340 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24341 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24342 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24343 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24345 __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5410, __pyx_L3_error)
24346 __pyx_v_x = ((PyArrayObject *)values[1]);
24347 __pyx_v_u = ((PyArrayObject *)values[2]);
24348 __pyx_v_gradu = ((PyArrayObject *)values[3]);
24349 __pyx_v_m = ((PyArrayObject *)values[4]);
24350 __pyx_v_dm = ((PyArrayObject *)values[5]);
24351 __pyx_v_f = ((PyArrayObject *)values[6]);
24352 __pyx_v_df = ((PyArrayObject *)values[7]);
24353 __pyx_v_H = ((PyArrayObject *)values[8]);
24354 __pyx_v_dH = ((PyArrayObject *)values[9]);
24356 goto __pyx_L4_argument_unpacking_done;
24357 __pyx_L5_argtuple_error:;
24358 __Pyx_RaiseArgtupleInvalid(
"unitSquareVortexLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5410, __pyx_L3_error)
24360 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareVortexLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24361 __Pyx_RefNannyFinishContext();
24363 __pyx_L4_argument_unpacking_done:;
24364 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5411, __pyx_L1_error)
24365 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5412, __pyx_L1_error)
24366 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 5413, __pyx_L1_error)
24367 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 5414, __pyx_L1_error)
24368 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 5415, __pyx_L1_error)
24369 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5416, __pyx_L1_error)
24370 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5417, __pyx_L1_error)
24371 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 5418, __pyx_L1_error)
24372 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 5419, __pyx_L1_error)
24373 __pyx_r = __pyx_pf_22ctransportCoefficients_114unitSquareVortexLevelSetEvaluate(__pyx_self, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
24380 __Pyx_RefNannyFinishContext();
24384 static PyObject *__pyx_pf_22ctransportCoefficients_114unitSquareVortexLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24385 PyObject *__pyx_r = NULL;
24386 __Pyx_RefNannyDeclarations
24387 PyObject *__pyx_t_1 = NULL;
24389 int __pyx_lineno = 0;
24390 const char *__pyx_filename = NULL;
24391 int __pyx_clineno = 0;
24392 __Pyx_RefNannySetupContext(
"unitSquareVortexLevelSetEvaluate", 0);
24401 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5420, __pyx_L1_error)
24402 __Pyx_GOTREF(__pyx_t_1);
24403 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5420, __pyx_L1_error)
24404 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24413 unitSquareVortexLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data));
24424 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24427 __Pyx_XDECREF(__pyx_t_1);
24428 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareVortexLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24431 __Pyx_XGIVEREF(__pyx_r);
24432 __Pyx_RefNannyFinishContext();
24445 static PyObject *__pyx_pw_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24446 static PyMethodDef __pyx_mdef_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate = {
"unitSquareRotationLevelSetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24447 static PyObject *__pyx_pw_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24449 PyArrayObject *__pyx_v_x = 0;
24450 PyArrayObject *__pyx_v_u = 0;
24451 PyArrayObject *__pyx_v_gradu = 0;
24452 PyArrayObject *__pyx_v_m = 0;
24453 PyArrayObject *__pyx_v_dm = 0;
24454 PyArrayObject *__pyx_v_f = 0;
24455 PyArrayObject *__pyx_v_df = 0;
24456 PyArrayObject *__pyx_v_H = 0;
24457 PyArrayObject *__pyx_v_dH = 0;
24458 int __pyx_lineno = 0;
24459 const char *__pyx_filename = NULL;
24460 int __pyx_clineno = 0;
24461 PyObject *__pyx_r = 0;
24462 __Pyx_RefNannyDeclarations
24463 __Pyx_RefNannySetupContext(
"unitSquareRotationLevelSetEvaluate (wrapper)", 0);
24465 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24466 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
24467 if (unlikely(__pyx_kwds)) {
24468 Py_ssize_t kw_args;
24469 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24470 switch (pos_args) {
24471 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24472 CYTHON_FALLTHROUGH;
24473 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24474 CYTHON_FALLTHROUGH;
24475 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24476 CYTHON_FALLTHROUGH;
24477 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24478 CYTHON_FALLTHROUGH;
24479 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24480 CYTHON_FALLTHROUGH;
24481 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24482 CYTHON_FALLTHROUGH;
24483 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24484 CYTHON_FALLTHROUGH;
24485 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24486 CYTHON_FALLTHROUGH;
24487 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24488 CYTHON_FALLTHROUGH;
24489 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24490 CYTHON_FALLTHROUGH;
24492 default:
goto __pyx_L5_argtuple_error;
24494 kw_args = PyDict_Size(__pyx_kwds);
24495 switch (pos_args) {
24497 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
24498 else goto __pyx_L5_argtuple_error;
24499 CYTHON_FALLTHROUGH;
24501 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24503 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 5432, __pyx_L3_error)
24505 CYTHON_FALLTHROUGH;
24507 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24509 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 5432, __pyx_L3_error)
24511 CYTHON_FALLTHROUGH;
24513 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24515 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 5432, __pyx_L3_error)
24517 CYTHON_FALLTHROUGH;
24519 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24521 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 5432, __pyx_L3_error)
24523 CYTHON_FALLTHROUGH;
24525 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24527 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 5432, __pyx_L3_error)
24529 CYTHON_FALLTHROUGH;
24531 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24533 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 5432, __pyx_L3_error)
24535 CYTHON_FALLTHROUGH;
24537 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24539 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 5432, __pyx_L3_error)
24541 CYTHON_FALLTHROUGH;
24543 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24545 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 5432, __pyx_L3_error)
24547 CYTHON_FALLTHROUGH;
24549 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24551 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 5432, __pyx_L3_error)
24554 if (unlikely(kw_args > 0)) {
24555 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"unitSquareRotationLevelSetEvaluate") < 0)) __PYX_ERR(0, 5432, __pyx_L3_error)
24557 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
24558 goto __pyx_L5_argtuple_error;
24560 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24561 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24562 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24563 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24564 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24565 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24566 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24567 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24568 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24569 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24571 __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5432, __pyx_L3_error)
24572 __pyx_v_x = ((PyArrayObject *)values[1]);
24573 __pyx_v_u = ((PyArrayObject *)values[2]);
24574 __pyx_v_gradu = ((PyArrayObject *)values[3]);
24575 __pyx_v_m = ((PyArrayObject *)values[4]);
24576 __pyx_v_dm = ((PyArrayObject *)values[5]);
24577 __pyx_v_f = ((PyArrayObject *)values[6]);
24578 __pyx_v_df = ((PyArrayObject *)values[7]);
24579 __pyx_v_H = ((PyArrayObject *)values[8]);
24580 __pyx_v_dH = ((PyArrayObject *)values[9]);
24582 goto __pyx_L4_argument_unpacking_done;
24583 __pyx_L5_argtuple_error:;
24584 __Pyx_RaiseArgtupleInvalid(
"unitSquareRotationLevelSetEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5432, __pyx_L3_error)
24586 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareRotationLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24587 __Pyx_RefNannyFinishContext();
24589 __pyx_L4_argument_unpacking_done:;
24590 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5433, __pyx_L1_error)
24591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5434, __pyx_L1_error)
24592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 5435, __pyx_L1_error)
24593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 5436, __pyx_L1_error)
24594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 5437, __pyx_L1_error)
24595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5438, __pyx_L1_error)
24596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5439, __pyx_L1_error)
24597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 5440, __pyx_L1_error)
24598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 5441, __pyx_L1_error)
24599 __pyx_r = __pyx_pf_22ctransportCoefficients_116unitSquareRotationLevelSetEvaluate(__pyx_self, __pyx_v_t, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_H, __pyx_v_dH);
24606 __Pyx_RefNannyFinishContext();
24610 static PyObject *__pyx_pf_22ctransportCoefficients_116unitSquareRotationLevelSetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24611 PyObject *__pyx_r = NULL;
24612 __Pyx_RefNannyDeclarations
24613 PyObject *__pyx_t_1 = NULL;
24615 int __pyx_lineno = 0;
24616 const char *__pyx_filename = NULL;
24617 int __pyx_clineno = 0;
24618 __Pyx_RefNannySetupContext(
"unitSquareRotationLevelSetEvaluate", 0);
24627 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5442, __pyx_L1_error)
24628 __Pyx_GOTREF(__pyx_t_1);
24629 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5442, __pyx_L1_error)
24630 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24639 unitSquareRotationLevelSetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_t, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data));
24650 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24653 __Pyx_XDECREF(__pyx_t_1);
24654 __Pyx_AddTraceback(
"ctransportCoefficients.unitSquareRotationLevelSetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24657 __Pyx_XGIVEREF(__pyx_r);
24658 __Pyx_RefNannyFinishContext();
24671 static PyObject *__pyx_pw_22ctransportCoefficients_119HJBurgersEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24672 static PyMethodDef __pyx_mdef_22ctransportCoefficients_119HJBurgersEvaluate = {
"HJBurgersEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_119HJBurgersEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24673 static PyObject *__pyx_pw_22ctransportCoefficients_119HJBurgersEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24674 double __pyx_v_offset;
24675 PyArrayObject *__pyx_v_u = 0;
24676 PyArrayObject *__pyx_v_gradu = 0;
24677 PyArrayObject *__pyx_v_m = 0;
24678 PyArrayObject *__pyx_v_dm = 0;
24679 PyArrayObject *__pyx_v_H = 0;
24680 PyArrayObject *__pyx_v_dH = 0;
24681 int __pyx_lineno = 0;
24682 const char *__pyx_filename = NULL;
24683 int __pyx_clineno = 0;
24684 PyObject *__pyx_r = 0;
24685 __Pyx_RefNannyDeclarations
24686 __Pyx_RefNannySetupContext(
"HJBurgersEvaluate (wrapper)", 0);
24688 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_H,&__pyx_n_s_dH,0};
24689 PyObject* values[7] = {0,0,0,0,0,0,0};
24690 if (unlikely(__pyx_kwds)) {
24691 Py_ssize_t kw_args;
24692 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24693 switch (pos_args) {
24694 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24695 CYTHON_FALLTHROUGH;
24696 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24697 CYTHON_FALLTHROUGH;
24698 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24699 CYTHON_FALLTHROUGH;
24700 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24701 CYTHON_FALLTHROUGH;
24702 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24703 CYTHON_FALLTHROUGH;
24704 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24705 CYTHON_FALLTHROUGH;
24706 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24707 CYTHON_FALLTHROUGH;
24709 default:
goto __pyx_L5_argtuple_error;
24711 kw_args = PyDict_Size(__pyx_kwds);
24712 switch (pos_args) {
24714 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset)) != 0)) kw_args--;
24715 else goto __pyx_L5_argtuple_error;
24716 CYTHON_FALLTHROUGH;
24718 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24720 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, 1); __PYX_ERR(0, 5454, __pyx_L3_error)
24722 CYTHON_FALLTHROUGH;
24724 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
24726 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, 2); __PYX_ERR(0, 5454, __pyx_L3_error)
24728 CYTHON_FALLTHROUGH;
24730 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24732 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, 3); __PYX_ERR(0, 5454, __pyx_L3_error)
24734 CYTHON_FALLTHROUGH;
24736 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
24738 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, 4); __PYX_ERR(0, 5454, __pyx_L3_error)
24740 CYTHON_FALLTHROUGH;
24742 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
24744 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, 5); __PYX_ERR(0, 5454, __pyx_L3_error)
24746 CYTHON_FALLTHROUGH;
24748 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
24750 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, 6); __PYX_ERR(0, 5454, __pyx_L3_error)
24753 if (unlikely(kw_args > 0)) {
24754 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"HJBurgersEvaluate") < 0)) __PYX_ERR(0, 5454, __pyx_L3_error)
24756 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
24757 goto __pyx_L5_argtuple_error;
24759 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24760 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24761 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24762 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24763 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24764 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24765 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24767 __pyx_v_offset = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_offset == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5454, __pyx_L3_error)
24768 __pyx_v_u = ((PyArrayObject *)values[1]);
24769 __pyx_v_gradu = ((PyArrayObject *)values[2]);
24770 __pyx_v_m = ((PyArrayObject *)values[3]);
24771 __pyx_v_dm = ((PyArrayObject *)values[4]);
24772 __pyx_v_H = ((PyArrayObject *)values[5]);
24773 __pyx_v_dH = ((PyArrayObject *)values[6]);
24775 goto __pyx_L4_argument_unpacking_done;
24776 __pyx_L5_argtuple_error:;
24777 __Pyx_RaiseArgtupleInvalid(
"HJBurgersEvaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5454, __pyx_L3_error)
24779 __Pyx_AddTraceback(
"ctransportCoefficients.HJBurgersEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24780 __Pyx_RefNannyFinishContext();
24782 __pyx_L4_argument_unpacking_done:;
24783 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5455, __pyx_L1_error)
24784 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 5456, __pyx_L1_error)
24785 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 5457, __pyx_L1_error)
24786 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 5458, __pyx_L1_error)
24787 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 5459, __pyx_L1_error)
24788 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 5460, __pyx_L1_error)
24789 __pyx_r = __pyx_pf_22ctransportCoefficients_118HJBurgersEvaluate(__pyx_self, __pyx_v_offset, __pyx_v_u, __pyx_v_gradu, __pyx_v_m, __pyx_v_dm, __pyx_v_H, __pyx_v_dH);
24796 __Pyx_RefNannyFinishContext();
24800 static PyObject *__pyx_pf_22ctransportCoefficients_118HJBurgersEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_offset, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH) {
24801 PyObject *__pyx_r = NULL;
24802 __Pyx_RefNannyDeclarations
24803 PyObject *__pyx_t_1 = NULL;
24807 int __pyx_lineno = 0;
24808 const char *__pyx_filename = NULL;
24809 int __pyx_clineno = 0;
24810 __Pyx_RefNannySetupContext(
"HJBurgersEvaluate", 0);
24819 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5461, __pyx_L1_error)
24820 __Pyx_GOTREF(__pyx_t_1);
24821 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5461, __pyx_L1_error)
24822 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24831 __pyx_t_3 = (__pyx_v_dH->nd - 1);
24832 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_dH), __pyx_t_3,
long, 1, __Pyx_PyInt_From_long, 0, 1, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5462, __pyx_L1_error)
24833 __Pyx_GOTREF(__pyx_t_1);
24834 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5462, __pyx_L1_error)
24835 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24844 HJBurgersEvaluate(__pyx_t_2, __pyx_t_4, __pyx_v_offset, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data));
24855 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24858 __Pyx_XDECREF(__pyx_t_1);
24859 __Pyx_AddTraceback(
"ctransportCoefficients.HJBurgersEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
24862 __Pyx_XGIVEREF(__pyx_r);
24863 __Pyx_RefNannyFinishContext();
24876 static PyObject *__pyx_pw_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24877 static PyMethodDef __pyx_mdef_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate = {
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
24878 static PyObject *__pyx_pw_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24879 double __pyx_v_rho;
24880 double __pyx_v_beta;
24881 PyArrayObject *__pyx_v_gravity = 0;
24882 PyArrayObject *__pyx_v_x = 0;
24883 double __pyx_v_alpha;
24886 double __pyx_v_thetaR;
24887 double __pyx_v_thetaSR;
24888 double __pyx_v_KWs;
24889 PyArrayObject *__pyx_v_u = 0;
24890 PyArrayObject *__pyx_v_mass = 0;
24891 PyArrayObject *__pyx_v_dmass = 0;
24892 PyArrayObject *__pyx_v_f = 0;
24893 PyArrayObject *__pyx_v_df = 0;
24894 PyArrayObject *__pyx_v_a = 0;
24895 PyArrayObject *__pyx_v_da = 0;
24896 PyArrayObject *__pyx_v_phi = 0;
24897 PyArrayObject *__pyx_v_dphi = 0;
24898 int __pyx_lineno = 0;
24899 const char *__pyx_filename = NULL;
24900 int __pyx_clineno = 0;
24901 PyObject *__pyx_r = 0;
24902 __Pyx_RefNannyDeclarations
24903 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate (wrapper)", 0);
24905 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_x,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
24906 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
24907 if (unlikely(__pyx_kwds)) {
24908 Py_ssize_t kw_args;
24909 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24910 switch (pos_args) {
24911 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
24912 CYTHON_FALLTHROUGH;
24913 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
24914 CYTHON_FALLTHROUGH;
24915 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
24916 CYTHON_FALLTHROUGH;
24917 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
24918 CYTHON_FALLTHROUGH;
24919 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
24920 CYTHON_FALLTHROUGH;
24921 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24922 CYTHON_FALLTHROUGH;
24923 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24924 CYTHON_FALLTHROUGH;
24925 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24926 CYTHON_FALLTHROUGH;
24927 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24928 CYTHON_FALLTHROUGH;
24929 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24930 CYTHON_FALLTHROUGH;
24931 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24932 CYTHON_FALLTHROUGH;
24933 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24934 CYTHON_FALLTHROUGH;
24935 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24936 CYTHON_FALLTHROUGH;
24937 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24938 CYTHON_FALLTHROUGH;
24939 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24940 CYTHON_FALLTHROUGH;
24941 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24942 CYTHON_FALLTHROUGH;
24943 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24944 CYTHON_FALLTHROUGH;
24945 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24946 CYTHON_FALLTHROUGH;
24947 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24948 CYTHON_FALLTHROUGH;
24950 default:
goto __pyx_L5_argtuple_error;
24952 kw_args = PyDict_Size(__pyx_kwds);
24953 switch (pos_args) {
24955 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
24956 else goto __pyx_L5_argtuple_error;
24957 CYTHON_FALLTHROUGH;
24959 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
24961 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 1); __PYX_ERR(0, 5470, __pyx_L3_error)
24963 CYTHON_FALLTHROUGH;
24965 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
24967 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 2); __PYX_ERR(0, 5470, __pyx_L3_error)
24969 CYTHON_FALLTHROUGH;
24971 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
24973 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 3); __PYX_ERR(0, 5470, __pyx_L3_error)
24975 CYTHON_FALLTHROUGH;
24977 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
24979 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 4); __PYX_ERR(0, 5470, __pyx_L3_error)
24981 CYTHON_FALLTHROUGH;
24983 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
24985 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 5); __PYX_ERR(0, 5470, __pyx_L3_error)
24987 CYTHON_FALLTHROUGH;
24989 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
24991 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 6); __PYX_ERR(0, 5470, __pyx_L3_error)
24993 CYTHON_FALLTHROUGH;
24995 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
24997 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 7); __PYX_ERR(0, 5470, __pyx_L3_error)
24999 CYTHON_FALLTHROUGH;
25001 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25003 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 8); __PYX_ERR(0, 5470, __pyx_L3_error)
25005 CYTHON_FALLTHROUGH;
25007 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25009 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 9); __PYX_ERR(0, 5470, __pyx_L3_error)
25011 CYTHON_FALLTHROUGH;
25013 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25015 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 10); __PYX_ERR(0, 5470, __pyx_L3_error)
25017 CYTHON_FALLTHROUGH;
25019 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25021 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 11); __PYX_ERR(0, 5470, __pyx_L3_error)
25023 CYTHON_FALLTHROUGH;
25025 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25027 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 12); __PYX_ERR(0, 5470, __pyx_L3_error)
25029 CYTHON_FALLTHROUGH;
25031 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25033 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 13); __PYX_ERR(0, 5470, __pyx_L3_error)
25035 CYTHON_FALLTHROUGH;
25037 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25039 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 14); __PYX_ERR(0, 5470, __pyx_L3_error)
25041 CYTHON_FALLTHROUGH;
25043 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25045 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 15); __PYX_ERR(0, 5470, __pyx_L3_error)
25047 CYTHON_FALLTHROUGH;
25049 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25051 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 16); __PYX_ERR(0, 5470, __pyx_L3_error)
25053 CYTHON_FALLTHROUGH;
25055 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
25057 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 17); __PYX_ERR(0, 5470, __pyx_L3_error)
25059 CYTHON_FALLTHROUGH;
25061 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
25063 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, 18); __PYX_ERR(0, 5470, __pyx_L3_error)
25066 if (unlikely(kw_args > 0)) {
25067 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5470, __pyx_L3_error)
25069 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
25070 goto __pyx_L5_argtuple_error;
25072 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25073 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25074 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25075 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25076 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25077 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25078 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25079 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25080 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25081 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25082 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25083 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25084 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25085 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25086 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25087 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25088 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
25089 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
25090 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
25092 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5470, __pyx_L3_error)
25093 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5471, __pyx_L3_error)
25094 __pyx_v_gravity = ((PyArrayObject *)values[2]);
25095 __pyx_v_x = ((PyArrayObject *)values[3]);
25096 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5474, __pyx_L3_error)
25097 __pyx_v_n = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5475, __pyx_L3_error)
25098 __pyx_v_m = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5476, __pyx_L3_error)
25099 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5477, __pyx_L3_error)
25100 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5478, __pyx_L3_error)
25101 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5479, __pyx_L3_error)
25102 __pyx_v_u = ((PyArrayObject *)values[10]);
25103 __pyx_v_mass = ((PyArrayObject *)values[11]);
25104 __pyx_v_dmass = ((PyArrayObject *)values[12]);
25105 __pyx_v_f = ((PyArrayObject *)values[13]);
25106 __pyx_v_df = ((PyArrayObject *)values[14]);
25107 __pyx_v_a = ((PyArrayObject *)values[15]);
25108 __pyx_v_da = ((PyArrayObject *)values[16]);
25109 __pyx_v_phi = ((PyArrayObject *)values[17]);
25110 __pyx_v_dphi = ((PyArrayObject *)values[18]);
25112 goto __pyx_L4_argument_unpacking_done;
25113 __pyx_L5_argtuple_error:;
25114 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5470, __pyx_L3_error)
25116 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25117 __Pyx_RefNannyFinishContext();
25119 __pyx_L4_argument_unpacking_done:;
25120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5472, __pyx_L1_error)
25121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5473, __pyx_L1_error)
25122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5480, __pyx_L1_error)
25123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5481, __pyx_L1_error)
25124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5482, __pyx_L1_error)
25125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5483, __pyx_L1_error)
25126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5484, __pyx_L1_error)
25127 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5485, __pyx_L1_error)
25128 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5486, __pyx_L1_error)
25129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5487, __pyx_L1_error)
25130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5488, __pyx_L1_error)
25131 __pyx_r = __pyx_pf_22ctransportCoefficients_120conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_x, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
25138 __Pyx_RefNannyFinishContext();
25142 static PyObject *__pyx_pf_22ctransportCoefficients_120conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
25143 PyObject *__pyx_r = NULL;
25144 __Pyx_RefNannyDeclarations
25145 PyObject *__pyx_t_1 = NULL;
25147 int __pyx_lineno = 0;
25148 const char *__pyx_filename = NULL;
25149 int __pyx_clineno = 0;
25150 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", 0);
25159 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5489, __pyx_L1_error)
25160 __Pyx_GOTREF(__pyx_t_1);
25161 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5489, __pyx_L1_error)
25162 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25171 conservativeHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_x->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
25182 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25185 __Pyx_XDECREF(__pyx_t_1);
25186 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25189 __Pyx_XGIVEREF(__pyx_r);
25190 __Pyx_RefNannyFinishContext();
25203 static PyObject *__pyx_pw_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25204 static PyMethodDef __pyx_mdef_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate = {
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
25205 static PyObject *__pyx_pw_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25206 double __pyx_v_rho;
25207 PyArrayObject *__pyx_v_gravity = 0;
25208 double __pyx_v_alpha;
25211 double __pyx_v_thetaR;
25212 double __pyx_v_thetaSR;
25213 double __pyx_v_KWs;
25214 PyArrayObject *__pyx_v_dV = 0;
25215 PyArrayObject *__pyx_v_u = 0;
25216 PyArrayObject *__pyx_v_mass = 0;
25217 PyArrayObject *__pyx_v_dmass = 0;
25218 PyArrayObject *__pyx_v_f = 0;
25219 PyArrayObject *__pyx_v_df = 0;
25220 PyArrayObject *__pyx_v_a = 0;
25221 PyArrayObject *__pyx_v_da = 0;
25222 int __pyx_lineno = 0;
25223 const char *__pyx_filename = NULL;
25224 int __pyx_clineno = 0;
25225 PyObject *__pyx_r = 0;
25226 __Pyx_RefNannyDeclarations
25227 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate (wrapper)", 0);
25229 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
25230 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25231 if (unlikely(__pyx_kwds)) {
25232 Py_ssize_t kw_args;
25233 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25234 switch (pos_args) {
25235 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25236 CYTHON_FALLTHROUGH;
25237 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25238 CYTHON_FALLTHROUGH;
25239 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25240 CYTHON_FALLTHROUGH;
25241 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25242 CYTHON_FALLTHROUGH;
25243 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25244 CYTHON_FALLTHROUGH;
25245 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25246 CYTHON_FALLTHROUGH;
25247 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25248 CYTHON_FALLTHROUGH;
25249 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25250 CYTHON_FALLTHROUGH;
25251 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25252 CYTHON_FALLTHROUGH;
25253 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25254 CYTHON_FALLTHROUGH;
25255 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25256 CYTHON_FALLTHROUGH;
25257 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25258 CYTHON_FALLTHROUGH;
25259 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25260 CYTHON_FALLTHROUGH;
25261 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25262 CYTHON_FALLTHROUGH;
25263 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25264 CYTHON_FALLTHROUGH;
25265 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25266 CYTHON_FALLTHROUGH;
25268 default:
goto __pyx_L5_argtuple_error;
25270 kw_args = PyDict_Size(__pyx_kwds);
25271 switch (pos_args) {
25273 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
25274 else goto __pyx_L5_argtuple_error;
25275 CYTHON_FALLTHROUGH;
25277 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
25279 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 1); __PYX_ERR(0, 5510, __pyx_L3_error)
25281 CYTHON_FALLTHROUGH;
25283 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
25285 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 2); __PYX_ERR(0, 5510, __pyx_L3_error)
25287 CYTHON_FALLTHROUGH;
25289 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25291 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 3); __PYX_ERR(0, 5510, __pyx_L3_error)
25293 CYTHON_FALLTHROUGH;
25295 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
25297 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 4); __PYX_ERR(0, 5510, __pyx_L3_error)
25299 CYTHON_FALLTHROUGH;
25301 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
25303 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 5); __PYX_ERR(0, 5510, __pyx_L3_error)
25305 CYTHON_FALLTHROUGH;
25307 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25309 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 6); __PYX_ERR(0, 5510, __pyx_L3_error)
25311 CYTHON_FALLTHROUGH;
25313 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25315 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 7); __PYX_ERR(0, 5510, __pyx_L3_error)
25317 CYTHON_FALLTHROUGH;
25319 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
25321 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 8); __PYX_ERR(0, 5510, __pyx_L3_error)
25323 CYTHON_FALLTHROUGH;
25325 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25327 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 9); __PYX_ERR(0, 5510, __pyx_L3_error)
25329 CYTHON_FALLTHROUGH;
25331 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25333 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 10); __PYX_ERR(0, 5510, __pyx_L3_error)
25335 CYTHON_FALLTHROUGH;
25337 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25339 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 11); __PYX_ERR(0, 5510, __pyx_L3_error)
25341 CYTHON_FALLTHROUGH;
25343 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25345 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 12); __PYX_ERR(0, 5510, __pyx_L3_error)
25347 CYTHON_FALLTHROUGH;
25349 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25351 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 13); __PYX_ERR(0, 5510, __pyx_L3_error)
25353 CYTHON_FALLTHROUGH;
25355 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25357 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 14); __PYX_ERR(0, 5510, __pyx_L3_error)
25359 CYTHON_FALLTHROUGH;
25361 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25363 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, 15); __PYX_ERR(0, 5510, __pyx_L3_error)
25366 if (unlikely(kw_args > 0)) {
25367 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5510, __pyx_L3_error)
25369 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
25370 goto __pyx_L5_argtuple_error;
25372 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25373 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25374 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25375 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25376 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25377 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25378 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25379 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25380 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25381 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25382 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25383 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25384 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25385 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25386 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25387 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25389 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5510, __pyx_L3_error)
25390 __pyx_v_gravity = ((PyArrayObject *)values[1]);
25391 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5512, __pyx_L3_error)
25392 __pyx_v_n = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5513, __pyx_L3_error)
25393 __pyx_v_m = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5514, __pyx_L3_error)
25394 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5515, __pyx_L3_error)
25395 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5516, __pyx_L3_error)
25396 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5517, __pyx_L3_error)
25397 __pyx_v_dV = ((PyArrayObject *)values[8]);
25398 __pyx_v_u = ((PyArrayObject *)values[9]);
25399 __pyx_v_mass = ((PyArrayObject *)values[10]);
25400 __pyx_v_dmass = ((PyArrayObject *)values[11]);
25401 __pyx_v_f = ((PyArrayObject *)values[12]);
25402 __pyx_v_df = ((PyArrayObject *)values[13]);
25403 __pyx_v_a = ((PyArrayObject *)values[14]);
25404 __pyx_v_da = ((PyArrayObject *)values[15]);
25406 goto __pyx_L4_argument_unpacking_done;
25407 __pyx_L5_argtuple_error:;
25408 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5510, __pyx_L3_error)
25410 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25411 __Pyx_RefNannyFinishContext();
25413 __pyx_L4_argument_unpacking_done:;
25414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5511, __pyx_L1_error)
25415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 5518, __pyx_L1_error)
25416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5519, __pyx_L1_error)
25417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5520, __pyx_L1_error)
25418 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5521, __pyx_L1_error)
25419 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5522, __pyx_L1_error)
25420 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5523, __pyx_L1_error)
25421 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5524, __pyx_L1_error)
25422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5525, __pyx_L1_error)
25423 __pyx_r = __pyx_pf_22ctransportCoefficients_122conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_dV, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
25430 __Pyx_RefNannyFinishContext();
25434 static PyObject *__pyx_pf_22ctransportCoefficients_122conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
25435 PyObject *__pyx_r = NULL;
25436 __Pyx_RefNannyDeclarations
25437 int __pyx_lineno = 0;
25438 const char *__pyx_filename = NULL;
25439 int __pyx_clineno = 0;
25440 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", 0);
25449 #ifndef CYTHON_WITHOUT_ASSERTIONS
25450 if (unlikely(!Py_OptimizeFlag)) {
25451 if (unlikely(!((__pyx_v_f->nd == 3) != 0))) {
25452 PyErr_SetNone(PyExc_AssertionError);
25453 __PYX_ERR(0, 5526, __pyx_L1_error)
25465 conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
25476 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25479 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25482 __Pyx_XGIVEREF(__pyx_r);
25483 __Pyx_RefNannyFinishContext();
25496 static PyObject *__pyx_pw_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25497 static PyMethodDef __pyx_mdef_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate = {
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
25498 static PyObject *__pyx_pw_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25499 double __pyx_v_rho;
25500 PyArrayObject *__pyx_v_gravity = 0;
25501 double __pyx_v_alpha;
25504 double __pyx_v_thetaR;
25505 double __pyx_v_thetaSR;
25506 double __pyx_v_KWs;
25507 PyArrayObject *__pyx_v_dV = 0;
25508 PyArrayObject *__pyx_v_u = 0;
25509 PyArrayObject *__pyx_v_mass = 0;
25510 PyArrayObject *__pyx_v_dmass = 0;
25511 PyArrayObject *__pyx_v_f = 0;
25512 PyArrayObject *__pyx_v_df = 0;
25513 PyArrayObject *__pyx_v_a = 0;
25514 PyArrayObject *__pyx_v_da = 0;
25515 int __pyx_lineno = 0;
25516 const char *__pyx_filename = NULL;
25517 int __pyx_clineno = 0;
25518 PyObject *__pyx_r = 0;
25519 __Pyx_RefNannyDeclarations
25520 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate (wrapper)", 0);
25522 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
25523 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25524 if (unlikely(__pyx_kwds)) {
25525 Py_ssize_t kw_args;
25526 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25527 switch (pos_args) {
25528 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25529 CYTHON_FALLTHROUGH;
25530 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25531 CYTHON_FALLTHROUGH;
25532 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25533 CYTHON_FALLTHROUGH;
25534 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25535 CYTHON_FALLTHROUGH;
25536 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25537 CYTHON_FALLTHROUGH;
25538 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25539 CYTHON_FALLTHROUGH;
25540 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25541 CYTHON_FALLTHROUGH;
25542 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25543 CYTHON_FALLTHROUGH;
25544 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25545 CYTHON_FALLTHROUGH;
25546 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25547 CYTHON_FALLTHROUGH;
25548 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25549 CYTHON_FALLTHROUGH;
25550 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25551 CYTHON_FALLTHROUGH;
25552 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25553 CYTHON_FALLTHROUGH;
25554 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25555 CYTHON_FALLTHROUGH;
25556 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25557 CYTHON_FALLTHROUGH;
25558 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25559 CYTHON_FALLTHROUGH;
25561 default:
goto __pyx_L5_argtuple_error;
25563 kw_args = PyDict_Size(__pyx_kwds);
25564 switch (pos_args) {
25566 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
25567 else goto __pyx_L5_argtuple_error;
25568 CYTHON_FALLTHROUGH;
25570 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
25572 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 1); __PYX_ERR(0, 5546, __pyx_L3_error)
25574 CYTHON_FALLTHROUGH;
25576 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
25578 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 2); __PYX_ERR(0, 5546, __pyx_L3_error)
25580 CYTHON_FALLTHROUGH;
25582 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25584 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 3); __PYX_ERR(0, 5546, __pyx_L3_error)
25586 CYTHON_FALLTHROUGH;
25588 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
25590 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 4); __PYX_ERR(0, 5546, __pyx_L3_error)
25592 CYTHON_FALLTHROUGH;
25594 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
25596 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 5); __PYX_ERR(0, 5546, __pyx_L3_error)
25598 CYTHON_FALLTHROUGH;
25600 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25602 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 6); __PYX_ERR(0, 5546, __pyx_L3_error)
25604 CYTHON_FALLTHROUGH;
25606 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25608 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 7); __PYX_ERR(0, 5546, __pyx_L3_error)
25610 CYTHON_FALLTHROUGH;
25612 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
25614 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 8); __PYX_ERR(0, 5546, __pyx_L3_error)
25616 CYTHON_FALLTHROUGH;
25618 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25620 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 9); __PYX_ERR(0, 5546, __pyx_L3_error)
25622 CYTHON_FALLTHROUGH;
25624 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25626 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 10); __PYX_ERR(0, 5546, __pyx_L3_error)
25628 CYTHON_FALLTHROUGH;
25630 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25632 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 11); __PYX_ERR(0, 5546, __pyx_L3_error)
25634 CYTHON_FALLTHROUGH;
25636 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25638 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 12); __PYX_ERR(0, 5546, __pyx_L3_error)
25640 CYTHON_FALLTHROUGH;
25642 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25644 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 13); __PYX_ERR(0, 5546, __pyx_L3_error)
25646 CYTHON_FALLTHROUGH;
25648 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25650 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 14); __PYX_ERR(0, 5546, __pyx_L3_error)
25652 CYTHON_FALLTHROUGH;
25654 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25656 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, 15); __PYX_ERR(0, 5546, __pyx_L3_error)
25659 if (unlikely(kw_args > 0)) {
25660 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5546, __pyx_L3_error)
25662 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
25663 goto __pyx_L5_argtuple_error;
25665 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25666 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25667 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25668 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25669 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25670 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25671 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25672 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25673 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25674 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25675 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25676 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25677 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25678 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25679 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25680 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25682 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5546, __pyx_L3_error)
25683 __pyx_v_gravity = ((PyArrayObject *)values[1]);
25684 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5548, __pyx_L3_error)
25685 __pyx_v_n = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5549, __pyx_L3_error)
25686 __pyx_v_m = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5550, __pyx_L3_error)
25687 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5551, __pyx_L3_error)
25688 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5552, __pyx_L3_error)
25689 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5553, __pyx_L3_error)
25690 __pyx_v_dV = ((PyArrayObject *)values[8]);
25691 __pyx_v_u = ((PyArrayObject *)values[9]);
25692 __pyx_v_mass = ((PyArrayObject *)values[10]);
25693 __pyx_v_dmass = ((PyArrayObject *)values[11]);
25694 __pyx_v_f = ((PyArrayObject *)values[12]);
25695 __pyx_v_df = ((PyArrayObject *)values[13]);
25696 __pyx_v_a = ((PyArrayObject *)values[14]);
25697 __pyx_v_da = ((PyArrayObject *)values[15]);
25699 goto __pyx_L4_argument_unpacking_done;
25700 __pyx_L5_argtuple_error:;
25701 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5546, __pyx_L3_error)
25703 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25704 __Pyx_RefNannyFinishContext();
25706 __pyx_L4_argument_unpacking_done:;
25707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5547, __pyx_L1_error)
25708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 5554, __pyx_L1_error)
25709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5555, __pyx_L1_error)
25710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5556, __pyx_L1_error)
25711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5557, __pyx_L1_error)
25712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5558, __pyx_L1_error)
25713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5559, __pyx_L1_error)
25714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5560, __pyx_L1_error)
25715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5561, __pyx_L1_error)
25716 __pyx_r = __pyx_pf_22ctransportCoefficients_124conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_dV, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
25723 __Pyx_RefNannyFinishContext();
25727 static PyObject *__pyx_pf_22ctransportCoefficients_124conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
25728 PyObject *__pyx_r = NULL;
25729 __Pyx_RefNannyDeclarations
25730 int __pyx_lineno = 0;
25731 const char *__pyx_filename = NULL;
25732 int __pyx_clineno = 0;
25733 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", 0);
25742 #ifndef CYTHON_WITHOUT_ASSERTIONS
25743 if (unlikely(!Py_OptimizeFlag)) {
25744 if (unlikely(!((__pyx_v_f->nd == 4) != 0))) {
25745 PyErr_SetNone(PyExc_AssertionError);
25746 __PYX_ERR(0, 5562, __pyx_L1_error)
25758 conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
25769 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25772 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25775 __Pyx_XGIVEREF(__pyx_r);
25776 __Pyx_RefNannyFinishContext();
25789 static PyObject *__pyx_pw_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25790 static PyMethodDef __pyx_mdef_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate = {
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
25791 static PyObject *__pyx_pw_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25792 double __pyx_v_rho;
25793 PyArrayObject *__pyx_v_gravity = 0;
25794 PyArrayObject *__pyx_v_alpha = 0;
25795 PyArrayObject *__pyx_v_n = 0;
25796 PyArrayObject *__pyx_v_thetaR = 0;
25797 PyArrayObject *__pyx_v_thetaSR = 0;
25798 PyArrayObject *__pyx_v_KWs = 0;
25799 PyArrayObject *__pyx_v_dV = 0;
25800 PyArrayObject *__pyx_v_u = 0;
25801 PyArrayObject *__pyx_v_mass = 0;
25802 PyArrayObject *__pyx_v_dmass = 0;
25803 PyArrayObject *__pyx_v_f = 0;
25804 PyArrayObject *__pyx_v_df = 0;
25805 PyArrayObject *__pyx_v_a = 0;
25806 PyArrayObject *__pyx_v_da = 0;
25807 int __pyx_lineno = 0;
25808 const char *__pyx_filename = NULL;
25809 int __pyx_clineno = 0;
25810 PyObject *__pyx_r = 0;
25811 __Pyx_RefNannyDeclarations
25812 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate (wrapper)", 0);
25814 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_dV,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
25815 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25816 if (unlikely(__pyx_kwds)) {
25817 Py_ssize_t kw_args;
25818 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25819 switch (pos_args) {
25820 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25821 CYTHON_FALLTHROUGH;
25822 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25823 CYTHON_FALLTHROUGH;
25824 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25825 CYTHON_FALLTHROUGH;
25826 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25827 CYTHON_FALLTHROUGH;
25828 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25829 CYTHON_FALLTHROUGH;
25830 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25831 CYTHON_FALLTHROUGH;
25832 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25833 CYTHON_FALLTHROUGH;
25834 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25835 CYTHON_FALLTHROUGH;
25836 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25837 CYTHON_FALLTHROUGH;
25838 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25839 CYTHON_FALLTHROUGH;
25840 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25841 CYTHON_FALLTHROUGH;
25842 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25843 CYTHON_FALLTHROUGH;
25844 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25845 CYTHON_FALLTHROUGH;
25846 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25847 CYTHON_FALLTHROUGH;
25848 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25849 CYTHON_FALLTHROUGH;
25851 default:
goto __pyx_L5_argtuple_error;
25853 kw_args = PyDict_Size(__pyx_kwds);
25854 switch (pos_args) {
25856 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
25857 else goto __pyx_L5_argtuple_error;
25858 CYTHON_FALLTHROUGH;
25860 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
25862 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 1); __PYX_ERR(0, 5583, __pyx_L3_error)
25864 CYTHON_FALLTHROUGH;
25866 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
25868 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 2); __PYX_ERR(0, 5583, __pyx_L3_error)
25870 CYTHON_FALLTHROUGH;
25872 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25874 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 3); __PYX_ERR(0, 5583, __pyx_L3_error)
25876 CYTHON_FALLTHROUGH;
25878 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
25880 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 4); __PYX_ERR(0, 5583, __pyx_L3_error)
25882 CYTHON_FALLTHROUGH;
25884 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
25886 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 5); __PYX_ERR(0, 5583, __pyx_L3_error)
25888 CYTHON_FALLTHROUGH;
25890 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
25892 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 6); __PYX_ERR(0, 5583, __pyx_L3_error)
25894 CYTHON_FALLTHROUGH;
25896 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
25898 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 7); __PYX_ERR(0, 5583, __pyx_L3_error)
25900 CYTHON_FALLTHROUGH;
25902 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25904 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 8); __PYX_ERR(0, 5583, __pyx_L3_error)
25906 CYTHON_FALLTHROUGH;
25908 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
25910 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 9); __PYX_ERR(0, 5583, __pyx_L3_error)
25912 CYTHON_FALLTHROUGH;
25914 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
25916 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 10); __PYX_ERR(0, 5583, __pyx_L3_error)
25918 CYTHON_FALLTHROUGH;
25920 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25922 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 11); __PYX_ERR(0, 5583, __pyx_L3_error)
25924 CYTHON_FALLTHROUGH;
25926 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25928 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 12); __PYX_ERR(0, 5583, __pyx_L3_error)
25930 CYTHON_FALLTHROUGH;
25932 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25934 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 13); __PYX_ERR(0, 5583, __pyx_L3_error)
25936 CYTHON_FALLTHROUGH;
25938 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
25940 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, 14); __PYX_ERR(0, 5583, __pyx_L3_error)
25943 if (unlikely(kw_args > 0)) {
25944 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate") < 0)) __PYX_ERR(0, 5583, __pyx_L3_error)
25946 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
25947 goto __pyx_L5_argtuple_error;
25949 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25950 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25951 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25952 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25953 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25954 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25955 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25956 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25957 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25958 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25959 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25960 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25961 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25962 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25963 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25965 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5583, __pyx_L3_error)
25966 __pyx_v_gravity = ((PyArrayObject *)values[1]);
25967 __pyx_v_alpha = ((PyArrayObject *)values[2]);
25968 __pyx_v_n = ((PyArrayObject *)values[3]);
25969 __pyx_v_thetaR = ((PyArrayObject *)values[4]);
25970 __pyx_v_thetaSR = ((PyArrayObject *)values[5]);
25971 __pyx_v_KWs = ((PyArrayObject *)values[6]);
25972 __pyx_v_dV = ((PyArrayObject *)values[7]);
25973 __pyx_v_u = ((PyArrayObject *)values[8]);
25974 __pyx_v_mass = ((PyArrayObject *)values[9]);
25975 __pyx_v_dmass = ((PyArrayObject *)values[10]);
25976 __pyx_v_f = ((PyArrayObject *)values[11]);
25977 __pyx_v_df = ((PyArrayObject *)values[12]);
25978 __pyx_v_a = ((PyArrayObject *)values[13]);
25979 __pyx_v_da = ((PyArrayObject *)values[14]);
25981 goto __pyx_L4_argument_unpacking_done;
25982 __pyx_L5_argtuple_error:;
25983 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5583, __pyx_L3_error)
25985 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
25986 __Pyx_RefNannyFinishContext();
25988 __pyx_L4_argument_unpacking_done:;
25989 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5584, __pyx_L1_error)
25990 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 5585, __pyx_L1_error)
25991 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5586, __pyx_L1_error)
25992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 5587, __pyx_L1_error)
25993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 5588, __pyx_L1_error)
25994 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 5589, __pyx_L1_error)
25995 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 5590, __pyx_L1_error)
25996 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5591, __pyx_L1_error)
25997 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5592, __pyx_L1_error)
25998 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5593, __pyx_L1_error)
25999 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5594, __pyx_L1_error)
26000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5595, __pyx_L1_error)
26001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5596, __pyx_L1_error)
26002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5597, __pyx_L1_error)
26003 __pyx_r = __pyx_pf_22ctransportCoefficients_126conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_dV, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
26010 __Pyx_RefNannyFinishContext();
26014 static PyObject *__pyx_pf_22ctransportCoefficients_126conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
26015 PyObject *__pyx_r = NULL;
26016 __Pyx_RefNannyDeclarations
26017 PyObject *__pyx_t_1 = NULL;
26018 PyObject *__pyx_t_2 = NULL;
26019 PyObject *__pyx_t_3 = NULL;
26021 int __pyx_lineno = 0;
26022 const char *__pyx_filename = NULL;
26023 int __pyx_clineno = 0;
26024 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", 0);
26033 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5598, __pyx_L1_error)
26034 __Pyx_GOTREF(__pyx_t_1);
26035 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5598, __pyx_L1_error)
26036 __Pyx_GOTREF(__pyx_t_2);
26037 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5598, __pyx_L1_error)
26038 __Pyx_GOTREF(__pyx_t_3);
26039 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26040 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26041 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5598, __pyx_L1_error)
26042 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26051 conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate(__pyx_t_4, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
26062 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26065 __Pyx_XDECREF(__pyx_t_1);
26066 __Pyx_XDECREF(__pyx_t_2);
26067 __Pyx_XDECREF(__pyx_t_3);
26068 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
26071 __Pyx_XGIVEREF(__pyx_r);
26072 __Pyx_RefNannyFinishContext();
26085 static PyObject *__pyx_pw_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26086 static PyMethodDef __pyx_mdef_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate = {
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
26087 static PyObject *__pyx_pw_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26088 double __pyx_v_rho;
26089 PyArrayObject *__pyx_v_gravity = 0;
26090 PyArrayObject *__pyx_v_x = 0;
26091 double __pyx_v_alpha;
26094 double __pyx_v_thetaR;
26095 double __pyx_v_thetaSR;
26096 double __pyx_v_KWs;
26097 PyArrayObject *__pyx_v_u = 0;
26098 PyArrayObject *__pyx_v_mass = 0;
26099 PyArrayObject *__pyx_v_dmass = 0;
26100 PyArrayObject *__pyx_v_f = 0;
26101 PyArrayObject *__pyx_v_df = 0;
26102 PyArrayObject *__pyx_v_a = 0;
26103 PyArrayObject *__pyx_v_da = 0;
26104 PyArrayObject *__pyx_v_phi = 0;
26105 PyArrayObject *__pyx_v_dphi = 0;
26106 int __pyx_lineno = 0;
26107 const char *__pyx_filename = NULL;
26108 int __pyx_clineno = 0;
26109 PyObject *__pyx_r = 0;
26110 __Pyx_RefNannyDeclarations
26111 __Pyx_RefNannySetupContext(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate (wrapper)", 0);
26113 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_x,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
26114 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26115 if (unlikely(__pyx_kwds)) {
26116 Py_ssize_t kw_args;
26117 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26118 switch (pos_args) {
26119 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26120 CYTHON_FALLTHROUGH;
26121 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26122 CYTHON_FALLTHROUGH;
26123 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26124 CYTHON_FALLTHROUGH;
26125 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26126 CYTHON_FALLTHROUGH;
26127 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26128 CYTHON_FALLTHROUGH;
26129 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26130 CYTHON_FALLTHROUGH;
26131 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26132 CYTHON_FALLTHROUGH;
26133 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26134 CYTHON_FALLTHROUGH;
26135 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26136 CYTHON_FALLTHROUGH;
26137 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26138 CYTHON_FALLTHROUGH;
26139 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26140 CYTHON_FALLTHROUGH;
26141 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26142 CYTHON_FALLTHROUGH;
26143 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26144 CYTHON_FALLTHROUGH;
26145 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26146 CYTHON_FALLTHROUGH;
26147 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26148 CYTHON_FALLTHROUGH;
26149 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26150 CYTHON_FALLTHROUGH;
26151 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26152 CYTHON_FALLTHROUGH;
26153 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26154 CYTHON_FALLTHROUGH;
26156 default:
goto __pyx_L5_argtuple_error;
26158 kw_args = PyDict_Size(__pyx_kwds);
26159 switch (pos_args) {
26161 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
26162 else goto __pyx_L5_argtuple_error;
26163 CYTHON_FALLTHROUGH;
26165 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
26167 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 5616, __pyx_L3_error)
26169 CYTHON_FALLTHROUGH;
26171 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
26173 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 5616, __pyx_L3_error)
26175 CYTHON_FALLTHROUGH;
26177 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
26179 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 5616, __pyx_L3_error)
26181 CYTHON_FALLTHROUGH;
26183 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26185 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 5616, __pyx_L3_error)
26187 CYTHON_FALLTHROUGH;
26189 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
26191 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 5616, __pyx_L3_error)
26193 CYTHON_FALLTHROUGH;
26195 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
26197 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 5616, __pyx_L3_error)
26199 CYTHON_FALLTHROUGH;
26201 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
26203 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 5616, __pyx_L3_error)
26205 CYTHON_FALLTHROUGH;
26207 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
26209 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 5616, __pyx_L3_error)
26211 CYTHON_FALLTHROUGH;
26213 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
26215 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 5616, __pyx_L3_error)
26217 CYTHON_FALLTHROUGH;
26219 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
26221 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 5616, __pyx_L3_error)
26223 CYTHON_FALLTHROUGH;
26225 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
26227 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 5616, __pyx_L3_error)
26229 CYTHON_FALLTHROUGH;
26231 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26233 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 5616, __pyx_L3_error)
26235 CYTHON_FALLTHROUGH;
26237 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
26239 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 5616, __pyx_L3_error)
26241 CYTHON_FALLTHROUGH;
26243 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26245 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 5616, __pyx_L3_error)
26247 CYTHON_FALLTHROUGH;
26249 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
26251 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 5616, __pyx_L3_error)
26253 CYTHON_FALLTHROUGH;
26255 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
26257 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 5616, __pyx_L3_error)
26259 CYTHON_FALLTHROUGH;
26261 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
26263 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 5616, __pyx_L3_error)
26266 if (unlikely(kw_args > 0)) {
26267 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5616, __pyx_L3_error)
26269 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
26270 goto __pyx_L5_argtuple_error;
26272 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26273 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26274 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26275 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26276 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26277 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26278 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26279 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26280 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26281 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26282 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26283 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26284 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26285 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26286 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26287 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26288 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26289 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26291 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5616, __pyx_L3_error)
26292 __pyx_v_gravity = ((PyArrayObject *)values[1]);
26293 __pyx_v_x = ((PyArrayObject *)values[2]);
26294 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5619, __pyx_L3_error)
26295 __pyx_v_n = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5620, __pyx_L3_error)
26296 __pyx_v_m = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5621, __pyx_L3_error)
26297 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5622, __pyx_L3_error)
26298 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5623, __pyx_L3_error)
26299 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5624, __pyx_L3_error)
26300 __pyx_v_u = ((PyArrayObject *)values[9]);
26301 __pyx_v_mass = ((PyArrayObject *)values[10]);
26302 __pyx_v_dmass = ((PyArrayObject *)values[11]);
26303 __pyx_v_f = ((PyArrayObject *)values[12]);
26304 __pyx_v_df = ((PyArrayObject *)values[13]);
26305 __pyx_v_a = ((PyArrayObject *)values[14]);
26306 __pyx_v_da = ((PyArrayObject *)values[15]);
26307 __pyx_v_phi = ((PyArrayObject *)values[16]);
26308 __pyx_v_dphi = ((PyArrayObject *)values[17]);
26310 goto __pyx_L4_argument_unpacking_done;
26311 __pyx_L5_argtuple_error:;
26312 __Pyx_RaiseArgtupleInvalid(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5616, __pyx_L3_error)
26314 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
26315 __Pyx_RefNannyFinishContext();
26317 __pyx_L4_argument_unpacking_done:;
26318 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5617, __pyx_L1_error)
26319 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5618, __pyx_L1_error)
26320 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5625, __pyx_L1_error)
26321 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5626, __pyx_L1_error)
26322 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5627, __pyx_L1_error)
26323 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5628, __pyx_L1_error)
26324 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5629, __pyx_L1_error)
26325 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5630, __pyx_L1_error)
26326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5631, __pyx_L1_error)
26327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5632, __pyx_L1_error)
26328 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5633, __pyx_L1_error)
26329 __pyx_r = __pyx_pf_22ctransportCoefficients_128conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_x, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
26336 __Pyx_RefNannyFinishContext();
26340 static PyObject *__pyx_pf_22ctransportCoefficients_128conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
26341 PyObject *__pyx_r = NULL;
26342 __Pyx_RefNannyDeclarations
26343 PyObject *__pyx_t_1 = NULL;
26345 int __pyx_lineno = 0;
26346 const char *__pyx_filename = NULL;
26347 int __pyx_clineno = 0;
26348 __Pyx_RefNannySetupContext(
"conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", 0);
26357 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5634, __pyx_L1_error)
26358 __Pyx_GOTREF(__pyx_t_1);
26359 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5634, __pyx_L1_error)
26360 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26369 conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_x->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
26380 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26383 __Pyx_XDECREF(__pyx_t_1);
26384 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
26387 __Pyx_XGIVEREF(__pyx_r);
26388 __Pyx_RefNannyFinishContext();
26401 static PyObject *__pyx_pw_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26402 static PyMethodDef __pyx_mdef_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het = {
"conservativeHeadRichardsMualemVanGenuchten_sd_het", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het, METH_VARARGS|METH_KEYWORDS, 0};
26403 static PyObject *__pyx_pw_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26404 PyArrayObject *__pyx_v_rowptr = 0;
26405 PyArrayObject *__pyx_v_colind = 0;
26406 PyArrayObject *__pyx_v_materialTypes = 0;
26407 double __pyx_v_rho;
26408 double __pyx_v_beta;
26409 PyArrayObject *__pyx_v_gravity = 0;
26410 PyArrayObject *__pyx_v_alpha = 0;
26411 PyArrayObject *__pyx_v_n = 0;
26412 PyArrayObject *__pyx_v_thetaR = 0;
26413 PyArrayObject *__pyx_v_thetaSR = 0;
26414 PyArrayObject *__pyx_v_KWs = 0;
26415 PyArrayObject *__pyx_v_u = 0;
26416 PyArrayObject *__pyx_v_mass = 0;
26417 PyArrayObject *__pyx_v_dmass = 0;
26418 PyArrayObject *__pyx_v_f = 0;
26419 PyArrayObject *__pyx_v_df = 0;
26420 PyArrayObject *__pyx_v_a = 0;
26421 PyArrayObject *__pyx_v_da = 0;
26422 PyArrayObject *__pyx_v_vol_frac = 0;
26423 int __pyx_v_linearize_at_zero;
26424 double __pyx_v_pc_eps;
26425 int __pyx_lineno = 0;
26426 const char *__pyx_filename = NULL;
26427 int __pyx_clineno = 0;
26428 PyObject *__pyx_r = 0;
26429 __Pyx_RefNannyDeclarations
26430 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchten_sd_het (wrapper)", 0);
26432 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_vol_frac,&__pyx_n_s_linearize_at_zero,&__pyx_n_s_pc_eps,0};
26433 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26434 if (unlikely(__pyx_kwds)) {
26435 Py_ssize_t kw_args;
26436 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26437 switch (pos_args) {
26438 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26439 CYTHON_FALLTHROUGH;
26440 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26441 CYTHON_FALLTHROUGH;
26442 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26443 CYTHON_FALLTHROUGH;
26444 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26445 CYTHON_FALLTHROUGH;
26446 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26447 CYTHON_FALLTHROUGH;
26448 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26449 CYTHON_FALLTHROUGH;
26450 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26451 CYTHON_FALLTHROUGH;
26452 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26453 CYTHON_FALLTHROUGH;
26454 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26455 CYTHON_FALLTHROUGH;
26456 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26457 CYTHON_FALLTHROUGH;
26458 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26459 CYTHON_FALLTHROUGH;
26460 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26461 CYTHON_FALLTHROUGH;
26462 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26463 CYTHON_FALLTHROUGH;
26464 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26465 CYTHON_FALLTHROUGH;
26466 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26467 CYTHON_FALLTHROUGH;
26468 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26469 CYTHON_FALLTHROUGH;
26470 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26471 CYTHON_FALLTHROUGH;
26472 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26473 CYTHON_FALLTHROUGH;
26474 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26475 CYTHON_FALLTHROUGH;
26476 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26477 CYTHON_FALLTHROUGH;
26478 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26479 CYTHON_FALLTHROUGH;
26481 default:
goto __pyx_L5_argtuple_error;
26483 kw_args = PyDict_Size(__pyx_kwds);
26484 switch (pos_args) {
26486 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
26487 else goto __pyx_L5_argtuple_error;
26488 CYTHON_FALLTHROUGH;
26490 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
26492 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 1); __PYX_ERR(0, 5654, __pyx_L3_error)
26494 CYTHON_FALLTHROUGH;
26496 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
26498 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 2); __PYX_ERR(0, 5654, __pyx_L3_error)
26500 CYTHON_FALLTHROUGH;
26502 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
26504 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 3); __PYX_ERR(0, 5654, __pyx_L3_error)
26506 CYTHON_FALLTHROUGH;
26508 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
26510 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 4); __PYX_ERR(0, 5654, __pyx_L3_error)
26512 CYTHON_FALLTHROUGH;
26514 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
26516 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 5); __PYX_ERR(0, 5654, __pyx_L3_error)
26518 CYTHON_FALLTHROUGH;
26520 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
26522 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 6); __PYX_ERR(0, 5654, __pyx_L3_error)
26524 CYTHON_FALLTHROUGH;
26526 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26528 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 7); __PYX_ERR(0, 5654, __pyx_L3_error)
26530 CYTHON_FALLTHROUGH;
26532 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
26534 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 8); __PYX_ERR(0, 5654, __pyx_L3_error)
26536 CYTHON_FALLTHROUGH;
26538 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
26540 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 9); __PYX_ERR(0, 5654, __pyx_L3_error)
26542 CYTHON_FALLTHROUGH;
26544 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
26546 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 10); __PYX_ERR(0, 5654, __pyx_L3_error)
26548 CYTHON_FALLTHROUGH;
26550 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
26552 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 11); __PYX_ERR(0, 5654, __pyx_L3_error)
26554 CYTHON_FALLTHROUGH;
26556 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
26558 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 12); __PYX_ERR(0, 5654, __pyx_L3_error)
26560 CYTHON_FALLTHROUGH;
26562 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
26564 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 13); __PYX_ERR(0, 5654, __pyx_L3_error)
26566 CYTHON_FALLTHROUGH;
26568 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26570 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 14); __PYX_ERR(0, 5654, __pyx_L3_error)
26572 CYTHON_FALLTHROUGH;
26574 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
26576 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 15); __PYX_ERR(0, 5654, __pyx_L3_error)
26578 CYTHON_FALLTHROUGH;
26580 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26582 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 16); __PYX_ERR(0, 5654, __pyx_L3_error)
26584 CYTHON_FALLTHROUGH;
26586 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
26588 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 17); __PYX_ERR(0, 5654, __pyx_L3_error)
26590 CYTHON_FALLTHROUGH;
26592 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vol_frac)) != 0)) kw_args--;
26594 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 18); __PYX_ERR(0, 5654, __pyx_L3_error)
26596 CYTHON_FALLTHROUGH;
26598 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_linearize_at_zero)) != 0)) kw_args--;
26600 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 19); __PYX_ERR(0, 5654, __pyx_L3_error)
26602 CYTHON_FALLTHROUGH;
26604 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pc_eps)) != 0)) kw_args--;
26606 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, 20); __PYX_ERR(0, 5654, __pyx_L3_error)
26609 if (unlikely(kw_args > 0)) {
26610 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchten_sd_het") < 0)) __PYX_ERR(0, 5654, __pyx_L3_error)
26612 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
26613 goto __pyx_L5_argtuple_error;
26615 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26616 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26617 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26618 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26619 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26620 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26621 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26622 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26623 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26624 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26625 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26626 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26627 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26628 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26629 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26630 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26631 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26632 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26633 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26634 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26635 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26637 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
26638 __pyx_v_colind = ((PyArrayObject *)values[1]);
26639 __pyx_v_materialTypes = ((PyArrayObject *)values[2]);
26640 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5657, __pyx_L3_error)
26641 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5658, __pyx_L3_error)
26642 __pyx_v_gravity = ((PyArrayObject *)values[5]);
26643 __pyx_v_alpha = ((PyArrayObject *)values[6]);
26644 __pyx_v_n = ((PyArrayObject *)values[7]);
26645 __pyx_v_thetaR = ((PyArrayObject *)values[8]);
26646 __pyx_v_thetaSR = ((PyArrayObject *)values[9]);
26647 __pyx_v_KWs = ((PyArrayObject *)values[10]);
26648 __pyx_v_u = ((PyArrayObject *)values[11]);
26649 __pyx_v_mass = ((PyArrayObject *)values[12]);
26650 __pyx_v_dmass = ((PyArrayObject *)values[13]);
26651 __pyx_v_f = ((PyArrayObject *)values[14]);
26652 __pyx_v_df = ((PyArrayObject *)values[15]);
26653 __pyx_v_a = ((PyArrayObject *)values[16]);
26654 __pyx_v_da = ((PyArrayObject *)values[17]);
26655 __pyx_v_vol_frac = ((PyArrayObject *)values[18]);
26656 __pyx_v_linearize_at_zero = __Pyx_PyInt_As_int(values[19]);
if (unlikely((__pyx_v_linearize_at_zero == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5673, __pyx_L3_error)
26657 __pyx_v_pc_eps = __pyx_PyFloat_AsDouble(values[20]);
if (unlikely((__pyx_v_pc_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5674, __pyx_L3_error)
26659 goto __pyx_L4_argument_unpacking_done;
26660 __pyx_L5_argtuple_error:;
26661 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5654, __pyx_L3_error)
26663 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchten_sd_het", __pyx_clineno, __pyx_lineno, __pyx_filename);
26664 __Pyx_RefNannyFinishContext();
26666 __pyx_L4_argument_unpacking_done:;
26667 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 5654, __pyx_L1_error)
26668 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 5655, __pyx_L1_error)
26669 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 5656, __pyx_L1_error)
26670 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5659, __pyx_L1_error)
26671 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 5660, __pyx_L1_error)
26672 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5661, __pyx_L1_error)
26673 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 5662, __pyx_L1_error)
26674 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 5663, __pyx_L1_error)
26675 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 5664, __pyx_L1_error)
26676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5665, __pyx_L1_error)
26677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5666, __pyx_L1_error)
26678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5667, __pyx_L1_error)
26679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5668, __pyx_L1_error)
26680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5669, __pyx_L1_error)
26681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5670, __pyx_L1_error)
26682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5671, __pyx_L1_error)
26683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vol_frac), __pyx_ptype_5numpy_ndarray, 1,
"vol_frac", 0))) __PYX_ERR(0, 5672, __pyx_L1_error)
26684 __pyx_r = __pyx_pf_22ctransportCoefficients_130conservativeHeadRichardsMualemVanGenuchten_sd_het(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_vol_frac, __pyx_v_linearize_at_zero, __pyx_v_pc_eps);
26691 __Pyx_RefNannyFinishContext();
26695 static PyObject *__pyx_pf_22ctransportCoefficients_130conservativeHeadRichardsMualemVanGenuchten_sd_het(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_vol_frac,
int __pyx_v_linearize_at_zero,
double __pyx_v_pc_eps) {
26696 PyObject *__pyx_r = NULL;
26697 __Pyx_RefNannyDeclarations
26699 PyObject *__pyx_t_2 = NULL;
26700 PyObject *__pyx_t_3 = NULL;
26701 PyObject *__pyx_t_4 = NULL;
26703 int __pyx_lineno = 0;
26704 const char *__pyx_filename = NULL;
26705 int __pyx_clineno = 0;
26706 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchten_sd_het", 0);
26715 __pyx_t_1 = ((__pyx_v_linearize_at_zero == 1) != 0);
26725 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5676, __pyx_L1_error)
26726 __Pyx_GOTREF(__pyx_t_2);
26727 __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5676, __pyx_L1_error)
26728 __Pyx_GOTREF(__pyx_t_3);
26729 __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5676, __pyx_L1_error)
26730 __Pyx_GOTREF(__pyx_t_4);
26731 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26732 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26733 __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_4);
if (unlikely((__pyx_t_5 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5676, __pyx_L1_error)
26734 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
26743 conservativeHeadRichardsMualemVanGenuchten_sd_het_linearized_at_saturation(__pyx_t_5, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_pc_eps, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_vol_frac->data));
26763 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5700, __pyx_L1_error)
26764 __Pyx_GOTREF(__pyx_t_4);
26765 __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5700, __pyx_L1_error)
26766 __Pyx_GOTREF(__pyx_t_3);
26767 __pyx_t_2 = __Pyx_PyNumber_Divide(__pyx_t_4, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5700, __pyx_L1_error)
26768 __Pyx_GOTREF(__pyx_t_2);
26769 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
26770 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26771 __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_2);
if (unlikely((__pyx_t_5 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5700, __pyx_L1_error)
26772 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26781 conservativeHeadRichardsMualemVanGenuchten_sd_het(__pyx_t_5, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_pc_eps, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_vol_frac->data));
26794 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26797 __Pyx_XDECREF(__pyx_t_2);
26798 __Pyx_XDECREF(__pyx_t_3);
26799 __Pyx_XDECREF(__pyx_t_4);
26800 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchten_sd_het", __pyx_clineno, __pyx_lineno, __pyx_filename);
26803 __Pyx_XGIVEREF(__pyx_r);
26804 __Pyx_RefNannyFinishContext();
26817 static PyObject *__pyx_pw_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26818 static PyMethodDef __pyx_mdef_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2 = {
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2, METH_VARARGS|METH_KEYWORDS, 0};
26819 static PyObject *__pyx_pw_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26820 PyArrayObject *__pyx_v_materialTypes = 0;
26821 double __pyx_v_rho;
26822 double __pyx_v_beta;
26823 PyArrayObject *__pyx_v_gravity = 0;
26824 PyArrayObject *__pyx_v_alpha = 0;
26825 PyArrayObject *__pyx_v_n = 0;
26826 PyArrayObject *__pyx_v_thetaR = 0;
26827 PyArrayObject *__pyx_v_thetaSR = 0;
26828 PyArrayObject *__pyx_v_KWs = 0;
26829 PyArrayObject *__pyx_v_u = 0;
26830 PyArrayObject *__pyx_v_mass = 0;
26831 PyArrayObject *__pyx_v_dmass = 0;
26832 PyArrayObject *__pyx_v_f = 0;
26833 PyArrayObject *__pyx_v_df = 0;
26834 PyArrayObject *__pyx_v_a = 0;
26835 PyArrayObject *__pyx_v_da = 0;
26836 int __pyx_lineno = 0;
26837 const char *__pyx_filename = NULL;
26838 int __pyx_clineno = 0;
26839 PyObject *__pyx_r = 0;
26840 __Pyx_RefNannyDeclarations
26841 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2 (wrapper)", 0);
26843 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
26844 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26845 if (unlikely(__pyx_kwds)) {
26846 Py_ssize_t kw_args;
26847 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26848 switch (pos_args) {
26849 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26850 CYTHON_FALLTHROUGH;
26851 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26852 CYTHON_FALLTHROUGH;
26853 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26854 CYTHON_FALLTHROUGH;
26855 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26856 CYTHON_FALLTHROUGH;
26857 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26858 CYTHON_FALLTHROUGH;
26859 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26860 CYTHON_FALLTHROUGH;
26861 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26862 CYTHON_FALLTHROUGH;
26863 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26864 CYTHON_FALLTHROUGH;
26865 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26866 CYTHON_FALLTHROUGH;
26867 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26868 CYTHON_FALLTHROUGH;
26869 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26870 CYTHON_FALLTHROUGH;
26871 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26872 CYTHON_FALLTHROUGH;
26873 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26874 CYTHON_FALLTHROUGH;
26875 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26876 CYTHON_FALLTHROUGH;
26877 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26878 CYTHON_FALLTHROUGH;
26879 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26880 CYTHON_FALLTHROUGH;
26882 default:
goto __pyx_L5_argtuple_error;
26884 kw_args = PyDict_Size(__pyx_kwds);
26885 switch (pos_args) {
26887 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
26888 else goto __pyx_L5_argtuple_error;
26889 CYTHON_FALLTHROUGH;
26891 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
26893 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 1); __PYX_ERR(0, 5723, __pyx_L3_error)
26895 CYTHON_FALLTHROUGH;
26897 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
26899 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 2); __PYX_ERR(0, 5723, __pyx_L3_error)
26901 CYTHON_FALLTHROUGH;
26903 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
26905 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 3); __PYX_ERR(0, 5723, __pyx_L3_error)
26907 CYTHON_FALLTHROUGH;
26909 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
26911 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 4); __PYX_ERR(0, 5723, __pyx_L3_error)
26913 CYTHON_FALLTHROUGH;
26915 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26917 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 5); __PYX_ERR(0, 5723, __pyx_L3_error)
26919 CYTHON_FALLTHROUGH;
26921 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
26923 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 6); __PYX_ERR(0, 5723, __pyx_L3_error)
26925 CYTHON_FALLTHROUGH;
26927 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
26929 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 7); __PYX_ERR(0, 5723, __pyx_L3_error)
26931 CYTHON_FALLTHROUGH;
26933 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
26935 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 8); __PYX_ERR(0, 5723, __pyx_L3_error)
26937 CYTHON_FALLTHROUGH;
26939 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
26941 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 9); __PYX_ERR(0, 5723, __pyx_L3_error)
26943 CYTHON_FALLTHROUGH;
26945 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
26947 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 10); __PYX_ERR(0, 5723, __pyx_L3_error)
26949 CYTHON_FALLTHROUGH;
26951 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
26953 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 11); __PYX_ERR(0, 5723, __pyx_L3_error)
26955 CYTHON_FALLTHROUGH;
26957 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26959 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 12); __PYX_ERR(0, 5723, __pyx_L3_error)
26961 CYTHON_FALLTHROUGH;
26963 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
26965 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 13); __PYX_ERR(0, 5723, __pyx_L3_error)
26967 CYTHON_FALLTHROUGH;
26969 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26971 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 14); __PYX_ERR(0, 5723, __pyx_L3_error)
26973 CYTHON_FALLTHROUGH;
26975 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
26977 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, 15); __PYX_ERR(0, 5723, __pyx_L3_error)
26980 if (unlikely(kw_args > 0)) {
26981 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2") < 0)) __PYX_ERR(0, 5723, __pyx_L3_error)
26983 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
26984 goto __pyx_L5_argtuple_error;
26986 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26987 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26988 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26989 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26990 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26991 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26992 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26993 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26994 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26995 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26996 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26997 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26998 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26999 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27000 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27001 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27003 __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
27004 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5724, __pyx_L3_error)
27005 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5725, __pyx_L3_error)
27006 __pyx_v_gravity = ((PyArrayObject *)values[3]);
27007 __pyx_v_alpha = ((PyArrayObject *)values[4]);
27008 __pyx_v_n = ((PyArrayObject *)values[5]);
27009 __pyx_v_thetaR = ((PyArrayObject *)values[6]);
27010 __pyx_v_thetaSR = ((PyArrayObject *)values[7]);
27011 __pyx_v_KWs = ((PyArrayObject *)values[8]);
27012 __pyx_v_u = ((PyArrayObject *)values[9]);
27013 __pyx_v_mass = ((PyArrayObject *)values[10]);
27014 __pyx_v_dmass = ((PyArrayObject *)values[11]);
27015 __pyx_v_f = ((PyArrayObject *)values[12]);
27016 __pyx_v_df = ((PyArrayObject *)values[13]);
27017 __pyx_v_a = ((PyArrayObject *)values[14]);
27018 __pyx_v_da = ((PyArrayObject *)values[15]);
27020 goto __pyx_L4_argument_unpacking_done;
27021 __pyx_L5_argtuple_error:;
27022 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5723, __pyx_L3_error)
27024 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", __pyx_clineno, __pyx_lineno, __pyx_filename);
27025 __Pyx_RefNannyFinishContext();
27027 __pyx_L4_argument_unpacking_done:;
27028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 5723, __pyx_L1_error)
27029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5726, __pyx_L1_error)
27030 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 5727, __pyx_L1_error)
27031 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5728, __pyx_L1_error)
27032 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 5729, __pyx_L1_error)
27033 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 5730, __pyx_L1_error)
27034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 5731, __pyx_L1_error)
27035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5732, __pyx_L1_error)
27036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5733, __pyx_L1_error)
27037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5734, __pyx_L1_error)
27038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5735, __pyx_L1_error)
27039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5736, __pyx_L1_error)
27040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5737, __pyx_L1_error)
27041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5738, __pyx_L1_error)
27042 __pyx_r = __pyx_pf_22ctransportCoefficients_132conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(__pyx_self, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
27049 __Pyx_RefNannyFinishContext();
27053 static PyObject *__pyx_pf_22ctransportCoefficients_132conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
27054 PyObject *__pyx_r = NULL;
27055 __Pyx_RefNannyDeclarations
27056 PyObject *__pyx_t_1 = NULL;
27057 PyObject *__pyx_t_2 = NULL;
27058 PyObject *__pyx_t_3 = NULL;
27060 int __pyx_lineno = 0;
27061 const char *__pyx_filename = NULL;
27062 int __pyx_clineno = 0;
27063 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", 0);
27072 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5739, __pyx_L1_error)
27073 __Pyx_GOTREF(__pyx_t_1);
27074 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5739, __pyx_L1_error)
27075 __Pyx_GOTREF(__pyx_t_2);
27076 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5739, __pyx_L1_error)
27077 __Pyx_GOTREF(__pyx_t_3);
27078 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27079 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
27080 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5739, __pyx_L1_error)
27081 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27090 conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(__pyx_t_4, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
27101 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27104 __Pyx_XDECREF(__pyx_t_1);
27105 __Pyx_XDECREF(__pyx_t_2);
27106 __Pyx_XDECREF(__pyx_t_3);
27107 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2", __pyx_clineno, __pyx_lineno, __pyx_filename);
27110 __Pyx_XGIVEREF(__pyx_r);
27111 __Pyx_RefNannyFinishContext();
27124 static PyObject *__pyx_pw_22ctransportCoefficients_135seepageBrezis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27125 static PyMethodDef __pyx_mdef_22ctransportCoefficients_135seepageBrezis = {
"seepageBrezis", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_135seepageBrezis, METH_VARARGS|METH_KEYWORDS, 0};
27126 static PyObject *__pyx_pw_22ctransportCoefficients_135seepageBrezis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27127 PyArrayObject *__pyx_v_materialTypes = 0;
27128 double __pyx_v_epsFact;
27129 double __pyx_v_rho;
27130 double __pyx_v_beta;
27131 PyArrayObject *__pyx_v_elementDiameter = 0;
27132 PyArrayObject *__pyx_v_gravity = 0;
27133 PyArrayObject *__pyx_v_alpha = 0;
27134 PyArrayObject *__pyx_v_n = 0;
27135 PyArrayObject *__pyx_v_thetaR = 0;
27136 PyArrayObject *__pyx_v_thetaSR = 0;
27137 PyArrayObject *__pyx_v_KWs = 0;
27138 PyArrayObject *__pyx_v_u = 0;
27139 PyArrayObject *__pyx_v_mass = 0;
27140 PyArrayObject *__pyx_v_dmass = 0;
27141 PyArrayObject *__pyx_v_f = 0;
27142 PyArrayObject *__pyx_v_df = 0;
27143 PyArrayObject *__pyx_v_a = 0;
27144 PyArrayObject *__pyx_v_da = 0;
27145 int __pyx_lineno = 0;
27146 const char *__pyx_filename = NULL;
27147 int __pyx_clineno = 0;
27148 PyObject *__pyx_r = 0;
27149 __Pyx_RefNannyDeclarations
27150 __Pyx_RefNannySetupContext(
"seepageBrezis (wrapper)", 0);
27152 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_epsFact,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_elementDiameter,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
27153 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27154 if (unlikely(__pyx_kwds)) {
27155 Py_ssize_t kw_args;
27156 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27157 switch (pos_args) {
27158 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27159 CYTHON_FALLTHROUGH;
27160 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27161 CYTHON_FALLTHROUGH;
27162 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27163 CYTHON_FALLTHROUGH;
27164 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27165 CYTHON_FALLTHROUGH;
27166 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27167 CYTHON_FALLTHROUGH;
27168 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27169 CYTHON_FALLTHROUGH;
27170 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27171 CYTHON_FALLTHROUGH;
27172 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27173 CYTHON_FALLTHROUGH;
27174 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27175 CYTHON_FALLTHROUGH;
27176 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27177 CYTHON_FALLTHROUGH;
27178 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27179 CYTHON_FALLTHROUGH;
27180 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27181 CYTHON_FALLTHROUGH;
27182 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27183 CYTHON_FALLTHROUGH;
27184 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27185 CYTHON_FALLTHROUGH;
27186 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27187 CYTHON_FALLTHROUGH;
27188 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27189 CYTHON_FALLTHROUGH;
27190 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27191 CYTHON_FALLTHROUGH;
27192 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27193 CYTHON_FALLTHROUGH;
27195 default:
goto __pyx_L5_argtuple_error;
27197 kw_args = PyDict_Size(__pyx_kwds);
27198 switch (pos_args) {
27200 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
27201 else goto __pyx_L5_argtuple_error;
27202 CYTHON_FALLTHROUGH;
27204 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
27206 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 1); __PYX_ERR(0, 5758, __pyx_L3_error)
27208 CYTHON_FALLTHROUGH;
27210 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
27212 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 2); __PYX_ERR(0, 5758, __pyx_L3_error)
27214 CYTHON_FALLTHROUGH;
27216 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
27218 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 3); __PYX_ERR(0, 5758, __pyx_L3_error)
27220 CYTHON_FALLTHROUGH;
27222 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
27224 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 4); __PYX_ERR(0, 5758, __pyx_L3_error)
27226 CYTHON_FALLTHROUGH;
27228 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
27230 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 5); __PYX_ERR(0, 5758, __pyx_L3_error)
27232 CYTHON_FALLTHROUGH;
27234 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
27236 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 6); __PYX_ERR(0, 5758, __pyx_L3_error)
27238 CYTHON_FALLTHROUGH;
27240 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27242 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 7); __PYX_ERR(0, 5758, __pyx_L3_error)
27244 CYTHON_FALLTHROUGH;
27246 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
27248 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 8); __PYX_ERR(0, 5758, __pyx_L3_error)
27250 CYTHON_FALLTHROUGH;
27252 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
27254 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 9); __PYX_ERR(0, 5758, __pyx_L3_error)
27256 CYTHON_FALLTHROUGH;
27258 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
27260 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 10); __PYX_ERR(0, 5758, __pyx_L3_error)
27262 CYTHON_FALLTHROUGH;
27264 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
27266 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 11); __PYX_ERR(0, 5758, __pyx_L3_error)
27268 CYTHON_FALLTHROUGH;
27270 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
27272 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 12); __PYX_ERR(0, 5758, __pyx_L3_error)
27274 CYTHON_FALLTHROUGH;
27276 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
27278 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 13); __PYX_ERR(0, 5758, __pyx_L3_error)
27280 CYTHON_FALLTHROUGH;
27282 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
27284 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 14); __PYX_ERR(0, 5758, __pyx_L3_error)
27286 CYTHON_FALLTHROUGH;
27288 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27290 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 15); __PYX_ERR(0, 5758, __pyx_L3_error)
27292 CYTHON_FALLTHROUGH;
27294 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27296 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 16); __PYX_ERR(0, 5758, __pyx_L3_error)
27298 CYTHON_FALLTHROUGH;
27300 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
27302 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, 17); __PYX_ERR(0, 5758, __pyx_L3_error)
27305 if (unlikely(kw_args > 0)) {
27306 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"seepageBrezis") < 0)) __PYX_ERR(0, 5758, __pyx_L3_error)
27308 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
27309 goto __pyx_L5_argtuple_error;
27311 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27312 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27313 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27314 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27315 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27316 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27317 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27318 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27319 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27320 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27321 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27322 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27323 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27324 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27325 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27326 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27327 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27328 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27330 __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
27331 __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_epsFact == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5759, __pyx_L3_error)
27332 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5760, __pyx_L3_error)
27333 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5761, __pyx_L3_error)
27334 __pyx_v_elementDiameter = ((PyArrayObject *)values[4]);
27335 __pyx_v_gravity = ((PyArrayObject *)values[5]);
27336 __pyx_v_alpha = ((PyArrayObject *)values[6]);
27337 __pyx_v_n = ((PyArrayObject *)values[7]);
27338 __pyx_v_thetaR = ((PyArrayObject *)values[8]);
27339 __pyx_v_thetaSR = ((PyArrayObject *)values[9]);
27340 __pyx_v_KWs = ((PyArrayObject *)values[10]);
27341 __pyx_v_u = ((PyArrayObject *)values[11]);
27342 __pyx_v_mass = ((PyArrayObject *)values[12]);
27343 __pyx_v_dmass = ((PyArrayObject *)values[13]);
27344 __pyx_v_f = ((PyArrayObject *)values[14]);
27345 __pyx_v_df = ((PyArrayObject *)values[15]);
27346 __pyx_v_a = ((PyArrayObject *)values[16]);
27347 __pyx_v_da = ((PyArrayObject *)values[17]);
27349 goto __pyx_L4_argument_unpacking_done;
27350 __pyx_L5_argtuple_error:;
27351 __Pyx_RaiseArgtupleInvalid(
"seepageBrezis", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5758, __pyx_L3_error)
27353 __Pyx_AddTraceback(
"ctransportCoefficients.seepageBrezis", __pyx_clineno, __pyx_lineno, __pyx_filename);
27354 __Pyx_RefNannyFinishContext();
27356 __pyx_L4_argument_unpacking_done:;
27357 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 5758, __pyx_L1_error)
27358 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 5762, __pyx_L1_error)
27359 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5763, __pyx_L1_error)
27360 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 5764, __pyx_L1_error)
27361 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5765, __pyx_L1_error)
27362 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 5766, __pyx_L1_error)
27363 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 5767, __pyx_L1_error)
27364 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 5768, __pyx_L1_error)
27365 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5769, __pyx_L1_error)
27366 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5770, __pyx_L1_error)
27367 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5771, __pyx_L1_error)
27368 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5772, __pyx_L1_error)
27369 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5773, __pyx_L1_error)
27370 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5774, __pyx_L1_error)
27371 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5775, __pyx_L1_error)
27372 __pyx_r = __pyx_pf_22ctransportCoefficients_134seepageBrezis(__pyx_self, __pyx_v_materialTypes, __pyx_v_epsFact, __pyx_v_rho, __pyx_v_beta, __pyx_v_elementDiameter, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
27379 __Pyx_RefNannyFinishContext();
27383 static PyObject *__pyx_pf_22ctransportCoefficients_134seepageBrezis(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_epsFact,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
27384 PyObject *__pyx_r = NULL;
27385 __Pyx_RefNannyDeclarations
27386 PyObject *__pyx_t_1 = NULL;
27387 PyObject *__pyx_t_2 = NULL;
27388 PyObject *__pyx_t_3 = NULL;
27390 int __pyx_lineno = 0;
27391 const char *__pyx_filename = NULL;
27392 int __pyx_clineno = 0;
27393 __Pyx_RefNannySetupContext(
"seepageBrezis", 0);
27402 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5776, __pyx_L1_error)
27403 __Pyx_GOTREF(__pyx_t_1);
27404 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5776, __pyx_L1_error)
27405 __Pyx_GOTREF(__pyx_t_2);
27406 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5776, __pyx_L1_error)
27407 __Pyx_GOTREF(__pyx_t_3);
27408 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27409 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
27410 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5776, __pyx_L1_error)
27411 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27420 seepageBrezis(__pyx_t_4, (__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
int *)__pyx_v_materialTypes->data), __pyx_v_epsFact, __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_elementDiameter->data), ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
27431 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27434 __Pyx_XDECREF(__pyx_t_1);
27435 __Pyx_XDECREF(__pyx_t_2);
27436 __Pyx_XDECREF(__pyx_t_3);
27437 __Pyx_AddTraceback(
"ctransportCoefficients.seepageBrezis", __pyx_clineno, __pyx_lineno, __pyx_filename);
27440 __Pyx_XGIVEREF(__pyx_r);
27441 __Pyx_RefNannyFinishContext();
27454 static PyObject *__pyx_pw_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27455 static PyMethodDef __pyx_mdef_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate = {
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
27456 static PyObject *__pyx_pw_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27457 double __pyx_v_rho;
27458 PyArrayObject *__pyx_v_gravity = 0;
27459 PyArrayObject *__pyx_v_alpha = 0;
27460 PyArrayObject *__pyx_v_n = 0;
27461 PyArrayObject *__pyx_v_thetaR = 0;
27462 PyArrayObject *__pyx_v_thetaSR = 0;
27463 PyArrayObject *__pyx_v_KWs = 0;
27464 PyArrayObject *__pyx_v_u = 0;
27465 PyArrayObject *__pyx_v_mass = 0;
27466 PyArrayObject *__pyx_v_dmass = 0;
27467 PyArrayObject *__pyx_v_f = 0;
27468 PyArrayObject *__pyx_v_df = 0;
27469 PyArrayObject *__pyx_v_a = 0;
27470 PyArrayObject *__pyx_v_da = 0;
27471 int __pyx_lineno = 0;
27472 const char *__pyx_filename = NULL;
27473 int __pyx_clineno = 0;
27474 PyObject *__pyx_r = 0;
27475 __Pyx_RefNannyDeclarations
27476 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate (wrapper)", 0);
27478 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
27479 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27480 if (unlikely(__pyx_kwds)) {
27481 Py_ssize_t kw_args;
27482 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27483 switch (pos_args) {
27484 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27485 CYTHON_FALLTHROUGH;
27486 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27487 CYTHON_FALLTHROUGH;
27488 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27489 CYTHON_FALLTHROUGH;
27490 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27491 CYTHON_FALLTHROUGH;
27492 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27493 CYTHON_FALLTHROUGH;
27494 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27495 CYTHON_FALLTHROUGH;
27496 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27497 CYTHON_FALLTHROUGH;
27498 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27499 CYTHON_FALLTHROUGH;
27500 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27501 CYTHON_FALLTHROUGH;
27502 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27503 CYTHON_FALLTHROUGH;
27504 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27505 CYTHON_FALLTHROUGH;
27506 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27507 CYTHON_FALLTHROUGH;
27508 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27509 CYTHON_FALLTHROUGH;
27510 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27511 CYTHON_FALLTHROUGH;
27513 default:
goto __pyx_L5_argtuple_error;
27515 kw_args = PyDict_Size(__pyx_kwds);
27516 switch (pos_args) {
27518 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
27519 else goto __pyx_L5_argtuple_error;
27520 CYTHON_FALLTHROUGH;
27522 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
27524 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 1); __PYX_ERR(0, 5797, __pyx_L3_error)
27526 CYTHON_FALLTHROUGH;
27528 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
27530 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 2); __PYX_ERR(0, 5797, __pyx_L3_error)
27532 CYTHON_FALLTHROUGH;
27534 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27536 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 3); __PYX_ERR(0, 5797, __pyx_L3_error)
27538 CYTHON_FALLTHROUGH;
27540 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
27542 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 4); __PYX_ERR(0, 5797, __pyx_L3_error)
27544 CYTHON_FALLTHROUGH;
27546 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
27548 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 5); __PYX_ERR(0, 5797, __pyx_L3_error)
27550 CYTHON_FALLTHROUGH;
27552 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
27554 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 6); __PYX_ERR(0, 5797, __pyx_L3_error)
27556 CYTHON_FALLTHROUGH;
27558 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
27560 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 7); __PYX_ERR(0, 5797, __pyx_L3_error)
27562 CYTHON_FALLTHROUGH;
27564 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
27566 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 8); __PYX_ERR(0, 5797, __pyx_L3_error)
27568 CYTHON_FALLTHROUGH;
27570 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
27572 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 9); __PYX_ERR(0, 5797, __pyx_L3_error)
27574 CYTHON_FALLTHROUGH;
27576 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
27578 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 10); __PYX_ERR(0, 5797, __pyx_L3_error)
27580 CYTHON_FALLTHROUGH;
27582 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27584 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 11); __PYX_ERR(0, 5797, __pyx_L3_error)
27586 CYTHON_FALLTHROUGH;
27588 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27590 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 12); __PYX_ERR(0, 5797, __pyx_L3_error)
27592 CYTHON_FALLTHROUGH;
27594 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
27596 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, 13); __PYX_ERR(0, 5797, __pyx_L3_error)
27599 if (unlikely(kw_args > 0)) {
27600 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate") < 0)) __PYX_ERR(0, 5797, __pyx_L3_error)
27602 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
27603 goto __pyx_L5_argtuple_error;
27605 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27606 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27607 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27608 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27609 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27610 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27611 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27612 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27613 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27614 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27615 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27616 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27617 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27618 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27620 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5797, __pyx_L3_error)
27621 __pyx_v_gravity = ((PyArrayObject *)values[1]);
27622 __pyx_v_alpha = ((PyArrayObject *)values[2]);
27623 __pyx_v_n = ((PyArrayObject *)values[3]);
27624 __pyx_v_thetaR = ((PyArrayObject *)values[4]);
27625 __pyx_v_thetaSR = ((PyArrayObject *)values[5]);
27626 __pyx_v_KWs = ((PyArrayObject *)values[6]);
27627 __pyx_v_u = ((PyArrayObject *)values[7]);
27628 __pyx_v_mass = ((PyArrayObject *)values[8]);
27629 __pyx_v_dmass = ((PyArrayObject *)values[9]);
27630 __pyx_v_f = ((PyArrayObject *)values[10]);
27631 __pyx_v_df = ((PyArrayObject *)values[11]);
27632 __pyx_v_a = ((PyArrayObject *)values[12]);
27633 __pyx_v_da = ((PyArrayObject *)values[13]);
27635 goto __pyx_L4_argument_unpacking_done;
27636 __pyx_L5_argtuple_error:;
27637 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5797, __pyx_L3_error)
27639 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
27640 __Pyx_RefNannyFinishContext();
27642 __pyx_L4_argument_unpacking_done:;
27643 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5798, __pyx_L1_error)
27644 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 5799, __pyx_L1_error)
27645 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5800, __pyx_L1_error)
27646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 5801, __pyx_L1_error)
27647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 5802, __pyx_L1_error)
27648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 5803, __pyx_L1_error)
27649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5804, __pyx_L1_error)
27650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5805, __pyx_L1_error)
27651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5806, __pyx_L1_error)
27652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5807, __pyx_L1_error)
27653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5808, __pyx_L1_error)
27654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5809, __pyx_L1_error)
27655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5810, __pyx_L1_error)
27656 __pyx_r = __pyx_pf_22ctransportCoefficients_136conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
27663 __Pyx_RefNannyFinishContext();
27667 static PyObject *__pyx_pf_22ctransportCoefficients_136conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
27668 PyObject *__pyx_r = NULL;
27669 __Pyx_RefNannyDeclarations
27670 PyObject *__pyx_t_1 = NULL;
27671 PyObject *__pyx_t_2 = NULL;
27672 PyObject *__pyx_t_3 = NULL;
27674 int __pyx_lineno = 0;
27675 const char *__pyx_filename = NULL;
27676 int __pyx_clineno = 0;
27677 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", 0);
27686 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5811, __pyx_L1_error)
27687 __Pyx_GOTREF(__pyx_t_1);
27688 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_u->dimensions[(__pyx_v_u->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5811, __pyx_L1_error)
27689 __Pyx_GOTREF(__pyx_t_2);
27690 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5811, __pyx_L1_error)
27691 __Pyx_GOTREF(__pyx_t_3);
27692 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27693 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
27694 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5811, __pyx_L1_error)
27695 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27704 conservativeHeadRichardsMualemVanGenuchtenHetEvaluate(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
27715 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27718 __Pyx_XDECREF(__pyx_t_1);
27719 __Pyx_XDECREF(__pyx_t_2);
27720 __Pyx_XDECREF(__pyx_t_3);
27721 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
27724 __Pyx_XGIVEREF(__pyx_r);
27725 __Pyx_RefNannyFinishContext();
27738 static PyObject *__pyx_pw_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27739 static PyMethodDef __pyx_mdef_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate = {
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
27740 static PyObject *__pyx_pw_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27741 double __pyx_v_rho;
27742 PyArrayObject *__pyx_v_gravity = 0;
27743 PyArrayObject *__pyx_v_x = 0;
27744 double __pyx_v_alpha;
27747 double __pyx_v_thetaR;
27748 double __pyx_v_thetaSR;
27749 double __pyx_v_KWs;
27750 PyArrayObject *__pyx_v_u = 0;
27751 PyArrayObject *__pyx_v_mass = 0;
27752 PyArrayObject *__pyx_v_dmass = 0;
27753 PyArrayObject *__pyx_v_f = 0;
27754 PyArrayObject *__pyx_v_df = 0;
27755 PyArrayObject *__pyx_v_a = 0;
27756 PyArrayObject *__pyx_v_da = 0;
27757 PyArrayObject *__pyx_v_phi = 0;
27758 PyArrayObject *__pyx_v_dphi = 0;
27759 int __pyx_lineno = 0;
27760 const char *__pyx_filename = NULL;
27761 int __pyx_clineno = 0;
27762 PyObject *__pyx_r = 0;
27763 __Pyx_RefNannyDeclarations
27764 __Pyx_RefNannySetupContext(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate (wrapper)", 0);
27766 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_x,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
27767 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27768 if (unlikely(__pyx_kwds)) {
27769 Py_ssize_t kw_args;
27770 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27771 switch (pos_args) {
27772 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27773 CYTHON_FALLTHROUGH;
27774 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27775 CYTHON_FALLTHROUGH;
27776 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27777 CYTHON_FALLTHROUGH;
27778 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27779 CYTHON_FALLTHROUGH;
27780 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27781 CYTHON_FALLTHROUGH;
27782 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27783 CYTHON_FALLTHROUGH;
27784 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27785 CYTHON_FALLTHROUGH;
27786 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27787 CYTHON_FALLTHROUGH;
27788 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27789 CYTHON_FALLTHROUGH;
27790 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27791 CYTHON_FALLTHROUGH;
27792 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27793 CYTHON_FALLTHROUGH;
27794 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27795 CYTHON_FALLTHROUGH;
27796 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27797 CYTHON_FALLTHROUGH;
27798 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27799 CYTHON_FALLTHROUGH;
27800 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27801 CYTHON_FALLTHROUGH;
27802 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27803 CYTHON_FALLTHROUGH;
27804 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27805 CYTHON_FALLTHROUGH;
27806 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27807 CYTHON_FALLTHROUGH;
27809 default:
goto __pyx_L5_argtuple_error;
27811 kw_args = PyDict_Size(__pyx_kwds);
27812 switch (pos_args) {
27814 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
27815 else goto __pyx_L5_argtuple_error;
27816 CYTHON_FALLTHROUGH;
27818 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
27820 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 5827, __pyx_L3_error)
27822 CYTHON_FALLTHROUGH;
27824 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
27826 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 5827, __pyx_L3_error)
27828 CYTHON_FALLTHROUGH;
27830 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
27832 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 5827, __pyx_L3_error)
27834 CYTHON_FALLTHROUGH;
27836 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27838 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 5827, __pyx_L3_error)
27840 CYTHON_FALLTHROUGH;
27842 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
27844 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 5827, __pyx_L3_error)
27846 CYTHON_FALLTHROUGH;
27848 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
27850 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 5827, __pyx_L3_error)
27852 CYTHON_FALLTHROUGH;
27854 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
27856 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 5827, __pyx_L3_error)
27858 CYTHON_FALLTHROUGH;
27860 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
27862 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 5827, __pyx_L3_error)
27864 CYTHON_FALLTHROUGH;
27866 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
27868 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 5827, __pyx_L3_error)
27870 CYTHON_FALLTHROUGH;
27872 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
27874 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 5827, __pyx_L3_error)
27876 CYTHON_FALLTHROUGH;
27878 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
27880 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 5827, __pyx_L3_error)
27882 CYTHON_FALLTHROUGH;
27884 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
27886 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 5827, __pyx_L3_error)
27888 CYTHON_FALLTHROUGH;
27890 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27892 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 5827, __pyx_L3_error)
27894 CYTHON_FALLTHROUGH;
27896 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27898 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 5827, __pyx_L3_error)
27900 CYTHON_FALLTHROUGH;
27902 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
27904 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 5827, __pyx_L3_error)
27906 CYTHON_FALLTHROUGH;
27908 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
27910 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 5827, __pyx_L3_error)
27912 CYTHON_FALLTHROUGH;
27914 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
27916 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 5827, __pyx_L3_error)
27919 if (unlikely(kw_args > 0)) {
27920 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate") < 0)) __PYX_ERR(0, 5827, __pyx_L3_error)
27922 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
27923 goto __pyx_L5_argtuple_error;
27925 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27926 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27927 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27928 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27929 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27930 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27931 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27932 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27933 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27934 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27935 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27936 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27937 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27938 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27939 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27940 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27941 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27942 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27944 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5827, __pyx_L3_error)
27945 __pyx_v_gravity = ((PyArrayObject *)values[1]);
27946 __pyx_v_x = ((PyArrayObject *)values[2]);
27947 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5830, __pyx_L3_error)
27948 __pyx_v_n = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5831, __pyx_L3_error)
27949 __pyx_v_m = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5832, __pyx_L3_error)
27950 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5833, __pyx_L3_error)
27951 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5834, __pyx_L3_error)
27952 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5835, __pyx_L3_error)
27953 __pyx_v_u = ((PyArrayObject *)values[9]);
27954 __pyx_v_mass = ((PyArrayObject *)values[10]);
27955 __pyx_v_dmass = ((PyArrayObject *)values[11]);
27956 __pyx_v_f = ((PyArrayObject *)values[12]);
27957 __pyx_v_df = ((PyArrayObject *)values[13]);
27958 __pyx_v_a = ((PyArrayObject *)values[14]);
27959 __pyx_v_da = ((PyArrayObject *)values[15]);
27960 __pyx_v_phi = ((PyArrayObject *)values[16]);
27961 __pyx_v_dphi = ((PyArrayObject *)values[17]);
27963 goto __pyx_L4_argument_unpacking_done;
27964 __pyx_L5_argtuple_error:;
27965 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5827, __pyx_L3_error)
27967 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeSatRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
27968 __Pyx_RefNannyFinishContext();
27970 __pyx_L4_argument_unpacking_done:;
27971 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5828, __pyx_L1_error)
27972 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 5829, __pyx_L1_error)
27973 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5836, __pyx_L1_error)
27974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5837, __pyx_L1_error)
27975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5838, __pyx_L1_error)
27976 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5839, __pyx_L1_error)
27977 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5840, __pyx_L1_error)
27978 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5841, __pyx_L1_error)
27979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5842, __pyx_L1_error)
27980 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5843, __pyx_L1_error)
27981 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5844, __pyx_L1_error)
27982 __pyx_r = __pyx_pf_22ctransportCoefficients_138conservativeSatRichardsMualemVanGenuchtenHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_x, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
27989 __Pyx_RefNannyFinishContext();
27993 static PyObject *__pyx_pf_22ctransportCoefficients_138conservativeSatRichardsMualemVanGenuchtenHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_x,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
27994 PyObject *__pyx_r = NULL;
27995 __Pyx_RefNannyDeclarations
27996 PyObject *__pyx_t_1 = NULL;
27998 int __pyx_lineno = 0;
27999 const char *__pyx_filename = NULL;
28000 int __pyx_clineno = 0;
28001 __Pyx_RefNannySetupContext(
"conservativeSatRichardsMualemVanGenuchtenHomEvaluate", 0);
28010 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5845, __pyx_L1_error)
28011 __Pyx_GOTREF(__pyx_t_1);
28012 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5845, __pyx_L1_error)
28013 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28022 conservativeSatRichardsMualemVanGenuchtenHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_x->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
28033 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28036 __Pyx_XDECREF(__pyx_t_1);
28037 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeSatRichardsMualemVanGenuchtenHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28040 __Pyx_XGIVEREF(__pyx_r);
28041 __Pyx_RefNannyFinishContext();
28054 static PyObject *__pyx_pw_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28055 static PyMethodDef __pyx_mdef_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate = {
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28056 static PyObject *__pyx_pw_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28057 double __pyx_v_rho;
28058 PyArrayObject *__pyx_v_gravity = 0;
28059 PyArrayObject *__pyx_v_Lambda = 0;
28060 PyArrayObject *__pyx_v_pd = 0;
28061 PyArrayObject *__pyx_v_thetaR = 0;
28062 PyArrayObject *__pyx_v_thetaS = 0;
28063 PyArrayObject *__pyx_v_KWs = 0;
28064 PyArrayObject *__pyx_v_u = 0;
28065 PyArrayObject *__pyx_v_mass = 0;
28066 PyArrayObject *__pyx_v_dmass = 0;
28067 PyArrayObject *__pyx_v_f = 0;
28068 PyArrayObject *__pyx_v_df = 0;
28069 PyArrayObject *__pyx_v_a = 0;
28070 PyArrayObject *__pyx_v_da = 0;
28071 int __pyx_lineno = 0;
28072 const char *__pyx_filename = NULL;
28073 int __pyx_clineno = 0;
28074 PyObject *__pyx_r = 0;
28075 __Pyx_RefNannyDeclarations
28076 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate (wrapper)", 0);
28078 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_Lambda,&__pyx_n_s_pd,&__pyx_n_s_thetaR,&__pyx_n_s_thetaS,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
28079 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28080 if (unlikely(__pyx_kwds)) {
28081 Py_ssize_t kw_args;
28082 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28083 switch (pos_args) {
28084 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28085 CYTHON_FALLTHROUGH;
28086 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28087 CYTHON_FALLTHROUGH;
28088 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28089 CYTHON_FALLTHROUGH;
28090 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28091 CYTHON_FALLTHROUGH;
28092 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28093 CYTHON_FALLTHROUGH;
28094 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28095 CYTHON_FALLTHROUGH;
28096 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28097 CYTHON_FALLTHROUGH;
28098 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28099 CYTHON_FALLTHROUGH;
28100 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28101 CYTHON_FALLTHROUGH;
28102 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28103 CYTHON_FALLTHROUGH;
28104 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28105 CYTHON_FALLTHROUGH;
28106 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28107 CYTHON_FALLTHROUGH;
28108 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28109 CYTHON_FALLTHROUGH;
28110 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28111 CYTHON_FALLTHROUGH;
28113 default:
goto __pyx_L5_argtuple_error;
28115 kw_args = PyDict_Size(__pyx_kwds);
28116 switch (pos_args) {
28118 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28119 else goto __pyx_L5_argtuple_error;
28120 CYTHON_FALLTHROUGH;
28122 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28124 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 1); __PYX_ERR(0, 5865, __pyx_L3_error)
28126 CYTHON_FALLTHROUGH;
28128 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda)) != 0)) kw_args--;
28130 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 2); __PYX_ERR(0, 5865, __pyx_L3_error)
28132 CYTHON_FALLTHROUGH;
28134 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pd)) != 0)) kw_args--;
28136 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 3); __PYX_ERR(0, 5865, __pyx_L3_error)
28138 CYTHON_FALLTHROUGH;
28140 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28142 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 4); __PYX_ERR(0, 5865, __pyx_L3_error)
28144 CYTHON_FALLTHROUGH;
28146 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaS)) != 0)) kw_args--;
28148 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 5); __PYX_ERR(0, 5865, __pyx_L3_error)
28150 CYTHON_FALLTHROUGH;
28152 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
28154 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 6); __PYX_ERR(0, 5865, __pyx_L3_error)
28156 CYTHON_FALLTHROUGH;
28158 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
28160 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 7); __PYX_ERR(0, 5865, __pyx_L3_error)
28162 CYTHON_FALLTHROUGH;
28164 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
28166 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 8); __PYX_ERR(0, 5865, __pyx_L3_error)
28168 CYTHON_FALLTHROUGH;
28170 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
28172 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 9); __PYX_ERR(0, 5865, __pyx_L3_error)
28174 CYTHON_FALLTHROUGH;
28176 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28178 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 10); __PYX_ERR(0, 5865, __pyx_L3_error)
28180 CYTHON_FALLTHROUGH;
28182 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
28184 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 11); __PYX_ERR(0, 5865, __pyx_L3_error)
28186 CYTHON_FALLTHROUGH;
28188 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28190 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 12); __PYX_ERR(0, 5865, __pyx_L3_error)
28192 CYTHON_FALLTHROUGH;
28194 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
28196 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, 13); __PYX_ERR(0, 5865, __pyx_L3_error)
28199 if (unlikely(kw_args > 0)) {
28200 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate") < 0)) __PYX_ERR(0, 5865, __pyx_L3_error)
28202 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
28203 goto __pyx_L5_argtuple_error;
28205 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28206 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28207 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28208 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28209 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28210 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28211 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28212 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28213 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28214 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28215 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28216 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28217 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28218 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28220 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5865, __pyx_L3_error)
28221 __pyx_v_gravity = ((PyArrayObject *)values[1]);
28222 __pyx_v_Lambda = ((PyArrayObject *)values[2]);
28223 __pyx_v_pd = ((PyArrayObject *)values[3]);
28224 __pyx_v_thetaR = ((PyArrayObject *)values[4]);
28225 __pyx_v_thetaS = ((PyArrayObject *)values[5]);
28226 __pyx_v_KWs = ((PyArrayObject *)values[6]);
28227 __pyx_v_u = ((PyArrayObject *)values[7]);
28228 __pyx_v_mass = ((PyArrayObject *)values[8]);
28229 __pyx_v_dmass = ((PyArrayObject *)values[9]);
28230 __pyx_v_f = ((PyArrayObject *)values[10]);
28231 __pyx_v_df = ((PyArrayObject *)values[11]);
28232 __pyx_v_a = ((PyArrayObject *)values[12]);
28233 __pyx_v_da = ((PyArrayObject *)values[13]);
28235 goto __pyx_L4_argument_unpacking_done;
28236 __pyx_L5_argtuple_error:;
28237 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5865, __pyx_L3_error)
28239 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28240 __Pyx_RefNannyFinishContext();
28242 __pyx_L4_argument_unpacking_done:;
28243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5866, __pyx_L1_error)
28244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lambda), __pyx_ptype_5numpy_ndarray, 1,
"Lambda", 0))) __PYX_ERR(0, 5867, __pyx_L1_error)
28245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pd), __pyx_ptype_5numpy_ndarray, 1,
"pd", 0))) __PYX_ERR(0, 5868, __pyx_L1_error)
28246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 5869, __pyx_L1_error)
28247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaS), __pyx_ptype_5numpy_ndarray, 1,
"thetaS", 0))) __PYX_ERR(0, 5870, __pyx_L1_error)
28248 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 5871, __pyx_L1_error)
28249 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5872, __pyx_L1_error)
28250 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5873, __pyx_L1_error)
28251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5874, __pyx_L1_error)
28252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5875, __pyx_L1_error)
28253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5876, __pyx_L1_error)
28254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5877, __pyx_L1_error)
28255 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5878, __pyx_L1_error)
28256 __pyx_r = __pyx_pf_22ctransportCoefficients_140conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaS, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
28263 __Pyx_RefNannyFinishContext();
28267 static PyObject *__pyx_pf_22ctransportCoefficients_140conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_Lambda, PyArrayObject *__pyx_v_pd, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaS, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
28268 PyObject *__pyx_r = NULL;
28269 __Pyx_RefNannyDeclarations
28270 PyObject *__pyx_t_1 = NULL;
28272 int __pyx_lineno = 0;
28273 const char *__pyx_filename = NULL;
28274 int __pyx_clineno = 0;
28275 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", 0);
28284 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5879, __pyx_L1_error)
28285 __Pyx_GOTREF(__pyx_t_1);
28286 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5879, __pyx_L1_error)
28287 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28296 conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_Lambda->data), ((
double *)__pyx_v_pd->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaS->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
28307 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28310 __Pyx_XDECREF(__pyx_t_1);
28311 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28314 __Pyx_XGIVEREF(__pyx_r);
28315 __Pyx_RefNannyFinishContext();
28328 static PyObject *__pyx_pw_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28329 static PyMethodDef __pyx_mdef_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate = {
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28330 static PyObject *__pyx_pw_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28331 double __pyx_v_rho;
28332 double __pyx_v_beta;
28333 PyArrayObject *__pyx_v_gravity = 0;
28334 double __pyx_v_Lambda;
28336 double __pyx_v_thetaR;
28337 double __pyx_v_thetaSR;
28338 double __pyx_v_KWs;
28339 PyArrayObject *__pyx_v_u = 0;
28340 PyArrayObject *__pyx_v_mass = 0;
28341 PyArrayObject *__pyx_v_dmass = 0;
28342 PyArrayObject *__pyx_v_f = 0;
28343 PyArrayObject *__pyx_v_df = 0;
28344 PyArrayObject *__pyx_v_a = 0;
28345 PyArrayObject *__pyx_v_da = 0;
28346 int __pyx_lineno = 0;
28347 const char *__pyx_filename = NULL;
28348 int __pyx_clineno = 0;
28349 PyObject *__pyx_r = 0;
28350 __Pyx_RefNannyDeclarations
28351 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate (wrapper)", 0);
28353 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_Lambda,&__pyx_n_s_pd,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
28354 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28355 if (unlikely(__pyx_kwds)) {
28356 Py_ssize_t kw_args;
28357 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28358 switch (pos_args) {
28359 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28360 CYTHON_FALLTHROUGH;
28361 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28362 CYTHON_FALLTHROUGH;
28363 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28364 CYTHON_FALLTHROUGH;
28365 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28366 CYTHON_FALLTHROUGH;
28367 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28368 CYTHON_FALLTHROUGH;
28369 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28370 CYTHON_FALLTHROUGH;
28371 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28372 CYTHON_FALLTHROUGH;
28373 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28374 CYTHON_FALLTHROUGH;
28375 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28376 CYTHON_FALLTHROUGH;
28377 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28378 CYTHON_FALLTHROUGH;
28379 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28380 CYTHON_FALLTHROUGH;
28381 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28382 CYTHON_FALLTHROUGH;
28383 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28384 CYTHON_FALLTHROUGH;
28385 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28386 CYTHON_FALLTHROUGH;
28387 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28388 CYTHON_FALLTHROUGH;
28390 default:
goto __pyx_L5_argtuple_error;
28392 kw_args = PyDict_Size(__pyx_kwds);
28393 switch (pos_args) {
28395 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28396 else goto __pyx_L5_argtuple_error;
28397 CYTHON_FALLTHROUGH;
28399 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
28401 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 1); __PYX_ERR(0, 5895, __pyx_L3_error)
28403 CYTHON_FALLTHROUGH;
28405 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28407 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 2); __PYX_ERR(0, 5895, __pyx_L3_error)
28409 CYTHON_FALLTHROUGH;
28411 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda)) != 0)) kw_args--;
28413 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 3); __PYX_ERR(0, 5895, __pyx_L3_error)
28415 CYTHON_FALLTHROUGH;
28417 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pd)) != 0)) kw_args--;
28419 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 4); __PYX_ERR(0, 5895, __pyx_L3_error)
28421 CYTHON_FALLTHROUGH;
28423 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28425 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 5); __PYX_ERR(0, 5895, __pyx_L3_error)
28427 CYTHON_FALLTHROUGH;
28429 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
28431 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 6); __PYX_ERR(0, 5895, __pyx_L3_error)
28433 CYTHON_FALLTHROUGH;
28435 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
28437 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 7); __PYX_ERR(0, 5895, __pyx_L3_error)
28439 CYTHON_FALLTHROUGH;
28441 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
28443 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 8); __PYX_ERR(0, 5895, __pyx_L3_error)
28445 CYTHON_FALLTHROUGH;
28447 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
28449 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 9); __PYX_ERR(0, 5895, __pyx_L3_error)
28451 CYTHON_FALLTHROUGH;
28453 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
28455 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 10); __PYX_ERR(0, 5895, __pyx_L3_error)
28457 CYTHON_FALLTHROUGH;
28459 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28461 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 11); __PYX_ERR(0, 5895, __pyx_L3_error)
28463 CYTHON_FALLTHROUGH;
28465 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
28467 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 12); __PYX_ERR(0, 5895, __pyx_L3_error)
28469 CYTHON_FALLTHROUGH;
28471 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28473 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 13); __PYX_ERR(0, 5895, __pyx_L3_error)
28475 CYTHON_FALLTHROUGH;
28477 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
28479 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, 14); __PYX_ERR(0, 5895, __pyx_L3_error)
28482 if (unlikely(kw_args > 0)) {
28483 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate") < 0)) __PYX_ERR(0, 5895, __pyx_L3_error)
28485 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
28486 goto __pyx_L5_argtuple_error;
28488 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28489 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28490 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28491 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28492 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28493 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28494 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28495 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28496 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28497 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28498 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28499 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28500 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28501 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28502 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28504 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5895, __pyx_L3_error)
28505 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5896, __pyx_L3_error)
28506 __pyx_v_gravity = ((PyArrayObject *)values[2]);
28507 __pyx_v_Lambda = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_Lambda == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5898, __pyx_L3_error)
28508 __pyx_v_pd = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_pd == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5899, __pyx_L3_error)
28509 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5900, __pyx_L3_error)
28510 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5901, __pyx_L3_error)
28511 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5902, __pyx_L3_error)
28512 __pyx_v_u = ((PyArrayObject *)values[8]);
28513 __pyx_v_mass = ((PyArrayObject *)values[9]);
28514 __pyx_v_dmass = ((PyArrayObject *)values[10]);
28515 __pyx_v_f = ((PyArrayObject *)values[11]);
28516 __pyx_v_df = ((PyArrayObject *)values[12]);
28517 __pyx_v_a = ((PyArrayObject *)values[13]);
28518 __pyx_v_da = ((PyArrayObject *)values[14]);
28520 goto __pyx_L4_argument_unpacking_done;
28521 __pyx_L5_argtuple_error:;
28522 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5895, __pyx_L3_error)
28524 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28525 __Pyx_RefNannyFinishContext();
28527 __pyx_L4_argument_unpacking_done:;
28528 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5897, __pyx_L1_error)
28529 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5903, __pyx_L1_error)
28530 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5904, __pyx_L1_error)
28531 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5905, __pyx_L1_error)
28532 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5906, __pyx_L1_error)
28533 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5907, __pyx_L1_error)
28534 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5908, __pyx_L1_error)
28535 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5909, __pyx_L1_error)
28536 __pyx_r = __pyx_pf_22ctransportCoefficients_142conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
28543 __Pyx_RefNannyFinishContext();
28547 static PyObject *__pyx_pf_22ctransportCoefficients_142conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity,
double __pyx_v_Lambda,
double __pyx_v_pd,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
28548 PyObject *__pyx_r = NULL;
28549 __Pyx_RefNannyDeclarations
28550 PyObject *__pyx_t_1 = NULL;
28552 int __pyx_lineno = 0;
28553 const char *__pyx_filename = NULL;
28554 int __pyx_clineno = 0;
28555 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", 0);
28564 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5910, __pyx_L1_error)
28565 __Pyx_GOTREF(__pyx_t_1);
28566 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5910, __pyx_L1_error)
28567 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
28576 conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
28587 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28590 __Pyx_XDECREF(__pyx_t_1);
28591 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28594 __Pyx_XGIVEREF(__pyx_r);
28595 __Pyx_RefNannyFinishContext();
28608 static PyObject *__pyx_pw_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28609 static PyMethodDef __pyx_mdef_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate = {
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28610 static PyObject *__pyx_pw_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28611 int __pyx_v_nPoints;
28612 int __pyx_v_nSpace;
28613 double __pyx_v_rho;
28614 PyArrayObject *__pyx_v_gravity = 0;
28615 double __pyx_v_Lambda;
28617 double __pyx_v_thetaR;
28618 double __pyx_v_thetaSR;
28619 double __pyx_v_KWs;
28620 PyArrayObject *__pyx_v_u = 0;
28621 PyArrayObject *__pyx_v_mass = 0;
28622 PyArrayObject *__pyx_v_dmass = 0;
28623 PyArrayObject *__pyx_v_f = 0;
28624 PyArrayObject *__pyx_v_df = 0;
28625 PyArrayObject *__pyx_v_a = 0;
28626 PyArrayObject *__pyx_v_da = 0;
28627 PyArrayObject *__pyx_v_phi = 0;
28628 PyArrayObject *__pyx_v_dphi = 0;
28629 int __pyx_lineno = 0;
28630 const char *__pyx_filename = NULL;
28631 int __pyx_clineno = 0;
28632 PyObject *__pyx_r = 0;
28633 __Pyx_RefNannyDeclarations
28634 __Pyx_RefNannySetupContext(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate (wrapper)", 0);
28636 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_nSpace,&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_Lambda,&__pyx_n_s_pd,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_phi,&__pyx_n_s_dphi,0};
28637 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28638 if (unlikely(__pyx_kwds)) {
28639 Py_ssize_t kw_args;
28640 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28641 switch (pos_args) {
28642 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28643 CYTHON_FALLTHROUGH;
28644 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28645 CYTHON_FALLTHROUGH;
28646 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28647 CYTHON_FALLTHROUGH;
28648 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28649 CYTHON_FALLTHROUGH;
28650 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28651 CYTHON_FALLTHROUGH;
28652 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28653 CYTHON_FALLTHROUGH;
28654 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28655 CYTHON_FALLTHROUGH;
28656 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28657 CYTHON_FALLTHROUGH;
28658 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28659 CYTHON_FALLTHROUGH;
28660 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28661 CYTHON_FALLTHROUGH;
28662 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28663 CYTHON_FALLTHROUGH;
28664 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28665 CYTHON_FALLTHROUGH;
28666 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28667 CYTHON_FALLTHROUGH;
28668 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28669 CYTHON_FALLTHROUGH;
28670 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28671 CYTHON_FALLTHROUGH;
28672 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28673 CYTHON_FALLTHROUGH;
28674 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28675 CYTHON_FALLTHROUGH;
28676 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28677 CYTHON_FALLTHROUGH;
28679 default:
goto __pyx_L5_argtuple_error;
28681 kw_args = PyDict_Size(__pyx_kwds);
28682 switch (pos_args) {
28684 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
28685 else goto __pyx_L5_argtuple_error;
28686 CYTHON_FALLTHROUGH;
28688 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
28690 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 5927, __pyx_L3_error)
28692 CYTHON_FALLTHROUGH;
28694 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28696 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 5927, __pyx_L3_error)
28698 CYTHON_FALLTHROUGH;
28700 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28702 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 5927, __pyx_L3_error)
28704 CYTHON_FALLTHROUGH;
28706 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lambda)) != 0)) kw_args--;
28708 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 5927, __pyx_L3_error)
28710 CYTHON_FALLTHROUGH;
28712 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pd)) != 0)) kw_args--;
28714 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 5927, __pyx_L3_error)
28716 CYTHON_FALLTHROUGH;
28718 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28720 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 5927, __pyx_L3_error)
28722 CYTHON_FALLTHROUGH;
28724 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
28726 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 5927, __pyx_L3_error)
28728 CYTHON_FALLTHROUGH;
28730 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
28732 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 5927, __pyx_L3_error)
28734 CYTHON_FALLTHROUGH;
28736 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
28738 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 5927, __pyx_L3_error)
28740 CYTHON_FALLTHROUGH;
28742 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
28744 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 5927, __pyx_L3_error)
28746 CYTHON_FALLTHROUGH;
28748 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
28750 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 5927, __pyx_L3_error)
28752 CYTHON_FALLTHROUGH;
28754 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28756 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 5927, __pyx_L3_error)
28758 CYTHON_FALLTHROUGH;
28760 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
28762 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 5927, __pyx_L3_error)
28764 CYTHON_FALLTHROUGH;
28766 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28768 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 5927, __pyx_L3_error)
28770 CYTHON_FALLTHROUGH;
28772 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
28774 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 5927, __pyx_L3_error)
28776 CYTHON_FALLTHROUGH;
28778 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
28780 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 5927, __pyx_L3_error)
28782 CYTHON_FALLTHROUGH;
28784 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
28786 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 5927, __pyx_L3_error)
28789 if (unlikely(kw_args > 0)) {
28790 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate") < 0)) __PYX_ERR(0, 5927, __pyx_L3_error)
28792 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
28793 goto __pyx_L5_argtuple_error;
28795 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28796 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28797 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28798 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28799 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28800 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28801 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28802 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28803 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28804 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28805 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28806 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28807 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28808 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28809 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28810 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28811 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28812 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28814 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5927, __pyx_L3_error)
28815 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5928, __pyx_L3_error)
28816 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5929, __pyx_L3_error)
28817 __pyx_v_gravity = ((PyArrayObject *)values[3]);
28818 __pyx_v_Lambda = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_Lambda == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5931, __pyx_L3_error)
28819 __pyx_v_pd = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_pd == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5932, __pyx_L3_error)
28820 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5933, __pyx_L3_error)
28821 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5934, __pyx_L3_error)
28822 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5935, __pyx_L3_error)
28823 __pyx_v_u = ((PyArrayObject *)values[9]);
28824 __pyx_v_mass = ((PyArrayObject *)values[10]);
28825 __pyx_v_dmass = ((PyArrayObject *)values[11]);
28826 __pyx_v_f = ((PyArrayObject *)values[12]);
28827 __pyx_v_df = ((PyArrayObject *)values[13]);
28828 __pyx_v_a = ((PyArrayObject *)values[14]);
28829 __pyx_v_da = ((PyArrayObject *)values[15]);
28830 __pyx_v_phi = ((PyArrayObject *)values[16]);
28831 __pyx_v_dphi = ((PyArrayObject *)values[17]);
28833 goto __pyx_L4_argument_unpacking_done;
28834 __pyx_L5_argtuple_error:;
28835 __Pyx_RaiseArgtupleInvalid(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5927, __pyx_L3_error)
28837 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
28838 __Pyx_RefNannyFinishContext();
28840 __pyx_L4_argument_unpacking_done:;
28841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5930, __pyx_L1_error)
28842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5936, __pyx_L1_error)
28843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5937, __pyx_L1_error)
28844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5938, __pyx_L1_error)
28845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5939, __pyx_L1_error)
28846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5940, __pyx_L1_error)
28847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5941, __pyx_L1_error)
28848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5942, __pyx_L1_error)
28849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5943, __pyx_L1_error)
28850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5944, __pyx_L1_error)
28851 __pyx_r = __pyx_pf_22ctransportCoefficients_144conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(__pyx_self, __pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_rho, __pyx_v_gravity, __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da, __pyx_v_phi, __pyx_v_dphi);
28858 __Pyx_RefNannyFinishContext();
28862 static PyObject *__pyx_pf_22ctransportCoefficients_144conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
int __pyx_v_nSpace,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_Lambda,
double __pyx_v_pd,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi) {
28863 PyObject *__pyx_r = NULL;
28864 __Pyx_RefNannyDeclarations
28865 __Pyx_RefNannySetupContext(
"conservativeSatRichardsBrooksCoreyBurdineHomEvaluate", 0);
28874 conservativeSatRichardsBrooksCoreyBurdineHomEvaluate(__pyx_v_nPoints, __pyx_v_nSpace, __pyx_v_rho, ((
double *)__pyx_v_gravity->data), __pyx_v_Lambda, __pyx_v_pd, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data));
28885 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28886 __Pyx_XGIVEREF(__pyx_r);
28887 __Pyx_RefNannyFinishContext();
28900 static PyObject *__pyx_pw_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28901 static PyMethodDef __pyx_mdef_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate = {
"conservativeHeadRichardsBCBfromMVGHomEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
28902 static PyObject *__pyx_pw_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28903 double __pyx_v_rho;
28904 PyArrayObject *__pyx_v_gravity = 0;
28905 double __pyx_v_alpha;
28908 double __pyx_v_thetaR;
28909 double __pyx_v_thetaSR;
28910 double __pyx_v_KWs;
28911 PyArrayObject *__pyx_v_u = 0;
28912 PyArrayObject *__pyx_v_mass = 0;
28913 PyArrayObject *__pyx_v_dmass = 0;
28914 PyArrayObject *__pyx_v_f = 0;
28915 PyArrayObject *__pyx_v_df = 0;
28916 PyArrayObject *__pyx_v_a = 0;
28917 PyArrayObject *__pyx_v_da = 0;
28918 int __pyx_lineno = 0;
28919 const char *__pyx_filename = NULL;
28920 int __pyx_clineno = 0;
28921 PyObject *__pyx_r = 0;
28922 __Pyx_RefNannyDeclarations
28923 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsBCBfromMVGHomEvaluate (wrapper)", 0);
28925 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n,&__pyx_n_s_m,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
28926 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28927 if (unlikely(__pyx_kwds)) {
28928 Py_ssize_t kw_args;
28929 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28930 switch (pos_args) {
28931 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28932 CYTHON_FALLTHROUGH;
28933 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28934 CYTHON_FALLTHROUGH;
28935 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28936 CYTHON_FALLTHROUGH;
28937 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28938 CYTHON_FALLTHROUGH;
28939 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28940 CYTHON_FALLTHROUGH;
28941 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28942 CYTHON_FALLTHROUGH;
28943 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28944 CYTHON_FALLTHROUGH;
28945 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28946 CYTHON_FALLTHROUGH;
28947 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28948 CYTHON_FALLTHROUGH;
28949 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28950 CYTHON_FALLTHROUGH;
28951 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28952 CYTHON_FALLTHROUGH;
28953 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28954 CYTHON_FALLTHROUGH;
28955 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28956 CYTHON_FALLTHROUGH;
28957 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28958 CYTHON_FALLTHROUGH;
28959 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28960 CYTHON_FALLTHROUGH;
28962 default:
goto __pyx_L5_argtuple_error;
28964 kw_args = PyDict_Size(__pyx_kwds);
28965 switch (pos_args) {
28967 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
28968 else goto __pyx_L5_argtuple_error;
28969 CYTHON_FALLTHROUGH;
28971 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
28973 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 1); __PYX_ERR(0, 5963, __pyx_L3_error)
28975 CYTHON_FALLTHROUGH;
28977 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
28979 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 2); __PYX_ERR(0, 5963, __pyx_L3_error)
28981 CYTHON_FALLTHROUGH;
28983 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
28985 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 3); __PYX_ERR(0, 5963, __pyx_L3_error)
28987 CYTHON_FALLTHROUGH;
28989 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
28991 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 4); __PYX_ERR(0, 5963, __pyx_L3_error)
28993 CYTHON_FALLTHROUGH;
28995 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
28997 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 5); __PYX_ERR(0, 5963, __pyx_L3_error)
28999 CYTHON_FALLTHROUGH;
29001 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
29003 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 6); __PYX_ERR(0, 5963, __pyx_L3_error)
29005 CYTHON_FALLTHROUGH;
29007 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
29009 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 7); __PYX_ERR(0, 5963, __pyx_L3_error)
29011 CYTHON_FALLTHROUGH;
29013 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29015 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 8); __PYX_ERR(0, 5963, __pyx_L3_error)
29017 CYTHON_FALLTHROUGH;
29019 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
29021 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 9); __PYX_ERR(0, 5963, __pyx_L3_error)
29023 CYTHON_FALLTHROUGH;
29025 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
29027 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 10); __PYX_ERR(0, 5963, __pyx_L3_error)
29029 CYTHON_FALLTHROUGH;
29031 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
29033 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 11); __PYX_ERR(0, 5963, __pyx_L3_error)
29035 CYTHON_FALLTHROUGH;
29037 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
29039 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 12); __PYX_ERR(0, 5963, __pyx_L3_error)
29041 CYTHON_FALLTHROUGH;
29043 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
29045 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 13); __PYX_ERR(0, 5963, __pyx_L3_error)
29047 CYTHON_FALLTHROUGH;
29049 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
29051 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, 14); __PYX_ERR(0, 5963, __pyx_L3_error)
29054 if (unlikely(kw_args > 0)) {
29055 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsBCBfromMVGHomEvaluate") < 0)) __PYX_ERR(0, 5963, __pyx_L3_error)
29057 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
29058 goto __pyx_L5_argtuple_error;
29060 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29061 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29062 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29063 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29064 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29065 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29066 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29067 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29068 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29069 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29070 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29071 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29072 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29073 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29074 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29076 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5963, __pyx_L3_error)
29077 __pyx_v_gravity = ((PyArrayObject *)values[1]);
29078 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5965, __pyx_L3_error)
29079 __pyx_v_n = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_n == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5966, __pyx_L3_error)
29080 __pyx_v_m = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_m == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5967, __pyx_L3_error)
29081 __pyx_v_thetaR = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_thetaR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5968, __pyx_L3_error)
29082 __pyx_v_thetaSR = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_thetaSR == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5969, __pyx_L3_error)
29083 __pyx_v_KWs = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_KWs == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5970, __pyx_L3_error)
29084 __pyx_v_u = ((PyArrayObject *)values[8]);
29085 __pyx_v_mass = ((PyArrayObject *)values[9]);
29086 __pyx_v_dmass = ((PyArrayObject *)values[10]);
29087 __pyx_v_f = ((PyArrayObject *)values[11]);
29088 __pyx_v_df = ((PyArrayObject *)values[12]);
29089 __pyx_v_a = ((PyArrayObject *)values[13]);
29090 __pyx_v_da = ((PyArrayObject *)values[14]);
29092 goto __pyx_L4_argument_unpacking_done;
29093 __pyx_L5_argtuple_error:;
29094 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5963, __pyx_L3_error)
29096 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsBCBfromMVGHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29097 __Pyx_RefNannyFinishContext();
29099 __pyx_L4_argument_unpacking_done:;
29100 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 5964, __pyx_L1_error)
29101 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5971, __pyx_L1_error)
29102 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 5972, __pyx_L1_error)
29103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 5973, __pyx_L1_error)
29104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5974, __pyx_L1_error)
29105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5975, __pyx_L1_error)
29106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5976, __pyx_L1_error)
29107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5977, __pyx_L1_error)
29108 __pyx_r = __pyx_pf_22ctransportCoefficients_146conservativeHeadRichardsBCBfromMVGHomEvaluate(__pyx_self, __pyx_v_rho, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
29115 __Pyx_RefNannyFinishContext();
29119 static PyObject *__pyx_pf_22ctransportCoefficients_146conservativeHeadRichardsBCBfromMVGHomEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_gravity,
double __pyx_v_alpha,
double __pyx_v_n,
double __pyx_v_m,
double __pyx_v_thetaR,
double __pyx_v_thetaSR,
double __pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
29120 PyObject *__pyx_r = NULL;
29121 __Pyx_RefNannyDeclarations
29122 PyObject *__pyx_t_1 = NULL;
29124 int __pyx_lineno = 0;
29125 const char *__pyx_filename = NULL;
29126 int __pyx_clineno = 0;
29127 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsBCBfromMVGHomEvaluate", 0);
29136 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5978, __pyx_L1_error)
29137 __Pyx_GOTREF(__pyx_t_1);
29138 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5978, __pyx_L1_error)
29139 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29148 conservativeHeadRichardsBCBfromMVGHomEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_rho, ((
double *)__pyx_v_gravity->data), __pyx_v_alpha, __pyx_v_n, __pyx_v_m, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
29159 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29162 __Pyx_XDECREF(__pyx_t_1);
29163 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsBCBfromMVGHomEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29166 __Pyx_XGIVEREF(__pyx_r);
29167 __Pyx_RefNannyFinishContext();
29180 static PyObject *__pyx_pw_22ctransportCoefficients_149LinearElasticity_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29181 static PyMethodDef __pyx_mdef_22ctransportCoefficients_149LinearElasticity_1D_Evaluate = {
"LinearElasticity_1D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_149LinearElasticity_1D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29182 static PyObject *__pyx_pw_22ctransportCoefficients_149LinearElasticity_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29185 PyArrayObject *__pyx_v_g = 0;
29186 PyArrayObject *__pyx_v_u = 0;
29187 PyArrayObject *__pyx_v_uu_diff_ten = 0;
29188 PyArrayObject *__pyx_v_u_force = 0;
29189 int __pyx_lineno = 0;
29190 const char *__pyx_filename = NULL;
29191 int __pyx_clineno = 0;
29192 PyObject *__pyx_r = 0;
29193 __Pyx_RefNannyDeclarations
29194 __Pyx_RefNannySetupContext(
"LinearElasticity_1D_Evaluate (wrapper)", 0);
29196 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_u,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_u_force,0};
29197 PyObject* values[6] = {0,0,0,0,0,0};
29198 if (unlikely(__pyx_kwds)) {
29199 Py_ssize_t kw_args;
29200 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29201 switch (pos_args) {
29202 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29203 CYTHON_FALLTHROUGH;
29204 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29205 CYTHON_FALLTHROUGH;
29206 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29207 CYTHON_FALLTHROUGH;
29208 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29209 CYTHON_FALLTHROUGH;
29210 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29211 CYTHON_FALLTHROUGH;
29212 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29213 CYTHON_FALLTHROUGH;
29215 default:
goto __pyx_L5_argtuple_error;
29217 kw_args = PyDict_Size(__pyx_kwds);
29218 switch (pos_args) {
29220 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E)) != 0)) kw_args--;
29221 else goto __pyx_L5_argtuple_error;
29222 CYTHON_FALLTHROUGH;
29224 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29226 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_1D_Evaluate", 1, 6, 6, 1); __PYX_ERR(0, 5995, __pyx_L3_error)
29228 CYTHON_FALLTHROUGH;
29230 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29232 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_1D_Evaluate", 1, 6, 6, 2); __PYX_ERR(0, 5995, __pyx_L3_error)
29234 CYTHON_FALLTHROUGH;
29236 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29238 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_1D_Evaluate", 1, 6, 6, 3); __PYX_ERR(0, 5995, __pyx_L3_error)
29240 CYTHON_FALLTHROUGH;
29242 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
29244 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_1D_Evaluate", 1, 6, 6, 4); __PYX_ERR(0, 5995, __pyx_L3_error)
29246 CYTHON_FALLTHROUGH;
29248 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
29250 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_1D_Evaluate", 1, 6, 6, 5); __PYX_ERR(0, 5995, __pyx_L3_error)
29253 if (unlikely(kw_args > 0)) {
29254 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"LinearElasticity_1D_Evaluate") < 0)) __PYX_ERR(0, 5995, __pyx_L3_error)
29256 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
29257 goto __pyx_L5_argtuple_error;
29259 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29260 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29261 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29262 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29263 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29264 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29266 __pyx_v_E = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_E == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5995, __pyx_L3_error)
29267 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5996, __pyx_L3_error)
29268 __pyx_v_g = ((PyArrayObject *)values[2]);
29269 __pyx_v_u = ((PyArrayObject *)values[3]);
29270 __pyx_v_uu_diff_ten = ((PyArrayObject *)values[4]);
29271 __pyx_v_u_force = ((PyArrayObject *)values[5]);
29273 goto __pyx_L4_argument_unpacking_done;
29274 __pyx_L5_argtuple_error:;
29275 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_1D_Evaluate", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5995, __pyx_L3_error)
29277 __Pyx_AddTraceback(
"ctransportCoefficients.LinearElasticity_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29278 __Pyx_RefNannyFinishContext();
29280 __pyx_L4_argument_unpacking_done:;
29281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 5997, __pyx_L1_error)
29282 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5998, __pyx_L1_error)
29283 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uu_diff_ten", 0))) __PYX_ERR(0, 5999, __pyx_L1_error)
29284 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1,
"u_force", 0))) __PYX_ERR(0, 6000, __pyx_L1_error)
29285 __pyx_r = __pyx_pf_22ctransportCoefficients_148LinearElasticity_1D_Evaluate(__pyx_self, __pyx_v_E, __pyx_v_nu, __pyx_v_g, __pyx_v_u, __pyx_v_uu_diff_ten, __pyx_v_u_force);
29292 __Pyx_RefNannyFinishContext();
29296 static PyObject *__pyx_pf_22ctransportCoefficients_148LinearElasticity_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force) {
29297 PyObject *__pyx_r = NULL;
29298 __Pyx_RefNannyDeclarations
29299 PyObject *__pyx_t_1 = NULL;
29301 int __pyx_lineno = 0;
29302 const char *__pyx_filename = NULL;
29303 int __pyx_clineno = 0;
29304 __Pyx_RefNannySetupContext(
"LinearElasticity_1D_Evaluate", 0);
29313 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6001, __pyx_L1_error)
29314 __Pyx_GOTREF(__pyx_t_1);
29315 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6001, __pyx_L1_error)
29316 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29325 LinearElasticity_1D_Evaluate(__pyx_t_2, __pyx_v_E, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_uu_diff_ten->data), ((
double *)__pyx_v_u_force->data));
29336 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29339 __Pyx_XDECREF(__pyx_t_1);
29340 __Pyx_AddTraceback(
"ctransportCoefficients.LinearElasticity_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29343 __Pyx_XGIVEREF(__pyx_r);
29344 __Pyx_RefNannyFinishContext();
29357 static PyObject *__pyx_pw_22ctransportCoefficients_151LinearElasticity_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29358 static PyMethodDef __pyx_mdef_22ctransportCoefficients_151LinearElasticity_2D_Evaluate = {
"LinearElasticity_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_151LinearElasticity_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29359 static PyObject *__pyx_pw_22ctransportCoefficients_151LinearElasticity_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29362 PyArrayObject *__pyx_v_g = 0;
29363 PyArrayObject *__pyx_v_u = 0;
29364 PyArrayObject *__pyx_v_v = 0;
29365 PyArrayObject *__pyx_v_uu_diff_ten = 0;
29366 PyArrayObject *__pyx_v_uv_diff_ten = 0;
29367 PyArrayObject *__pyx_v_vu_diff_ten = 0;
29368 PyArrayObject *__pyx_v_vv_diff_ten = 0;
29369 PyArrayObject *__pyx_v_u_force = 0;
29370 PyArrayObject *__pyx_v_v_force = 0;
29371 int __pyx_lineno = 0;
29372 const char *__pyx_filename = NULL;
29373 int __pyx_clineno = 0;
29374 PyObject *__pyx_r = 0;
29375 __Pyx_RefNannyDeclarations
29376 __Pyx_RefNannySetupContext(
"LinearElasticity_2D_Evaluate (wrapper)", 0);
29378 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,0};
29379 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
29380 if (unlikely(__pyx_kwds)) {
29381 Py_ssize_t kw_args;
29382 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29383 switch (pos_args) {
29384 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29385 CYTHON_FALLTHROUGH;
29386 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29387 CYTHON_FALLTHROUGH;
29388 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29389 CYTHON_FALLTHROUGH;
29390 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29391 CYTHON_FALLTHROUGH;
29392 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29393 CYTHON_FALLTHROUGH;
29394 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29395 CYTHON_FALLTHROUGH;
29396 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29397 CYTHON_FALLTHROUGH;
29398 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29399 CYTHON_FALLTHROUGH;
29400 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29401 CYTHON_FALLTHROUGH;
29402 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29403 CYTHON_FALLTHROUGH;
29404 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29405 CYTHON_FALLTHROUGH;
29407 default:
goto __pyx_L5_argtuple_error;
29409 kw_args = PyDict_Size(__pyx_kwds);
29410 switch (pos_args) {
29412 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E)) != 0)) kw_args--;
29413 else goto __pyx_L5_argtuple_error;
29414 CYTHON_FALLTHROUGH;
29416 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29418 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 1); __PYX_ERR(0, 6008, __pyx_L3_error)
29420 CYTHON_FALLTHROUGH;
29422 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29424 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 2); __PYX_ERR(0, 6008, __pyx_L3_error)
29426 CYTHON_FALLTHROUGH;
29428 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29430 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 3); __PYX_ERR(0, 6008, __pyx_L3_error)
29432 CYTHON_FALLTHROUGH;
29434 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
29436 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 4); __PYX_ERR(0, 6008, __pyx_L3_error)
29438 CYTHON_FALLTHROUGH;
29440 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
29442 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 5); __PYX_ERR(0, 6008, __pyx_L3_error)
29444 CYTHON_FALLTHROUGH;
29446 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
29448 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 6); __PYX_ERR(0, 6008, __pyx_L3_error)
29450 CYTHON_FALLTHROUGH;
29452 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
29454 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 7); __PYX_ERR(0, 6008, __pyx_L3_error)
29456 CYTHON_FALLTHROUGH;
29458 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
29460 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 8); __PYX_ERR(0, 6008, __pyx_L3_error)
29462 CYTHON_FALLTHROUGH;
29464 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
29466 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 9); __PYX_ERR(0, 6008, __pyx_L3_error)
29468 CYTHON_FALLTHROUGH;
29470 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
29472 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, 10); __PYX_ERR(0, 6008, __pyx_L3_error)
29475 if (unlikely(kw_args > 0)) {
29476 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"LinearElasticity_2D_Evaluate") < 0)) __PYX_ERR(0, 6008, __pyx_L3_error)
29478 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
29479 goto __pyx_L5_argtuple_error;
29481 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29482 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29483 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29484 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29485 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29486 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29487 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29488 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29489 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29490 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29491 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29493 __pyx_v_E = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_E == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6008, __pyx_L3_error)
29494 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6009, __pyx_L3_error)
29495 __pyx_v_g = ((PyArrayObject *)values[2]);
29496 __pyx_v_u = ((PyArrayObject *)values[3]);
29497 __pyx_v_v = ((PyArrayObject *)values[4]);
29498 __pyx_v_uu_diff_ten = ((PyArrayObject *)values[5]);
29499 __pyx_v_uv_diff_ten = ((PyArrayObject *)values[6]);
29500 __pyx_v_vu_diff_ten = ((PyArrayObject *)values[7]);
29501 __pyx_v_vv_diff_ten = ((PyArrayObject *)values[8]);
29502 __pyx_v_u_force = ((PyArrayObject *)values[9]);
29503 __pyx_v_v_force = ((PyArrayObject *)values[10]);
29505 goto __pyx_L4_argument_unpacking_done;
29506 __pyx_L5_argtuple_error:;
29507 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_2D_Evaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6008, __pyx_L3_error)
29509 __Pyx_AddTraceback(
"ctransportCoefficients.LinearElasticity_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29510 __Pyx_RefNannyFinishContext();
29512 __pyx_L4_argument_unpacking_done:;
29513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6010, __pyx_L1_error)
29514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6011, __pyx_L1_error)
29515 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6012, __pyx_L1_error)
29516 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uu_diff_ten", 0))) __PYX_ERR(0, 6013, __pyx_L1_error)
29517 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uv_diff_ten", 0))) __PYX_ERR(0, 6014, __pyx_L1_error)
29518 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vu_diff_ten", 0))) __PYX_ERR(0, 6015, __pyx_L1_error)
29519 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vv_diff_ten", 0))) __PYX_ERR(0, 6016, __pyx_L1_error)
29520 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1,
"u_force", 0))) __PYX_ERR(0, 6017, __pyx_L1_error)
29521 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1,
"v_force", 0))) __PYX_ERR(0, 6018, __pyx_L1_error)
29522 __pyx_r = __pyx_pf_22ctransportCoefficients_150LinearElasticity_2D_Evaluate(__pyx_self, __pyx_v_E, __pyx_v_nu, __pyx_v_g, __pyx_v_u, __pyx_v_v, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_u_force, __pyx_v_v_force);
29529 __Pyx_RefNannyFinishContext();
29533 static PyObject *__pyx_pf_22ctransportCoefficients_150LinearElasticity_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force) {
29534 PyObject *__pyx_r = NULL;
29535 __Pyx_RefNannyDeclarations
29536 PyObject *__pyx_t_1 = NULL;
29538 int __pyx_lineno = 0;
29539 const char *__pyx_filename = NULL;
29540 int __pyx_clineno = 0;
29541 __Pyx_RefNannySetupContext(
"LinearElasticity_2D_Evaluate", 0);
29550 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6019, __pyx_L1_error)
29551 __Pyx_GOTREF(__pyx_t_1);
29552 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6019, __pyx_L1_error)
29553 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29562 LinearElasticity_2D_Evaluate(__pyx_t_2, __pyx_v_E, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_uu_diff_ten->data), ((
double *)__pyx_v_uv_diff_ten->data), ((
double *)__pyx_v_vu_diff_ten->data), ((
double *)__pyx_v_vv_diff_ten->data), ((
double *)__pyx_v_u_force->data), ((
double *)__pyx_v_v_force->data));
29573 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29576 __Pyx_XDECREF(__pyx_t_1);
29577 __Pyx_AddTraceback(
"ctransportCoefficients.LinearElasticity_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29580 __Pyx_XGIVEREF(__pyx_r);
29581 __Pyx_RefNannyFinishContext();
29594 static PyObject *__pyx_pw_22ctransportCoefficients_153LinearElasticity_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29595 static PyMethodDef __pyx_mdef_22ctransportCoefficients_153LinearElasticity_3D_Evaluate = {
"LinearElasticity_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_153LinearElasticity_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29596 static PyObject *__pyx_pw_22ctransportCoefficients_153LinearElasticity_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29599 PyArrayObject *__pyx_v_g = 0;
29600 PyArrayObject *__pyx_v_u = 0;
29601 PyArrayObject *__pyx_v_v = 0;
29602 PyArrayObject *__pyx_v_w = 0;
29603 PyArrayObject *__pyx_v_uu_diff_ten = 0;
29604 PyArrayObject *__pyx_v_uv_diff_ten = 0;
29605 PyArrayObject *__pyx_v_uw_diff_ten = 0;
29606 PyArrayObject *__pyx_v_vu_diff_ten = 0;
29607 PyArrayObject *__pyx_v_vv_diff_ten = 0;
29608 PyArrayObject *__pyx_v_vw_diff_ten = 0;
29609 PyArrayObject *__pyx_v_wu_diff_ten = 0;
29610 PyArrayObject *__pyx_v_wv_diff_ten = 0;
29611 PyArrayObject *__pyx_v_ww_diff_ten = 0;
29612 PyArrayObject *__pyx_v_u_force = 0;
29613 PyArrayObject *__pyx_v_v_force = 0;
29614 PyArrayObject *__pyx_v_w_force = 0;
29615 int __pyx_lineno = 0;
29616 const char *__pyx_filename = NULL;
29617 int __pyx_clineno = 0;
29618 PyObject *__pyx_r = 0;
29619 __Pyx_RefNannyDeclarations
29620 __Pyx_RefNannySetupContext(
"LinearElasticity_3D_Evaluate (wrapper)", 0);
29622 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_uw_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_vw_diff_ten,&__pyx_n_s_wu_diff_ten,&__pyx_n_s_wv_diff_ten,&__pyx_n_s_ww_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,&__pyx_n_s_w_force,0};
29623 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
29624 if (unlikely(__pyx_kwds)) {
29625 Py_ssize_t kw_args;
29626 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29627 switch (pos_args) {
29628 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
29629 CYTHON_FALLTHROUGH;
29630 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
29631 CYTHON_FALLTHROUGH;
29632 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
29633 CYTHON_FALLTHROUGH;
29634 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29635 CYTHON_FALLTHROUGH;
29636 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29637 CYTHON_FALLTHROUGH;
29638 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29639 CYTHON_FALLTHROUGH;
29640 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29641 CYTHON_FALLTHROUGH;
29642 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29643 CYTHON_FALLTHROUGH;
29644 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29645 CYTHON_FALLTHROUGH;
29646 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29647 CYTHON_FALLTHROUGH;
29648 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29649 CYTHON_FALLTHROUGH;
29650 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29651 CYTHON_FALLTHROUGH;
29652 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29653 CYTHON_FALLTHROUGH;
29654 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29655 CYTHON_FALLTHROUGH;
29656 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29657 CYTHON_FALLTHROUGH;
29658 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29659 CYTHON_FALLTHROUGH;
29660 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29661 CYTHON_FALLTHROUGH;
29662 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29663 CYTHON_FALLTHROUGH;
29665 default:
goto __pyx_L5_argtuple_error;
29667 kw_args = PyDict_Size(__pyx_kwds);
29668 switch (pos_args) {
29670 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E)) != 0)) kw_args--;
29671 else goto __pyx_L5_argtuple_error;
29672 CYTHON_FALLTHROUGH;
29674 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29676 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 1); __PYX_ERR(0, 6031, __pyx_L3_error)
29678 CYTHON_FALLTHROUGH;
29680 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29682 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 2); __PYX_ERR(0, 6031, __pyx_L3_error)
29684 CYTHON_FALLTHROUGH;
29686 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29688 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 3); __PYX_ERR(0, 6031, __pyx_L3_error)
29690 CYTHON_FALLTHROUGH;
29692 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
29694 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 4); __PYX_ERR(0, 6031, __pyx_L3_error)
29696 CYTHON_FALLTHROUGH;
29698 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
29700 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 5); __PYX_ERR(0, 6031, __pyx_L3_error)
29702 CYTHON_FALLTHROUGH;
29704 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
29706 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 6); __PYX_ERR(0, 6031, __pyx_L3_error)
29708 CYTHON_FALLTHROUGH;
29710 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
29712 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 7); __PYX_ERR(0, 6031, __pyx_L3_error)
29714 CYTHON_FALLTHROUGH;
29716 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uw_diff_ten)) != 0)) kw_args--;
29718 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 8); __PYX_ERR(0, 6031, __pyx_L3_error)
29720 CYTHON_FALLTHROUGH;
29722 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
29724 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 9); __PYX_ERR(0, 6031, __pyx_L3_error)
29726 CYTHON_FALLTHROUGH;
29728 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
29730 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 10); __PYX_ERR(0, 6031, __pyx_L3_error)
29732 CYTHON_FALLTHROUGH;
29734 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vw_diff_ten)) != 0)) kw_args--;
29736 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 11); __PYX_ERR(0, 6031, __pyx_L3_error)
29738 CYTHON_FALLTHROUGH;
29740 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wu_diff_ten)) != 0)) kw_args--;
29742 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 12); __PYX_ERR(0, 6031, __pyx_L3_error)
29744 CYTHON_FALLTHROUGH;
29746 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wv_diff_ten)) != 0)) kw_args--;
29748 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 13); __PYX_ERR(0, 6031, __pyx_L3_error)
29750 CYTHON_FALLTHROUGH;
29752 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ww_diff_ten)) != 0)) kw_args--;
29754 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 14); __PYX_ERR(0, 6031, __pyx_L3_error)
29756 CYTHON_FALLTHROUGH;
29758 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
29760 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 15); __PYX_ERR(0, 6031, __pyx_L3_error)
29762 CYTHON_FALLTHROUGH;
29764 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
29766 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 16); __PYX_ERR(0, 6031, __pyx_L3_error)
29768 CYTHON_FALLTHROUGH;
29770 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_force)) != 0)) kw_args--;
29772 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, 17); __PYX_ERR(0, 6031, __pyx_L3_error)
29775 if (unlikely(kw_args > 0)) {
29776 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"LinearElasticity_3D_Evaluate") < 0)) __PYX_ERR(0, 6031, __pyx_L3_error)
29778 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
29779 goto __pyx_L5_argtuple_error;
29781 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29782 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29783 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29784 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29785 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29786 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29787 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29788 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29789 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29790 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29791 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29792 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29793 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29794 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29795 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29796 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
29797 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
29798 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
29800 __pyx_v_E = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_E == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6031, __pyx_L3_error)
29801 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6032, __pyx_L3_error)
29802 __pyx_v_g = ((PyArrayObject *)values[2]);
29803 __pyx_v_u = ((PyArrayObject *)values[3]);
29804 __pyx_v_v = ((PyArrayObject *)values[4]);
29805 __pyx_v_w = ((PyArrayObject *)values[5]);
29806 __pyx_v_uu_diff_ten = ((PyArrayObject *)values[6]);
29807 __pyx_v_uv_diff_ten = ((PyArrayObject *)values[7]);
29808 __pyx_v_uw_diff_ten = ((PyArrayObject *)values[8]);
29809 __pyx_v_vu_diff_ten = ((PyArrayObject *)values[9]);
29810 __pyx_v_vv_diff_ten = ((PyArrayObject *)values[10]);
29811 __pyx_v_vw_diff_ten = ((PyArrayObject *)values[11]);
29812 __pyx_v_wu_diff_ten = ((PyArrayObject *)values[12]);
29813 __pyx_v_wv_diff_ten = ((PyArrayObject *)values[13]);
29814 __pyx_v_ww_diff_ten = ((PyArrayObject *)values[14]);
29815 __pyx_v_u_force = ((PyArrayObject *)values[15]);
29816 __pyx_v_v_force = ((PyArrayObject *)values[16]);
29817 __pyx_v_w_force = ((PyArrayObject *)values[17]);
29819 goto __pyx_L4_argument_unpacking_done;
29820 __pyx_L5_argtuple_error:;
29821 __Pyx_RaiseArgtupleInvalid(
"LinearElasticity_3D_Evaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6031, __pyx_L3_error)
29823 __Pyx_AddTraceback(
"ctransportCoefficients.LinearElasticity_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29824 __Pyx_RefNannyFinishContext();
29826 __pyx_L4_argument_unpacking_done:;
29827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6033, __pyx_L1_error)
29828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6034, __pyx_L1_error)
29829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6035, __pyx_L1_error)
29830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 6036, __pyx_L1_error)
29831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uu_diff_ten", 0))) __PYX_ERR(0, 6037, __pyx_L1_error)
29832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uv_diff_ten", 0))) __PYX_ERR(0, 6038, __pyx_L1_error)
29833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uw_diff_ten", 0))) __PYX_ERR(0, 6039, __pyx_L1_error)
29834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vu_diff_ten", 0))) __PYX_ERR(0, 6040, __pyx_L1_error)
29835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vv_diff_ten", 0))) __PYX_ERR(0, 6041, __pyx_L1_error)
29836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vw_diff_ten", 0))) __PYX_ERR(0, 6042, __pyx_L1_error)
29837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"wu_diff_ten", 0))) __PYX_ERR(0, 6043, __pyx_L1_error)
29838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"wv_diff_ten", 0))) __PYX_ERR(0, 6044, __pyx_L1_error)
29839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ww_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"ww_diff_ten", 0))) __PYX_ERR(0, 6045, __pyx_L1_error)
29840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1,
"u_force", 0))) __PYX_ERR(0, 6046, __pyx_L1_error)
29841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1,
"v_force", 0))) __PYX_ERR(0, 6047, __pyx_L1_error)
29842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_force), __pyx_ptype_5numpy_ndarray, 1,
"w_force", 0))) __PYX_ERR(0, 6048, __pyx_L1_error)
29843 __pyx_r = __pyx_pf_22ctransportCoefficients_152LinearElasticity_3D_Evaluate(__pyx_self, __pyx_v_E, __pyx_v_nu, __pyx_v_g, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_uw_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_vw_diff_ten, __pyx_v_wu_diff_ten, __pyx_v_wv_diff_ten, __pyx_v_ww_diff_ten, __pyx_v_u_force, __pyx_v_v_force, __pyx_v_w_force);
29850 __Pyx_RefNannyFinishContext();
29854 static PyObject *__pyx_pf_22ctransportCoefficients_152LinearElasticity_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force) {
29855 PyObject *__pyx_r = NULL;
29856 __Pyx_RefNannyDeclarations
29857 PyObject *__pyx_t_1 = NULL;
29859 int __pyx_lineno = 0;
29860 const char *__pyx_filename = NULL;
29861 int __pyx_clineno = 0;
29862 __Pyx_RefNannySetupContext(
"LinearElasticity_3D_Evaluate", 0);
29871 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6049, __pyx_L1_error)
29872 __Pyx_GOTREF(__pyx_t_1);
29873 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6049, __pyx_L1_error)
29874 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29883 LinearElasticity_3D_Evaluate(__pyx_t_2, __pyx_v_E, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_uu_diff_ten->data), ((
double *)__pyx_v_uv_diff_ten->data), ((
double *)__pyx_v_uw_diff_ten->data), ((
double *)__pyx_v_vu_diff_ten->data), ((
double *)__pyx_v_vv_diff_ten->data), ((
double *)__pyx_v_vw_diff_ten->data), ((
double *)__pyx_v_wu_diff_ten->data), ((
double *)__pyx_v_wv_diff_ten->data), ((
double *)__pyx_v_ww_diff_ten->data), ((
double *)__pyx_v_u_force->data), ((
double *)__pyx_v_v_force->data), ((
double *)__pyx_v_w_force->data));
29894 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29897 __Pyx_XDECREF(__pyx_t_1);
29898 __Pyx_AddTraceback(
"ctransportCoefficients.LinearElasticity_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
29901 __Pyx_XGIVEREF(__pyx_r);
29902 __Pyx_RefNannyFinishContext();
29915 static PyObject *__pyx_pw_22ctransportCoefficients_155MovingMesh_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29916 static PyMethodDef __pyx_mdef_22ctransportCoefficients_155MovingMesh_2D_Evaluate = {
"MovingMesh_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_155MovingMesh_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
29917 static PyObject *__pyx_pw_22ctransportCoefficients_155MovingMesh_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29920 PyArrayObject *__pyx_v_g = 0;
29921 PyArrayObject *__pyx_v_det_J = 0;
29922 PyArrayObject *__pyx_v_u = 0;
29923 PyArrayObject *__pyx_v_v = 0;
29924 PyArrayObject *__pyx_v_uu_diff_ten = 0;
29925 PyArrayObject *__pyx_v_uv_diff_ten = 0;
29926 PyArrayObject *__pyx_v_vu_diff_ten = 0;
29927 PyArrayObject *__pyx_v_vv_diff_ten = 0;
29928 PyArrayObject *__pyx_v_u_force = 0;
29929 PyArrayObject *__pyx_v_v_force = 0;
29930 int __pyx_lineno = 0;
29931 const char *__pyx_filename = NULL;
29932 int __pyx_clineno = 0;
29933 PyObject *__pyx_r = 0;
29934 __Pyx_RefNannyDeclarations
29935 __Pyx_RefNannySetupContext(
"MovingMesh_2D_Evaluate (wrapper)", 0);
29937 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E0,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_det_J,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,0};
29938 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
29939 if (unlikely(__pyx_kwds)) {
29940 Py_ssize_t kw_args;
29941 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29942 switch (pos_args) {
29943 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29944 CYTHON_FALLTHROUGH;
29945 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29946 CYTHON_FALLTHROUGH;
29947 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29948 CYTHON_FALLTHROUGH;
29949 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29950 CYTHON_FALLTHROUGH;
29951 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29952 CYTHON_FALLTHROUGH;
29953 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29954 CYTHON_FALLTHROUGH;
29955 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29956 CYTHON_FALLTHROUGH;
29957 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29958 CYTHON_FALLTHROUGH;
29959 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29960 CYTHON_FALLTHROUGH;
29961 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29962 CYTHON_FALLTHROUGH;
29963 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29964 CYTHON_FALLTHROUGH;
29965 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29966 CYTHON_FALLTHROUGH;
29968 default:
goto __pyx_L5_argtuple_error;
29970 kw_args = PyDict_Size(__pyx_kwds);
29971 switch (pos_args) {
29973 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E0)) != 0)) kw_args--;
29974 else goto __pyx_L5_argtuple_error;
29975 CYTHON_FALLTHROUGH;
29977 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
29979 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 1); __PYX_ERR(0, 6068, __pyx_L3_error)
29981 CYTHON_FALLTHROUGH;
29983 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
29985 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 2); __PYX_ERR(0, 6068, __pyx_L3_error)
29987 CYTHON_FALLTHROUGH;
29989 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_det_J)) != 0)) kw_args--;
29991 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 3); __PYX_ERR(0, 6068, __pyx_L3_error)
29993 CYTHON_FALLTHROUGH;
29995 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29997 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 4); __PYX_ERR(0, 6068, __pyx_L3_error)
29999 CYTHON_FALLTHROUGH;
30001 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30003 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 5); __PYX_ERR(0, 6068, __pyx_L3_error)
30005 CYTHON_FALLTHROUGH;
30007 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
30009 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 6); __PYX_ERR(0, 6068, __pyx_L3_error)
30011 CYTHON_FALLTHROUGH;
30013 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
30015 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 7); __PYX_ERR(0, 6068, __pyx_L3_error)
30017 CYTHON_FALLTHROUGH;
30019 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
30021 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 8); __PYX_ERR(0, 6068, __pyx_L3_error)
30023 CYTHON_FALLTHROUGH;
30025 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
30027 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 9); __PYX_ERR(0, 6068, __pyx_L3_error)
30029 CYTHON_FALLTHROUGH;
30031 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
30033 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 10); __PYX_ERR(0, 6068, __pyx_L3_error)
30035 CYTHON_FALLTHROUGH;
30037 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
30039 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, 11); __PYX_ERR(0, 6068, __pyx_L3_error)
30042 if (unlikely(kw_args > 0)) {
30043 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"MovingMesh_2D_Evaluate") < 0)) __PYX_ERR(0, 6068, __pyx_L3_error)
30045 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
30046 goto __pyx_L5_argtuple_error;
30048 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30049 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30050 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30051 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30052 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30053 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30054 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30055 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30056 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30057 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30058 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30059 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30061 __pyx_v_E0 = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_E0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6068, __pyx_L3_error)
30062 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6069, __pyx_L3_error)
30063 __pyx_v_g = ((PyArrayObject *)values[2]);
30064 __pyx_v_det_J = ((PyArrayObject *)values[3]);
30065 __pyx_v_u = ((PyArrayObject *)values[4]);
30066 __pyx_v_v = ((PyArrayObject *)values[5]);
30067 __pyx_v_uu_diff_ten = ((PyArrayObject *)values[6]);
30068 __pyx_v_uv_diff_ten = ((PyArrayObject *)values[7]);
30069 __pyx_v_vu_diff_ten = ((PyArrayObject *)values[8]);
30070 __pyx_v_vv_diff_ten = ((PyArrayObject *)values[9]);
30071 __pyx_v_u_force = ((PyArrayObject *)values[10]);
30072 __pyx_v_v_force = ((PyArrayObject *)values[11]);
30074 goto __pyx_L4_argument_unpacking_done;
30075 __pyx_L5_argtuple_error:;
30076 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_2D_Evaluate", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6068, __pyx_L3_error)
30078 __Pyx_AddTraceback(
"ctransportCoefficients.MovingMesh_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30079 __Pyx_RefNannyFinishContext();
30081 __pyx_L4_argument_unpacking_done:;
30082 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6070, __pyx_L1_error)
30083 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_det_J), __pyx_ptype_5numpy_ndarray, 1,
"det_J", 0))) __PYX_ERR(0, 6071, __pyx_L1_error)
30084 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6072, __pyx_L1_error)
30085 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6073, __pyx_L1_error)
30086 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uu_diff_ten", 0))) __PYX_ERR(0, 6074, __pyx_L1_error)
30087 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uv_diff_ten", 0))) __PYX_ERR(0, 6075, __pyx_L1_error)
30088 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vu_diff_ten", 0))) __PYX_ERR(0, 6076, __pyx_L1_error)
30089 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vv_diff_ten", 0))) __PYX_ERR(0, 6077, __pyx_L1_error)
30090 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1,
"u_force", 0))) __PYX_ERR(0, 6078, __pyx_L1_error)
30091 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1,
"v_force", 0))) __PYX_ERR(0, 6079, __pyx_L1_error)
30092 __pyx_r = __pyx_pf_22ctransportCoefficients_154MovingMesh_2D_Evaluate(__pyx_self, __pyx_v_E0, __pyx_v_nu, __pyx_v_g, __pyx_v_det_J, __pyx_v_u, __pyx_v_v, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_u_force, __pyx_v_v_force);
30099 __Pyx_RefNannyFinishContext();
30103 static PyObject *__pyx_pf_22ctransportCoefficients_154MovingMesh_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E0,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force) {
30104 PyObject *__pyx_r = NULL;
30105 __Pyx_RefNannyDeclarations
30106 PyObject *__pyx_t_1 = NULL;
30108 int __pyx_lineno = 0;
30109 const char *__pyx_filename = NULL;
30110 int __pyx_clineno = 0;
30111 __Pyx_RefNannySetupContext(
"MovingMesh_2D_Evaluate", 0);
30120 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6080, __pyx_L1_error)
30121 __Pyx_GOTREF(__pyx_t_1);
30122 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6080, __pyx_L1_error)
30123 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30132 MovingMesh_2D_Evaluate(__pyx_t_2, __pyx_v_E0, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_det_J->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_uu_diff_ten->data), ((
double *)__pyx_v_uv_diff_ten->data), ((
double *)__pyx_v_vu_diff_ten->data), ((
double *)__pyx_v_vv_diff_ten->data), ((
double *)__pyx_v_u_force->data), ((
double *)__pyx_v_v_force->data));
30143 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30146 __Pyx_XDECREF(__pyx_t_1);
30147 __Pyx_AddTraceback(
"ctransportCoefficients.MovingMesh_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30150 __Pyx_XGIVEREF(__pyx_r);
30151 __Pyx_RefNannyFinishContext();
30164 static PyObject *__pyx_pw_22ctransportCoefficients_157MovingMesh_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30165 static PyMethodDef __pyx_mdef_22ctransportCoefficients_157MovingMesh_3D_Evaluate = {
"MovingMesh_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_157MovingMesh_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
30166 static PyObject *__pyx_pw_22ctransportCoefficients_157MovingMesh_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30169 PyArrayObject *__pyx_v_g = 0;
30170 PyArrayObject *__pyx_v_det_J = 0;
30171 PyArrayObject *__pyx_v_u = 0;
30172 PyArrayObject *__pyx_v_v = 0;
30173 PyArrayObject *__pyx_v_w = 0;
30174 PyArrayObject *__pyx_v_uu_diff_ten = 0;
30175 PyArrayObject *__pyx_v_uv_diff_ten = 0;
30176 PyArrayObject *__pyx_v_uw_diff_ten = 0;
30177 PyArrayObject *__pyx_v_vu_diff_ten = 0;
30178 PyArrayObject *__pyx_v_vv_diff_ten = 0;
30179 PyArrayObject *__pyx_v_vw_diff_ten = 0;
30180 PyArrayObject *__pyx_v_wu_diff_ten = 0;
30181 PyArrayObject *__pyx_v_wv_diff_ten = 0;
30182 PyArrayObject *__pyx_v_ww_diff_ten = 0;
30183 PyArrayObject *__pyx_v_u_force = 0;
30184 PyArrayObject *__pyx_v_v_force = 0;
30185 PyArrayObject *__pyx_v_w_force = 0;
30186 int __pyx_lineno = 0;
30187 const char *__pyx_filename = NULL;
30188 int __pyx_clineno = 0;
30189 PyObject *__pyx_r = 0;
30190 __Pyx_RefNannyDeclarations
30191 __Pyx_RefNannySetupContext(
"MovingMesh_3D_Evaluate (wrapper)", 0);
30193 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E0,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_det_J,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_uv_diff_ten,&__pyx_n_s_uw_diff_ten,&__pyx_n_s_vu_diff_ten,&__pyx_n_s_vv_diff_ten,&__pyx_n_s_vw_diff_ten,&__pyx_n_s_wu_diff_ten,&__pyx_n_s_wv_diff_ten,&__pyx_n_s_ww_diff_ten,&__pyx_n_s_u_force,&__pyx_n_s_v_force,&__pyx_n_s_w_force,0};
30194 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
30195 if (unlikely(__pyx_kwds)) {
30196 Py_ssize_t kw_args;
30197 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30198 switch (pos_args) {
30199 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
30200 CYTHON_FALLTHROUGH;
30201 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
30202 CYTHON_FALLTHROUGH;
30203 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
30204 CYTHON_FALLTHROUGH;
30205 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30206 CYTHON_FALLTHROUGH;
30207 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30208 CYTHON_FALLTHROUGH;
30209 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30210 CYTHON_FALLTHROUGH;
30211 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30212 CYTHON_FALLTHROUGH;
30213 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30214 CYTHON_FALLTHROUGH;
30215 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30216 CYTHON_FALLTHROUGH;
30217 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30218 CYTHON_FALLTHROUGH;
30219 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30220 CYTHON_FALLTHROUGH;
30221 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30222 CYTHON_FALLTHROUGH;
30223 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30224 CYTHON_FALLTHROUGH;
30225 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30226 CYTHON_FALLTHROUGH;
30227 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30228 CYTHON_FALLTHROUGH;
30229 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30230 CYTHON_FALLTHROUGH;
30231 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30232 CYTHON_FALLTHROUGH;
30233 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30234 CYTHON_FALLTHROUGH;
30235 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30236 CYTHON_FALLTHROUGH;
30238 default:
goto __pyx_L5_argtuple_error;
30240 kw_args = PyDict_Size(__pyx_kwds);
30241 switch (pos_args) {
30243 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E0)) != 0)) kw_args--;
30244 else goto __pyx_L5_argtuple_error;
30245 CYTHON_FALLTHROUGH;
30247 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
30249 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 1); __PYX_ERR(0, 6093, __pyx_L3_error)
30251 CYTHON_FALLTHROUGH;
30253 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
30255 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 2); __PYX_ERR(0, 6093, __pyx_L3_error)
30257 CYTHON_FALLTHROUGH;
30259 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_det_J)) != 0)) kw_args--;
30261 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 3); __PYX_ERR(0, 6093, __pyx_L3_error)
30263 CYTHON_FALLTHROUGH;
30265 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30267 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 4); __PYX_ERR(0, 6093, __pyx_L3_error)
30269 CYTHON_FALLTHROUGH;
30271 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30273 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 5); __PYX_ERR(0, 6093, __pyx_L3_error)
30275 CYTHON_FALLTHROUGH;
30277 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
30279 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 6); __PYX_ERR(0, 6093, __pyx_L3_error)
30281 CYTHON_FALLTHROUGH;
30283 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
30285 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 7); __PYX_ERR(0, 6093, __pyx_L3_error)
30287 CYTHON_FALLTHROUGH;
30289 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uv_diff_ten)) != 0)) kw_args--;
30291 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 8); __PYX_ERR(0, 6093, __pyx_L3_error)
30293 CYTHON_FALLTHROUGH;
30295 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uw_diff_ten)) != 0)) kw_args--;
30297 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 9); __PYX_ERR(0, 6093, __pyx_L3_error)
30299 CYTHON_FALLTHROUGH;
30301 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vu_diff_ten)) != 0)) kw_args--;
30303 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 10); __PYX_ERR(0, 6093, __pyx_L3_error)
30305 CYTHON_FALLTHROUGH;
30307 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vv_diff_ten)) != 0)) kw_args--;
30309 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 11); __PYX_ERR(0, 6093, __pyx_L3_error)
30311 CYTHON_FALLTHROUGH;
30313 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vw_diff_ten)) != 0)) kw_args--;
30315 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 12); __PYX_ERR(0, 6093, __pyx_L3_error)
30317 CYTHON_FALLTHROUGH;
30319 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wu_diff_ten)) != 0)) kw_args--;
30321 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 13); __PYX_ERR(0, 6093, __pyx_L3_error)
30323 CYTHON_FALLTHROUGH;
30325 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wv_diff_ten)) != 0)) kw_args--;
30327 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 14); __PYX_ERR(0, 6093, __pyx_L3_error)
30329 CYTHON_FALLTHROUGH;
30331 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ww_diff_ten)) != 0)) kw_args--;
30333 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 15); __PYX_ERR(0, 6093, __pyx_L3_error)
30335 CYTHON_FALLTHROUGH;
30337 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
30339 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 16); __PYX_ERR(0, 6093, __pyx_L3_error)
30341 CYTHON_FALLTHROUGH;
30343 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_force)) != 0)) kw_args--;
30345 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 17); __PYX_ERR(0, 6093, __pyx_L3_error)
30347 CYTHON_FALLTHROUGH;
30349 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_force)) != 0)) kw_args--;
30351 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, 18); __PYX_ERR(0, 6093, __pyx_L3_error)
30354 if (unlikely(kw_args > 0)) {
30355 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"MovingMesh_3D_Evaluate") < 0)) __PYX_ERR(0, 6093, __pyx_L3_error)
30357 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
30358 goto __pyx_L5_argtuple_error;
30360 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30361 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30362 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30363 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30364 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30365 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30366 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30367 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30368 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30369 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30370 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30371 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30372 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30373 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30374 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30375 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30376 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
30377 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
30378 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
30380 __pyx_v_E0 = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_E0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6093, __pyx_L3_error)
30381 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6094, __pyx_L3_error)
30382 __pyx_v_g = ((PyArrayObject *)values[2]);
30383 __pyx_v_det_J = ((PyArrayObject *)values[3]);
30384 __pyx_v_u = ((PyArrayObject *)values[4]);
30385 __pyx_v_v = ((PyArrayObject *)values[5]);
30386 __pyx_v_w = ((PyArrayObject *)values[6]);
30387 __pyx_v_uu_diff_ten = ((PyArrayObject *)values[7]);
30388 __pyx_v_uv_diff_ten = ((PyArrayObject *)values[8]);
30389 __pyx_v_uw_diff_ten = ((PyArrayObject *)values[9]);
30390 __pyx_v_vu_diff_ten = ((PyArrayObject *)values[10]);
30391 __pyx_v_vv_diff_ten = ((PyArrayObject *)values[11]);
30392 __pyx_v_vw_diff_ten = ((PyArrayObject *)values[12]);
30393 __pyx_v_wu_diff_ten = ((PyArrayObject *)values[13]);
30394 __pyx_v_wv_diff_ten = ((PyArrayObject *)values[14]);
30395 __pyx_v_ww_diff_ten = ((PyArrayObject *)values[15]);
30396 __pyx_v_u_force = ((PyArrayObject *)values[16]);
30397 __pyx_v_v_force = ((PyArrayObject *)values[17]);
30398 __pyx_v_w_force = ((PyArrayObject *)values[18]);
30400 goto __pyx_L4_argument_unpacking_done;
30401 __pyx_L5_argtuple_error:;
30402 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_3D_Evaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6093, __pyx_L3_error)
30404 __Pyx_AddTraceback(
"ctransportCoefficients.MovingMesh_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30405 __Pyx_RefNannyFinishContext();
30407 __pyx_L4_argument_unpacking_done:;
30408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6095, __pyx_L1_error)
30409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_det_J), __pyx_ptype_5numpy_ndarray, 1,
"det_J", 0))) __PYX_ERR(0, 6096, __pyx_L1_error)
30410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6097, __pyx_L1_error)
30411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6098, __pyx_L1_error)
30412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 6099, __pyx_L1_error)
30413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uu_diff_ten", 0))) __PYX_ERR(0, 6100, __pyx_L1_error)
30414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uv_diff_ten", 0))) __PYX_ERR(0, 6101, __pyx_L1_error)
30415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uw_diff_ten", 0))) __PYX_ERR(0, 6102, __pyx_L1_error)
30416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vu_diff_ten", 0))) __PYX_ERR(0, 6103, __pyx_L1_error)
30417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vv_diff_ten", 0))) __PYX_ERR(0, 6104, __pyx_L1_error)
30418 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"vw_diff_ten", 0))) __PYX_ERR(0, 6105, __pyx_L1_error)
30419 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"wu_diff_ten", 0))) __PYX_ERR(0, 6106, __pyx_L1_error)
30420 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"wv_diff_ten", 0))) __PYX_ERR(0, 6107, __pyx_L1_error)
30421 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ww_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"ww_diff_ten", 0))) __PYX_ERR(0, 6108, __pyx_L1_error)
30422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1,
"u_force", 0))) __PYX_ERR(0, 6109, __pyx_L1_error)
30423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_force), __pyx_ptype_5numpy_ndarray, 1,
"v_force", 0))) __PYX_ERR(0, 6110, __pyx_L1_error)
30424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_force), __pyx_ptype_5numpy_ndarray, 1,
"w_force", 0))) __PYX_ERR(0, 6111, __pyx_L1_error)
30425 __pyx_r = __pyx_pf_22ctransportCoefficients_156MovingMesh_3D_Evaluate(__pyx_self, __pyx_v_E0, __pyx_v_nu, __pyx_v_g, __pyx_v_det_J, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_uu_diff_ten, __pyx_v_uv_diff_ten, __pyx_v_uw_diff_ten, __pyx_v_vu_diff_ten, __pyx_v_vv_diff_ten, __pyx_v_vw_diff_ten, __pyx_v_wu_diff_ten, __pyx_v_wv_diff_ten, __pyx_v_ww_diff_ten, __pyx_v_u_force, __pyx_v_v_force, __pyx_v_w_force);
30432 __Pyx_RefNannyFinishContext();
30436 static PyObject *__pyx_pf_22ctransportCoefficients_156MovingMesh_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E0,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_uv_diff_ten, PyArrayObject *__pyx_v_uw_diff_ten, PyArrayObject *__pyx_v_vu_diff_ten, PyArrayObject *__pyx_v_vv_diff_ten, PyArrayObject *__pyx_v_vw_diff_ten, PyArrayObject *__pyx_v_wu_diff_ten, PyArrayObject *__pyx_v_wv_diff_ten, PyArrayObject *__pyx_v_ww_diff_ten, PyArrayObject *__pyx_v_u_force, PyArrayObject *__pyx_v_v_force, PyArrayObject *__pyx_v_w_force) {
30437 PyObject *__pyx_r = NULL;
30438 __Pyx_RefNannyDeclarations
30439 PyObject *__pyx_t_1 = NULL;
30441 int __pyx_lineno = 0;
30442 const char *__pyx_filename = NULL;
30443 int __pyx_clineno = 0;
30444 __Pyx_RefNannySetupContext(
"MovingMesh_3D_Evaluate", 0);
30453 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6112, __pyx_L1_error)
30454 __Pyx_GOTREF(__pyx_t_1);
30455 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6112, __pyx_L1_error)
30456 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30465 MovingMesh_3D_Evaluate(__pyx_t_2, __pyx_v_E0, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_det_J->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_uu_diff_ten->data), ((
double *)__pyx_v_uv_diff_ten->data), ((
double *)__pyx_v_uw_diff_ten->data), ((
double *)__pyx_v_vu_diff_ten->data), ((
double *)__pyx_v_vv_diff_ten->data), ((
double *)__pyx_v_vw_diff_ten->data), ((
double *)__pyx_v_wu_diff_ten->data), ((
double *)__pyx_v_wv_diff_ten->data), ((
double *)__pyx_v_ww_diff_ten->data), ((
double *)__pyx_v_u_force->data), ((
double *)__pyx_v_v_force->data), ((
double *)__pyx_v_w_force->data));
30476 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30479 __Pyx_XDECREF(__pyx_t_1);
30480 __Pyx_AddTraceback(
"ctransportCoefficients.MovingMesh_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30483 __Pyx_XGIVEREF(__pyx_r);
30484 __Pyx_RefNannyFinishContext();
30497 static PyObject *__pyx_pw_22ctransportCoefficients_159MovingMesh_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30498 static PyMethodDef __pyx_mdef_22ctransportCoefficients_159MovingMesh_1D_Evaluate = {
"MovingMesh_1D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_159MovingMesh_1D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
30499 static PyObject *__pyx_pw_22ctransportCoefficients_159MovingMesh_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30502 PyArrayObject *__pyx_v_g = 0;
30503 PyArrayObject *__pyx_v_det_J = 0;
30504 PyArrayObject *__pyx_v_u = 0;
30505 PyArrayObject *__pyx_v_uu_diff_ten = 0;
30506 PyArrayObject *__pyx_v_u_force = 0;
30507 int __pyx_lineno = 0;
30508 const char *__pyx_filename = NULL;
30509 int __pyx_clineno = 0;
30510 PyObject *__pyx_r = 0;
30511 __Pyx_RefNannyDeclarations
30512 __Pyx_RefNannySetupContext(
"MovingMesh_1D_Evaluate (wrapper)", 0);
30514 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_E0,&__pyx_n_s_nu,&__pyx_n_s_g,&__pyx_n_s_det_J,&__pyx_n_s_u,&__pyx_n_s_uu_diff_ten,&__pyx_n_s_u_force,0};
30515 PyObject* values[7] = {0,0,0,0,0,0,0};
30516 if (unlikely(__pyx_kwds)) {
30517 Py_ssize_t kw_args;
30518 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30519 switch (pos_args) {
30520 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30521 CYTHON_FALLTHROUGH;
30522 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30523 CYTHON_FALLTHROUGH;
30524 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30525 CYTHON_FALLTHROUGH;
30526 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30527 CYTHON_FALLTHROUGH;
30528 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30529 CYTHON_FALLTHROUGH;
30530 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30531 CYTHON_FALLTHROUGH;
30532 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30533 CYTHON_FALLTHROUGH;
30535 default:
goto __pyx_L5_argtuple_error;
30537 kw_args = PyDict_Size(__pyx_kwds);
30538 switch (pos_args) {
30540 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_E0)) != 0)) kw_args--;
30541 else goto __pyx_L5_argtuple_error;
30542 CYTHON_FALLTHROUGH;
30544 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
30546 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, 1); __PYX_ERR(0, 6132, __pyx_L3_error)
30548 CYTHON_FALLTHROUGH;
30550 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
30552 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, 2); __PYX_ERR(0, 6132, __pyx_L3_error)
30554 CYTHON_FALLTHROUGH;
30556 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_det_J)) != 0)) kw_args--;
30558 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, 3); __PYX_ERR(0, 6132, __pyx_L3_error)
30560 CYTHON_FALLTHROUGH;
30562 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30564 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, 4); __PYX_ERR(0, 6132, __pyx_L3_error)
30566 CYTHON_FALLTHROUGH;
30568 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uu_diff_ten)) != 0)) kw_args--;
30570 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, 5); __PYX_ERR(0, 6132, __pyx_L3_error)
30572 CYTHON_FALLTHROUGH;
30574 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_force)) != 0)) kw_args--;
30576 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, 6); __PYX_ERR(0, 6132, __pyx_L3_error)
30579 if (unlikely(kw_args > 0)) {
30580 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"MovingMesh_1D_Evaluate") < 0)) __PYX_ERR(0, 6132, __pyx_L3_error)
30582 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
30583 goto __pyx_L5_argtuple_error;
30585 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30586 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30587 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30588 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30589 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30590 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30591 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30593 __pyx_v_E0 = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_E0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6132, __pyx_L3_error)
30594 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6133, __pyx_L3_error)
30595 __pyx_v_g = ((PyArrayObject *)values[2]);
30596 __pyx_v_det_J = ((PyArrayObject *)values[3]);
30597 __pyx_v_u = ((PyArrayObject *)values[4]);
30598 __pyx_v_uu_diff_ten = ((PyArrayObject *)values[5]);
30599 __pyx_v_u_force = ((PyArrayObject *)values[6]);
30601 goto __pyx_L4_argument_unpacking_done;
30602 __pyx_L5_argtuple_error:;
30603 __Pyx_RaiseArgtupleInvalid(
"MovingMesh_1D_Evaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6132, __pyx_L3_error)
30605 __Pyx_AddTraceback(
"ctransportCoefficients.MovingMesh_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30606 __Pyx_RefNannyFinishContext();
30608 __pyx_L4_argument_unpacking_done:;
30609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6134, __pyx_L1_error)
30610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_det_J), __pyx_ptype_5numpy_ndarray, 1,
"det_J", 0))) __PYX_ERR(0, 6135, __pyx_L1_error)
30611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6136, __pyx_L1_error)
30612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"uu_diff_ten", 0))) __PYX_ERR(0, 6137, __pyx_L1_error)
30613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_force), __pyx_ptype_5numpy_ndarray, 1,
"u_force", 0))) __PYX_ERR(0, 6138, __pyx_L1_error)
30614 __pyx_r = __pyx_pf_22ctransportCoefficients_158MovingMesh_1D_Evaluate(__pyx_self, __pyx_v_E0, __pyx_v_nu, __pyx_v_g, __pyx_v_det_J, __pyx_v_u, __pyx_v_uu_diff_ten, __pyx_v_u_force);
30621 __Pyx_RefNannyFinishContext();
30625 static PyObject *__pyx_pf_22ctransportCoefficients_158MovingMesh_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_E0,
double __pyx_v_nu, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_det_J, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_uu_diff_ten, PyArrayObject *__pyx_v_u_force) {
30626 PyObject *__pyx_r = NULL;
30627 __Pyx_RefNannyDeclarations
30628 PyObject *__pyx_t_1 = NULL;
30630 int __pyx_lineno = 0;
30631 const char *__pyx_filename = NULL;
30632 int __pyx_clineno = 0;
30633 __Pyx_RefNannySetupContext(
"MovingMesh_1D_Evaluate", 0);
30642 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6139, __pyx_L1_error)
30643 __Pyx_GOTREF(__pyx_t_1);
30644 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6139, __pyx_L1_error)
30645 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30654 MovingMesh_1D_Evaluate(__pyx_t_2, __pyx_v_E0, __pyx_v_nu, ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_det_J->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_uu_diff_ten->data), ((
double *)__pyx_v_u_force->data));
30665 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30668 __Pyx_XDECREF(__pyx_t_1);
30669 __Pyx_AddTraceback(
"ctransportCoefficients.MovingMesh_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30672 __Pyx_XGIVEREF(__pyx_r);
30673 __Pyx_RefNannyFinishContext();
30686 static PyObject *__pyx_pw_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30687 static PyMethodDef __pyx_mdef_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate = {
"levelSetConservationCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
30688 static PyObject *__pyx_pw_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30689 double __pyx_v_epsHeaviside;
30690 double __pyx_v_epsDirac;
30691 double __pyx_v_epsDiffusion;
30692 PyArrayObject *__pyx_v_u_ls = 0;
30693 PyArrayObject *__pyx_v_H_vof = 0;
30694 PyArrayObject *__pyx_v_u = 0;
30695 PyArrayObject *__pyx_v_r = 0;
30696 PyArrayObject *__pyx_v_dr = 0;
30697 PyArrayObject *__pyx_v_a = 0;
30698 int __pyx_lineno = 0;
30699 const char *__pyx_filename = NULL;
30700 int __pyx_clineno = 0;
30701 PyObject *__pyx_r = 0;
30702 __Pyx_RefNannyDeclarations
30703 __Pyx_RefNannySetupContext(
"levelSetConservationCoefficientsEvaluate (wrapper)", 0);
30705 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_epsHeaviside,&__pyx_n_s_epsDirac,&__pyx_n_s_epsDiffusion,&__pyx_n_s_u_ls,&__pyx_n_s_H_vof,&__pyx_n_s_u,&__pyx_n_s_r,&__pyx_n_s_dr,&__pyx_n_s_a,0};
30706 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
30707 if (unlikely(__pyx_kwds)) {
30708 Py_ssize_t kw_args;
30709 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30710 switch (pos_args) {
30711 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30712 CYTHON_FALLTHROUGH;
30713 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30714 CYTHON_FALLTHROUGH;
30715 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30716 CYTHON_FALLTHROUGH;
30717 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30718 CYTHON_FALLTHROUGH;
30719 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30720 CYTHON_FALLTHROUGH;
30721 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30722 CYTHON_FALLTHROUGH;
30723 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30724 CYTHON_FALLTHROUGH;
30725 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30726 CYTHON_FALLTHROUGH;
30727 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30728 CYTHON_FALLTHROUGH;
30730 default:
goto __pyx_L5_argtuple_error;
30732 kw_args = PyDict_Size(__pyx_kwds);
30733 switch (pos_args) {
30735 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsHeaviside)) != 0)) kw_args--;
30736 else goto __pyx_L5_argtuple_error;
30737 CYTHON_FALLTHROUGH;
30739 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsDirac)) != 0)) kw_args--;
30741 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 1); __PYX_ERR(0, 6147, __pyx_L3_error)
30743 CYTHON_FALLTHROUGH;
30745 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsDiffusion)) != 0)) kw_args--;
30747 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 2); __PYX_ERR(0, 6147, __pyx_L3_error)
30749 CYTHON_FALLTHROUGH;
30751 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_ls)) != 0)) kw_args--;
30753 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 3); __PYX_ERR(0, 6147, __pyx_L3_error)
30755 CYTHON_FALLTHROUGH;
30757 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H_vof)) != 0)) kw_args--;
30759 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 4); __PYX_ERR(0, 6147, __pyx_L3_error)
30761 CYTHON_FALLTHROUGH;
30763 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30765 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 5); __PYX_ERR(0, 6147, __pyx_L3_error)
30767 CYTHON_FALLTHROUGH;
30769 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
30771 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 6); __PYX_ERR(0, 6147, __pyx_L3_error)
30773 CYTHON_FALLTHROUGH;
30775 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
30777 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 7); __PYX_ERR(0, 6147, __pyx_L3_error)
30779 CYTHON_FALLTHROUGH;
30781 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
30783 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, 8); __PYX_ERR(0, 6147, __pyx_L3_error)
30786 if (unlikely(kw_args > 0)) {
30787 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"levelSetConservationCoefficientsEvaluate") < 0)) __PYX_ERR(0, 6147, __pyx_L3_error)
30789 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
30790 goto __pyx_L5_argtuple_error;
30792 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30793 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30794 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30795 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30796 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30797 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30798 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30799 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30800 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30802 __pyx_v_epsHeaviside = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_epsHeaviside == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6147, __pyx_L3_error)
30803 __pyx_v_epsDirac = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_epsDirac == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6148, __pyx_L3_error)
30804 __pyx_v_epsDiffusion = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_epsDiffusion == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6149, __pyx_L3_error)
30805 __pyx_v_u_ls = ((PyArrayObject *)values[3]);
30806 __pyx_v_H_vof = ((PyArrayObject *)values[4]);
30807 __pyx_v_u = ((PyArrayObject *)values[5]);
30808 __pyx_v_r = ((PyArrayObject *)values[6]);
30809 __pyx_v_dr = ((PyArrayObject *)values[7]);
30810 __pyx_v_a = ((PyArrayObject *)values[8]);
30812 goto __pyx_L4_argument_unpacking_done;
30813 __pyx_L5_argtuple_error:;
30814 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6147, __pyx_L3_error)
30816 __Pyx_AddTraceback(
"ctransportCoefficients.levelSetConservationCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30817 __Pyx_RefNannyFinishContext();
30819 __pyx_L4_argument_unpacking_done:;
30820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_ls), __pyx_ptype_5numpy_ndarray, 1,
"u_ls", 0))) __PYX_ERR(0, 6150, __pyx_L1_error)
30821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H_vof), __pyx_ptype_5numpy_ndarray, 1,
"H_vof", 0))) __PYX_ERR(0, 6151, __pyx_L1_error)
30822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6152, __pyx_L1_error)
30823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 6153, __pyx_L1_error)
30824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 6154, __pyx_L1_error)
30825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6155, __pyx_L1_error)
30826 __pyx_r = __pyx_pf_22ctransportCoefficients_160levelSetConservationCoefficientsEvaluate(__pyx_self, __pyx_v_epsHeaviside, __pyx_v_epsDirac, __pyx_v_epsDiffusion, __pyx_v_u_ls, __pyx_v_H_vof, __pyx_v_u, __pyx_v_r, __pyx_v_dr, __pyx_v_a);
30833 __Pyx_RefNannyFinishContext();
30837 static PyObject *__pyx_pf_22ctransportCoefficients_160levelSetConservationCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_epsHeaviside,
double __pyx_v_epsDirac,
double __pyx_v_epsDiffusion, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_a) {
30838 PyObject *__pyx_r = NULL;
30839 __Pyx_RefNannyDeclarations
30840 PyObject *__pyx_t_1 = NULL;
30842 int __pyx_lineno = 0;
30843 const char *__pyx_filename = NULL;
30844 int __pyx_clineno = 0;
30845 __Pyx_RefNannySetupContext(
"levelSetConservationCoefficientsEvaluate", 0);
30854 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6156, __pyx_L1_error)
30855 __Pyx_GOTREF(__pyx_t_1);
30856 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6156, __pyx_L1_error)
30857 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30866 levelSetConservationCoefficientsEvaluate(__pyx_t_2, (__pyx_v_a->dimensions[-1
L]), __pyx_v_epsHeaviside, __pyx_v_epsDirac, __pyx_v_epsDiffusion, ((
double *)__pyx_v_u_ls->data), ((
double *)__pyx_v_H_vof->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_a->data));
30877 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30880 __Pyx_XDECREF(__pyx_t_1);
30881 __Pyx_AddTraceback(
"ctransportCoefficients.levelSetConservationCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
30884 __Pyx_XGIVEREF(__pyx_r);
30885 __Pyx_RefNannyFinishContext();
30898 static PyObject *__pyx_pw_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30899 static PyMethodDef __pyx_mdef_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd = {
"levelSetConservationCoefficientsEvaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
30900 static PyObject *__pyx_pw_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30901 double __pyx_v_epsHeaviside;
30902 double __pyx_v_epsDirac;
30903 PyArrayObject *__pyx_v_u_ls = 0;
30904 PyArrayObject *__pyx_v_H_vof = 0;
30905 PyArrayObject *__pyx_v_u = 0;
30906 PyArrayObject *__pyx_v_r = 0;
30907 PyArrayObject *__pyx_v_dr = 0;
30908 int __pyx_lineno = 0;
30909 const char *__pyx_filename = NULL;
30910 int __pyx_clineno = 0;
30911 PyObject *__pyx_r = 0;
30912 __Pyx_RefNannyDeclarations
30913 __Pyx_RefNannySetupContext(
"levelSetConservationCoefficientsEvaluate_sd (wrapper)", 0);
30915 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_epsHeaviside,&__pyx_n_s_epsDirac,&__pyx_n_s_u_ls,&__pyx_n_s_H_vof,&__pyx_n_s_u,&__pyx_n_s_r,&__pyx_n_s_dr,0};
30916 PyObject* values[7] = {0,0,0,0,0,0,0};
30917 if (unlikely(__pyx_kwds)) {
30918 Py_ssize_t kw_args;
30919 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30920 switch (pos_args) {
30921 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30922 CYTHON_FALLTHROUGH;
30923 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30924 CYTHON_FALLTHROUGH;
30925 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30926 CYTHON_FALLTHROUGH;
30927 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30928 CYTHON_FALLTHROUGH;
30929 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30930 CYTHON_FALLTHROUGH;
30931 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30932 CYTHON_FALLTHROUGH;
30933 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30934 CYTHON_FALLTHROUGH;
30936 default:
goto __pyx_L5_argtuple_error;
30938 kw_args = PyDict_Size(__pyx_kwds);
30939 switch (pos_args) {
30941 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsHeaviside)) != 0)) kw_args--;
30942 else goto __pyx_L5_argtuple_error;
30943 CYTHON_FALLTHROUGH;
30945 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsDirac)) != 0)) kw_args--;
30947 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 1); __PYX_ERR(0, 6167, __pyx_L3_error)
30949 CYTHON_FALLTHROUGH;
30951 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_ls)) != 0)) kw_args--;
30953 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 2); __PYX_ERR(0, 6167, __pyx_L3_error)
30955 CYTHON_FALLTHROUGH;
30957 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H_vof)) != 0)) kw_args--;
30959 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 3); __PYX_ERR(0, 6167, __pyx_L3_error)
30961 CYTHON_FALLTHROUGH;
30963 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30965 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 4); __PYX_ERR(0, 6167, __pyx_L3_error)
30967 CYTHON_FALLTHROUGH;
30969 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
30971 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 5); __PYX_ERR(0, 6167, __pyx_L3_error)
30973 CYTHON_FALLTHROUGH;
30975 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
30977 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, 6); __PYX_ERR(0, 6167, __pyx_L3_error)
30980 if (unlikely(kw_args > 0)) {
30981 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"levelSetConservationCoefficientsEvaluate_sd") < 0)) __PYX_ERR(0, 6167, __pyx_L3_error)
30983 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
30984 goto __pyx_L5_argtuple_error;
30986 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30987 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30988 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30989 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30990 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30991 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30992 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30994 __pyx_v_epsHeaviside = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_epsHeaviside == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6167, __pyx_L3_error)
30995 __pyx_v_epsDirac = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_epsDirac == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6168, __pyx_L3_error)
30996 __pyx_v_u_ls = ((PyArrayObject *)values[2]);
30997 __pyx_v_H_vof = ((PyArrayObject *)values[3]);
30998 __pyx_v_u = ((PyArrayObject *)values[4]);
30999 __pyx_v_r = ((PyArrayObject *)values[5]);
31000 __pyx_v_dr = ((PyArrayObject *)values[6]);
31002 goto __pyx_L4_argument_unpacking_done;
31003 __pyx_L5_argtuple_error:;
31004 __Pyx_RaiseArgtupleInvalid(
"levelSetConservationCoefficientsEvaluate_sd", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6167, __pyx_L3_error)
31006 __Pyx_AddTraceback(
"ctransportCoefficients.levelSetConservationCoefficientsEvaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
31007 __Pyx_RefNannyFinishContext();
31009 __pyx_L4_argument_unpacking_done:;
31010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_ls), __pyx_ptype_5numpy_ndarray, 1,
"u_ls", 0))) __PYX_ERR(0, 6169, __pyx_L1_error)
31011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H_vof), __pyx_ptype_5numpy_ndarray, 1,
"H_vof", 0))) __PYX_ERR(0, 6170, __pyx_L1_error)
31012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6171, __pyx_L1_error)
31013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 6172, __pyx_L1_error)
31014 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 6173, __pyx_L1_error)
31015 __pyx_r = __pyx_pf_22ctransportCoefficients_162levelSetConservationCoefficientsEvaluate_sd(__pyx_self, __pyx_v_epsHeaviside, __pyx_v_epsDirac, __pyx_v_u_ls, __pyx_v_H_vof, __pyx_v_u, __pyx_v_r, __pyx_v_dr);
31022 __Pyx_RefNannyFinishContext();
31026 static PyObject *__pyx_pf_22ctransportCoefficients_162levelSetConservationCoefficientsEvaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_epsHeaviside,
double __pyx_v_epsDirac, PyArrayObject *__pyx_v_u_ls, PyArrayObject *__pyx_v_H_vof, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_dr) {
31027 PyObject *__pyx_r = NULL;
31028 __Pyx_RefNannyDeclarations
31029 PyObject *__pyx_t_1 = NULL;
31031 int __pyx_lineno = 0;
31032 const char *__pyx_filename = NULL;
31033 int __pyx_clineno = 0;
31034 __Pyx_RefNannySetupContext(
"levelSetConservationCoefficientsEvaluate_sd", 0);
31043 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6174, __pyx_L1_error)
31044 __Pyx_GOTREF(__pyx_t_1);
31045 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6174, __pyx_L1_error)
31046 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31055 levelSetConservationCoefficientsEvaluate_sd(__pyx_t_2, __pyx_v_epsHeaviside, __pyx_v_epsDirac, ((
double *)__pyx_v_u_ls->data), ((
double *)__pyx_v_H_vof->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_dr->data));
31066 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31069 __Pyx_XDECREF(__pyx_t_1);
31070 __Pyx_AddTraceback(
"ctransportCoefficients.levelSetConservationCoefficientsEvaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
31073 __Pyx_XGIVEREF(__pyx_r);
31074 __Pyx_RefNannyFinishContext();
31087 static PyObject *__pyx_pw_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31088 static PyMethodDef __pyx_mdef_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample = {
"evaluateBuckleyLeverettLiuExample", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample, METH_VARARGS|METH_KEYWORDS, 0};
31089 static PyObject *__pyx_pw_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31090 PyArrayObject *__pyx_v_x = 0;
31091 PyArrayObject *__pyx_v_u = 0;
31092 PyArrayObject *__pyx_v_m = 0;
31093 PyArrayObject *__pyx_v_dm = 0;
31094 PyArrayObject *__pyx_v_f = 0;
31095 PyArrayObject *__pyx_v_df = 0;
31096 PyArrayObject *__pyx_v_a = 0;
31097 int __pyx_lineno = 0;
31098 const char *__pyx_filename = NULL;
31099 int __pyx_clineno = 0;
31100 PyObject *__pyx_r = 0;
31101 __Pyx_RefNannyDeclarations
31102 __Pyx_RefNannySetupContext(
"evaluateBuckleyLeverettLiuExample (wrapper)", 0);
31104 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,0};
31105 PyObject* values[7] = {0,0,0,0,0,0,0};
31106 if (unlikely(__pyx_kwds)) {
31107 Py_ssize_t kw_args;
31108 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31109 switch (pos_args) {
31110 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31111 CYTHON_FALLTHROUGH;
31112 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31113 CYTHON_FALLTHROUGH;
31114 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31115 CYTHON_FALLTHROUGH;
31116 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31117 CYTHON_FALLTHROUGH;
31118 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31119 CYTHON_FALLTHROUGH;
31120 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31121 CYTHON_FALLTHROUGH;
31122 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31123 CYTHON_FALLTHROUGH;
31125 default:
goto __pyx_L5_argtuple_error;
31127 kw_args = PyDict_Size(__pyx_kwds);
31128 switch (pos_args) {
31130 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
31131 else goto __pyx_L5_argtuple_error;
31132 CYTHON_FALLTHROUGH;
31134 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31136 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, 1); __PYX_ERR(0, 6182, __pyx_L3_error)
31138 CYTHON_FALLTHROUGH;
31140 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
31142 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, 2); __PYX_ERR(0, 6182, __pyx_L3_error)
31144 CYTHON_FALLTHROUGH;
31146 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
31148 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, 3); __PYX_ERR(0, 6182, __pyx_L3_error)
31150 CYTHON_FALLTHROUGH;
31152 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
31154 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, 4); __PYX_ERR(0, 6182, __pyx_L3_error)
31156 CYTHON_FALLTHROUGH;
31158 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
31160 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, 5); __PYX_ERR(0, 6182, __pyx_L3_error)
31162 CYTHON_FALLTHROUGH;
31164 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
31166 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, 6); __PYX_ERR(0, 6182, __pyx_L3_error)
31169 if (unlikely(kw_args > 0)) {
31170 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"evaluateBuckleyLeverettLiuExample") < 0)) __PYX_ERR(0, 6182, __pyx_L3_error)
31172 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
31173 goto __pyx_L5_argtuple_error;
31175 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31176 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31177 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31178 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31179 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31180 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31181 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31183 __pyx_v_x = ((PyArrayObject *)values[0]);
31184 __pyx_v_u = ((PyArrayObject *)values[1]);
31185 __pyx_v_m = ((PyArrayObject *)values[2]);
31186 __pyx_v_dm = ((PyArrayObject *)values[3]);
31187 __pyx_v_f = ((PyArrayObject *)values[4]);
31188 __pyx_v_df = ((PyArrayObject *)values[5]);
31189 __pyx_v_a = ((PyArrayObject *)values[6]);
31191 goto __pyx_L4_argument_unpacking_done;
31192 __pyx_L5_argtuple_error:;
31193 __Pyx_RaiseArgtupleInvalid(
"evaluateBuckleyLeverettLiuExample", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6182, __pyx_L3_error)
31195 __Pyx_AddTraceback(
"ctransportCoefficients.evaluateBuckleyLeverettLiuExample", __pyx_clineno, __pyx_lineno, __pyx_filename);
31196 __Pyx_RefNannyFinishContext();
31198 __pyx_L4_argument_unpacking_done:;
31199 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 6182, __pyx_L1_error)
31200 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6183, __pyx_L1_error)
31201 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 6184, __pyx_L1_error)
31202 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 6185, __pyx_L1_error)
31203 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 6186, __pyx_L1_error)
31204 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 6187, __pyx_L1_error)
31205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6188, __pyx_L1_error)
31206 __pyx_r = __pyx_pf_22ctransportCoefficients_164evaluateBuckleyLeverettLiuExample(__pyx_self, __pyx_v_x, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df, __pyx_v_a);
31213 __Pyx_RefNannyFinishContext();
31217 static PyObject *__pyx_pf_22ctransportCoefficients_164evaluateBuckleyLeverettLiuExample(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a) {
31218 PyObject *__pyx_r = NULL;
31219 __Pyx_RefNannyDeclarations
31220 PyObject *__pyx_t_1 = NULL;
31222 int __pyx_lineno = 0;
31223 const char *__pyx_filename = NULL;
31224 int __pyx_clineno = 0;
31225 __Pyx_RefNannySetupContext(
"evaluateBuckleyLeverettLiuExample", 0);
31234 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6189, __pyx_L1_error)
31235 __Pyx_GOTREF(__pyx_t_1);
31236 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6189, __pyx_L1_error)
31237 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31246 evaluateBuckleyLeverettLiuExample(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data));
31257 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31260 __Pyx_XDECREF(__pyx_t_1);
31261 __Pyx_AddTraceback(
"ctransportCoefficients.evaluateBuckleyLeverettLiuExample", __pyx_clineno, __pyx_lineno, __pyx_filename);
31264 __Pyx_XGIVEREF(__pyx_r);
31265 __Pyx_RefNannyFinishContext();
31278 static PyObject *__pyx_pw_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31279 static PyMethodDef __pyx_mdef_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate = {
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
31280 static PyObject *__pyx_pw_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31281 double __pyx_v_rho;
31283 PyArrayObject *__pyx_v_meanGrainSize = 0;
31284 PyArrayObject *__pyx_v_g = 0;
31285 PyArrayObject *__pyx_v_p = 0;
31286 PyArrayObject *__pyx_v_grad_p = 0;
31287 PyArrayObject *__pyx_v_u = 0;
31288 PyArrayObject *__pyx_v_v = 0;
31289 PyArrayObject *__pyx_v_porosity = 0;
31290 PyArrayObject *__pyx_v_mom_u_acc = 0;
31291 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
31292 PyArrayObject *__pyx_v_mom_v_acc = 0;
31293 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
31294 PyArrayObject *__pyx_v_mass_adv = 0;
31295 PyArrayObject *__pyx_v_dmass_adv_u = 0;
31296 PyArrayObject *__pyx_v_dmass_adv_v = 0;
31297 PyArrayObject *__pyx_v_mom_u_adv = 0;
31298 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
31299 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
31300 PyArrayObject *__pyx_v_mom_v_adv = 0;
31301 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
31302 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
31303 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
31304 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
31305 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
31306 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
31307 PyArrayObject *__pyx_v_mom_u_source = 0;
31308 PyArrayObject *__pyx_v_mom_v_source = 0;
31309 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
31310 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
31311 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
31312 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
31313 PyArrayObject *__pyx_v_mom_u_ham = 0;
31314 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
31315 PyArrayObject *__pyx_v_mom_v_ham = 0;
31316 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
31317 int __pyx_lineno = 0;
31318 const char *__pyx_filename = NULL;
31319 int __pyx_clineno = 0;
31320 PyObject *__pyx_r = 0;
31321 __Pyx_RefNannyDeclarations
31322 __Pyx_RefNannySetupContext(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate (wrapper)", 0);
31324 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_mu,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
31325 PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31326 if (unlikely(__pyx_kwds)) {
31327 Py_ssize_t kw_args;
31328 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31329 switch (pos_args) {
31330 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
31331 CYTHON_FALLTHROUGH;
31332 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
31333 CYTHON_FALLTHROUGH;
31334 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
31335 CYTHON_FALLTHROUGH;
31336 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
31337 CYTHON_FALLTHROUGH;
31338 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
31339 CYTHON_FALLTHROUGH;
31340 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
31341 CYTHON_FALLTHROUGH;
31342 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
31343 CYTHON_FALLTHROUGH;
31344 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
31345 CYTHON_FALLTHROUGH;
31346 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
31347 CYTHON_FALLTHROUGH;
31348 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
31349 CYTHON_FALLTHROUGH;
31350 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
31351 CYTHON_FALLTHROUGH;
31352 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
31353 CYTHON_FALLTHROUGH;
31354 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
31355 CYTHON_FALLTHROUGH;
31356 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
31357 CYTHON_FALLTHROUGH;
31358 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
31359 CYTHON_FALLTHROUGH;
31360 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
31361 CYTHON_FALLTHROUGH;
31362 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
31363 CYTHON_FALLTHROUGH;
31364 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
31365 CYTHON_FALLTHROUGH;
31366 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
31367 CYTHON_FALLTHROUGH;
31368 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31369 CYTHON_FALLTHROUGH;
31370 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31371 CYTHON_FALLTHROUGH;
31372 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31373 CYTHON_FALLTHROUGH;
31374 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31375 CYTHON_FALLTHROUGH;
31376 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31377 CYTHON_FALLTHROUGH;
31378 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31379 CYTHON_FALLTHROUGH;
31380 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31381 CYTHON_FALLTHROUGH;
31382 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31383 CYTHON_FALLTHROUGH;
31384 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31385 CYTHON_FALLTHROUGH;
31386 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31387 CYTHON_FALLTHROUGH;
31388 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31389 CYTHON_FALLTHROUGH;
31390 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31391 CYTHON_FALLTHROUGH;
31392 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31393 CYTHON_FALLTHROUGH;
31394 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31395 CYTHON_FALLTHROUGH;
31396 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31397 CYTHON_FALLTHROUGH;
31398 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31399 CYTHON_FALLTHROUGH;
31400 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31401 CYTHON_FALLTHROUGH;
31403 default:
goto __pyx_L5_argtuple_error;
31405 kw_args = PyDict_Size(__pyx_kwds);
31406 switch (pos_args) {
31408 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
31409 else goto __pyx_L5_argtuple_error;
31410 CYTHON_FALLTHROUGH;
31412 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mu)) != 0)) kw_args--;
31414 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 1); __PYX_ERR(0, 6198, __pyx_L3_error)
31416 CYTHON_FALLTHROUGH;
31418 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
31420 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 2); __PYX_ERR(0, 6198, __pyx_L3_error)
31422 CYTHON_FALLTHROUGH;
31424 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
31426 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 3); __PYX_ERR(0, 6198, __pyx_L3_error)
31428 CYTHON_FALLTHROUGH;
31430 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
31432 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 4); __PYX_ERR(0, 6198, __pyx_L3_error)
31434 CYTHON_FALLTHROUGH;
31436 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
31438 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 5); __PYX_ERR(0, 6198, __pyx_L3_error)
31440 CYTHON_FALLTHROUGH;
31442 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31444 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 6); __PYX_ERR(0, 6198, __pyx_L3_error)
31446 CYTHON_FALLTHROUGH;
31448 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
31450 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 7); __PYX_ERR(0, 6198, __pyx_L3_error)
31452 CYTHON_FALLTHROUGH;
31454 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
31456 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 8); __PYX_ERR(0, 6198, __pyx_L3_error)
31458 CYTHON_FALLTHROUGH;
31460 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
31462 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 9); __PYX_ERR(0, 6198, __pyx_L3_error)
31464 CYTHON_FALLTHROUGH;
31466 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
31468 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 10); __PYX_ERR(0, 6198, __pyx_L3_error)
31470 CYTHON_FALLTHROUGH;
31472 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
31474 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 11); __PYX_ERR(0, 6198, __pyx_L3_error)
31476 CYTHON_FALLTHROUGH;
31478 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
31480 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 12); __PYX_ERR(0, 6198, __pyx_L3_error)
31482 CYTHON_FALLTHROUGH;
31484 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
31486 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 13); __PYX_ERR(0, 6198, __pyx_L3_error)
31488 CYTHON_FALLTHROUGH;
31490 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
31492 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 14); __PYX_ERR(0, 6198, __pyx_L3_error)
31494 CYTHON_FALLTHROUGH;
31496 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
31498 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 15); __PYX_ERR(0, 6198, __pyx_L3_error)
31500 CYTHON_FALLTHROUGH;
31502 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
31504 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 16); __PYX_ERR(0, 6198, __pyx_L3_error)
31506 CYTHON_FALLTHROUGH;
31508 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
31510 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 17); __PYX_ERR(0, 6198, __pyx_L3_error)
31512 CYTHON_FALLTHROUGH;
31514 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
31516 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 18); __PYX_ERR(0, 6198, __pyx_L3_error)
31518 CYTHON_FALLTHROUGH;
31520 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
31522 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 19); __PYX_ERR(0, 6198, __pyx_L3_error)
31524 CYTHON_FALLTHROUGH;
31526 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
31528 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 20); __PYX_ERR(0, 6198, __pyx_L3_error)
31530 CYTHON_FALLTHROUGH;
31532 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
31534 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 21); __PYX_ERR(0, 6198, __pyx_L3_error)
31536 CYTHON_FALLTHROUGH;
31538 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
31540 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 22); __PYX_ERR(0, 6198, __pyx_L3_error)
31542 CYTHON_FALLTHROUGH;
31544 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
31546 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 23); __PYX_ERR(0, 6198, __pyx_L3_error)
31548 CYTHON_FALLTHROUGH;
31550 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
31552 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 24); __PYX_ERR(0, 6198, __pyx_L3_error)
31554 CYTHON_FALLTHROUGH;
31556 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
31558 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 25); __PYX_ERR(0, 6198, __pyx_L3_error)
31560 CYTHON_FALLTHROUGH;
31562 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
31564 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 26); __PYX_ERR(0, 6198, __pyx_L3_error)
31566 CYTHON_FALLTHROUGH;
31568 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
31570 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 27); __PYX_ERR(0, 6198, __pyx_L3_error)
31572 CYTHON_FALLTHROUGH;
31574 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
31576 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 28); __PYX_ERR(0, 6198, __pyx_L3_error)
31578 CYTHON_FALLTHROUGH;
31580 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
31582 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 29); __PYX_ERR(0, 6198, __pyx_L3_error)
31584 CYTHON_FALLTHROUGH;
31586 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
31588 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 30); __PYX_ERR(0, 6198, __pyx_L3_error)
31590 CYTHON_FALLTHROUGH;
31592 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
31594 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 31); __PYX_ERR(0, 6198, __pyx_L3_error)
31596 CYTHON_FALLTHROUGH;
31598 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
31600 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 32); __PYX_ERR(0, 6198, __pyx_L3_error)
31602 CYTHON_FALLTHROUGH;
31604 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
31606 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 33); __PYX_ERR(0, 6198, __pyx_L3_error)
31608 CYTHON_FALLTHROUGH;
31610 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
31612 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 34); __PYX_ERR(0, 6198, __pyx_L3_error)
31614 CYTHON_FALLTHROUGH;
31616 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
31618 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, 35); __PYX_ERR(0, 6198, __pyx_L3_error)
31621 if (unlikely(kw_args > 0)) {
31622 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate") < 0)) __PYX_ERR(0, 6198, __pyx_L3_error)
31624 }
else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
31625 goto __pyx_L5_argtuple_error;
31627 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31628 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31629 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31630 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31631 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31632 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31633 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31634 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31635 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31636 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31637 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31638 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31639 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31640 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31641 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31642 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31643 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31644 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
31645 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
31646 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
31647 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
31648 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
31649 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
31650 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
31651 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
31652 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
31653 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
31654 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
31655 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
31656 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
31657 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
31658 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
31659 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
31660 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
31661 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
31662 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
31664 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6198, __pyx_L3_error)
31665 __pyx_v_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6199, __pyx_L3_error)
31666 __pyx_v_meanGrainSize = ((PyArrayObject *)values[2]);
31667 __pyx_v_g = ((PyArrayObject *)values[3]);
31668 __pyx_v_p = ((PyArrayObject *)values[4]);
31669 __pyx_v_grad_p = ((PyArrayObject *)values[5]);
31670 __pyx_v_u = ((PyArrayObject *)values[6]);
31671 __pyx_v_v = ((PyArrayObject *)values[7]);
31672 __pyx_v_porosity = ((PyArrayObject *)values[8]);
31673 __pyx_v_mom_u_acc = ((PyArrayObject *)values[9]);
31674 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[10]);
31675 __pyx_v_mom_v_acc = ((PyArrayObject *)values[11]);
31676 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[12]);
31677 __pyx_v_mass_adv = ((PyArrayObject *)values[13]);
31678 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[14]);
31679 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[15]);
31680 __pyx_v_mom_u_adv = ((PyArrayObject *)values[16]);
31681 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[17]);
31682 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[18]);
31683 __pyx_v_mom_v_adv = ((PyArrayObject *)values[19]);
31684 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[20]);
31685 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[21]);
31686 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[22]);
31687 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[23]);
31688 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[24]);
31689 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[25]);
31690 __pyx_v_mom_u_source = ((PyArrayObject *)values[26]);
31691 __pyx_v_mom_v_source = ((PyArrayObject *)values[27]);
31692 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[28]);
31693 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[29]);
31694 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[30]);
31695 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[31]);
31696 __pyx_v_mom_u_ham = ((PyArrayObject *)values[32]);
31697 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[33]);
31698 __pyx_v_mom_v_ham = ((PyArrayObject *)values[34]);
31699 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[35]);
31701 goto __pyx_L4_argument_unpacking_done;
31702 __pyx_L5_argtuple_error:;
31703 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6198, __pyx_L3_error)
31705 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
31706 __Pyx_RefNannyFinishContext();
31708 __pyx_L4_argument_unpacking_done:;
31709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1,
"meanGrainSize", 0))) __PYX_ERR(0, 6200, __pyx_L1_error)
31710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6201, __pyx_L1_error)
31711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6202, __pyx_L1_error)
31712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 6203, __pyx_L1_error)
31713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6204, __pyx_L1_error)
31714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6205, __pyx_L1_error)
31715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6206, __pyx_L1_error)
31716 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 6207, __pyx_L1_error)
31717 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 6208, __pyx_L1_error)
31718 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 6209, __pyx_L1_error)
31719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 6210, __pyx_L1_error)
31720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 6211, __pyx_L1_error)
31721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 6212, __pyx_L1_error)
31722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 6213, __pyx_L1_error)
31723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 6214, __pyx_L1_error)
31724 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 6215, __pyx_L1_error)
31725 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 6216, __pyx_L1_error)
31726 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 6217, __pyx_L1_error)
31727 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 6218, __pyx_L1_error)
31728 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 6219, __pyx_L1_error)
31729 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 6220, __pyx_L1_error)
31730 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 6221, __pyx_L1_error)
31731 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 6222, __pyx_L1_error)
31732 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 6223, __pyx_L1_error)
31733 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 6224, __pyx_L1_error)
31734 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 6225, __pyx_L1_error)
31735 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 6226, __pyx_L1_error)
31736 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 6227, __pyx_L1_error)
31737 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 6228, __pyx_L1_error)
31738 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 6229, __pyx_L1_error)
31739 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 6230, __pyx_L1_error)
31740 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6231, __pyx_L1_error)
31741 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 6232, __pyx_L1_error)
31742 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6233, __pyx_L1_error)
31743 __pyx_r = __pyx_pf_22ctransportCoefficients_166VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_mu, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
31750 __Pyx_RefNannyFinishContext();
31754 static PyObject *__pyx_pf_22ctransportCoefficients_166VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
31755 PyObject *__pyx_r = NULL;
31756 __Pyx_RefNannyDeclarations
31757 PyObject *__pyx_t_1 = NULL;
31759 int __pyx_lineno = 0;
31760 const char *__pyx_filename = NULL;
31761 int __pyx_clineno = 0;
31762 __Pyx_RefNannySetupContext(
"VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", 0);
31771 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6234, __pyx_L1_error)
31772 __Pyx_GOTREF(__pyx_t_1);
31773 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6234, __pyx_L1_error)
31774 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31783 VolumeAveragedNavierStokesFullDevStress_2D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_mu, ((
double *)__pyx_v_meanGrainSize->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
31794 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31797 __Pyx_XDECREF(__pyx_t_1);
31798 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
31801 __Pyx_XGIVEREF(__pyx_r);
31802 __Pyx_RefNannyFinishContext();
31815 static PyObject *__pyx_pw_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31816 static PyMethodDef __pyx_mdef_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate = {
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
31817 static PyObject *__pyx_pw_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31818 double __pyx_v_rho;
31820 PyArrayObject *__pyx_v_meanGrainSize = 0;
31821 PyArrayObject *__pyx_v_g = 0;
31822 PyArrayObject *__pyx_v_p = 0;
31823 PyArrayObject *__pyx_v_grad_p = 0;
31824 PyArrayObject *__pyx_v_u = 0;
31825 PyArrayObject *__pyx_v_v = 0;
31826 PyArrayObject *__pyx_v_w = 0;
31827 PyArrayObject *__pyx_v_porosity = 0;
31828 PyArrayObject *__pyx_v_mom_u_acc = 0;
31829 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
31830 PyArrayObject *__pyx_v_mom_v_acc = 0;
31831 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
31832 PyArrayObject *__pyx_v_mom_w_acc = 0;
31833 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
31834 PyArrayObject *__pyx_v_mass_adv = 0;
31835 PyArrayObject *__pyx_v_dmass_adv_u = 0;
31836 PyArrayObject *__pyx_v_dmass_adv_v = 0;
31837 PyArrayObject *__pyx_v_dmass_adv_w = 0;
31838 PyArrayObject *__pyx_v_mom_u_adv = 0;
31839 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
31840 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
31841 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
31842 PyArrayObject *__pyx_v_mom_v_adv = 0;
31843 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
31844 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
31845 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
31846 PyArrayObject *__pyx_v_mom_w_adv = 0;
31847 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
31848 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
31849 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
31850 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
31851 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
31852 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
31853 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
31854 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
31855 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
31856 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
31857 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
31858 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
31859 PyArrayObject *__pyx_v_mom_u_source = 0;
31860 PyArrayObject *__pyx_v_mom_v_source = 0;
31861 PyArrayObject *__pyx_v_mom_w_source = 0;
31862 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
31863 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
31864 PyArrayObject *__pyx_v_dmom_u_source_w = 0;
31865 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
31866 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
31867 PyArrayObject *__pyx_v_dmom_v_source_w = 0;
31868 PyArrayObject *__pyx_v_dmom_w_source_u = 0;
31869 PyArrayObject *__pyx_v_dmom_w_source_v = 0;
31870 PyArrayObject *__pyx_v_dmom_w_source_w = 0;
31871 PyArrayObject *__pyx_v_mom_u_ham = 0;
31872 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
31873 PyArrayObject *__pyx_v_mom_v_ham = 0;
31874 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
31875 PyArrayObject *__pyx_v_mom_w_ham = 0;
31876 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
31877 int __pyx_lineno = 0;
31878 const char *__pyx_filename = NULL;
31879 int __pyx_clineno = 0;
31880 PyObject *__pyx_r = 0;
31881 __Pyx_RefNannyDeclarations
31882 __Pyx_RefNannySetupContext(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate (wrapper)", 0);
31884 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_mu,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
31885 PyObject* values[59] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31886 if (unlikely(__pyx_kwds)) {
31887 Py_ssize_t kw_args;
31888 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31889 switch (pos_args) {
31890 case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
31891 CYTHON_FALLTHROUGH;
31892 case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
31893 CYTHON_FALLTHROUGH;
31894 case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
31895 CYTHON_FALLTHROUGH;
31896 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
31897 CYTHON_FALLTHROUGH;
31898 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
31899 CYTHON_FALLTHROUGH;
31900 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
31901 CYTHON_FALLTHROUGH;
31902 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
31903 CYTHON_FALLTHROUGH;
31904 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
31905 CYTHON_FALLTHROUGH;
31906 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
31907 CYTHON_FALLTHROUGH;
31908 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
31909 CYTHON_FALLTHROUGH;
31910 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
31911 CYTHON_FALLTHROUGH;
31912 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
31913 CYTHON_FALLTHROUGH;
31914 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
31915 CYTHON_FALLTHROUGH;
31916 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
31917 CYTHON_FALLTHROUGH;
31918 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
31919 CYTHON_FALLTHROUGH;
31920 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
31921 CYTHON_FALLTHROUGH;
31922 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
31923 CYTHON_FALLTHROUGH;
31924 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
31925 CYTHON_FALLTHROUGH;
31926 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
31927 CYTHON_FALLTHROUGH;
31928 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
31929 CYTHON_FALLTHROUGH;
31930 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
31931 CYTHON_FALLTHROUGH;
31932 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
31933 CYTHON_FALLTHROUGH;
31934 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
31935 CYTHON_FALLTHROUGH;
31936 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
31937 CYTHON_FALLTHROUGH;
31938 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
31939 CYTHON_FALLTHROUGH;
31940 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
31941 CYTHON_FALLTHROUGH;
31942 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
31943 CYTHON_FALLTHROUGH;
31944 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
31945 CYTHON_FALLTHROUGH;
31946 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
31947 CYTHON_FALLTHROUGH;
31948 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
31949 CYTHON_FALLTHROUGH;
31950 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
31951 CYTHON_FALLTHROUGH;
31952 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
31953 CYTHON_FALLTHROUGH;
31954 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
31955 CYTHON_FALLTHROUGH;
31956 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
31957 CYTHON_FALLTHROUGH;
31958 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
31959 CYTHON_FALLTHROUGH;
31960 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
31961 CYTHON_FALLTHROUGH;
31962 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
31963 CYTHON_FALLTHROUGH;
31964 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
31965 CYTHON_FALLTHROUGH;
31966 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
31967 CYTHON_FALLTHROUGH;
31968 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
31969 CYTHON_FALLTHROUGH;
31970 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
31971 CYTHON_FALLTHROUGH;
31972 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
31973 CYTHON_FALLTHROUGH;
31974 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31975 CYTHON_FALLTHROUGH;
31976 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31977 CYTHON_FALLTHROUGH;
31978 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31979 CYTHON_FALLTHROUGH;
31980 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31981 CYTHON_FALLTHROUGH;
31982 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31983 CYTHON_FALLTHROUGH;
31984 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31985 CYTHON_FALLTHROUGH;
31986 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31987 CYTHON_FALLTHROUGH;
31988 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31989 CYTHON_FALLTHROUGH;
31990 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31991 CYTHON_FALLTHROUGH;
31992 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31993 CYTHON_FALLTHROUGH;
31994 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31995 CYTHON_FALLTHROUGH;
31996 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31997 CYTHON_FALLTHROUGH;
31998 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31999 CYTHON_FALLTHROUGH;
32000 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32001 CYTHON_FALLTHROUGH;
32002 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32003 CYTHON_FALLTHROUGH;
32004 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32005 CYTHON_FALLTHROUGH;
32006 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32007 CYTHON_FALLTHROUGH;
32009 default:
goto __pyx_L5_argtuple_error;
32011 kw_args = PyDict_Size(__pyx_kwds);
32012 switch (pos_args) {
32014 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
32015 else goto __pyx_L5_argtuple_error;
32016 CYTHON_FALLTHROUGH;
32018 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mu)) != 0)) kw_args--;
32020 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 1); __PYX_ERR(0, 6271, __pyx_L3_error)
32022 CYTHON_FALLTHROUGH;
32024 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
32026 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 2); __PYX_ERR(0, 6271, __pyx_L3_error)
32028 CYTHON_FALLTHROUGH;
32030 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
32032 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 3); __PYX_ERR(0, 6271, __pyx_L3_error)
32034 CYTHON_FALLTHROUGH;
32036 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
32038 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 4); __PYX_ERR(0, 6271, __pyx_L3_error)
32040 CYTHON_FALLTHROUGH;
32042 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
32044 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 5); __PYX_ERR(0, 6271, __pyx_L3_error)
32046 CYTHON_FALLTHROUGH;
32048 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
32050 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 6); __PYX_ERR(0, 6271, __pyx_L3_error)
32052 CYTHON_FALLTHROUGH;
32054 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32056 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 7); __PYX_ERR(0, 6271, __pyx_L3_error)
32058 CYTHON_FALLTHROUGH;
32060 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
32062 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 8); __PYX_ERR(0, 6271, __pyx_L3_error)
32064 CYTHON_FALLTHROUGH;
32066 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
32068 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 9); __PYX_ERR(0, 6271, __pyx_L3_error)
32070 CYTHON_FALLTHROUGH;
32072 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
32074 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 10); __PYX_ERR(0, 6271, __pyx_L3_error)
32076 CYTHON_FALLTHROUGH;
32078 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
32080 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 11); __PYX_ERR(0, 6271, __pyx_L3_error)
32082 CYTHON_FALLTHROUGH;
32084 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
32086 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 12); __PYX_ERR(0, 6271, __pyx_L3_error)
32088 CYTHON_FALLTHROUGH;
32090 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
32092 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 13); __PYX_ERR(0, 6271, __pyx_L3_error)
32094 CYTHON_FALLTHROUGH;
32096 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
32098 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 14); __PYX_ERR(0, 6271, __pyx_L3_error)
32100 CYTHON_FALLTHROUGH;
32102 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
32104 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 15); __PYX_ERR(0, 6271, __pyx_L3_error)
32106 CYTHON_FALLTHROUGH;
32108 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
32110 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 16); __PYX_ERR(0, 6271, __pyx_L3_error)
32112 CYTHON_FALLTHROUGH;
32114 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
32116 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 17); __PYX_ERR(0, 6271, __pyx_L3_error)
32118 CYTHON_FALLTHROUGH;
32120 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
32122 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 18); __PYX_ERR(0, 6271, __pyx_L3_error)
32124 CYTHON_FALLTHROUGH;
32126 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
32128 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 19); __PYX_ERR(0, 6271, __pyx_L3_error)
32130 CYTHON_FALLTHROUGH;
32132 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
32134 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 20); __PYX_ERR(0, 6271, __pyx_L3_error)
32136 CYTHON_FALLTHROUGH;
32138 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
32140 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 21); __PYX_ERR(0, 6271, __pyx_L3_error)
32142 CYTHON_FALLTHROUGH;
32144 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
32146 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 22); __PYX_ERR(0, 6271, __pyx_L3_error)
32148 CYTHON_FALLTHROUGH;
32150 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
32152 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 23); __PYX_ERR(0, 6271, __pyx_L3_error)
32154 CYTHON_FALLTHROUGH;
32156 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
32158 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 24); __PYX_ERR(0, 6271, __pyx_L3_error)
32160 CYTHON_FALLTHROUGH;
32162 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
32164 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 25); __PYX_ERR(0, 6271, __pyx_L3_error)
32166 CYTHON_FALLTHROUGH;
32168 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
32170 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 26); __PYX_ERR(0, 6271, __pyx_L3_error)
32172 CYTHON_FALLTHROUGH;
32174 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
32176 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 27); __PYX_ERR(0, 6271, __pyx_L3_error)
32178 CYTHON_FALLTHROUGH;
32180 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
32182 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 28); __PYX_ERR(0, 6271, __pyx_L3_error)
32184 CYTHON_FALLTHROUGH;
32186 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
32188 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 29); __PYX_ERR(0, 6271, __pyx_L3_error)
32190 CYTHON_FALLTHROUGH;
32192 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
32194 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 30); __PYX_ERR(0, 6271, __pyx_L3_error)
32196 CYTHON_FALLTHROUGH;
32198 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
32200 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 31); __PYX_ERR(0, 6271, __pyx_L3_error)
32202 CYTHON_FALLTHROUGH;
32204 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
32206 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 32); __PYX_ERR(0, 6271, __pyx_L3_error)
32208 CYTHON_FALLTHROUGH;
32210 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
32212 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 33); __PYX_ERR(0, 6271, __pyx_L3_error)
32214 CYTHON_FALLTHROUGH;
32216 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
32218 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 34); __PYX_ERR(0, 6271, __pyx_L3_error)
32220 CYTHON_FALLTHROUGH;
32222 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
32224 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 35); __PYX_ERR(0, 6271, __pyx_L3_error)
32226 CYTHON_FALLTHROUGH;
32228 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
32230 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 36); __PYX_ERR(0, 6271, __pyx_L3_error)
32232 CYTHON_FALLTHROUGH;
32234 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
32236 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 37); __PYX_ERR(0, 6271, __pyx_L3_error)
32238 CYTHON_FALLTHROUGH;
32240 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
32242 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 38); __PYX_ERR(0, 6271, __pyx_L3_error)
32244 CYTHON_FALLTHROUGH;
32246 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
32248 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 39); __PYX_ERR(0, 6271, __pyx_L3_error)
32250 CYTHON_FALLTHROUGH;
32252 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
32254 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 40); __PYX_ERR(0, 6271, __pyx_L3_error)
32256 CYTHON_FALLTHROUGH;
32258 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
32260 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 41); __PYX_ERR(0, 6271, __pyx_L3_error)
32262 CYTHON_FALLTHROUGH;
32264 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
32266 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 42); __PYX_ERR(0, 6271, __pyx_L3_error)
32268 CYTHON_FALLTHROUGH;
32270 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
32272 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 43); __PYX_ERR(0, 6271, __pyx_L3_error)
32274 CYTHON_FALLTHROUGH;
32276 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
32278 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 44); __PYX_ERR(0, 6271, __pyx_L3_error)
32280 CYTHON_FALLTHROUGH;
32282 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
32284 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 45); __PYX_ERR(0, 6271, __pyx_L3_error)
32286 CYTHON_FALLTHROUGH;
32288 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
32290 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 46); __PYX_ERR(0, 6271, __pyx_L3_error)
32292 CYTHON_FALLTHROUGH;
32294 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
32296 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 47); __PYX_ERR(0, 6271, __pyx_L3_error)
32298 CYTHON_FALLTHROUGH;
32300 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
32302 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 48); __PYX_ERR(0, 6271, __pyx_L3_error)
32304 CYTHON_FALLTHROUGH;
32306 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
32308 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 49); __PYX_ERR(0, 6271, __pyx_L3_error)
32310 CYTHON_FALLTHROUGH;
32312 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
32314 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 50); __PYX_ERR(0, 6271, __pyx_L3_error)
32316 CYTHON_FALLTHROUGH;
32318 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
32320 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 51); __PYX_ERR(0, 6271, __pyx_L3_error)
32322 CYTHON_FALLTHROUGH;
32324 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
32326 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 52); __PYX_ERR(0, 6271, __pyx_L3_error)
32328 CYTHON_FALLTHROUGH;
32330 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
32332 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 53); __PYX_ERR(0, 6271, __pyx_L3_error)
32334 CYTHON_FALLTHROUGH;
32336 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
32338 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 54); __PYX_ERR(0, 6271, __pyx_L3_error)
32340 CYTHON_FALLTHROUGH;
32342 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
32344 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 55); __PYX_ERR(0, 6271, __pyx_L3_error)
32346 CYTHON_FALLTHROUGH;
32348 if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
32350 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 56); __PYX_ERR(0, 6271, __pyx_L3_error)
32352 CYTHON_FALLTHROUGH;
32354 if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
32356 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 57); __PYX_ERR(0, 6271, __pyx_L3_error)
32358 CYTHON_FALLTHROUGH;
32360 if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
32362 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, 58); __PYX_ERR(0, 6271, __pyx_L3_error)
32365 if (unlikely(kw_args > 0)) {
32366 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate") < 0)) __PYX_ERR(0, 6271, __pyx_L3_error)
32368 }
else if (PyTuple_GET_SIZE(__pyx_args) != 59) {
32369 goto __pyx_L5_argtuple_error;
32371 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32372 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32373 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32374 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32375 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32376 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32377 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32378 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32379 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32380 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32381 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32382 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32383 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32384 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32385 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32386 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32387 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32388 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32389 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32390 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32391 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
32392 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
32393 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
32394 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
32395 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
32396 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
32397 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
32398 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
32399 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
32400 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
32401 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
32402 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
32403 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
32404 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
32405 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
32406 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
32407 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
32408 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
32409 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
32410 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
32411 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
32412 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
32413 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
32414 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
32415 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
32416 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
32417 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
32418 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
32419 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
32420 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
32421 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
32422 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
32423 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
32424 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
32425 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
32426 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
32427 values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
32428 values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
32429 values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
32431 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6271, __pyx_L3_error)
32432 __pyx_v_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6272, __pyx_L3_error)
32433 __pyx_v_meanGrainSize = ((PyArrayObject *)values[2]);
32434 __pyx_v_g = ((PyArrayObject *)values[3]);
32435 __pyx_v_p = ((PyArrayObject *)values[4]);
32436 __pyx_v_grad_p = ((PyArrayObject *)values[5]);
32437 __pyx_v_u = ((PyArrayObject *)values[6]);
32438 __pyx_v_v = ((PyArrayObject *)values[7]);
32439 __pyx_v_w = ((PyArrayObject *)values[8]);
32440 __pyx_v_porosity = ((PyArrayObject *)values[9]);
32441 __pyx_v_mom_u_acc = ((PyArrayObject *)values[10]);
32442 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[11]);
32443 __pyx_v_mom_v_acc = ((PyArrayObject *)values[12]);
32444 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[13]);
32445 __pyx_v_mom_w_acc = ((PyArrayObject *)values[14]);
32446 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[15]);
32447 __pyx_v_mass_adv = ((PyArrayObject *)values[16]);
32448 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[17]);
32449 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[18]);
32450 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[19]);
32451 __pyx_v_mom_u_adv = ((PyArrayObject *)values[20]);
32452 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[21]);
32453 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[22]);
32454 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[23]);
32455 __pyx_v_mom_v_adv = ((PyArrayObject *)values[24]);
32456 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[25]);
32457 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[26]);
32458 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[27]);
32459 __pyx_v_mom_w_adv = ((PyArrayObject *)values[28]);
32460 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[29]);
32461 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[30]);
32462 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[31]);
32463 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[32]);
32464 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[33]);
32465 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[34]);
32466 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[35]);
32467 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[36]);
32468 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[37]);
32469 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[38]);
32470 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[39]);
32471 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[40]);
32472 __pyx_v_mom_u_source = ((PyArrayObject *)values[41]);
32473 __pyx_v_mom_v_source = ((PyArrayObject *)values[42]);
32474 __pyx_v_mom_w_source = ((PyArrayObject *)values[43]);
32475 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[44]);
32476 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[45]);
32477 __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[46]);
32478 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[47]);
32479 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[48]);
32480 __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[49]);
32481 __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[50]);
32482 __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[51]);
32483 __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[52]);
32484 __pyx_v_mom_u_ham = ((PyArrayObject *)values[53]);
32485 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[54]);
32486 __pyx_v_mom_v_ham = ((PyArrayObject *)values[55]);
32487 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[56]);
32488 __pyx_v_mom_w_ham = ((PyArrayObject *)values[57]);
32489 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[58]);
32491 goto __pyx_L4_argument_unpacking_done;
32492 __pyx_L5_argtuple_error:;
32493 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 1, 59, 59, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6271, __pyx_L3_error)
32495 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
32496 __Pyx_RefNannyFinishContext();
32498 __pyx_L4_argument_unpacking_done:;
32499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1,
"meanGrainSize", 0))) __PYX_ERR(0, 6273, __pyx_L1_error)
32500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6274, __pyx_L1_error)
32501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6275, __pyx_L1_error)
32502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 6276, __pyx_L1_error)
32503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6277, __pyx_L1_error)
32504 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6278, __pyx_L1_error)
32505 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 6279, __pyx_L1_error)
32506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6280, __pyx_L1_error)
32507 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 6281, __pyx_L1_error)
32508 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 6282, __pyx_L1_error)
32509 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 6283, __pyx_L1_error)
32510 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 6284, __pyx_L1_error)
32511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 6285, __pyx_L1_error)
32512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 6286, __pyx_L1_error)
32513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 6287, __pyx_L1_error)
32514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 6288, __pyx_L1_error)
32515 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 6289, __pyx_L1_error)
32516 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 6290, __pyx_L1_error)
32517 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 6291, __pyx_L1_error)
32518 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 6292, __pyx_L1_error)
32519 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 6293, __pyx_L1_error)
32520 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 6294, __pyx_L1_error)
32521 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 6295, __pyx_L1_error)
32522 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 6296, __pyx_L1_error)
32523 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 6297, __pyx_L1_error)
32524 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 6298, __pyx_L1_error)
32525 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 6299, __pyx_L1_error)
32526 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 6300, __pyx_L1_error)
32527 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 6301, __pyx_L1_error)
32528 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 6302, __pyx_L1_error)
32529 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 6303, __pyx_L1_error)
32530 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 6304, __pyx_L1_error)
32531 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 6305, __pyx_L1_error)
32532 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 6306, __pyx_L1_error)
32533 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 6307, __pyx_L1_error)
32534 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 6308, __pyx_L1_error)
32535 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 6309, __pyx_L1_error)
32536 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 6310, __pyx_L1_error)
32537 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 6311, __pyx_L1_error)
32538 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 6312, __pyx_L1_error)
32539 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 6313, __pyx_L1_error)
32540 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 6314, __pyx_L1_error)
32541 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 6315, __pyx_L1_error)
32542 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 6316, __pyx_L1_error)
32543 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_w", 0))) __PYX_ERR(0, 6317, __pyx_L1_error)
32544 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 6318, __pyx_L1_error)
32545 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 6319, __pyx_L1_error)
32546 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_w", 0))) __PYX_ERR(0, 6320, __pyx_L1_error)
32547 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_u", 0))) __PYX_ERR(0, 6321, __pyx_L1_error)
32548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_v", 0))) __PYX_ERR(0, 6322, __pyx_L1_error)
32549 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_w", 0))) __PYX_ERR(0, 6323, __pyx_L1_error)
32550 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 6324, __pyx_L1_error)
32551 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6325, __pyx_L1_error)
32552 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 6326, __pyx_L1_error)
32553 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6327, __pyx_L1_error)
32554 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 6328, __pyx_L1_error)
32555 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 6329, __pyx_L1_error)
32556 __pyx_r = __pyx_pf_22ctransportCoefficients_168VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_mu, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
32563 __Pyx_RefNannyFinishContext();
32567 static PyObject *__pyx_pf_22ctransportCoefficients_168VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_mu, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
32568 PyObject *__pyx_r = NULL;
32569 __Pyx_RefNannyDeclarations
32570 PyObject *__pyx_t_1 = NULL;
32572 int __pyx_lineno = 0;
32573 const char *__pyx_filename = NULL;
32574 int __pyx_clineno = 0;
32575 __Pyx_RefNannySetupContext(
"VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", 0);
32584 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6330, __pyx_L1_error)
32585 __Pyx_GOTREF(__pyx_t_1);
32586 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6330, __pyx_L1_error)
32587 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32596 VolumeAveragedNavierStokesFullDevStress_3D_Evaluate(__pyx_t_2, __pyx_v_rho, __pyx_v_mu, ((
double *)__pyx_v_meanGrainSize->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_u_source_w->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_dmom_v_source_w->data), ((
double *)__pyx_v_dmom_w_source_u->data), ((
double *)__pyx_v_dmom_w_source_v->data), ((
double *)__pyx_v_dmom_w_source_w->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
32607 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32610 __Pyx_XDECREF(__pyx_t_1);
32611 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedNavierStokesFullDevStress_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
32614 __Pyx_XGIVEREF(__pyx_r);
32615 __Pyx_RefNannyFinishContext();
32628 static PyObject *__pyx_pw_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32629 static PyMethodDef __pyx_mdef_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate = {
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
32630 static PyObject *__pyx_pw_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32631 int __pyx_v_killNonlinearDrag;
32632 double __pyx_v_eps_rho;
32633 double __pyx_v_eps_mu;
32634 double __pyx_v_sigma;
32635 double __pyx_v_rho_0;
32636 double __pyx_v_nu_0;
32637 double __pyx_v_rho_1;
32638 double __pyx_v_nu_1;
32639 PyArrayObject *__pyx_v_meanGrainSize = 0;
32640 PyArrayObject *__pyx_v_g = 0;
32641 PyArrayObject *__pyx_v_phi = 0;
32642 PyArrayObject *__pyx_v_n = 0;
32643 PyArrayObject *__pyx_v_kappa = 0;
32644 PyArrayObject *__pyx_v_p = 0;
32645 PyArrayObject *__pyx_v_grad_p = 0;
32646 PyArrayObject *__pyx_v_u = 0;
32647 PyArrayObject *__pyx_v_v = 0;
32648 PyArrayObject *__pyx_v_porosity = 0;
32649 PyArrayObject *__pyx_v_mom_u_acc = 0;
32650 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
32651 PyArrayObject *__pyx_v_mom_v_acc = 0;
32652 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
32653 PyArrayObject *__pyx_v_mass_adv = 0;
32654 PyArrayObject *__pyx_v_dmass_adv_u = 0;
32655 PyArrayObject *__pyx_v_dmass_adv_v = 0;
32656 PyArrayObject *__pyx_v_mom_u_adv = 0;
32657 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
32658 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
32659 PyArrayObject *__pyx_v_mom_v_adv = 0;
32660 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
32661 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
32662 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
32663 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
32664 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
32665 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
32666 PyArrayObject *__pyx_v_mom_u_source = 0;
32667 PyArrayObject *__pyx_v_mom_v_source = 0;
32668 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
32669 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
32670 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
32671 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
32672 PyArrayObject *__pyx_v_mom_u_ham = 0;
32673 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
32674 PyArrayObject *__pyx_v_mom_v_ham = 0;
32675 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
32676 int __pyx_lineno = 0;
32677 const char *__pyx_filename = NULL;
32678 int __pyx_clineno = 0;
32679 PyObject *__pyx_r = 0;
32680 __Pyx_RefNannyDeclarations
32681 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate (wrapper)", 0);
32683 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
32684 PyObject* values[45] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
32685 if (unlikely(__pyx_kwds)) {
32686 Py_ssize_t kw_args;
32687 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32688 switch (pos_args) {
32689 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
32690 CYTHON_FALLTHROUGH;
32691 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
32692 CYTHON_FALLTHROUGH;
32693 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
32694 CYTHON_FALLTHROUGH;
32695 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
32696 CYTHON_FALLTHROUGH;
32697 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
32698 CYTHON_FALLTHROUGH;
32699 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
32700 CYTHON_FALLTHROUGH;
32701 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
32702 CYTHON_FALLTHROUGH;
32703 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
32704 CYTHON_FALLTHROUGH;
32705 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
32706 CYTHON_FALLTHROUGH;
32707 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
32708 CYTHON_FALLTHROUGH;
32709 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
32710 CYTHON_FALLTHROUGH;
32711 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
32712 CYTHON_FALLTHROUGH;
32713 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
32714 CYTHON_FALLTHROUGH;
32715 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
32716 CYTHON_FALLTHROUGH;
32717 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
32718 CYTHON_FALLTHROUGH;
32719 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
32720 CYTHON_FALLTHROUGH;
32721 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
32722 CYTHON_FALLTHROUGH;
32723 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
32724 CYTHON_FALLTHROUGH;
32725 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
32726 CYTHON_FALLTHROUGH;
32727 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
32728 CYTHON_FALLTHROUGH;
32729 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
32730 CYTHON_FALLTHROUGH;
32731 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
32732 CYTHON_FALLTHROUGH;
32733 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
32734 CYTHON_FALLTHROUGH;
32735 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
32736 CYTHON_FALLTHROUGH;
32737 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
32738 CYTHON_FALLTHROUGH;
32739 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32740 CYTHON_FALLTHROUGH;
32741 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32742 CYTHON_FALLTHROUGH;
32743 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32744 CYTHON_FALLTHROUGH;
32745 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32746 CYTHON_FALLTHROUGH;
32747 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32748 CYTHON_FALLTHROUGH;
32749 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32750 CYTHON_FALLTHROUGH;
32751 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32752 CYTHON_FALLTHROUGH;
32753 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32754 CYTHON_FALLTHROUGH;
32755 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32756 CYTHON_FALLTHROUGH;
32757 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32758 CYTHON_FALLTHROUGH;
32759 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32760 CYTHON_FALLTHROUGH;
32761 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32762 CYTHON_FALLTHROUGH;
32763 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32764 CYTHON_FALLTHROUGH;
32765 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32766 CYTHON_FALLTHROUGH;
32767 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32768 CYTHON_FALLTHROUGH;
32769 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32770 CYTHON_FALLTHROUGH;
32771 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32772 CYTHON_FALLTHROUGH;
32773 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32774 CYTHON_FALLTHROUGH;
32775 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32776 CYTHON_FALLTHROUGH;
32777 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32778 CYTHON_FALLTHROUGH;
32780 default:
goto __pyx_L5_argtuple_error;
32782 kw_args = PyDict_Size(__pyx_kwds);
32783 switch (pos_args) {
32785 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
32786 else goto __pyx_L5_argtuple_error;
32787 CYTHON_FALLTHROUGH;
32789 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
32791 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 1); __PYX_ERR(0, 6390, __pyx_L3_error)
32793 CYTHON_FALLTHROUGH;
32795 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
32797 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 2); __PYX_ERR(0, 6390, __pyx_L3_error)
32799 CYTHON_FALLTHROUGH;
32801 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
32803 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 3); __PYX_ERR(0, 6390, __pyx_L3_error)
32805 CYTHON_FALLTHROUGH;
32807 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
32809 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 4); __PYX_ERR(0, 6390, __pyx_L3_error)
32811 CYTHON_FALLTHROUGH;
32813 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
32815 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 5); __PYX_ERR(0, 6390, __pyx_L3_error)
32817 CYTHON_FALLTHROUGH;
32819 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
32821 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 6); __PYX_ERR(0, 6390, __pyx_L3_error)
32823 CYTHON_FALLTHROUGH;
32825 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
32827 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 7); __PYX_ERR(0, 6390, __pyx_L3_error)
32829 CYTHON_FALLTHROUGH;
32831 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
32833 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 8); __PYX_ERR(0, 6390, __pyx_L3_error)
32835 CYTHON_FALLTHROUGH;
32837 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
32839 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 9); __PYX_ERR(0, 6390, __pyx_L3_error)
32841 CYTHON_FALLTHROUGH;
32843 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
32845 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 10); __PYX_ERR(0, 6390, __pyx_L3_error)
32847 CYTHON_FALLTHROUGH;
32849 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32851 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 11); __PYX_ERR(0, 6390, __pyx_L3_error)
32853 CYTHON_FALLTHROUGH;
32855 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
32857 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 12); __PYX_ERR(0, 6390, __pyx_L3_error)
32859 CYTHON_FALLTHROUGH;
32861 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
32863 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 13); __PYX_ERR(0, 6390, __pyx_L3_error)
32865 CYTHON_FALLTHROUGH;
32867 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
32869 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 14); __PYX_ERR(0, 6390, __pyx_L3_error)
32871 CYTHON_FALLTHROUGH;
32873 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
32875 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 15); __PYX_ERR(0, 6390, __pyx_L3_error)
32877 CYTHON_FALLTHROUGH;
32879 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32881 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 16); __PYX_ERR(0, 6390, __pyx_L3_error)
32883 CYTHON_FALLTHROUGH;
32885 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
32887 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 17); __PYX_ERR(0, 6390, __pyx_L3_error)
32889 CYTHON_FALLTHROUGH;
32891 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
32893 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 18); __PYX_ERR(0, 6390, __pyx_L3_error)
32895 CYTHON_FALLTHROUGH;
32897 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
32899 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 19); __PYX_ERR(0, 6390, __pyx_L3_error)
32901 CYTHON_FALLTHROUGH;
32903 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
32905 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 20); __PYX_ERR(0, 6390, __pyx_L3_error)
32907 CYTHON_FALLTHROUGH;
32909 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
32911 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 21); __PYX_ERR(0, 6390, __pyx_L3_error)
32913 CYTHON_FALLTHROUGH;
32915 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
32917 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 22); __PYX_ERR(0, 6390, __pyx_L3_error)
32919 CYTHON_FALLTHROUGH;
32921 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
32923 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 23); __PYX_ERR(0, 6390, __pyx_L3_error)
32925 CYTHON_FALLTHROUGH;
32927 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
32929 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 24); __PYX_ERR(0, 6390, __pyx_L3_error)
32931 CYTHON_FALLTHROUGH;
32933 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
32935 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 25); __PYX_ERR(0, 6390, __pyx_L3_error)
32937 CYTHON_FALLTHROUGH;
32939 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
32941 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 26); __PYX_ERR(0, 6390, __pyx_L3_error)
32943 CYTHON_FALLTHROUGH;
32945 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
32947 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 27); __PYX_ERR(0, 6390, __pyx_L3_error)
32949 CYTHON_FALLTHROUGH;
32951 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
32953 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 28); __PYX_ERR(0, 6390, __pyx_L3_error)
32955 CYTHON_FALLTHROUGH;
32957 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
32959 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 29); __PYX_ERR(0, 6390, __pyx_L3_error)
32961 CYTHON_FALLTHROUGH;
32963 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
32965 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 30); __PYX_ERR(0, 6390, __pyx_L3_error)
32967 CYTHON_FALLTHROUGH;
32969 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
32971 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 31); __PYX_ERR(0, 6390, __pyx_L3_error)
32973 CYTHON_FALLTHROUGH;
32975 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
32977 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 32); __PYX_ERR(0, 6390, __pyx_L3_error)
32979 CYTHON_FALLTHROUGH;
32981 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
32983 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 33); __PYX_ERR(0, 6390, __pyx_L3_error)
32985 CYTHON_FALLTHROUGH;
32987 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
32989 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 34); __PYX_ERR(0, 6390, __pyx_L3_error)
32991 CYTHON_FALLTHROUGH;
32993 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
32995 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 35); __PYX_ERR(0, 6390, __pyx_L3_error)
32997 CYTHON_FALLTHROUGH;
32999 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
33001 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 36); __PYX_ERR(0, 6390, __pyx_L3_error)
33003 CYTHON_FALLTHROUGH;
33005 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
33007 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 37); __PYX_ERR(0, 6390, __pyx_L3_error)
33009 CYTHON_FALLTHROUGH;
33011 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
33013 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 38); __PYX_ERR(0, 6390, __pyx_L3_error)
33015 CYTHON_FALLTHROUGH;
33017 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
33019 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 39); __PYX_ERR(0, 6390, __pyx_L3_error)
33021 CYTHON_FALLTHROUGH;
33023 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
33025 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 40); __PYX_ERR(0, 6390, __pyx_L3_error)
33027 CYTHON_FALLTHROUGH;
33029 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
33031 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 41); __PYX_ERR(0, 6390, __pyx_L3_error)
33033 CYTHON_FALLTHROUGH;
33035 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
33037 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 42); __PYX_ERR(0, 6390, __pyx_L3_error)
33039 CYTHON_FALLTHROUGH;
33041 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
33043 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 43); __PYX_ERR(0, 6390, __pyx_L3_error)
33045 CYTHON_FALLTHROUGH;
33047 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
33049 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, 44); __PYX_ERR(0, 6390, __pyx_L3_error)
33052 if (unlikely(kw_args > 0)) {
33053 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate") < 0)) __PYX_ERR(0, 6390, __pyx_L3_error)
33055 }
else if (PyTuple_GET_SIZE(__pyx_args) != 45) {
33056 goto __pyx_L5_argtuple_error;
33058 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33059 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33060 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33061 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33062 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33063 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33064 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33065 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33066 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33067 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33068 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33069 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33070 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33071 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33072 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33073 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33074 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33075 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33076 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33077 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33078 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33079 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33080 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33081 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33082 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33083 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33084 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33085 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33086 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
33087 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
33088 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
33089 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
33090 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
33091 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
33092 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
33093 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
33094 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
33095 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
33096 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
33097 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
33098 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
33099 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
33100 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
33101 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
33102 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
33104 __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_killNonlinearDrag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6390, __pyx_L3_error)
33105 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6391, __pyx_L3_error)
33106 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6392, __pyx_L3_error)
33107 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6393, __pyx_L3_error)
33108 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6394, __pyx_L3_error)
33109 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6395, __pyx_L3_error)
33110 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6396, __pyx_L3_error)
33111 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6397, __pyx_L3_error)
33112 __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
33113 __pyx_v_g = ((PyArrayObject *)values[9]);
33114 __pyx_v_phi = ((PyArrayObject *)values[10]);
33115 __pyx_v_n = ((PyArrayObject *)values[11]);
33116 __pyx_v_kappa = ((PyArrayObject *)values[12]);
33117 __pyx_v_p = ((PyArrayObject *)values[13]);
33118 __pyx_v_grad_p = ((PyArrayObject *)values[14]);
33119 __pyx_v_u = ((PyArrayObject *)values[15]);
33120 __pyx_v_v = ((PyArrayObject *)values[16]);
33121 __pyx_v_porosity = ((PyArrayObject *)values[17]);
33122 __pyx_v_mom_u_acc = ((PyArrayObject *)values[18]);
33123 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[19]);
33124 __pyx_v_mom_v_acc = ((PyArrayObject *)values[20]);
33125 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[21]);
33126 __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
33127 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
33128 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
33129 __pyx_v_mom_u_adv = ((PyArrayObject *)values[25]);
33130 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[26]);
33131 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[27]);
33132 __pyx_v_mom_v_adv = ((PyArrayObject *)values[28]);
33133 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[29]);
33134 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[30]);
33135 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[31]);
33136 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[32]);
33137 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[33]);
33138 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[34]);
33139 __pyx_v_mom_u_source = ((PyArrayObject *)values[35]);
33140 __pyx_v_mom_v_source = ((PyArrayObject *)values[36]);
33141 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[37]);
33142 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[38]);
33143 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[39]);
33144 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[40]);
33145 __pyx_v_mom_u_ham = ((PyArrayObject *)values[41]);
33146 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[42]);
33147 __pyx_v_mom_v_ham = ((PyArrayObject *)values[43]);
33148 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[44]);
33150 goto __pyx_L4_argument_unpacking_done;
33151 __pyx_L5_argtuple_error:;
33152 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 1, 45, 45, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6390, __pyx_L3_error)
33154 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
33155 __Pyx_RefNannyFinishContext();
33157 __pyx_L4_argument_unpacking_done:;
33158 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1,
"meanGrainSize", 0))) __PYX_ERR(0, 6398, __pyx_L1_error)
33159 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6399, __pyx_L1_error)
33160 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6400, __pyx_L1_error)
33161 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6401, __pyx_L1_error)
33162 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 6402, __pyx_L1_error)
33163 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6403, __pyx_L1_error)
33164 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 6404, __pyx_L1_error)
33165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6405, __pyx_L1_error)
33166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6406, __pyx_L1_error)
33167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6407, __pyx_L1_error)
33168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 6408, __pyx_L1_error)
33169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 6409, __pyx_L1_error)
33170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 6410, __pyx_L1_error)
33171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 6411, __pyx_L1_error)
33172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 6412, __pyx_L1_error)
33173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 6413, __pyx_L1_error)
33174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 6414, __pyx_L1_error)
33175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 6415, __pyx_L1_error)
33176 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 6416, __pyx_L1_error)
33177 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 6417, __pyx_L1_error)
33178 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 6418, __pyx_L1_error)
33179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 6419, __pyx_L1_error)
33180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 6420, __pyx_L1_error)
33181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 6421, __pyx_L1_error)
33182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 6422, __pyx_L1_error)
33183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 6423, __pyx_L1_error)
33184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 6424, __pyx_L1_error)
33185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 6425, __pyx_L1_error)
33186 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 6426, __pyx_L1_error)
33187 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 6427, __pyx_L1_error)
33188 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 6428, __pyx_L1_error)
33189 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 6429, __pyx_L1_error)
33190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 6430, __pyx_L1_error)
33191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 6431, __pyx_L1_error)
33192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6432, __pyx_L1_error)
33193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 6433, __pyx_L1_error)
33194 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6434, __pyx_L1_error)
33195 __pyx_r = __pyx_pf_22ctransportCoefficients_170VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
33202 __Pyx_RefNannyFinishContext();
33206 static PyObject *__pyx_pf_22ctransportCoefficients_170VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
33207 PyObject *__pyx_r = NULL;
33208 __Pyx_RefNannyDeclarations
33209 PyObject *__pyx_t_1 = NULL;
33211 int __pyx_lineno = 0;
33212 const char *__pyx_filename = NULL;
33213 int __pyx_clineno = 0;
33214 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", 0);
33223 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6435, __pyx_L1_error)
33224 __Pyx_GOTREF(__pyx_t_1);
33225 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6435, __pyx_L1_error)
33226 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33235 VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_meanGrainSize->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
33246 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33249 __Pyx_XDECREF(__pyx_t_1);
33250 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
33253 __Pyx_XGIVEREF(__pyx_r);
33254 __Pyx_RefNannyFinishContext();
33267 static PyObject *__pyx_pw_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33268 static PyMethodDef __pyx_mdef_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd = {
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
33269 static PyObject *__pyx_pw_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33270 int __pyx_v_killNonlinearDrag;
33271 double __pyx_v_eps_rho;
33272 double __pyx_v_eps_mu;
33273 double __pyx_v_sigma;
33274 double __pyx_v_rho_0;
33275 double __pyx_v_nu_0;
33276 double __pyx_v_rho_1;
33277 double __pyx_v_nu_1;
33278 PyArrayObject *__pyx_v_meanGrainSize = 0;
33279 PyArrayObject *__pyx_v_g = 0;
33280 PyArrayObject *__pyx_v_phi = 0;
33281 PyArrayObject *__pyx_v_n = 0;
33282 PyArrayObject *__pyx_v_kappa = 0;
33283 PyArrayObject *__pyx_v_p = 0;
33284 PyArrayObject *__pyx_v_grad_p = 0;
33285 PyArrayObject *__pyx_v_u = 0;
33286 PyArrayObject *__pyx_v_v = 0;
33287 PyArrayObject *__pyx_v_porosity = 0;
33288 PyArrayObject *__pyx_v_mom_u_acc = 0;
33289 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
33290 PyArrayObject *__pyx_v_mom_v_acc = 0;
33291 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
33292 PyArrayObject *__pyx_v_mass_adv = 0;
33293 PyArrayObject *__pyx_v_dmass_adv_u = 0;
33294 PyArrayObject *__pyx_v_dmass_adv_v = 0;
33295 PyArrayObject *__pyx_v_mom_u_adv = 0;
33296 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
33297 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
33298 PyArrayObject *__pyx_v_mom_v_adv = 0;
33299 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
33300 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
33301 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
33302 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
33303 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
33304 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
33305 PyArrayObject *__pyx_v_mom_u_source = 0;
33306 PyArrayObject *__pyx_v_mom_v_source = 0;
33307 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
33308 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
33309 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
33310 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
33311 PyArrayObject *__pyx_v_mom_u_ham = 0;
33312 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
33313 PyArrayObject *__pyx_v_mom_v_ham = 0;
33314 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
33315 int __pyx_lineno = 0;
33316 const char *__pyx_filename = NULL;
33317 int __pyx_clineno = 0;
33318 PyObject *__pyx_r = 0;
33319 __Pyx_RefNannyDeclarations
33320 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd (wrapper)", 0);
33322 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,0};
33323 PyObject* values[45] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33324 if (unlikely(__pyx_kwds)) {
33325 Py_ssize_t kw_args;
33326 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33327 switch (pos_args) {
33328 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
33329 CYTHON_FALLTHROUGH;
33330 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
33331 CYTHON_FALLTHROUGH;
33332 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
33333 CYTHON_FALLTHROUGH;
33334 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
33335 CYTHON_FALLTHROUGH;
33336 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
33337 CYTHON_FALLTHROUGH;
33338 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
33339 CYTHON_FALLTHROUGH;
33340 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
33341 CYTHON_FALLTHROUGH;
33342 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
33343 CYTHON_FALLTHROUGH;
33344 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
33345 CYTHON_FALLTHROUGH;
33346 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
33347 CYTHON_FALLTHROUGH;
33348 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
33349 CYTHON_FALLTHROUGH;
33350 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
33351 CYTHON_FALLTHROUGH;
33352 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
33353 CYTHON_FALLTHROUGH;
33354 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
33355 CYTHON_FALLTHROUGH;
33356 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
33357 CYTHON_FALLTHROUGH;
33358 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
33359 CYTHON_FALLTHROUGH;
33360 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
33361 CYTHON_FALLTHROUGH;
33362 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33363 CYTHON_FALLTHROUGH;
33364 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33365 CYTHON_FALLTHROUGH;
33366 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33367 CYTHON_FALLTHROUGH;
33368 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33369 CYTHON_FALLTHROUGH;
33370 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33371 CYTHON_FALLTHROUGH;
33372 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33373 CYTHON_FALLTHROUGH;
33374 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33375 CYTHON_FALLTHROUGH;
33376 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33377 CYTHON_FALLTHROUGH;
33378 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33379 CYTHON_FALLTHROUGH;
33380 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33381 CYTHON_FALLTHROUGH;
33382 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33383 CYTHON_FALLTHROUGH;
33384 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33385 CYTHON_FALLTHROUGH;
33386 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33387 CYTHON_FALLTHROUGH;
33388 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33389 CYTHON_FALLTHROUGH;
33390 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33391 CYTHON_FALLTHROUGH;
33392 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33393 CYTHON_FALLTHROUGH;
33394 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33395 CYTHON_FALLTHROUGH;
33396 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33397 CYTHON_FALLTHROUGH;
33398 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33399 CYTHON_FALLTHROUGH;
33400 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33401 CYTHON_FALLTHROUGH;
33402 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33403 CYTHON_FALLTHROUGH;
33404 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33405 CYTHON_FALLTHROUGH;
33406 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33407 CYTHON_FALLTHROUGH;
33408 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33409 CYTHON_FALLTHROUGH;
33410 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33411 CYTHON_FALLTHROUGH;
33412 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33413 CYTHON_FALLTHROUGH;
33414 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33415 CYTHON_FALLTHROUGH;
33416 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33417 CYTHON_FALLTHROUGH;
33419 default:
goto __pyx_L5_argtuple_error;
33421 kw_args = PyDict_Size(__pyx_kwds);
33422 switch (pos_args) {
33424 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
33425 else goto __pyx_L5_argtuple_error;
33426 CYTHON_FALLTHROUGH;
33428 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
33430 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 1); __PYX_ERR(0, 6481, __pyx_L3_error)
33432 CYTHON_FALLTHROUGH;
33434 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
33436 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 2); __PYX_ERR(0, 6481, __pyx_L3_error)
33438 CYTHON_FALLTHROUGH;
33440 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
33442 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 3); __PYX_ERR(0, 6481, __pyx_L3_error)
33444 CYTHON_FALLTHROUGH;
33446 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
33448 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 4); __PYX_ERR(0, 6481, __pyx_L3_error)
33450 CYTHON_FALLTHROUGH;
33452 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
33454 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 5); __PYX_ERR(0, 6481, __pyx_L3_error)
33456 CYTHON_FALLTHROUGH;
33458 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
33460 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 6); __PYX_ERR(0, 6481, __pyx_L3_error)
33462 CYTHON_FALLTHROUGH;
33464 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
33466 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 7); __PYX_ERR(0, 6481, __pyx_L3_error)
33468 CYTHON_FALLTHROUGH;
33470 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
33472 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 8); __PYX_ERR(0, 6481, __pyx_L3_error)
33474 CYTHON_FALLTHROUGH;
33476 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
33478 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 9); __PYX_ERR(0, 6481, __pyx_L3_error)
33480 CYTHON_FALLTHROUGH;
33482 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
33484 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 10); __PYX_ERR(0, 6481, __pyx_L3_error)
33486 CYTHON_FALLTHROUGH;
33488 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
33490 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 11); __PYX_ERR(0, 6481, __pyx_L3_error)
33492 CYTHON_FALLTHROUGH;
33494 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
33496 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 12); __PYX_ERR(0, 6481, __pyx_L3_error)
33498 CYTHON_FALLTHROUGH;
33500 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
33502 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 13); __PYX_ERR(0, 6481, __pyx_L3_error)
33504 CYTHON_FALLTHROUGH;
33506 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
33508 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 14); __PYX_ERR(0, 6481, __pyx_L3_error)
33510 CYTHON_FALLTHROUGH;
33512 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
33514 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 15); __PYX_ERR(0, 6481, __pyx_L3_error)
33516 CYTHON_FALLTHROUGH;
33518 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
33520 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 16); __PYX_ERR(0, 6481, __pyx_L3_error)
33522 CYTHON_FALLTHROUGH;
33524 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
33526 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 17); __PYX_ERR(0, 6481, __pyx_L3_error)
33528 CYTHON_FALLTHROUGH;
33530 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
33532 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 18); __PYX_ERR(0, 6481, __pyx_L3_error)
33534 CYTHON_FALLTHROUGH;
33536 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
33538 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 19); __PYX_ERR(0, 6481, __pyx_L3_error)
33540 CYTHON_FALLTHROUGH;
33542 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
33544 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 20); __PYX_ERR(0, 6481, __pyx_L3_error)
33546 CYTHON_FALLTHROUGH;
33548 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
33550 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 21); __PYX_ERR(0, 6481, __pyx_L3_error)
33552 CYTHON_FALLTHROUGH;
33554 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
33556 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 22); __PYX_ERR(0, 6481, __pyx_L3_error)
33558 CYTHON_FALLTHROUGH;
33560 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
33562 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 23); __PYX_ERR(0, 6481, __pyx_L3_error)
33564 CYTHON_FALLTHROUGH;
33566 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
33568 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 24); __PYX_ERR(0, 6481, __pyx_L3_error)
33570 CYTHON_FALLTHROUGH;
33572 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
33574 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 25); __PYX_ERR(0, 6481, __pyx_L3_error)
33576 CYTHON_FALLTHROUGH;
33578 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
33580 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 26); __PYX_ERR(0, 6481, __pyx_L3_error)
33582 CYTHON_FALLTHROUGH;
33584 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
33586 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 27); __PYX_ERR(0, 6481, __pyx_L3_error)
33588 CYTHON_FALLTHROUGH;
33590 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
33592 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 28); __PYX_ERR(0, 6481, __pyx_L3_error)
33594 CYTHON_FALLTHROUGH;
33596 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
33598 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 29); __PYX_ERR(0, 6481, __pyx_L3_error)
33600 CYTHON_FALLTHROUGH;
33602 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
33604 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 30); __PYX_ERR(0, 6481, __pyx_L3_error)
33606 CYTHON_FALLTHROUGH;
33608 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
33610 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 31); __PYX_ERR(0, 6481, __pyx_L3_error)
33612 CYTHON_FALLTHROUGH;
33614 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
33616 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 32); __PYX_ERR(0, 6481, __pyx_L3_error)
33618 CYTHON_FALLTHROUGH;
33620 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
33622 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 33); __PYX_ERR(0, 6481, __pyx_L3_error)
33624 CYTHON_FALLTHROUGH;
33626 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
33628 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 34); __PYX_ERR(0, 6481, __pyx_L3_error)
33630 CYTHON_FALLTHROUGH;
33632 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
33634 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 35); __PYX_ERR(0, 6481, __pyx_L3_error)
33636 CYTHON_FALLTHROUGH;
33638 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
33640 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 36); __PYX_ERR(0, 6481, __pyx_L3_error)
33642 CYTHON_FALLTHROUGH;
33644 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
33646 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 37); __PYX_ERR(0, 6481, __pyx_L3_error)
33648 CYTHON_FALLTHROUGH;
33650 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
33652 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 38); __PYX_ERR(0, 6481, __pyx_L3_error)
33654 CYTHON_FALLTHROUGH;
33656 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
33658 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 39); __PYX_ERR(0, 6481, __pyx_L3_error)
33660 CYTHON_FALLTHROUGH;
33662 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
33664 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 40); __PYX_ERR(0, 6481, __pyx_L3_error)
33666 CYTHON_FALLTHROUGH;
33668 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
33670 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 41); __PYX_ERR(0, 6481, __pyx_L3_error)
33672 CYTHON_FALLTHROUGH;
33674 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
33676 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 42); __PYX_ERR(0, 6481, __pyx_L3_error)
33678 CYTHON_FALLTHROUGH;
33680 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
33682 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 43); __PYX_ERR(0, 6481, __pyx_L3_error)
33684 CYTHON_FALLTHROUGH;
33686 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
33688 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, 44); __PYX_ERR(0, 6481, __pyx_L3_error)
33691 if (unlikely(kw_args > 0)) {
33692 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 6481, __pyx_L3_error)
33694 }
else if (PyTuple_GET_SIZE(__pyx_args) != 45) {
33695 goto __pyx_L5_argtuple_error;
33697 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33698 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33699 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33700 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33701 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33702 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33703 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33704 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33705 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33706 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33707 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33708 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33709 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33710 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33711 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33712 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33713 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33714 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33715 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33716 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33717 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33718 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33719 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33720 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33721 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33722 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33723 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33724 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33725 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
33726 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
33727 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
33728 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
33729 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
33730 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
33731 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
33732 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
33733 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
33734 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
33735 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
33736 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
33737 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
33738 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
33739 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
33740 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
33741 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
33743 __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_killNonlinearDrag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6481, __pyx_L3_error)
33744 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6482, __pyx_L3_error)
33745 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6483, __pyx_L3_error)
33746 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6484, __pyx_L3_error)
33747 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6485, __pyx_L3_error)
33748 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6486, __pyx_L3_error)
33749 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6487, __pyx_L3_error)
33750 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6488, __pyx_L3_error)
33751 __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
33752 __pyx_v_g = ((PyArrayObject *)values[9]);
33753 __pyx_v_phi = ((PyArrayObject *)values[10]);
33754 __pyx_v_n = ((PyArrayObject *)values[11]);
33755 __pyx_v_kappa = ((PyArrayObject *)values[12]);
33756 __pyx_v_p = ((PyArrayObject *)values[13]);
33757 __pyx_v_grad_p = ((PyArrayObject *)values[14]);
33758 __pyx_v_u = ((PyArrayObject *)values[15]);
33759 __pyx_v_v = ((PyArrayObject *)values[16]);
33760 __pyx_v_porosity = ((PyArrayObject *)values[17]);
33761 __pyx_v_mom_u_acc = ((PyArrayObject *)values[18]);
33762 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[19]);
33763 __pyx_v_mom_v_acc = ((PyArrayObject *)values[20]);
33764 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[21]);
33765 __pyx_v_mass_adv = ((PyArrayObject *)values[22]);
33766 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[23]);
33767 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[24]);
33768 __pyx_v_mom_u_adv = ((PyArrayObject *)values[25]);
33769 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[26]);
33770 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[27]);
33771 __pyx_v_mom_v_adv = ((PyArrayObject *)values[28]);
33772 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[29]);
33773 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[30]);
33774 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[31]);
33775 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[32]);
33776 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[33]);
33777 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[34]);
33778 __pyx_v_mom_u_source = ((PyArrayObject *)values[35]);
33779 __pyx_v_mom_v_source = ((PyArrayObject *)values[36]);
33780 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[37]);
33781 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[38]);
33782 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[39]);
33783 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[40]);
33784 __pyx_v_mom_u_ham = ((PyArrayObject *)values[41]);
33785 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[42]);
33786 __pyx_v_mom_v_ham = ((PyArrayObject *)values[43]);
33787 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[44]);
33789 goto __pyx_L4_argument_unpacking_done;
33790 __pyx_L5_argtuple_error:;
33791 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 1, 45, 45, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6481, __pyx_L3_error)
33793 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
33794 __Pyx_RefNannyFinishContext();
33796 __pyx_L4_argument_unpacking_done:;
33797 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1,
"meanGrainSize", 0))) __PYX_ERR(0, 6489, __pyx_L1_error)
33798 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6490, __pyx_L1_error)
33799 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6491, __pyx_L1_error)
33800 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6492, __pyx_L1_error)
33801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 6493, __pyx_L1_error)
33802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6494, __pyx_L1_error)
33803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 6495, __pyx_L1_error)
33804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6496, __pyx_L1_error)
33805 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6497, __pyx_L1_error)
33806 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6498, __pyx_L1_error)
33807 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 6499, __pyx_L1_error)
33808 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 6500, __pyx_L1_error)
33809 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 6501, __pyx_L1_error)
33810 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 6502, __pyx_L1_error)
33811 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 6503, __pyx_L1_error)
33812 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 6504, __pyx_L1_error)
33813 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 6505, __pyx_L1_error)
33814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 6506, __pyx_L1_error)
33815 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 6507, __pyx_L1_error)
33816 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 6508, __pyx_L1_error)
33817 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 6509, __pyx_L1_error)
33818 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 6510, __pyx_L1_error)
33819 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 6511, __pyx_L1_error)
33820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 6512, __pyx_L1_error)
33821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 6513, __pyx_L1_error)
33822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 6514, __pyx_L1_error)
33823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 6515, __pyx_L1_error)
33824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 6516, __pyx_L1_error)
33825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 6517, __pyx_L1_error)
33826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 6518, __pyx_L1_error)
33827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 6519, __pyx_L1_error)
33828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 6520, __pyx_L1_error)
33829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 6521, __pyx_L1_error)
33830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 6522, __pyx_L1_error)
33831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6523, __pyx_L1_error)
33832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 6524, __pyx_L1_error)
33833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6525, __pyx_L1_error)
33834 __pyx_r = __pyx_pf_22ctransportCoefficients_172VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p);
33841 __Pyx_RefNannyFinishContext();
33845 static PyObject *__pyx_pf_22ctransportCoefficients_172VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p) {
33846 PyObject *__pyx_r = NULL;
33847 __Pyx_RefNannyDeclarations
33848 PyObject *__pyx_t_1 = NULL;
33850 int __pyx_lineno = 0;
33851 const char *__pyx_filename = NULL;
33852 int __pyx_clineno = 0;
33853 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", 0);
33862 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6526, __pyx_L1_error)
33863 __Pyx_GOTREF(__pyx_t_1);
33864 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6526, __pyx_L1_error)
33865 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33874 VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_meanGrainSize->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data));
33885 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33888 __Pyx_XDECREF(__pyx_t_1);
33889 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
33892 __Pyx_XGIVEREF(__pyx_r);
33893 __Pyx_RefNannyFinishContext();
33906 static PyObject *__pyx_pw_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33907 static PyMethodDef __pyx_mdef_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate = {
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
33908 static PyObject *__pyx_pw_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33909 int __pyx_v_killNonlinearDrag;
33910 double __pyx_v_eps_rho;
33911 double __pyx_v_eps_mu;
33912 double __pyx_v_sigma;
33913 double __pyx_v_rho_0;
33914 double __pyx_v_nu_0;
33915 double __pyx_v_rho_1;
33916 double __pyx_v_nu_1;
33917 PyArrayObject *__pyx_v_meanGrainSize = 0;
33918 PyArrayObject *__pyx_v_g = 0;
33919 PyArrayObject *__pyx_v_phi = 0;
33920 PyArrayObject *__pyx_v_n = 0;
33921 PyArrayObject *__pyx_v_kappa = 0;
33922 PyArrayObject *__pyx_v_p = 0;
33923 PyArrayObject *__pyx_v_grad_p = 0;
33924 PyArrayObject *__pyx_v_u = 0;
33925 PyArrayObject *__pyx_v_v = 0;
33926 PyArrayObject *__pyx_v_w = 0;
33927 PyArrayObject *__pyx_v_porosity = 0;
33928 PyArrayObject *__pyx_v_mom_u_acc = 0;
33929 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
33930 PyArrayObject *__pyx_v_mom_v_acc = 0;
33931 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
33932 PyArrayObject *__pyx_v_mom_w_acc = 0;
33933 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
33934 PyArrayObject *__pyx_v_mass_adv = 0;
33935 PyArrayObject *__pyx_v_dmass_adv_u = 0;
33936 PyArrayObject *__pyx_v_dmass_adv_v = 0;
33937 PyArrayObject *__pyx_v_dmass_adv_w = 0;
33938 PyArrayObject *__pyx_v_mom_u_adv = 0;
33939 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
33940 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
33941 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
33942 PyArrayObject *__pyx_v_mom_v_adv = 0;
33943 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
33944 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
33945 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
33946 PyArrayObject *__pyx_v_mom_w_adv = 0;
33947 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
33948 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
33949 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
33950 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
33951 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
33952 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
33953 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
33954 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
33955 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
33956 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
33957 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
33958 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
33959 PyArrayObject *__pyx_v_mom_u_source = 0;
33960 PyArrayObject *__pyx_v_mom_v_source = 0;
33961 PyArrayObject *__pyx_v_mom_w_source = 0;
33962 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
33963 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
33964 PyArrayObject *__pyx_v_dmom_u_source_w = 0;
33965 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
33966 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
33967 PyArrayObject *__pyx_v_dmom_v_source_w = 0;
33968 PyArrayObject *__pyx_v_dmom_w_source_u = 0;
33969 PyArrayObject *__pyx_v_dmom_w_source_v = 0;
33970 PyArrayObject *__pyx_v_dmom_w_source_w = 0;
33971 PyArrayObject *__pyx_v_mom_u_ham = 0;
33972 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
33973 PyArrayObject *__pyx_v_mom_v_ham = 0;
33974 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
33975 PyArrayObject *__pyx_v_mom_w_ham = 0;
33976 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
33977 int __pyx_lineno = 0;
33978 const char *__pyx_filename = NULL;
33979 int __pyx_clineno = 0;
33980 PyObject *__pyx_r = 0;
33981 __Pyx_RefNannyDeclarations
33982 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate (wrapper)", 0);
33984 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
33985 PyObject* values[68] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33986 if (unlikely(__pyx_kwds)) {
33987 Py_ssize_t kw_args;
33988 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33989 switch (pos_args) {
33990 case 68: values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
33991 CYTHON_FALLTHROUGH;
33992 case 67: values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
33993 CYTHON_FALLTHROUGH;
33994 case 66: values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
33995 CYTHON_FALLTHROUGH;
33996 case 65: values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
33997 CYTHON_FALLTHROUGH;
33998 case 64: values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
33999 CYTHON_FALLTHROUGH;
34000 case 63: values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
34001 CYTHON_FALLTHROUGH;
34002 case 62: values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
34003 CYTHON_FALLTHROUGH;
34004 case 61: values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
34005 CYTHON_FALLTHROUGH;
34006 case 60: values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
34007 CYTHON_FALLTHROUGH;
34008 case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
34009 CYTHON_FALLTHROUGH;
34010 case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
34011 CYTHON_FALLTHROUGH;
34012 case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
34013 CYTHON_FALLTHROUGH;
34014 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
34015 CYTHON_FALLTHROUGH;
34016 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
34017 CYTHON_FALLTHROUGH;
34018 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
34019 CYTHON_FALLTHROUGH;
34020 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
34021 CYTHON_FALLTHROUGH;
34022 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
34023 CYTHON_FALLTHROUGH;
34024 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
34025 CYTHON_FALLTHROUGH;
34026 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
34027 CYTHON_FALLTHROUGH;
34028 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
34029 CYTHON_FALLTHROUGH;
34030 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
34031 CYTHON_FALLTHROUGH;
34032 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
34033 CYTHON_FALLTHROUGH;
34034 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
34035 CYTHON_FALLTHROUGH;
34036 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
34037 CYTHON_FALLTHROUGH;
34038 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
34039 CYTHON_FALLTHROUGH;
34040 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
34041 CYTHON_FALLTHROUGH;
34042 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
34043 CYTHON_FALLTHROUGH;
34044 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
34045 CYTHON_FALLTHROUGH;
34046 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
34047 CYTHON_FALLTHROUGH;
34048 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
34049 CYTHON_FALLTHROUGH;
34050 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
34051 CYTHON_FALLTHROUGH;
34052 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
34053 CYTHON_FALLTHROUGH;
34054 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
34055 CYTHON_FALLTHROUGH;
34056 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
34057 CYTHON_FALLTHROUGH;
34058 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
34059 CYTHON_FALLTHROUGH;
34060 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
34061 CYTHON_FALLTHROUGH;
34062 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
34063 CYTHON_FALLTHROUGH;
34064 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
34065 CYTHON_FALLTHROUGH;
34066 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
34067 CYTHON_FALLTHROUGH;
34068 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
34069 CYTHON_FALLTHROUGH;
34070 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
34071 CYTHON_FALLTHROUGH;
34072 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
34073 CYTHON_FALLTHROUGH;
34074 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
34075 CYTHON_FALLTHROUGH;
34076 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
34077 CYTHON_FALLTHROUGH;
34078 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
34079 CYTHON_FALLTHROUGH;
34080 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
34081 CYTHON_FALLTHROUGH;
34082 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
34083 CYTHON_FALLTHROUGH;
34084 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
34085 CYTHON_FALLTHROUGH;
34086 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
34087 CYTHON_FALLTHROUGH;
34088 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
34089 CYTHON_FALLTHROUGH;
34090 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
34091 CYTHON_FALLTHROUGH;
34092 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34093 CYTHON_FALLTHROUGH;
34094 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34095 CYTHON_FALLTHROUGH;
34096 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34097 CYTHON_FALLTHROUGH;
34098 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34099 CYTHON_FALLTHROUGH;
34100 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34101 CYTHON_FALLTHROUGH;
34102 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34103 CYTHON_FALLTHROUGH;
34104 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34105 CYTHON_FALLTHROUGH;
34106 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34107 CYTHON_FALLTHROUGH;
34108 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34109 CYTHON_FALLTHROUGH;
34110 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34111 CYTHON_FALLTHROUGH;
34112 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34113 CYTHON_FALLTHROUGH;
34114 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34115 CYTHON_FALLTHROUGH;
34116 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34117 CYTHON_FALLTHROUGH;
34118 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34119 CYTHON_FALLTHROUGH;
34120 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34121 CYTHON_FALLTHROUGH;
34122 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34123 CYTHON_FALLTHROUGH;
34124 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34125 CYTHON_FALLTHROUGH;
34127 default:
goto __pyx_L5_argtuple_error;
34129 kw_args = PyDict_Size(__pyx_kwds);
34130 switch (pos_args) {
34132 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
34133 else goto __pyx_L5_argtuple_error;
34134 CYTHON_FALLTHROUGH;
34136 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
34138 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 1); __PYX_ERR(0, 6572, __pyx_L3_error)
34140 CYTHON_FALLTHROUGH;
34142 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
34144 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 2); __PYX_ERR(0, 6572, __pyx_L3_error)
34146 CYTHON_FALLTHROUGH;
34148 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
34150 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 3); __PYX_ERR(0, 6572, __pyx_L3_error)
34152 CYTHON_FALLTHROUGH;
34154 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
34156 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 4); __PYX_ERR(0, 6572, __pyx_L3_error)
34158 CYTHON_FALLTHROUGH;
34160 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
34162 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 5); __PYX_ERR(0, 6572, __pyx_L3_error)
34164 CYTHON_FALLTHROUGH;
34166 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
34168 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 6); __PYX_ERR(0, 6572, __pyx_L3_error)
34170 CYTHON_FALLTHROUGH;
34172 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
34174 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 7); __PYX_ERR(0, 6572, __pyx_L3_error)
34176 CYTHON_FALLTHROUGH;
34178 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
34180 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 8); __PYX_ERR(0, 6572, __pyx_L3_error)
34182 CYTHON_FALLTHROUGH;
34184 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
34186 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 9); __PYX_ERR(0, 6572, __pyx_L3_error)
34188 CYTHON_FALLTHROUGH;
34190 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
34192 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 10); __PYX_ERR(0, 6572, __pyx_L3_error)
34194 CYTHON_FALLTHROUGH;
34196 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
34198 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 11); __PYX_ERR(0, 6572, __pyx_L3_error)
34200 CYTHON_FALLTHROUGH;
34202 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
34204 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 12); __PYX_ERR(0, 6572, __pyx_L3_error)
34206 CYTHON_FALLTHROUGH;
34208 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
34210 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 13); __PYX_ERR(0, 6572, __pyx_L3_error)
34212 CYTHON_FALLTHROUGH;
34214 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
34216 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 14); __PYX_ERR(0, 6572, __pyx_L3_error)
34218 CYTHON_FALLTHROUGH;
34220 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
34222 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 15); __PYX_ERR(0, 6572, __pyx_L3_error)
34224 CYTHON_FALLTHROUGH;
34226 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
34228 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 16); __PYX_ERR(0, 6572, __pyx_L3_error)
34230 CYTHON_FALLTHROUGH;
34232 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
34234 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 17); __PYX_ERR(0, 6572, __pyx_L3_error)
34236 CYTHON_FALLTHROUGH;
34238 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
34240 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 18); __PYX_ERR(0, 6572, __pyx_L3_error)
34242 CYTHON_FALLTHROUGH;
34244 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
34246 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 19); __PYX_ERR(0, 6572, __pyx_L3_error)
34248 CYTHON_FALLTHROUGH;
34250 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
34252 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 20); __PYX_ERR(0, 6572, __pyx_L3_error)
34254 CYTHON_FALLTHROUGH;
34256 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
34258 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 21); __PYX_ERR(0, 6572, __pyx_L3_error)
34260 CYTHON_FALLTHROUGH;
34262 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
34264 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 22); __PYX_ERR(0, 6572, __pyx_L3_error)
34266 CYTHON_FALLTHROUGH;
34268 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
34270 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 23); __PYX_ERR(0, 6572, __pyx_L3_error)
34272 CYTHON_FALLTHROUGH;
34274 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
34276 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 24); __PYX_ERR(0, 6572, __pyx_L3_error)
34278 CYTHON_FALLTHROUGH;
34280 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
34282 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 25); __PYX_ERR(0, 6572, __pyx_L3_error)
34284 CYTHON_FALLTHROUGH;
34286 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
34288 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 26); __PYX_ERR(0, 6572, __pyx_L3_error)
34290 CYTHON_FALLTHROUGH;
34292 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
34294 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 27); __PYX_ERR(0, 6572, __pyx_L3_error)
34296 CYTHON_FALLTHROUGH;
34298 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
34300 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 28); __PYX_ERR(0, 6572, __pyx_L3_error)
34302 CYTHON_FALLTHROUGH;
34304 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
34306 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 29); __PYX_ERR(0, 6572, __pyx_L3_error)
34308 CYTHON_FALLTHROUGH;
34310 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
34312 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 30); __PYX_ERR(0, 6572, __pyx_L3_error)
34314 CYTHON_FALLTHROUGH;
34316 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
34318 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 31); __PYX_ERR(0, 6572, __pyx_L3_error)
34320 CYTHON_FALLTHROUGH;
34322 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
34324 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 32); __PYX_ERR(0, 6572, __pyx_L3_error)
34326 CYTHON_FALLTHROUGH;
34328 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
34330 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 33); __PYX_ERR(0, 6572, __pyx_L3_error)
34332 CYTHON_FALLTHROUGH;
34334 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
34336 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 34); __PYX_ERR(0, 6572, __pyx_L3_error)
34338 CYTHON_FALLTHROUGH;
34340 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
34342 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 35); __PYX_ERR(0, 6572, __pyx_L3_error)
34344 CYTHON_FALLTHROUGH;
34346 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
34348 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 36); __PYX_ERR(0, 6572, __pyx_L3_error)
34350 CYTHON_FALLTHROUGH;
34352 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
34354 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 37); __PYX_ERR(0, 6572, __pyx_L3_error)
34356 CYTHON_FALLTHROUGH;
34358 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
34360 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 38); __PYX_ERR(0, 6572, __pyx_L3_error)
34362 CYTHON_FALLTHROUGH;
34364 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
34366 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 39); __PYX_ERR(0, 6572, __pyx_L3_error)
34368 CYTHON_FALLTHROUGH;
34370 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
34372 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 40); __PYX_ERR(0, 6572, __pyx_L3_error)
34374 CYTHON_FALLTHROUGH;
34376 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
34378 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 41); __PYX_ERR(0, 6572, __pyx_L3_error)
34380 CYTHON_FALLTHROUGH;
34382 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
34384 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 42); __PYX_ERR(0, 6572, __pyx_L3_error)
34386 CYTHON_FALLTHROUGH;
34388 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
34390 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 43); __PYX_ERR(0, 6572, __pyx_L3_error)
34392 CYTHON_FALLTHROUGH;
34394 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
34396 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 44); __PYX_ERR(0, 6572, __pyx_L3_error)
34398 CYTHON_FALLTHROUGH;
34400 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
34402 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 45); __PYX_ERR(0, 6572, __pyx_L3_error)
34404 CYTHON_FALLTHROUGH;
34406 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
34408 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 46); __PYX_ERR(0, 6572, __pyx_L3_error)
34410 CYTHON_FALLTHROUGH;
34412 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
34414 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 47); __PYX_ERR(0, 6572, __pyx_L3_error)
34416 CYTHON_FALLTHROUGH;
34418 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
34420 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 48); __PYX_ERR(0, 6572, __pyx_L3_error)
34422 CYTHON_FALLTHROUGH;
34424 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
34426 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 49); __PYX_ERR(0, 6572, __pyx_L3_error)
34428 CYTHON_FALLTHROUGH;
34430 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
34432 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 50); __PYX_ERR(0, 6572, __pyx_L3_error)
34434 CYTHON_FALLTHROUGH;
34436 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
34438 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 51); __PYX_ERR(0, 6572, __pyx_L3_error)
34440 CYTHON_FALLTHROUGH;
34442 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
34444 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 52); __PYX_ERR(0, 6572, __pyx_L3_error)
34446 CYTHON_FALLTHROUGH;
34448 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
34450 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 53); __PYX_ERR(0, 6572, __pyx_L3_error)
34452 CYTHON_FALLTHROUGH;
34454 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
34456 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 54); __PYX_ERR(0, 6572, __pyx_L3_error)
34458 CYTHON_FALLTHROUGH;
34460 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
34462 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 55); __PYX_ERR(0, 6572, __pyx_L3_error)
34464 CYTHON_FALLTHROUGH;
34466 if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
34468 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 56); __PYX_ERR(0, 6572, __pyx_L3_error)
34470 CYTHON_FALLTHROUGH;
34472 if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
34474 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 57); __PYX_ERR(0, 6572, __pyx_L3_error)
34476 CYTHON_FALLTHROUGH;
34478 if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
34480 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 58); __PYX_ERR(0, 6572, __pyx_L3_error)
34482 CYTHON_FALLTHROUGH;
34484 if (likely((values[59] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
34486 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 59); __PYX_ERR(0, 6572, __pyx_L3_error)
34488 CYTHON_FALLTHROUGH;
34490 if (likely((values[60] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
34492 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 60); __PYX_ERR(0, 6572, __pyx_L3_error)
34494 CYTHON_FALLTHROUGH;
34496 if (likely((values[61] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
34498 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 61); __PYX_ERR(0, 6572, __pyx_L3_error)
34500 CYTHON_FALLTHROUGH;
34502 if (likely((values[62] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
34504 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 62); __PYX_ERR(0, 6572, __pyx_L3_error)
34506 CYTHON_FALLTHROUGH;
34508 if (likely((values[63] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
34510 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 63); __PYX_ERR(0, 6572, __pyx_L3_error)
34512 CYTHON_FALLTHROUGH;
34514 if (likely((values[64] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
34516 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 64); __PYX_ERR(0, 6572, __pyx_L3_error)
34518 CYTHON_FALLTHROUGH;
34520 if (likely((values[65] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
34522 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 65); __PYX_ERR(0, 6572, __pyx_L3_error)
34524 CYTHON_FALLTHROUGH;
34526 if (likely((values[66] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
34528 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 66); __PYX_ERR(0, 6572, __pyx_L3_error)
34530 CYTHON_FALLTHROUGH;
34532 if (likely((values[67] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
34534 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, 67); __PYX_ERR(0, 6572, __pyx_L3_error)
34537 if (unlikely(kw_args > 0)) {
34538 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate") < 0)) __PYX_ERR(0, 6572, __pyx_L3_error)
34540 }
else if (PyTuple_GET_SIZE(__pyx_args) != 68) {
34541 goto __pyx_L5_argtuple_error;
34543 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34544 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34545 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34546 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34547 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34548 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34549 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34550 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34551 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34552 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34553 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34554 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34555 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34556 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34557 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34558 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34559 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34560 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
34561 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
34562 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
34563 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
34564 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
34565 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
34566 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
34567 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
34568 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
34569 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
34570 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
34571 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
34572 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
34573 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
34574 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
34575 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
34576 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
34577 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
34578 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
34579 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
34580 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
34581 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
34582 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
34583 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
34584 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
34585 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
34586 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
34587 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
34588 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
34589 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
34590 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
34591 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
34592 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
34593 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
34594 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
34595 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
34596 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
34597 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
34598 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
34599 values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
34600 values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
34601 values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
34602 values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
34603 values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
34604 values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
34605 values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
34606 values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
34607 values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
34608 values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
34609 values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
34610 values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
34612 __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_killNonlinearDrag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6572, __pyx_L3_error)
34613 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6573, __pyx_L3_error)
34614 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6574, __pyx_L3_error)
34615 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6575, __pyx_L3_error)
34616 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6576, __pyx_L3_error)
34617 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6577, __pyx_L3_error)
34618 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6578, __pyx_L3_error)
34619 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6579, __pyx_L3_error)
34620 __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
34621 __pyx_v_g = ((PyArrayObject *)values[9]);
34622 __pyx_v_phi = ((PyArrayObject *)values[10]);
34623 __pyx_v_n = ((PyArrayObject *)values[11]);
34624 __pyx_v_kappa = ((PyArrayObject *)values[12]);
34625 __pyx_v_p = ((PyArrayObject *)values[13]);
34626 __pyx_v_grad_p = ((PyArrayObject *)values[14]);
34627 __pyx_v_u = ((PyArrayObject *)values[15]);
34628 __pyx_v_v = ((PyArrayObject *)values[16]);
34629 __pyx_v_w = ((PyArrayObject *)values[17]);
34630 __pyx_v_porosity = ((PyArrayObject *)values[18]);
34631 __pyx_v_mom_u_acc = ((PyArrayObject *)values[19]);
34632 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[20]);
34633 __pyx_v_mom_v_acc = ((PyArrayObject *)values[21]);
34634 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[22]);
34635 __pyx_v_mom_w_acc = ((PyArrayObject *)values[23]);
34636 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[24]);
34637 __pyx_v_mass_adv = ((PyArrayObject *)values[25]);
34638 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[26]);
34639 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[27]);
34640 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[28]);
34641 __pyx_v_mom_u_adv = ((PyArrayObject *)values[29]);
34642 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[30]);
34643 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[31]);
34644 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[32]);
34645 __pyx_v_mom_v_adv = ((PyArrayObject *)values[33]);
34646 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[34]);
34647 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[35]);
34648 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[36]);
34649 __pyx_v_mom_w_adv = ((PyArrayObject *)values[37]);
34650 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[38]);
34651 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[39]);
34652 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[40]);
34653 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[41]);
34654 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[42]);
34655 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[43]);
34656 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[44]);
34657 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[45]);
34658 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[46]);
34659 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[47]);
34660 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[48]);
34661 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[49]);
34662 __pyx_v_mom_u_source = ((PyArrayObject *)values[50]);
34663 __pyx_v_mom_v_source = ((PyArrayObject *)values[51]);
34664 __pyx_v_mom_w_source = ((PyArrayObject *)values[52]);
34665 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[53]);
34666 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[54]);
34667 __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[55]);
34668 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[56]);
34669 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[57]);
34670 __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[58]);
34671 __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[59]);
34672 __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[60]);
34673 __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[61]);
34674 __pyx_v_mom_u_ham = ((PyArrayObject *)values[62]);
34675 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[63]);
34676 __pyx_v_mom_v_ham = ((PyArrayObject *)values[64]);
34677 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[65]);
34678 __pyx_v_mom_w_ham = ((PyArrayObject *)values[66]);
34679 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[67]);
34681 goto __pyx_L4_argument_unpacking_done;
34682 __pyx_L5_argtuple_error:;
34683 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 1, 68, 68, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6572, __pyx_L3_error)
34685 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
34686 __Pyx_RefNannyFinishContext();
34688 __pyx_L4_argument_unpacking_done:;
34689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1,
"meanGrainSize", 0))) __PYX_ERR(0, 6580, __pyx_L1_error)
34690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6581, __pyx_L1_error)
34691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6582, __pyx_L1_error)
34692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6583, __pyx_L1_error)
34693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 6584, __pyx_L1_error)
34694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6585, __pyx_L1_error)
34695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 6586, __pyx_L1_error)
34696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6587, __pyx_L1_error)
34697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6588, __pyx_L1_error)
34698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 6589, __pyx_L1_error)
34699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6590, __pyx_L1_error)
34700 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 6591, __pyx_L1_error)
34701 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 6592, __pyx_L1_error)
34702 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 6593, __pyx_L1_error)
34703 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 6594, __pyx_L1_error)
34704 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 6595, __pyx_L1_error)
34705 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 6596, __pyx_L1_error)
34706 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 6597, __pyx_L1_error)
34707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 6598, __pyx_L1_error)
34708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 6599, __pyx_L1_error)
34709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 6600, __pyx_L1_error)
34710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 6601, __pyx_L1_error)
34711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 6602, __pyx_L1_error)
34712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 6603, __pyx_L1_error)
34713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 6604, __pyx_L1_error)
34714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 6605, __pyx_L1_error)
34715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 6606, __pyx_L1_error)
34716 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 6607, __pyx_L1_error)
34717 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 6608, __pyx_L1_error)
34718 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 6609, __pyx_L1_error)
34719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 6610, __pyx_L1_error)
34720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 6611, __pyx_L1_error)
34721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 6612, __pyx_L1_error)
34722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 6613, __pyx_L1_error)
34723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 6614, __pyx_L1_error)
34724 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 6615, __pyx_L1_error)
34725 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 6616, __pyx_L1_error)
34726 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 6617, __pyx_L1_error)
34727 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 6618, __pyx_L1_error)
34728 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 6619, __pyx_L1_error)
34729 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 6620, __pyx_L1_error)
34730 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 6621, __pyx_L1_error)
34731 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 6622, __pyx_L1_error)
34732 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 6623, __pyx_L1_error)
34733 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 6624, __pyx_L1_error)
34734 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 6625, __pyx_L1_error)
34735 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 6626, __pyx_L1_error)
34736 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_w", 0))) __PYX_ERR(0, 6627, __pyx_L1_error)
34737 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 6628, __pyx_L1_error)
34738 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 6629, __pyx_L1_error)
34739 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_w", 0))) __PYX_ERR(0, 6630, __pyx_L1_error)
34740 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_u", 0))) __PYX_ERR(0, 6631, __pyx_L1_error)
34741 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_v", 0))) __PYX_ERR(0, 6632, __pyx_L1_error)
34742 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_w", 0))) __PYX_ERR(0, 6633, __pyx_L1_error)
34743 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 6634, __pyx_L1_error)
34744 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6635, __pyx_L1_error)
34745 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 6636, __pyx_L1_error)
34746 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6637, __pyx_L1_error)
34747 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
34748 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 6639, __pyx_L1_error)
34749 __pyx_r = __pyx_pf_22ctransportCoefficients_174VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
34756 __Pyx_RefNannyFinishContext();
34760 static PyObject *__pyx_pf_22ctransportCoefficients_174VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
34761 PyObject *__pyx_r = NULL;
34762 __Pyx_RefNannyDeclarations
34763 PyObject *__pyx_t_1 = NULL;
34765 int __pyx_lineno = 0;
34766 const char *__pyx_filename = NULL;
34767 int __pyx_clineno = 0;
34768 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", 0);
34777 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6640, __pyx_L1_error)
34778 __Pyx_GOTREF(__pyx_t_1);
34779 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6640, __pyx_L1_error)
34780 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
34789 VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_meanGrainSize->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_u_source_w->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_dmom_v_source_w->data), ((
double *)__pyx_v_dmom_w_source_u->data), ((
double *)__pyx_v_dmom_w_source_v->data), ((
double *)__pyx_v_dmom_w_source_w->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
34800 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34803 __Pyx_XDECREF(__pyx_t_1);
34804 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
34807 __Pyx_XGIVEREF(__pyx_r);
34808 __Pyx_RefNannyFinishContext();
34821 static PyObject *__pyx_pw_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34822 static PyMethodDef __pyx_mdef_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd = {
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
34823 static PyObject *__pyx_pw_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34824 int __pyx_v_killNonlinearDrag;
34825 double __pyx_v_eps_rho;
34826 double __pyx_v_eps_mu;
34827 double __pyx_v_sigma;
34828 double __pyx_v_rho_0;
34829 double __pyx_v_nu_0;
34830 double __pyx_v_rho_1;
34831 double __pyx_v_nu_1;
34832 PyArrayObject *__pyx_v_meanGrainSize = 0;
34833 PyArrayObject *__pyx_v_g = 0;
34834 PyArrayObject *__pyx_v_phi = 0;
34835 PyArrayObject *__pyx_v_n = 0;
34836 PyArrayObject *__pyx_v_kappa = 0;
34837 PyArrayObject *__pyx_v_p = 0;
34838 PyArrayObject *__pyx_v_grad_p = 0;
34839 PyArrayObject *__pyx_v_u = 0;
34840 PyArrayObject *__pyx_v_v = 0;
34841 PyArrayObject *__pyx_v_w = 0;
34842 PyArrayObject *__pyx_v_porosity = 0;
34843 PyArrayObject *__pyx_v_mom_u_acc = 0;
34844 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
34845 PyArrayObject *__pyx_v_mom_v_acc = 0;
34846 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
34847 PyArrayObject *__pyx_v_mom_w_acc = 0;
34848 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
34849 PyArrayObject *__pyx_v_mass_adv = 0;
34850 PyArrayObject *__pyx_v_dmass_adv_u = 0;
34851 PyArrayObject *__pyx_v_dmass_adv_v = 0;
34852 PyArrayObject *__pyx_v_dmass_adv_w = 0;
34853 PyArrayObject *__pyx_v_mom_u_adv = 0;
34854 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
34855 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
34856 PyArrayObject *__pyx_v_dmom_u_adv_w = 0;
34857 PyArrayObject *__pyx_v_mom_v_adv = 0;
34858 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
34859 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
34860 PyArrayObject *__pyx_v_dmom_v_adv_w = 0;
34861 PyArrayObject *__pyx_v_mom_w_adv = 0;
34862 PyArrayObject *__pyx_v_dmom_w_adv_u = 0;
34863 PyArrayObject *__pyx_v_dmom_w_adv_v = 0;
34864 PyArrayObject *__pyx_v_dmom_w_adv_w = 0;
34865 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
34866 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
34867 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
34868 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
34869 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
34870 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
34871 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
34872 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
34873 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
34874 PyArrayObject *__pyx_v_mom_u_source = 0;
34875 PyArrayObject *__pyx_v_mom_v_source = 0;
34876 PyArrayObject *__pyx_v_mom_w_source = 0;
34877 PyArrayObject *__pyx_v_dmom_u_source_u = 0;
34878 PyArrayObject *__pyx_v_dmom_u_source_v = 0;
34879 PyArrayObject *__pyx_v_dmom_u_source_w = 0;
34880 PyArrayObject *__pyx_v_dmom_v_source_u = 0;
34881 PyArrayObject *__pyx_v_dmom_v_source_v = 0;
34882 PyArrayObject *__pyx_v_dmom_v_source_w = 0;
34883 PyArrayObject *__pyx_v_dmom_w_source_u = 0;
34884 PyArrayObject *__pyx_v_dmom_w_source_v = 0;
34885 PyArrayObject *__pyx_v_dmom_w_source_w = 0;
34886 PyArrayObject *__pyx_v_mom_u_ham = 0;
34887 PyArrayObject *__pyx_v_dmom_u_ham_grad_p = 0;
34888 PyArrayObject *__pyx_v_mom_v_ham = 0;
34889 PyArrayObject *__pyx_v_dmom_v_ham_grad_p = 0;
34890 PyArrayObject *__pyx_v_mom_w_ham = 0;
34891 PyArrayObject *__pyx_v_dmom_w_ham_grad_p = 0;
34892 int __pyx_lineno = 0;
34893 const char *__pyx_filename = NULL;
34894 int __pyx_clineno = 0;
34895 PyObject *__pyx_r = 0;
34896 __Pyx_RefNannyDeclarations
34897 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd (wrapper)", 0);
34899 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_killNonlinearDrag,&__pyx_n_s_eps_rho,&__pyx_n_s_eps_mu,&__pyx_n_s_sigma,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_meanGrainSize,&__pyx_n_s_g,&__pyx_n_s_phi,&__pyx_n_s_n,&__pyx_n_s_kappa,&__pyx_n_s_p,&__pyx_n_s_grad_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_porosity,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_w_acc_w,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_dmass_adv_w,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_dmom_u_adv_w,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,&__pyx_n_s_dmom_v_adv_w,&__pyx_n_s_mom_w_adv,&__pyx_n_s_dmom_w_adv_u,&__pyx_n_s_dmom_w_adv_v,&__pyx_n_s_dmom_w_adv_w,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,&__pyx_n_s_dmom_u_source_u,&__pyx_n_s_dmom_u_source_v,&__pyx_n_s_dmom_u_source_w,&__pyx_n_s_dmom_v_source_u,&__pyx_n_s_dmom_v_source_v,&__pyx_n_s_dmom_v_source_w,&__pyx_n_s_dmom_w_source_u,&__pyx_n_s_dmom_w_source_v,&__pyx_n_s_dmom_w_source_w,&__pyx_n_s_mom_u_ham,&__pyx_n_s_dmom_u_ham_grad_p,&__pyx_n_s_mom_v_ham,&__pyx_n_s_dmom_v_ham_grad_p,&__pyx_n_s_mom_w_ham,&__pyx_n_s_dmom_w_ham_grad_p,0};
34900 PyObject* values[68] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
34901 if (unlikely(__pyx_kwds)) {
34902 Py_ssize_t kw_args;
34903 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34904 switch (pos_args) {
34905 case 68: values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
34906 CYTHON_FALLTHROUGH;
34907 case 67: values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
34908 CYTHON_FALLTHROUGH;
34909 case 66: values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
34910 CYTHON_FALLTHROUGH;
34911 case 65: values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
34912 CYTHON_FALLTHROUGH;
34913 case 64: values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
34914 CYTHON_FALLTHROUGH;
34915 case 63: values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
34916 CYTHON_FALLTHROUGH;
34917 case 62: values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
34918 CYTHON_FALLTHROUGH;
34919 case 61: values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
34920 CYTHON_FALLTHROUGH;
34921 case 60: values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
34922 CYTHON_FALLTHROUGH;
34923 case 59: values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
34924 CYTHON_FALLTHROUGH;
34925 case 58: values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
34926 CYTHON_FALLTHROUGH;
34927 case 57: values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
34928 CYTHON_FALLTHROUGH;
34929 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
34930 CYTHON_FALLTHROUGH;
34931 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
34932 CYTHON_FALLTHROUGH;
34933 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
34934 CYTHON_FALLTHROUGH;
34935 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
34936 CYTHON_FALLTHROUGH;
34937 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
34938 CYTHON_FALLTHROUGH;
34939 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
34940 CYTHON_FALLTHROUGH;
34941 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
34942 CYTHON_FALLTHROUGH;
34943 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
34944 CYTHON_FALLTHROUGH;
34945 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
34946 CYTHON_FALLTHROUGH;
34947 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
34948 CYTHON_FALLTHROUGH;
34949 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
34950 CYTHON_FALLTHROUGH;
34951 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
34952 CYTHON_FALLTHROUGH;
34953 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
34954 CYTHON_FALLTHROUGH;
34955 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
34956 CYTHON_FALLTHROUGH;
34957 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
34958 CYTHON_FALLTHROUGH;
34959 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
34960 CYTHON_FALLTHROUGH;
34961 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
34962 CYTHON_FALLTHROUGH;
34963 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
34964 CYTHON_FALLTHROUGH;
34965 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
34966 CYTHON_FALLTHROUGH;
34967 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
34968 CYTHON_FALLTHROUGH;
34969 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
34970 CYTHON_FALLTHROUGH;
34971 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
34972 CYTHON_FALLTHROUGH;
34973 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
34974 CYTHON_FALLTHROUGH;
34975 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
34976 CYTHON_FALLTHROUGH;
34977 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
34978 CYTHON_FALLTHROUGH;
34979 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
34980 CYTHON_FALLTHROUGH;
34981 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
34982 CYTHON_FALLTHROUGH;
34983 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
34984 CYTHON_FALLTHROUGH;
34985 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
34986 CYTHON_FALLTHROUGH;
34987 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
34988 CYTHON_FALLTHROUGH;
34989 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
34990 CYTHON_FALLTHROUGH;
34991 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
34992 CYTHON_FALLTHROUGH;
34993 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
34994 CYTHON_FALLTHROUGH;
34995 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
34996 CYTHON_FALLTHROUGH;
34997 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
34998 CYTHON_FALLTHROUGH;
34999 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35000 CYTHON_FALLTHROUGH;
35001 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35002 CYTHON_FALLTHROUGH;
35003 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35004 CYTHON_FALLTHROUGH;
35005 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35006 CYTHON_FALLTHROUGH;
35007 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35008 CYTHON_FALLTHROUGH;
35009 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35010 CYTHON_FALLTHROUGH;
35011 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35012 CYTHON_FALLTHROUGH;
35013 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35014 CYTHON_FALLTHROUGH;
35015 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35016 CYTHON_FALLTHROUGH;
35017 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35018 CYTHON_FALLTHROUGH;
35019 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35020 CYTHON_FALLTHROUGH;
35021 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35022 CYTHON_FALLTHROUGH;
35023 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35024 CYTHON_FALLTHROUGH;
35025 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35026 CYTHON_FALLTHROUGH;
35027 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35028 CYTHON_FALLTHROUGH;
35029 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35030 CYTHON_FALLTHROUGH;
35031 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35032 CYTHON_FALLTHROUGH;
35033 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35034 CYTHON_FALLTHROUGH;
35035 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35036 CYTHON_FALLTHROUGH;
35037 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35038 CYTHON_FALLTHROUGH;
35039 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35040 CYTHON_FALLTHROUGH;
35042 default:
goto __pyx_L5_argtuple_error;
35044 kw_args = PyDict_Size(__pyx_kwds);
35045 switch (pos_args) {
35047 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_killNonlinearDrag)) != 0)) kw_args--;
35048 else goto __pyx_L5_argtuple_error;
35049 CYTHON_FALLTHROUGH;
35051 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_rho)) != 0)) kw_args--;
35053 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 1); __PYX_ERR(0, 6709, __pyx_L3_error)
35055 CYTHON_FALLTHROUGH;
35057 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps_mu)) != 0)) kw_args--;
35059 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 2); __PYX_ERR(0, 6709, __pyx_L3_error)
35061 CYTHON_FALLTHROUGH;
35063 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
35065 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 3); __PYX_ERR(0, 6709, __pyx_L3_error)
35067 CYTHON_FALLTHROUGH;
35069 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
35071 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 4); __PYX_ERR(0, 6709, __pyx_L3_error)
35073 CYTHON_FALLTHROUGH;
35075 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
35077 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 5); __PYX_ERR(0, 6709, __pyx_L3_error)
35079 CYTHON_FALLTHROUGH;
35081 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
35083 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 6); __PYX_ERR(0, 6709, __pyx_L3_error)
35085 CYTHON_FALLTHROUGH;
35087 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
35089 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 7); __PYX_ERR(0, 6709, __pyx_L3_error)
35091 CYTHON_FALLTHROUGH;
35093 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_meanGrainSize)) != 0)) kw_args--;
35095 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 8); __PYX_ERR(0, 6709, __pyx_L3_error)
35097 CYTHON_FALLTHROUGH;
35099 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
35101 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 9); __PYX_ERR(0, 6709, __pyx_L3_error)
35103 CYTHON_FALLTHROUGH;
35105 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
35107 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 10); __PYX_ERR(0, 6709, __pyx_L3_error)
35109 CYTHON_FALLTHROUGH;
35111 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
35113 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 11); __PYX_ERR(0, 6709, __pyx_L3_error)
35115 CYTHON_FALLTHROUGH;
35117 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kappa)) != 0)) kw_args--;
35119 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 12); __PYX_ERR(0, 6709, __pyx_L3_error)
35121 CYTHON_FALLTHROUGH;
35123 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
35125 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 13); __PYX_ERR(0, 6709, __pyx_L3_error)
35127 CYTHON_FALLTHROUGH;
35129 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_p)) != 0)) kw_args--;
35131 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 14); __PYX_ERR(0, 6709, __pyx_L3_error)
35133 CYTHON_FALLTHROUGH;
35135 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
35137 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 15); __PYX_ERR(0, 6709, __pyx_L3_error)
35139 CYTHON_FALLTHROUGH;
35141 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
35143 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 16); __PYX_ERR(0, 6709, __pyx_L3_error)
35145 CYTHON_FALLTHROUGH;
35147 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
35149 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 17); __PYX_ERR(0, 6709, __pyx_L3_error)
35151 CYTHON_FALLTHROUGH;
35153 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
35155 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 18); __PYX_ERR(0, 6709, __pyx_L3_error)
35157 CYTHON_FALLTHROUGH;
35159 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
35161 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 19); __PYX_ERR(0, 6709, __pyx_L3_error)
35163 CYTHON_FALLTHROUGH;
35165 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
35167 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 20); __PYX_ERR(0, 6709, __pyx_L3_error)
35169 CYTHON_FALLTHROUGH;
35171 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
35173 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 21); __PYX_ERR(0, 6709, __pyx_L3_error)
35175 CYTHON_FALLTHROUGH;
35177 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
35179 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 22); __PYX_ERR(0, 6709, __pyx_L3_error)
35181 CYTHON_FALLTHROUGH;
35183 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
35185 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 23); __PYX_ERR(0, 6709, __pyx_L3_error)
35187 CYTHON_FALLTHROUGH;
35189 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
35191 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 24); __PYX_ERR(0, 6709, __pyx_L3_error)
35193 CYTHON_FALLTHROUGH;
35195 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
35197 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 25); __PYX_ERR(0, 6709, __pyx_L3_error)
35199 CYTHON_FALLTHROUGH;
35201 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
35203 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 26); __PYX_ERR(0, 6709, __pyx_L3_error)
35205 CYTHON_FALLTHROUGH;
35207 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
35209 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 27); __PYX_ERR(0, 6709, __pyx_L3_error)
35211 CYTHON_FALLTHROUGH;
35213 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_w)) != 0)) kw_args--;
35215 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 28); __PYX_ERR(0, 6709, __pyx_L3_error)
35217 CYTHON_FALLTHROUGH;
35219 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
35221 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 29); __PYX_ERR(0, 6709, __pyx_L3_error)
35223 CYTHON_FALLTHROUGH;
35225 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
35227 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 30); __PYX_ERR(0, 6709, __pyx_L3_error)
35229 CYTHON_FALLTHROUGH;
35231 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
35233 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 31); __PYX_ERR(0, 6709, __pyx_L3_error)
35235 CYTHON_FALLTHROUGH;
35237 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_w)) != 0)) kw_args--;
35239 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 32); __PYX_ERR(0, 6709, __pyx_L3_error)
35241 CYTHON_FALLTHROUGH;
35243 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
35245 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 33); __PYX_ERR(0, 6709, __pyx_L3_error)
35247 CYTHON_FALLTHROUGH;
35249 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
35251 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 34); __PYX_ERR(0, 6709, __pyx_L3_error)
35253 CYTHON_FALLTHROUGH;
35255 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
35257 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 35); __PYX_ERR(0, 6709, __pyx_L3_error)
35259 CYTHON_FALLTHROUGH;
35261 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_w)) != 0)) kw_args--;
35263 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 36); __PYX_ERR(0, 6709, __pyx_L3_error)
35265 CYTHON_FALLTHROUGH;
35267 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_adv)) != 0)) kw_args--;
35269 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 37); __PYX_ERR(0, 6709, __pyx_L3_error)
35271 CYTHON_FALLTHROUGH;
35273 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_u)) != 0)) kw_args--;
35275 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 38); __PYX_ERR(0, 6709, __pyx_L3_error)
35277 CYTHON_FALLTHROUGH;
35279 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_v)) != 0)) kw_args--;
35281 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 39); __PYX_ERR(0, 6709, __pyx_L3_error)
35283 CYTHON_FALLTHROUGH;
35285 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_adv_w)) != 0)) kw_args--;
35287 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 40); __PYX_ERR(0, 6709, __pyx_L3_error)
35289 CYTHON_FALLTHROUGH;
35291 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
35293 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 41); __PYX_ERR(0, 6709, __pyx_L3_error)
35295 CYTHON_FALLTHROUGH;
35297 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
35299 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 42); __PYX_ERR(0, 6709, __pyx_L3_error)
35301 CYTHON_FALLTHROUGH;
35303 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
35305 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 43); __PYX_ERR(0, 6709, __pyx_L3_error)
35307 CYTHON_FALLTHROUGH;
35309 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
35311 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 44); __PYX_ERR(0, 6709, __pyx_L3_error)
35313 CYTHON_FALLTHROUGH;
35315 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
35317 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 45); __PYX_ERR(0, 6709, __pyx_L3_error)
35319 CYTHON_FALLTHROUGH;
35321 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
35323 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 46); __PYX_ERR(0, 6709, __pyx_L3_error)
35325 CYTHON_FALLTHROUGH;
35327 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
35329 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 47); __PYX_ERR(0, 6709, __pyx_L3_error)
35331 CYTHON_FALLTHROUGH;
35333 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
35335 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 48); __PYX_ERR(0, 6709, __pyx_L3_error)
35337 CYTHON_FALLTHROUGH;
35339 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
35341 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 49); __PYX_ERR(0, 6709, __pyx_L3_error)
35343 CYTHON_FALLTHROUGH;
35345 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
35347 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 50); __PYX_ERR(0, 6709, __pyx_L3_error)
35349 CYTHON_FALLTHROUGH;
35351 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
35353 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 51); __PYX_ERR(0, 6709, __pyx_L3_error)
35355 CYTHON_FALLTHROUGH;
35357 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
35359 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 52); __PYX_ERR(0, 6709, __pyx_L3_error)
35361 CYTHON_FALLTHROUGH;
35363 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_u)) != 0)) kw_args--;
35365 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 53); __PYX_ERR(0, 6709, __pyx_L3_error)
35367 CYTHON_FALLTHROUGH;
35369 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_v)) != 0)) kw_args--;
35371 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 54); __PYX_ERR(0, 6709, __pyx_L3_error)
35373 CYTHON_FALLTHROUGH;
35375 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_w)) != 0)) kw_args--;
35377 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 55); __PYX_ERR(0, 6709, __pyx_L3_error)
35379 CYTHON_FALLTHROUGH;
35381 if (likely((values[56] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_u)) != 0)) kw_args--;
35383 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 56); __PYX_ERR(0, 6709, __pyx_L3_error)
35385 CYTHON_FALLTHROUGH;
35387 if (likely((values[57] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_v)) != 0)) kw_args--;
35389 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 57); __PYX_ERR(0, 6709, __pyx_L3_error)
35391 CYTHON_FALLTHROUGH;
35393 if (likely((values[58] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_w)) != 0)) kw_args--;
35395 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 58); __PYX_ERR(0, 6709, __pyx_L3_error)
35397 CYTHON_FALLTHROUGH;
35399 if (likely((values[59] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_u)) != 0)) kw_args--;
35401 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 59); __PYX_ERR(0, 6709, __pyx_L3_error)
35403 CYTHON_FALLTHROUGH;
35405 if (likely((values[60] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_v)) != 0)) kw_args--;
35407 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 60); __PYX_ERR(0, 6709, __pyx_L3_error)
35409 CYTHON_FALLTHROUGH;
35411 if (likely((values[61] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_source_w)) != 0)) kw_args--;
35413 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 61); __PYX_ERR(0, 6709, __pyx_L3_error)
35415 CYTHON_FALLTHROUGH;
35417 if (likely((values[62] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_ham)) != 0)) kw_args--;
35419 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 62); __PYX_ERR(0, 6709, __pyx_L3_error)
35421 CYTHON_FALLTHROUGH;
35423 if (likely((values[63] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_ham_grad_p)) != 0)) kw_args--;
35425 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 63); __PYX_ERR(0, 6709, __pyx_L3_error)
35427 CYTHON_FALLTHROUGH;
35429 if (likely((values[64] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_ham)) != 0)) kw_args--;
35431 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 64); __PYX_ERR(0, 6709, __pyx_L3_error)
35433 CYTHON_FALLTHROUGH;
35435 if (likely((values[65] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_ham_grad_p)) != 0)) kw_args--;
35437 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 65); __PYX_ERR(0, 6709, __pyx_L3_error)
35439 CYTHON_FALLTHROUGH;
35441 if (likely((values[66] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_ham)) != 0)) kw_args--;
35443 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 66); __PYX_ERR(0, 6709, __pyx_L3_error)
35445 CYTHON_FALLTHROUGH;
35447 if (likely((values[67] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_ham_grad_p)) != 0)) kw_args--;
35449 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, 67); __PYX_ERR(0, 6709, __pyx_L3_error)
35452 if (unlikely(kw_args > 0)) {
35453 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 6709, __pyx_L3_error)
35455 }
else if (PyTuple_GET_SIZE(__pyx_args) != 68) {
35456 goto __pyx_L5_argtuple_error;
35458 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35459 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35460 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35461 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35462 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35463 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35464 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35465 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35466 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35467 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35468 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35469 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35470 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35471 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35472 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35473 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35474 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35475 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35476 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35477 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35478 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35479 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
35480 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
35481 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
35482 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
35483 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
35484 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
35485 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
35486 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
35487 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
35488 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
35489 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
35490 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
35491 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
35492 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
35493 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
35494 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
35495 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
35496 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
35497 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
35498 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
35499 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
35500 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
35501 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
35502 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
35503 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
35504 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
35505 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
35506 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
35507 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
35508 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
35509 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
35510 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
35511 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
35512 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
35513 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
35514 values[56] = PyTuple_GET_ITEM(__pyx_args, 56);
35515 values[57] = PyTuple_GET_ITEM(__pyx_args, 57);
35516 values[58] = PyTuple_GET_ITEM(__pyx_args, 58);
35517 values[59] = PyTuple_GET_ITEM(__pyx_args, 59);
35518 values[60] = PyTuple_GET_ITEM(__pyx_args, 60);
35519 values[61] = PyTuple_GET_ITEM(__pyx_args, 61);
35520 values[62] = PyTuple_GET_ITEM(__pyx_args, 62);
35521 values[63] = PyTuple_GET_ITEM(__pyx_args, 63);
35522 values[64] = PyTuple_GET_ITEM(__pyx_args, 64);
35523 values[65] = PyTuple_GET_ITEM(__pyx_args, 65);
35524 values[66] = PyTuple_GET_ITEM(__pyx_args, 66);
35525 values[67] = PyTuple_GET_ITEM(__pyx_args, 67);
35527 __pyx_v_killNonlinearDrag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_killNonlinearDrag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6709, __pyx_L3_error)
35528 __pyx_v_eps_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6710, __pyx_L3_error)
35529 __pyx_v_eps_mu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6711, __pyx_L3_error)
35530 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6712, __pyx_L3_error)
35531 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6713, __pyx_L3_error)
35532 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6714, __pyx_L3_error)
35533 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6715, __pyx_L3_error)
35534 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6716, __pyx_L3_error)
35535 __pyx_v_meanGrainSize = ((PyArrayObject *)values[8]);
35536 __pyx_v_g = ((PyArrayObject *)values[9]);
35537 __pyx_v_phi = ((PyArrayObject *)values[10]);
35538 __pyx_v_n = ((PyArrayObject *)values[11]);
35539 __pyx_v_kappa = ((PyArrayObject *)values[12]);
35540 __pyx_v_p = ((PyArrayObject *)values[13]);
35541 __pyx_v_grad_p = ((PyArrayObject *)values[14]);
35542 __pyx_v_u = ((PyArrayObject *)values[15]);
35543 __pyx_v_v = ((PyArrayObject *)values[16]);
35544 __pyx_v_w = ((PyArrayObject *)values[17]);
35545 __pyx_v_porosity = ((PyArrayObject *)values[18]);
35546 __pyx_v_mom_u_acc = ((PyArrayObject *)values[19]);
35547 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[20]);
35548 __pyx_v_mom_v_acc = ((PyArrayObject *)values[21]);
35549 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[22]);
35550 __pyx_v_mom_w_acc = ((PyArrayObject *)values[23]);
35551 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[24]);
35552 __pyx_v_mass_adv = ((PyArrayObject *)values[25]);
35553 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[26]);
35554 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[27]);
35555 __pyx_v_dmass_adv_w = ((PyArrayObject *)values[28]);
35556 __pyx_v_mom_u_adv = ((PyArrayObject *)values[29]);
35557 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[30]);
35558 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[31]);
35559 __pyx_v_dmom_u_adv_w = ((PyArrayObject *)values[32]);
35560 __pyx_v_mom_v_adv = ((PyArrayObject *)values[33]);
35561 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[34]);
35562 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[35]);
35563 __pyx_v_dmom_v_adv_w = ((PyArrayObject *)values[36]);
35564 __pyx_v_mom_w_adv = ((PyArrayObject *)values[37]);
35565 __pyx_v_dmom_w_adv_u = ((PyArrayObject *)values[38]);
35566 __pyx_v_dmom_w_adv_v = ((PyArrayObject *)values[39]);
35567 __pyx_v_dmom_w_adv_w = ((PyArrayObject *)values[40]);
35568 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[41]);
35569 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[42]);
35570 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[43]);
35571 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[44]);
35572 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[45]);
35573 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[46]);
35574 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[47]);
35575 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[48]);
35576 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[49]);
35577 __pyx_v_mom_u_source = ((PyArrayObject *)values[50]);
35578 __pyx_v_mom_v_source = ((PyArrayObject *)values[51]);
35579 __pyx_v_mom_w_source = ((PyArrayObject *)values[52]);
35580 __pyx_v_dmom_u_source_u = ((PyArrayObject *)values[53]);
35581 __pyx_v_dmom_u_source_v = ((PyArrayObject *)values[54]);
35582 __pyx_v_dmom_u_source_w = ((PyArrayObject *)values[55]);
35583 __pyx_v_dmom_v_source_u = ((PyArrayObject *)values[56]);
35584 __pyx_v_dmom_v_source_v = ((PyArrayObject *)values[57]);
35585 __pyx_v_dmom_v_source_w = ((PyArrayObject *)values[58]);
35586 __pyx_v_dmom_w_source_u = ((PyArrayObject *)values[59]);
35587 __pyx_v_dmom_w_source_v = ((PyArrayObject *)values[60]);
35588 __pyx_v_dmom_w_source_w = ((PyArrayObject *)values[61]);
35589 __pyx_v_mom_u_ham = ((PyArrayObject *)values[62]);
35590 __pyx_v_dmom_u_ham_grad_p = ((PyArrayObject *)values[63]);
35591 __pyx_v_mom_v_ham = ((PyArrayObject *)values[64]);
35592 __pyx_v_dmom_v_ham_grad_p = ((PyArrayObject *)values[65]);
35593 __pyx_v_mom_w_ham = ((PyArrayObject *)values[66]);
35594 __pyx_v_dmom_w_ham_grad_p = ((PyArrayObject *)values[67]);
35596 goto __pyx_L4_argument_unpacking_done;
35597 __pyx_L5_argtuple_error:;
35598 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 1, 68, 68, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6709, __pyx_L3_error)
35600 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35601 __Pyx_RefNannyFinishContext();
35603 __pyx_L4_argument_unpacking_done:;
35604 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_meanGrainSize), __pyx_ptype_5numpy_ndarray, 1,
"meanGrainSize", 0))) __PYX_ERR(0, 6717, __pyx_L1_error)
35605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6718, __pyx_L1_error)
35606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6719, __pyx_L1_error)
35607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6720, __pyx_L1_error)
35608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kappa), __pyx_ptype_5numpy_ndarray, 1,
"kappa", 0))) __PYX_ERR(0, 6721, __pyx_L1_error)
35609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6722, __pyx_L1_error)
35610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"grad_p", 0))) __PYX_ERR(0, 6723, __pyx_L1_error)
35611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6724, __pyx_L1_error)
35612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6725, __pyx_L1_error)
35613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 6726, __pyx_L1_error)
35614 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6727, __pyx_L1_error)
35615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 6728, __pyx_L1_error)
35616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 6729, __pyx_L1_error)
35617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 6730, __pyx_L1_error)
35618 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 6731, __pyx_L1_error)
35619 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 6732, __pyx_L1_error)
35620 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 6733, __pyx_L1_error)
35621 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 6734, __pyx_L1_error)
35622 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 6735, __pyx_L1_error)
35623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 6736, __pyx_L1_error)
35624 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_w", 0))) __PYX_ERR(0, 6737, __pyx_L1_error)
35625 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 6738, __pyx_L1_error)
35626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 6739, __pyx_L1_error)
35627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 6740, __pyx_L1_error)
35628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_w", 0))) __PYX_ERR(0, 6741, __pyx_L1_error)
35629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 6742, __pyx_L1_error)
35630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 6743, __pyx_L1_error)
35631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 6744, __pyx_L1_error)
35632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_w", 0))) __PYX_ERR(0, 6745, __pyx_L1_error)
35633 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_adv", 0))) __PYX_ERR(0, 6746, __pyx_L1_error)
35634 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_u", 0))) __PYX_ERR(0, 6747, __pyx_L1_error)
35635 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_v", 0))) __PYX_ERR(0, 6748, __pyx_L1_error)
35636 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_adv_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_adv_w", 0))) __PYX_ERR(0, 6749, __pyx_L1_error)
35637 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 6750, __pyx_L1_error)
35638 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 6751, __pyx_L1_error)
35639 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 6752, __pyx_L1_error)
35640 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 6753, __pyx_L1_error)
35641 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 6754, __pyx_L1_error)
35642 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 6755, __pyx_L1_error)
35643 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 6756, __pyx_L1_error)
35644 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 6757, __pyx_L1_error)
35645 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 6758, __pyx_L1_error)
35646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 6759, __pyx_L1_error)
35647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 6760, __pyx_L1_error)
35648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 6761, __pyx_L1_error)
35649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_u", 0))) __PYX_ERR(0, 6762, __pyx_L1_error)
35650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_v", 0))) __PYX_ERR(0, 6763, __pyx_L1_error)
35651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_w", 0))) __PYX_ERR(0, 6764, __pyx_L1_error)
35652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_u", 0))) __PYX_ERR(0, 6765, __pyx_L1_error)
35653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_v", 0))) __PYX_ERR(0, 6766, __pyx_L1_error)
35654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_w", 0))) __PYX_ERR(0, 6767, __pyx_L1_error)
35655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_u", 0))) __PYX_ERR(0, 6768, __pyx_L1_error)
35656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_v", 0))) __PYX_ERR(0, 6769, __pyx_L1_error)
35657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_source_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_source_w", 0))) __PYX_ERR(0, 6770, __pyx_L1_error)
35658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_ham", 0))) __PYX_ERR(0, 6771, __pyx_L1_error)
35659 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_ham_grad_p", 0))) __PYX_ERR(0, 6772, __pyx_L1_error)
35660 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_ham", 0))) __PYX_ERR(0, 6773, __pyx_L1_error)
35661 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_ham_grad_p", 0))) __PYX_ERR(0, 6774, __pyx_L1_error)
35662 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_ham), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_ham", 0))) __PYX_ERR(0, 6775, __pyx_L1_error)
35663 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_ham_grad_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_ham_grad_p", 0))) __PYX_ERR(0, 6776, __pyx_L1_error)
35664 __pyx_r = __pyx_pf_22ctransportCoefficients_176VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_self, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_meanGrainSize, __pyx_v_g, __pyx_v_phi, __pyx_v_n, __pyx_v_kappa, __pyx_v_p, __pyx_v_grad_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_porosity, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_u, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_v, __pyx_v_mom_w_acc, __pyx_v_dmom_w_acc_w, __pyx_v_mass_adv, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_dmass_adv_w, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_dmom_u_adv_w, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v, __pyx_v_dmom_v_adv_w, __pyx_v_mom_w_adv, __pyx_v_dmom_w_adv_u, __pyx_v_dmom_w_adv_v, __pyx_v_dmom_w_adv_w, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source, __pyx_v_dmom_u_source_u, __pyx_v_dmom_u_source_v, __pyx_v_dmom_u_source_w, __pyx_v_dmom_v_source_u, __pyx_v_dmom_v_source_v, __pyx_v_dmom_v_source_w, __pyx_v_dmom_w_source_u, __pyx_v_dmom_w_source_v, __pyx_v_dmom_w_source_w, __pyx_v_mom_u_ham, __pyx_v_dmom_u_ham_grad_p, __pyx_v_mom_v_ham, __pyx_v_dmom_v_ham_grad_p, __pyx_v_mom_w_ham, __pyx_v_dmom_w_ham_grad_p);
35671 __Pyx_RefNannyFinishContext();
35675 static PyObject *__pyx_pf_22ctransportCoefficients_176VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_killNonlinearDrag,
double __pyx_v_eps_rho,
double __pyx_v_eps_mu,
double __pyx_v_sigma,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_meanGrainSize, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_kappa, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_grad_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_w_acc_w, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_dmass_adv_w, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_dmom_u_adv_w, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v, PyArrayObject *__pyx_v_dmom_v_adv_w, PyArrayObject *__pyx_v_mom_w_adv, PyArrayObject *__pyx_v_dmom_w_adv_u, PyArrayObject *__pyx_v_dmom_w_adv_v, PyArrayObject *__pyx_v_dmom_w_adv_w, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source, PyArrayObject *__pyx_v_dmom_u_source_u, PyArrayObject *__pyx_v_dmom_u_source_v, PyArrayObject *__pyx_v_dmom_u_source_w, PyArrayObject *__pyx_v_dmom_v_source_u, PyArrayObject *__pyx_v_dmom_v_source_v, PyArrayObject *__pyx_v_dmom_v_source_w, PyArrayObject *__pyx_v_dmom_w_source_u, PyArrayObject *__pyx_v_dmom_w_source_v, PyArrayObject *__pyx_v_dmom_w_source_w, PyArrayObject *__pyx_v_mom_u_ham, PyArrayObject *__pyx_v_dmom_u_ham_grad_p, PyArrayObject *__pyx_v_mom_v_ham, PyArrayObject *__pyx_v_dmom_v_ham_grad_p, PyArrayObject *__pyx_v_mom_w_ham, PyArrayObject *__pyx_v_dmom_w_ham_grad_p) {
35676 PyObject *__pyx_r = NULL;
35677 __Pyx_RefNannyDeclarations
35678 PyObject *__pyx_t_1 = NULL;
35680 int __pyx_lineno = 0;
35681 const char *__pyx_filename = NULL;
35682 int __pyx_clineno = 0;
35683 __Pyx_RefNannySetupContext(
"VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", 0);
35692 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6777, __pyx_L1_error)
35693 __Pyx_GOTREF(__pyx_t_1);
35694 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6777, __pyx_L1_error)
35695 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35704 VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd(__pyx_t_2, __pyx_v_killNonlinearDrag, __pyx_v_eps_rho, __pyx_v_eps_mu, __pyx_v_sigma, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_meanGrainSize->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_kappa->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_grad_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_w_acc_w->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_dmass_adv_w->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_dmom_u_adv_w->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data), ((
double *)__pyx_v_dmom_v_adv_w->data), ((
double *)__pyx_v_mom_w_adv->data), ((
double *)__pyx_v_dmom_w_adv_u->data), ((
double *)__pyx_v_dmom_w_adv_v->data), ((
double *)__pyx_v_dmom_w_adv_w->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data), ((
double *)__pyx_v_dmom_u_source_u->data), ((
double *)__pyx_v_dmom_u_source_v->data), ((
double *)__pyx_v_dmom_u_source_w->data), ((
double *)__pyx_v_dmom_v_source_u->data), ((
double *)__pyx_v_dmom_v_source_v->data), ((
double *)__pyx_v_dmom_v_source_w->data), ((
double *)__pyx_v_dmom_w_source_u->data), ((
double *)__pyx_v_dmom_w_source_v->data), ((
double *)__pyx_v_dmom_w_source_w->data), ((
double *)__pyx_v_mom_u_ham->data), ((
double *)__pyx_v_dmom_u_ham_grad_p->data), ((
double *)__pyx_v_mom_v_ham->data), ((
double *)__pyx_v_dmom_v_ham_grad_p->data), ((
double *)__pyx_v_mom_w_ham->data), ((
double *)__pyx_v_dmom_w_ham_grad_p->data));
35715 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35718 __Pyx_XDECREF(__pyx_t_1);
35719 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35722 __Pyx_XGIVEREF(__pyx_r);
35723 __Pyx_RefNannyFinishContext();
35736 static PyObject *__pyx_pw_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35737 static PyMethodDef __pyx_mdef_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate = {
"VolumeAveragedVOFCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
35738 static PyObject *__pyx_pw_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35739 double __pyx_v_eps;
35740 PyArrayObject *__pyx_v_v = 0;
35741 PyArrayObject *__pyx_v_phi = 0;
35742 PyArrayObject *__pyx_v_porosity = 0;
35743 PyArrayObject *__pyx_v_u = 0;
35744 PyArrayObject *__pyx_v_m = 0;
35745 PyArrayObject *__pyx_v_dm = 0;
35746 PyArrayObject *__pyx_v_f = 0;
35747 PyArrayObject *__pyx_v_df = 0;
35748 int __pyx_lineno = 0;
35749 const char *__pyx_filename = NULL;
35750 int __pyx_clineno = 0;
35751 PyObject *__pyx_r = 0;
35752 __Pyx_RefNannyDeclarations
35753 __Pyx_RefNannySetupContext(
"VolumeAveragedVOFCoefficientsEvaluate (wrapper)", 0);
35755 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_v,&__pyx_n_s_phi,&__pyx_n_s_porosity,&__pyx_n_s_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_f,&__pyx_n_s_df,0};
35756 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
35757 if (unlikely(__pyx_kwds)) {
35758 Py_ssize_t kw_args;
35759 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35760 switch (pos_args) {
35761 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35762 CYTHON_FALLTHROUGH;
35763 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35764 CYTHON_FALLTHROUGH;
35765 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35766 CYTHON_FALLTHROUGH;
35767 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35768 CYTHON_FALLTHROUGH;
35769 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35770 CYTHON_FALLTHROUGH;
35771 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35772 CYTHON_FALLTHROUGH;
35773 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35774 CYTHON_FALLTHROUGH;
35775 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35776 CYTHON_FALLTHROUGH;
35777 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35778 CYTHON_FALLTHROUGH;
35780 default:
goto __pyx_L5_argtuple_error;
35782 kw_args = PyDict_Size(__pyx_kwds);
35783 switch (pos_args) {
35785 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
35786 else goto __pyx_L5_argtuple_error;
35787 CYTHON_FALLTHROUGH;
35789 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
35791 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 1); __PYX_ERR(0, 6846, __pyx_L3_error)
35793 CYTHON_FALLTHROUGH;
35795 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
35797 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 2); __PYX_ERR(0, 6846, __pyx_L3_error)
35799 CYTHON_FALLTHROUGH;
35801 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity)) != 0)) kw_args--;
35803 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 3); __PYX_ERR(0, 6846, __pyx_L3_error)
35805 CYTHON_FALLTHROUGH;
35807 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
35809 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 4); __PYX_ERR(0, 6846, __pyx_L3_error)
35811 CYTHON_FALLTHROUGH;
35813 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
35815 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 5); __PYX_ERR(0, 6846, __pyx_L3_error)
35817 CYTHON_FALLTHROUGH;
35819 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
35821 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 6); __PYX_ERR(0, 6846, __pyx_L3_error)
35823 CYTHON_FALLTHROUGH;
35825 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
35827 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 7); __PYX_ERR(0, 6846, __pyx_L3_error)
35829 CYTHON_FALLTHROUGH;
35831 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
35833 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, 8); __PYX_ERR(0, 6846, __pyx_L3_error)
35836 if (unlikely(kw_args > 0)) {
35837 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"VolumeAveragedVOFCoefficientsEvaluate") < 0)) __PYX_ERR(0, 6846, __pyx_L3_error)
35839 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
35840 goto __pyx_L5_argtuple_error;
35842 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35843 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35844 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35845 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35846 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35847 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35848 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35849 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35850 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35852 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6846, __pyx_L3_error)
35853 __pyx_v_v = ((PyArrayObject *)values[1]);
35854 __pyx_v_phi = ((PyArrayObject *)values[2]);
35855 __pyx_v_porosity = ((PyArrayObject *)values[3]);
35856 __pyx_v_u = ((PyArrayObject *)values[4]);
35857 __pyx_v_m = ((PyArrayObject *)values[5]);
35858 __pyx_v_dm = ((PyArrayObject *)values[6]);
35859 __pyx_v_f = ((PyArrayObject *)values[7]);
35860 __pyx_v_df = ((PyArrayObject *)values[8]);
35862 goto __pyx_L4_argument_unpacking_done;
35863 __pyx_L5_argtuple_error:;
35864 __Pyx_RaiseArgtupleInvalid(
"VolumeAveragedVOFCoefficientsEvaluate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6846, __pyx_L3_error)
35866 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedVOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
35867 __Pyx_RefNannyFinishContext();
35869 __pyx_L4_argument_unpacking_done:;
35870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6847, __pyx_L1_error)
35871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6848, __pyx_L1_error)
35872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_porosity), __pyx_ptype_5numpy_ndarray, 1,
"porosity", 0))) __PYX_ERR(0, 6849, __pyx_L1_error)
35873 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6850, __pyx_L1_error)
35874 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 6851, __pyx_L1_error)
35875 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 6852, __pyx_L1_error)
35876 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 6853, __pyx_L1_error)
35877 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 6854, __pyx_L1_error)
35878 __pyx_r = __pyx_pf_22ctransportCoefficients_178VolumeAveragedVOFCoefficientsEvaluate(__pyx_self, __pyx_v_eps, __pyx_v_v, __pyx_v_phi, __pyx_v_porosity, __pyx_v_u, __pyx_v_m, __pyx_v_dm, __pyx_v_f, __pyx_v_df);
35885 __Pyx_RefNannyFinishContext();
35889 static PyObject *__pyx_pf_22ctransportCoefficients_178VolumeAveragedVOFCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_porosity, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df) {
35890 PyObject *__pyx_r = NULL;
35891 __Pyx_RefNannyDeclarations
35892 PyObject *__pyx_t_1 = NULL;
35894 int __pyx_lineno = 0;
35895 const char *__pyx_filename = NULL;
35896 int __pyx_clineno = 0;
35897 __Pyx_RefNannySetupContext(
"VolumeAveragedVOFCoefficientsEvaluate", 0);
35906 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6855, __pyx_L1_error)
35907 __Pyx_GOTREF(__pyx_t_1);
35908 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6855, __pyx_L1_error)
35909 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35918 VolumeAveragedVOFCoefficientsEvaluate(__pyx_t_2, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_eps, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_porosity->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data));
35929 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35932 __Pyx_XDECREF(__pyx_t_1);
35933 __Pyx_AddTraceback(
"ctransportCoefficients.VolumeAveragedVOFCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
35936 __Pyx_XGIVEREF(__pyx_r);
35937 __Pyx_RefNannyFinishContext();
35950 static PyObject *__pyx_pw_22ctransportCoefficients_181kEpsilon_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35951 static PyMethodDef __pyx_mdef_22ctransportCoefficients_181kEpsilon_2D_Evaluate = {
"kEpsilon_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_181kEpsilon_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
35952 static PyObject *__pyx_pw_22ctransportCoefficients_181kEpsilon_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35953 double __pyx_v_sigma_k;
35954 double __pyx_v_sigma_e;
35955 double __pyx_v_c_1;
35956 double __pyx_v_c_2;
35957 double __pyx_v_c_mu;
35958 double __pyx_v_c_e;
35960 PyArrayObject *__pyx_v_velocity = 0;
35961 PyArrayObject *__pyx_v_gradu = 0;
35962 PyArrayObject *__pyx_v_gradv = 0;
35963 PyArrayObject *__pyx_v_k = 0;
35964 PyArrayObject *__pyx_v_epsilon = 0;
35965 PyArrayObject *__pyx_v_m_k = 0;
35966 PyArrayObject *__pyx_v_dm_k = 0;
35967 PyArrayObject *__pyx_v_m_e = 0;
35968 PyArrayObject *__pyx_v_dm_e = 0;
35969 PyArrayObject *__pyx_v_phi_k = 0;
35970 PyArrayObject *__pyx_v_dphi_k = 0;
35971 PyArrayObject *__pyx_v_phi_e = 0;
35972 PyArrayObject *__pyx_v_dphi_e = 0;
35973 PyArrayObject *__pyx_v_f_k = 0;
35974 PyArrayObject *__pyx_v_df_k = 0;
35975 PyArrayObject *__pyx_v_f_e = 0;
35976 PyArrayObject *__pyx_v_df_e = 0;
35977 PyArrayObject *__pyx_v_a_k = 0;
35978 PyArrayObject *__pyx_v_da_k_dk = 0;
35979 PyArrayObject *__pyx_v_da_k_de = 0;
35980 PyArrayObject *__pyx_v_a_e = 0;
35981 PyArrayObject *__pyx_v_da_e_dk = 0;
35982 PyArrayObject *__pyx_v_da_e_de = 0;
35983 PyArrayObject *__pyx_v_r_k = 0;
35984 PyArrayObject *__pyx_v_dr_k_dk = 0;
35985 PyArrayObject *__pyx_v_dr_k_de = 0;
35986 PyArrayObject *__pyx_v_r_e = 0;
35987 PyArrayObject *__pyx_v_dr_e_dk = 0;
35988 PyArrayObject *__pyx_v_dr_e_de = 0;
35989 int __pyx_lineno = 0;
35990 const char *__pyx_filename = NULL;
35991 int __pyx_clineno = 0;
35992 PyObject *__pyx_r = 0;
35993 __Pyx_RefNannyDeclarations
35994 __Pyx_RefNannySetupContext(
"kEpsilon_2D_Evaluate (wrapper)", 0);
35996 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
35997 PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
35998 if (unlikely(__pyx_kwds)) {
35999 Py_ssize_t kw_args;
36000 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36001 switch (pos_args) {
36002 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36003 CYTHON_FALLTHROUGH;
36004 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36005 CYTHON_FALLTHROUGH;
36006 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36007 CYTHON_FALLTHROUGH;
36008 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36009 CYTHON_FALLTHROUGH;
36010 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36011 CYTHON_FALLTHROUGH;
36012 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36013 CYTHON_FALLTHROUGH;
36014 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36015 CYTHON_FALLTHROUGH;
36016 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36017 CYTHON_FALLTHROUGH;
36018 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36019 CYTHON_FALLTHROUGH;
36020 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36021 CYTHON_FALLTHROUGH;
36022 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36023 CYTHON_FALLTHROUGH;
36024 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36025 CYTHON_FALLTHROUGH;
36026 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36027 CYTHON_FALLTHROUGH;
36028 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36029 CYTHON_FALLTHROUGH;
36030 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36031 CYTHON_FALLTHROUGH;
36032 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36033 CYTHON_FALLTHROUGH;
36034 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36035 CYTHON_FALLTHROUGH;
36036 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36037 CYTHON_FALLTHROUGH;
36038 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36039 CYTHON_FALLTHROUGH;
36040 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36041 CYTHON_FALLTHROUGH;
36042 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36043 CYTHON_FALLTHROUGH;
36044 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36045 CYTHON_FALLTHROUGH;
36046 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36047 CYTHON_FALLTHROUGH;
36048 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36049 CYTHON_FALLTHROUGH;
36050 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36051 CYTHON_FALLTHROUGH;
36052 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36053 CYTHON_FALLTHROUGH;
36054 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36055 CYTHON_FALLTHROUGH;
36056 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36057 CYTHON_FALLTHROUGH;
36058 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36059 CYTHON_FALLTHROUGH;
36060 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36061 CYTHON_FALLTHROUGH;
36062 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36063 CYTHON_FALLTHROUGH;
36064 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36065 CYTHON_FALLTHROUGH;
36066 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36067 CYTHON_FALLTHROUGH;
36068 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36069 CYTHON_FALLTHROUGH;
36070 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36071 CYTHON_FALLTHROUGH;
36072 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36073 CYTHON_FALLTHROUGH;
36075 default:
goto __pyx_L5_argtuple_error;
36077 kw_args = PyDict_Size(__pyx_kwds);
36078 switch (pos_args) {
36080 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
36081 else goto __pyx_L5_argtuple_error;
36082 CYTHON_FALLTHROUGH;
36084 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
36086 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 1); __PYX_ERR(0, 6866, __pyx_L3_error)
36088 CYTHON_FALLTHROUGH;
36090 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
36092 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 2); __PYX_ERR(0, 6866, __pyx_L3_error)
36094 CYTHON_FALLTHROUGH;
36096 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
36098 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 3); __PYX_ERR(0, 6866, __pyx_L3_error)
36100 CYTHON_FALLTHROUGH;
36102 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
36104 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 4); __PYX_ERR(0, 6866, __pyx_L3_error)
36106 CYTHON_FALLTHROUGH;
36108 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
36110 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 5); __PYX_ERR(0, 6866, __pyx_L3_error)
36112 CYTHON_FALLTHROUGH;
36114 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
36116 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 6); __PYX_ERR(0, 6866, __pyx_L3_error)
36118 CYTHON_FALLTHROUGH;
36120 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
36122 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 7); __PYX_ERR(0, 6866, __pyx_L3_error)
36124 CYTHON_FALLTHROUGH;
36126 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
36128 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 8); __PYX_ERR(0, 6866, __pyx_L3_error)
36130 CYTHON_FALLTHROUGH;
36132 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
36134 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 9); __PYX_ERR(0, 6866, __pyx_L3_error)
36136 CYTHON_FALLTHROUGH;
36138 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
36140 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 10); __PYX_ERR(0, 6866, __pyx_L3_error)
36142 CYTHON_FALLTHROUGH;
36144 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
36146 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 11); __PYX_ERR(0, 6866, __pyx_L3_error)
36148 CYTHON_FALLTHROUGH;
36150 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
36152 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 12); __PYX_ERR(0, 6866, __pyx_L3_error)
36154 CYTHON_FALLTHROUGH;
36156 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
36158 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 13); __PYX_ERR(0, 6866, __pyx_L3_error)
36160 CYTHON_FALLTHROUGH;
36162 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
36164 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 14); __PYX_ERR(0, 6866, __pyx_L3_error)
36166 CYTHON_FALLTHROUGH;
36168 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
36170 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 15); __PYX_ERR(0, 6866, __pyx_L3_error)
36172 CYTHON_FALLTHROUGH;
36174 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
36176 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 16); __PYX_ERR(0, 6866, __pyx_L3_error)
36178 CYTHON_FALLTHROUGH;
36180 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
36182 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 17); __PYX_ERR(0, 6866, __pyx_L3_error)
36184 CYTHON_FALLTHROUGH;
36186 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
36188 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 18); __PYX_ERR(0, 6866, __pyx_L3_error)
36190 CYTHON_FALLTHROUGH;
36192 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
36194 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 19); __PYX_ERR(0, 6866, __pyx_L3_error)
36196 CYTHON_FALLTHROUGH;
36198 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
36200 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 20); __PYX_ERR(0, 6866, __pyx_L3_error)
36202 CYTHON_FALLTHROUGH;
36204 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
36206 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 21); __PYX_ERR(0, 6866, __pyx_L3_error)
36208 CYTHON_FALLTHROUGH;
36210 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
36212 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 22); __PYX_ERR(0, 6866, __pyx_L3_error)
36214 CYTHON_FALLTHROUGH;
36216 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
36218 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 23); __PYX_ERR(0, 6866, __pyx_L3_error)
36220 CYTHON_FALLTHROUGH;
36222 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
36224 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 24); __PYX_ERR(0, 6866, __pyx_L3_error)
36226 CYTHON_FALLTHROUGH;
36228 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
36230 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 25); __PYX_ERR(0, 6866, __pyx_L3_error)
36232 CYTHON_FALLTHROUGH;
36234 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
36236 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 26); __PYX_ERR(0, 6866, __pyx_L3_error)
36238 CYTHON_FALLTHROUGH;
36240 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
36242 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 27); __PYX_ERR(0, 6866, __pyx_L3_error)
36244 CYTHON_FALLTHROUGH;
36246 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
36248 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 28); __PYX_ERR(0, 6866, __pyx_L3_error)
36250 CYTHON_FALLTHROUGH;
36252 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
36254 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 29); __PYX_ERR(0, 6866, __pyx_L3_error)
36256 CYTHON_FALLTHROUGH;
36258 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
36260 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 30); __PYX_ERR(0, 6866, __pyx_L3_error)
36262 CYTHON_FALLTHROUGH;
36264 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
36266 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 31); __PYX_ERR(0, 6866, __pyx_L3_error)
36268 CYTHON_FALLTHROUGH;
36270 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
36272 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 32); __PYX_ERR(0, 6866, __pyx_L3_error)
36274 CYTHON_FALLTHROUGH;
36276 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
36278 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 33); __PYX_ERR(0, 6866, __pyx_L3_error)
36280 CYTHON_FALLTHROUGH;
36282 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
36284 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 34); __PYX_ERR(0, 6866, __pyx_L3_error)
36286 CYTHON_FALLTHROUGH;
36288 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
36290 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, 35); __PYX_ERR(0, 6866, __pyx_L3_error)
36293 if (unlikely(kw_args > 0)) {
36294 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_2D_Evaluate") < 0)) __PYX_ERR(0, 6866, __pyx_L3_error)
36296 }
else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
36297 goto __pyx_L5_argtuple_error;
36299 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36300 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36301 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36302 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36303 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36304 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36305 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36306 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36307 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36308 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36309 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36310 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36311 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36312 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36313 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36314 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36315 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36316 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36317 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36318 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36319 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36320 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36321 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36322 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36323 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36324 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36325 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36326 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36327 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36328 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36329 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36330 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36331 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36332 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36333 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36334 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36336 __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_k == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6866, __pyx_L3_error)
36337 __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_sigma_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6867, __pyx_L3_error)
36338 __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6868, __pyx_L3_error)
36339 __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_c_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6869, __pyx_L3_error)
36340 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6870, __pyx_L3_error)
36341 __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_c_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6871, __pyx_L3_error)
36342 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6872, __pyx_L3_error)
36343 __pyx_v_velocity = ((PyArrayObject *)values[7]);
36344 __pyx_v_gradu = ((PyArrayObject *)values[8]);
36345 __pyx_v_gradv = ((PyArrayObject *)values[9]);
36346 __pyx_v_k = ((PyArrayObject *)values[10]);
36347 __pyx_v_epsilon = ((PyArrayObject *)values[11]);
36348 __pyx_v_m_k = ((PyArrayObject *)values[12]);
36349 __pyx_v_dm_k = ((PyArrayObject *)values[13]);
36350 __pyx_v_m_e = ((PyArrayObject *)values[14]);
36351 __pyx_v_dm_e = ((PyArrayObject *)values[15]);
36352 __pyx_v_phi_k = ((PyArrayObject *)values[16]);
36353 __pyx_v_dphi_k = ((PyArrayObject *)values[17]);
36354 __pyx_v_phi_e = ((PyArrayObject *)values[18]);
36355 __pyx_v_dphi_e = ((PyArrayObject *)values[19]);
36356 __pyx_v_f_k = ((PyArrayObject *)values[20]);
36357 __pyx_v_df_k = ((PyArrayObject *)values[21]);
36358 __pyx_v_f_e = ((PyArrayObject *)values[22]);
36359 __pyx_v_df_e = ((PyArrayObject *)values[23]);
36360 __pyx_v_a_k = ((PyArrayObject *)values[24]);
36361 __pyx_v_da_k_dk = ((PyArrayObject *)values[25]);
36362 __pyx_v_da_k_de = ((PyArrayObject *)values[26]);
36363 __pyx_v_a_e = ((PyArrayObject *)values[27]);
36364 __pyx_v_da_e_dk = ((PyArrayObject *)values[28]);
36365 __pyx_v_da_e_de = ((PyArrayObject *)values[29]);
36366 __pyx_v_r_k = ((PyArrayObject *)values[30]);
36367 __pyx_v_dr_k_dk = ((PyArrayObject *)values[31]);
36368 __pyx_v_dr_k_de = ((PyArrayObject *)values[32]);
36369 __pyx_v_r_e = ((PyArrayObject *)values[33]);
36370 __pyx_v_dr_e_dk = ((PyArrayObject *)values[34]);
36371 __pyx_v_dr_e_de = ((PyArrayObject *)values[35]);
36373 goto __pyx_L4_argument_unpacking_done;
36374 __pyx_L5_argtuple_error:;
36375 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6866, __pyx_L3_error)
36377 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
36378 __Pyx_RefNannyFinishContext();
36380 __pyx_L4_argument_unpacking_done:;
36381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 6873, __pyx_L1_error)
36382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 6874, __pyx_L1_error)
36383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 6875, __pyx_L1_error)
36384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 6876, __pyx_L1_error)
36385 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 6877, __pyx_L1_error)
36386 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1,
"m_k", 0))) __PYX_ERR(0, 6878, __pyx_L1_error)
36387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1,
"dm_k", 0))) __PYX_ERR(0, 6879, __pyx_L1_error)
36388 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 6880, __pyx_L1_error)
36389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 6881, __pyx_L1_error)
36390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1,
"phi_k", 0))) __PYX_ERR(0, 6882, __pyx_L1_error)
36391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1,
"dphi_k", 0))) __PYX_ERR(0, 6883, __pyx_L1_error)
36392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1,
"phi_e", 0))) __PYX_ERR(0, 6884, __pyx_L1_error)
36393 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1,
"dphi_e", 0))) __PYX_ERR(0, 6885, __pyx_L1_error)
36394 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1,
"f_k", 0))) __PYX_ERR(0, 6886, __pyx_L1_error)
36395 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1,
"df_k", 0))) __PYX_ERR(0, 6887, __pyx_L1_error)
36396 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 6888, __pyx_L1_error)
36397 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 6889, __pyx_L1_error)
36398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1,
"a_k", 0))) __PYX_ERR(0, 6890, __pyx_L1_error)
36399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_k_dk", 0))) __PYX_ERR(0, 6891, __pyx_L1_error)
36400 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1,
"da_k_de", 0))) __PYX_ERR(0, 6892, __pyx_L1_error)
36401 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 6893, __pyx_L1_error)
36402 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_e_dk", 0))) __PYX_ERR(0, 6894, __pyx_L1_error)
36403 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1,
"da_e_de", 0))) __PYX_ERR(0, 6895, __pyx_L1_error)
36404 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1,
"r_k", 0))) __PYX_ERR(0, 6896, __pyx_L1_error)
36405 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_dk", 0))) __PYX_ERR(0, 6897, __pyx_L1_error)
36406 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_de", 0))) __PYX_ERR(0, 6898, __pyx_L1_error)
36407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 6899, __pyx_L1_error)
36408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_dk", 0))) __PYX_ERR(0, 6900, __pyx_L1_error)
36409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 6901, __pyx_L1_error)
36410 __pyx_r = __pyx_pf_22ctransportCoefficients_180kEpsilon_2D_Evaluate(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
36417 __Pyx_RefNannyFinishContext();
36421 static PyObject *__pyx_pf_22ctransportCoefficients_180kEpsilon_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
36422 PyObject *__pyx_r = NULL;
36423 __Pyx_RefNannyDeclarations
36424 PyObject *__pyx_t_1 = NULL;
36426 int __pyx_lineno = 0;
36427 const char *__pyx_filename = NULL;
36428 int __pyx_clineno = 0;
36429 __Pyx_RefNannySetupContext(
"kEpsilon_2D_Evaluate", 0);
36438 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6902, __pyx_L1_error)
36439 __Pyx_GOTREF(__pyx_t_1);
36440 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6902, __pyx_L1_error)
36441 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36450 kEpsilon_2D_Evaluate(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_k->data), ((
double *)__pyx_v_dm_k->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_phi_k->data), ((
double *)__pyx_v_dphi_k->data), ((
double *)__pyx_v_phi_e->data), ((
double *)__pyx_v_dphi_e->data), ((
double *)__pyx_v_f_k->data), ((
double *)__pyx_v_df_k->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_k->data), ((
double *)__pyx_v_da_k_dk->data), ((
double *)__pyx_v_da_k_de->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_da_e_dk->data), ((
double *)__pyx_v_da_e_de->data), ((
double *)__pyx_v_r_k->data), ((
double *)__pyx_v_dr_k_dk->data), ((
double *)__pyx_v_dr_k_de->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_dk->data), ((
double *)__pyx_v_dr_e_de->data));
36461 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36464 __Pyx_XDECREF(__pyx_t_1);
36465 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
36468 __Pyx_XGIVEREF(__pyx_r);
36469 __Pyx_RefNannyFinishContext();
36482 static PyObject *__pyx_pw_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36483 static PyMethodDef __pyx_mdef_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd = {
"kEpsilon_2D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
36484 static PyObject *__pyx_pw_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36485 double __pyx_v_sigma_k;
36486 double __pyx_v_sigma_e;
36487 double __pyx_v_c_1;
36488 double __pyx_v_c_2;
36489 double __pyx_v_c_mu;
36490 double __pyx_v_c_e;
36492 PyArrayObject *__pyx_v_velocity = 0;
36493 PyArrayObject *__pyx_v_gradu = 0;
36494 PyArrayObject *__pyx_v_gradv = 0;
36495 PyArrayObject *__pyx_v_k = 0;
36496 PyArrayObject *__pyx_v_epsilon = 0;
36497 PyArrayObject *__pyx_v_m_k = 0;
36498 PyArrayObject *__pyx_v_dm_k = 0;
36499 PyArrayObject *__pyx_v_m_e = 0;
36500 PyArrayObject *__pyx_v_dm_e = 0;
36501 PyArrayObject *__pyx_v_phi_k = 0;
36502 PyArrayObject *__pyx_v_dphi_k = 0;
36503 PyArrayObject *__pyx_v_phi_e = 0;
36504 PyArrayObject *__pyx_v_dphi_e = 0;
36505 PyArrayObject *__pyx_v_f_k = 0;
36506 PyArrayObject *__pyx_v_df_k = 0;
36507 PyArrayObject *__pyx_v_f_e = 0;
36508 PyArrayObject *__pyx_v_df_e = 0;
36509 PyArrayObject *__pyx_v_a_k = 0;
36510 PyArrayObject *__pyx_v_da_k_dk = 0;
36511 PyArrayObject *__pyx_v_da_k_de = 0;
36512 PyArrayObject *__pyx_v_a_e = 0;
36513 PyArrayObject *__pyx_v_da_e_dk = 0;
36514 PyArrayObject *__pyx_v_da_e_de = 0;
36515 PyArrayObject *__pyx_v_r_k = 0;
36516 PyArrayObject *__pyx_v_dr_k_dk = 0;
36517 PyArrayObject *__pyx_v_dr_k_de = 0;
36518 PyArrayObject *__pyx_v_r_e = 0;
36519 PyArrayObject *__pyx_v_dr_e_dk = 0;
36520 PyArrayObject *__pyx_v_dr_e_de = 0;
36521 int __pyx_lineno = 0;
36522 const char *__pyx_filename = NULL;
36523 int __pyx_clineno = 0;
36524 PyObject *__pyx_r = 0;
36525 __Pyx_RefNannyDeclarations
36526 __Pyx_RefNannySetupContext(
"kEpsilon_2D_Evaluate_sd (wrapper)", 0);
36528 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
36529 PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
36530 if (unlikely(__pyx_kwds)) {
36531 Py_ssize_t kw_args;
36532 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36533 switch (pos_args) {
36534 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36535 CYTHON_FALLTHROUGH;
36536 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36537 CYTHON_FALLTHROUGH;
36538 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36539 CYTHON_FALLTHROUGH;
36540 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36541 CYTHON_FALLTHROUGH;
36542 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36543 CYTHON_FALLTHROUGH;
36544 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36545 CYTHON_FALLTHROUGH;
36546 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36547 CYTHON_FALLTHROUGH;
36548 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36549 CYTHON_FALLTHROUGH;
36550 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36551 CYTHON_FALLTHROUGH;
36552 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36553 CYTHON_FALLTHROUGH;
36554 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36555 CYTHON_FALLTHROUGH;
36556 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36557 CYTHON_FALLTHROUGH;
36558 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36559 CYTHON_FALLTHROUGH;
36560 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36561 CYTHON_FALLTHROUGH;
36562 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36563 CYTHON_FALLTHROUGH;
36564 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36565 CYTHON_FALLTHROUGH;
36566 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36567 CYTHON_FALLTHROUGH;
36568 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36569 CYTHON_FALLTHROUGH;
36570 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36571 CYTHON_FALLTHROUGH;
36572 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36573 CYTHON_FALLTHROUGH;
36574 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36575 CYTHON_FALLTHROUGH;
36576 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36577 CYTHON_FALLTHROUGH;
36578 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36579 CYTHON_FALLTHROUGH;
36580 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36581 CYTHON_FALLTHROUGH;
36582 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36583 CYTHON_FALLTHROUGH;
36584 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36585 CYTHON_FALLTHROUGH;
36586 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36587 CYTHON_FALLTHROUGH;
36588 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36589 CYTHON_FALLTHROUGH;
36590 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36591 CYTHON_FALLTHROUGH;
36592 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36593 CYTHON_FALLTHROUGH;
36594 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36595 CYTHON_FALLTHROUGH;
36596 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36597 CYTHON_FALLTHROUGH;
36598 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36599 CYTHON_FALLTHROUGH;
36600 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36601 CYTHON_FALLTHROUGH;
36602 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36603 CYTHON_FALLTHROUGH;
36604 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36605 CYTHON_FALLTHROUGH;
36607 default:
goto __pyx_L5_argtuple_error;
36609 kw_args = PyDict_Size(__pyx_kwds);
36610 switch (pos_args) {
36612 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
36613 else goto __pyx_L5_argtuple_error;
36614 CYTHON_FALLTHROUGH;
36616 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
36618 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 1); __PYX_ERR(0, 6940, __pyx_L3_error)
36620 CYTHON_FALLTHROUGH;
36622 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
36624 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 2); __PYX_ERR(0, 6940, __pyx_L3_error)
36626 CYTHON_FALLTHROUGH;
36628 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
36630 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 3); __PYX_ERR(0, 6940, __pyx_L3_error)
36632 CYTHON_FALLTHROUGH;
36634 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
36636 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 4); __PYX_ERR(0, 6940, __pyx_L3_error)
36638 CYTHON_FALLTHROUGH;
36640 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
36642 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 5); __PYX_ERR(0, 6940, __pyx_L3_error)
36644 CYTHON_FALLTHROUGH;
36646 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
36648 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 6); __PYX_ERR(0, 6940, __pyx_L3_error)
36650 CYTHON_FALLTHROUGH;
36652 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
36654 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 7); __PYX_ERR(0, 6940, __pyx_L3_error)
36656 CYTHON_FALLTHROUGH;
36658 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
36660 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 8); __PYX_ERR(0, 6940, __pyx_L3_error)
36662 CYTHON_FALLTHROUGH;
36664 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
36666 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 9); __PYX_ERR(0, 6940, __pyx_L3_error)
36668 CYTHON_FALLTHROUGH;
36670 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
36672 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 10); __PYX_ERR(0, 6940, __pyx_L3_error)
36674 CYTHON_FALLTHROUGH;
36676 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
36678 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 11); __PYX_ERR(0, 6940, __pyx_L3_error)
36680 CYTHON_FALLTHROUGH;
36682 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
36684 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 12); __PYX_ERR(0, 6940, __pyx_L3_error)
36686 CYTHON_FALLTHROUGH;
36688 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
36690 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 13); __PYX_ERR(0, 6940, __pyx_L3_error)
36692 CYTHON_FALLTHROUGH;
36694 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
36696 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 14); __PYX_ERR(0, 6940, __pyx_L3_error)
36698 CYTHON_FALLTHROUGH;
36700 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
36702 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 15); __PYX_ERR(0, 6940, __pyx_L3_error)
36704 CYTHON_FALLTHROUGH;
36706 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
36708 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 16); __PYX_ERR(0, 6940, __pyx_L3_error)
36710 CYTHON_FALLTHROUGH;
36712 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
36714 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 17); __PYX_ERR(0, 6940, __pyx_L3_error)
36716 CYTHON_FALLTHROUGH;
36718 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
36720 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 18); __PYX_ERR(0, 6940, __pyx_L3_error)
36722 CYTHON_FALLTHROUGH;
36724 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
36726 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 19); __PYX_ERR(0, 6940, __pyx_L3_error)
36728 CYTHON_FALLTHROUGH;
36730 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
36732 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 20); __PYX_ERR(0, 6940, __pyx_L3_error)
36734 CYTHON_FALLTHROUGH;
36736 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
36738 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 21); __PYX_ERR(0, 6940, __pyx_L3_error)
36740 CYTHON_FALLTHROUGH;
36742 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
36744 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 22); __PYX_ERR(0, 6940, __pyx_L3_error)
36746 CYTHON_FALLTHROUGH;
36748 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
36750 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 23); __PYX_ERR(0, 6940, __pyx_L3_error)
36752 CYTHON_FALLTHROUGH;
36754 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
36756 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 24); __PYX_ERR(0, 6940, __pyx_L3_error)
36758 CYTHON_FALLTHROUGH;
36760 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
36762 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 25); __PYX_ERR(0, 6940, __pyx_L3_error)
36764 CYTHON_FALLTHROUGH;
36766 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
36768 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 26); __PYX_ERR(0, 6940, __pyx_L3_error)
36770 CYTHON_FALLTHROUGH;
36772 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
36774 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 27); __PYX_ERR(0, 6940, __pyx_L3_error)
36776 CYTHON_FALLTHROUGH;
36778 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
36780 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 28); __PYX_ERR(0, 6940, __pyx_L3_error)
36782 CYTHON_FALLTHROUGH;
36784 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
36786 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 29); __PYX_ERR(0, 6940, __pyx_L3_error)
36788 CYTHON_FALLTHROUGH;
36790 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
36792 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 30); __PYX_ERR(0, 6940, __pyx_L3_error)
36794 CYTHON_FALLTHROUGH;
36796 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
36798 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 31); __PYX_ERR(0, 6940, __pyx_L3_error)
36800 CYTHON_FALLTHROUGH;
36802 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
36804 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 32); __PYX_ERR(0, 6940, __pyx_L3_error)
36806 CYTHON_FALLTHROUGH;
36808 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
36810 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 33); __PYX_ERR(0, 6940, __pyx_L3_error)
36812 CYTHON_FALLTHROUGH;
36814 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
36816 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 34); __PYX_ERR(0, 6940, __pyx_L3_error)
36818 CYTHON_FALLTHROUGH;
36820 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
36822 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, 35); __PYX_ERR(0, 6940, __pyx_L3_error)
36825 if (unlikely(kw_args > 0)) {
36826 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 6940, __pyx_L3_error)
36828 }
else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
36829 goto __pyx_L5_argtuple_error;
36831 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36832 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36833 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36834 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36835 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36836 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36837 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36838 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36839 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36840 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36841 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36842 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36843 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36844 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36845 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36846 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36847 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36848 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36849 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36850 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36851 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36852 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36853 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36854 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36855 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36856 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36857 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
36858 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
36859 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
36860 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
36861 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
36862 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
36863 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
36864 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
36865 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
36866 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
36868 __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_k == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6940, __pyx_L3_error)
36869 __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_sigma_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6941, __pyx_L3_error)
36870 __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6942, __pyx_L3_error)
36871 __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_c_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6943, __pyx_L3_error)
36872 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6944, __pyx_L3_error)
36873 __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_c_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6945, __pyx_L3_error)
36874 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6946, __pyx_L3_error)
36875 __pyx_v_velocity = ((PyArrayObject *)values[7]);
36876 __pyx_v_gradu = ((PyArrayObject *)values[8]);
36877 __pyx_v_gradv = ((PyArrayObject *)values[9]);
36878 __pyx_v_k = ((PyArrayObject *)values[10]);
36879 __pyx_v_epsilon = ((PyArrayObject *)values[11]);
36880 __pyx_v_m_k = ((PyArrayObject *)values[12]);
36881 __pyx_v_dm_k = ((PyArrayObject *)values[13]);
36882 __pyx_v_m_e = ((PyArrayObject *)values[14]);
36883 __pyx_v_dm_e = ((PyArrayObject *)values[15]);
36884 __pyx_v_phi_k = ((PyArrayObject *)values[16]);
36885 __pyx_v_dphi_k = ((PyArrayObject *)values[17]);
36886 __pyx_v_phi_e = ((PyArrayObject *)values[18]);
36887 __pyx_v_dphi_e = ((PyArrayObject *)values[19]);
36888 __pyx_v_f_k = ((PyArrayObject *)values[20]);
36889 __pyx_v_df_k = ((PyArrayObject *)values[21]);
36890 __pyx_v_f_e = ((PyArrayObject *)values[22]);
36891 __pyx_v_df_e = ((PyArrayObject *)values[23]);
36892 __pyx_v_a_k = ((PyArrayObject *)values[24]);
36893 __pyx_v_da_k_dk = ((PyArrayObject *)values[25]);
36894 __pyx_v_da_k_de = ((PyArrayObject *)values[26]);
36895 __pyx_v_a_e = ((PyArrayObject *)values[27]);
36896 __pyx_v_da_e_dk = ((PyArrayObject *)values[28]);
36897 __pyx_v_da_e_de = ((PyArrayObject *)values[29]);
36898 __pyx_v_r_k = ((PyArrayObject *)values[30]);
36899 __pyx_v_dr_k_dk = ((PyArrayObject *)values[31]);
36900 __pyx_v_dr_k_de = ((PyArrayObject *)values[32]);
36901 __pyx_v_r_e = ((PyArrayObject *)values[33]);
36902 __pyx_v_dr_e_dk = ((PyArrayObject *)values[34]);
36903 __pyx_v_dr_e_de = ((PyArrayObject *)values[35]);
36905 goto __pyx_L4_argument_unpacking_done;
36906 __pyx_L5_argtuple_error:;
36907 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_2D_Evaluate_sd", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6940, __pyx_L3_error)
36909 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
36910 __Pyx_RefNannyFinishContext();
36912 __pyx_L4_argument_unpacking_done:;
36913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 6947, __pyx_L1_error)
36914 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 6948, __pyx_L1_error)
36915 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 6949, __pyx_L1_error)
36916 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 6950, __pyx_L1_error)
36917 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 6951, __pyx_L1_error)
36918 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1,
"m_k", 0))) __PYX_ERR(0, 6952, __pyx_L1_error)
36919 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1,
"dm_k", 0))) __PYX_ERR(0, 6953, __pyx_L1_error)
36920 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 6954, __pyx_L1_error)
36921 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 6955, __pyx_L1_error)
36922 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1,
"phi_k", 0))) __PYX_ERR(0, 6956, __pyx_L1_error)
36923 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1,
"dphi_k", 0))) __PYX_ERR(0, 6957, __pyx_L1_error)
36924 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1,
"phi_e", 0))) __PYX_ERR(0, 6958, __pyx_L1_error)
36925 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1,
"dphi_e", 0))) __PYX_ERR(0, 6959, __pyx_L1_error)
36926 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1,
"f_k", 0))) __PYX_ERR(0, 6960, __pyx_L1_error)
36927 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1,
"df_k", 0))) __PYX_ERR(0, 6961, __pyx_L1_error)
36928 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 6962, __pyx_L1_error)
36929 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 6963, __pyx_L1_error)
36930 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1,
"a_k", 0))) __PYX_ERR(0, 6964, __pyx_L1_error)
36931 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_k_dk", 0))) __PYX_ERR(0, 6965, __pyx_L1_error)
36932 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1,
"da_k_de", 0))) __PYX_ERR(0, 6966, __pyx_L1_error)
36933 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 6967, __pyx_L1_error)
36934 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_e_dk", 0))) __PYX_ERR(0, 6968, __pyx_L1_error)
36935 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1,
"da_e_de", 0))) __PYX_ERR(0, 6969, __pyx_L1_error)
36936 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1,
"r_k", 0))) __PYX_ERR(0, 6970, __pyx_L1_error)
36937 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_dk", 0))) __PYX_ERR(0, 6971, __pyx_L1_error)
36938 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_de", 0))) __PYX_ERR(0, 6972, __pyx_L1_error)
36939 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 6973, __pyx_L1_error)
36940 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_dk", 0))) __PYX_ERR(0, 6974, __pyx_L1_error)
36941 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 6975, __pyx_L1_error)
36942 __pyx_r = __pyx_pf_22ctransportCoefficients_182kEpsilon_2D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
36949 __Pyx_RefNannyFinishContext();
36953 static PyObject *__pyx_pf_22ctransportCoefficients_182kEpsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
36954 PyObject *__pyx_r = NULL;
36955 __Pyx_RefNannyDeclarations
36956 PyObject *__pyx_t_1 = NULL;
36958 int __pyx_lineno = 0;
36959 const char *__pyx_filename = NULL;
36960 int __pyx_clineno = 0;
36961 __Pyx_RefNannySetupContext(
"kEpsilon_2D_Evaluate_sd", 0);
36970 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6976, __pyx_L1_error)
36971 __Pyx_GOTREF(__pyx_t_1);
36972 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6976, __pyx_L1_error)
36973 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36982 kEpsilon_2D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_k->data), ((
double *)__pyx_v_dm_k->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_phi_k->data), ((
double *)__pyx_v_dphi_k->data), ((
double *)__pyx_v_phi_e->data), ((
double *)__pyx_v_dphi_e->data), ((
double *)__pyx_v_f_k->data), ((
double *)__pyx_v_df_k->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_k->data), ((
double *)__pyx_v_da_k_dk->data), ((
double *)__pyx_v_da_k_de->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_da_e_dk->data), ((
double *)__pyx_v_da_e_de->data), ((
double *)__pyx_v_r_k->data), ((
double *)__pyx_v_dr_k_dk->data), ((
double *)__pyx_v_dr_k_de->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_dk->data), ((
double *)__pyx_v_dr_e_de->data));
36993 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36996 __Pyx_XDECREF(__pyx_t_1);
36997 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
37000 __Pyx_XGIVEREF(__pyx_r);
37001 __Pyx_RefNannyFinishContext();
37014 static PyObject *__pyx_pw_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37015 static PyMethodDef __pyx_mdef_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd = {
"kEpsilon_3D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
37016 static PyObject *__pyx_pw_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37017 double __pyx_v_sigma_k;
37018 double __pyx_v_sigma_e;
37019 double __pyx_v_c_1;
37020 double __pyx_v_c_2;
37021 double __pyx_v_c_mu;
37022 double __pyx_v_c_e;
37024 PyArrayObject *__pyx_v_velocity = 0;
37025 PyArrayObject *__pyx_v_gradu = 0;
37026 PyArrayObject *__pyx_v_gradv = 0;
37027 PyArrayObject *__pyx_v_gradw = 0;
37028 PyArrayObject *__pyx_v_k = 0;
37029 PyArrayObject *__pyx_v_epsilon = 0;
37030 PyArrayObject *__pyx_v_m_k = 0;
37031 PyArrayObject *__pyx_v_dm_k = 0;
37032 PyArrayObject *__pyx_v_m_e = 0;
37033 PyArrayObject *__pyx_v_dm_e = 0;
37034 PyArrayObject *__pyx_v_phi_k = 0;
37035 PyArrayObject *__pyx_v_dphi_k = 0;
37036 PyArrayObject *__pyx_v_phi_e = 0;
37037 PyArrayObject *__pyx_v_dphi_e = 0;
37038 PyArrayObject *__pyx_v_f_k = 0;
37039 PyArrayObject *__pyx_v_df_k = 0;
37040 PyArrayObject *__pyx_v_f_e = 0;
37041 PyArrayObject *__pyx_v_df_e = 0;
37042 PyArrayObject *__pyx_v_a_k = 0;
37043 PyArrayObject *__pyx_v_da_k_dk = 0;
37044 PyArrayObject *__pyx_v_da_k_de = 0;
37045 PyArrayObject *__pyx_v_a_e = 0;
37046 PyArrayObject *__pyx_v_da_e_dk = 0;
37047 PyArrayObject *__pyx_v_da_e_de = 0;
37048 PyArrayObject *__pyx_v_r_k = 0;
37049 PyArrayObject *__pyx_v_dr_k_dk = 0;
37050 PyArrayObject *__pyx_v_dr_k_de = 0;
37051 PyArrayObject *__pyx_v_r_e = 0;
37052 PyArrayObject *__pyx_v_dr_e_dk = 0;
37053 PyArrayObject *__pyx_v_dr_e_de = 0;
37054 int __pyx_lineno = 0;
37055 const char *__pyx_filename = NULL;
37056 int __pyx_clineno = 0;
37057 PyObject *__pyx_r = 0;
37058 __Pyx_RefNannyDeclarations
37059 __Pyx_RefNannySetupContext(
"kEpsilon_3D_Evaluate_sd (wrapper)", 0);
37061 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
37062 PyObject* values[37] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
37063 if (unlikely(__pyx_kwds)) {
37064 Py_ssize_t kw_args;
37065 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37066 switch (pos_args) {
37067 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37068 CYTHON_FALLTHROUGH;
37069 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37070 CYTHON_FALLTHROUGH;
37071 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37072 CYTHON_FALLTHROUGH;
37073 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37074 CYTHON_FALLTHROUGH;
37075 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37076 CYTHON_FALLTHROUGH;
37077 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37078 CYTHON_FALLTHROUGH;
37079 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37080 CYTHON_FALLTHROUGH;
37081 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37082 CYTHON_FALLTHROUGH;
37083 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37084 CYTHON_FALLTHROUGH;
37085 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37086 CYTHON_FALLTHROUGH;
37087 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37088 CYTHON_FALLTHROUGH;
37089 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37090 CYTHON_FALLTHROUGH;
37091 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37092 CYTHON_FALLTHROUGH;
37093 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37094 CYTHON_FALLTHROUGH;
37095 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37096 CYTHON_FALLTHROUGH;
37097 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37098 CYTHON_FALLTHROUGH;
37099 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37100 CYTHON_FALLTHROUGH;
37101 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37102 CYTHON_FALLTHROUGH;
37103 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37104 CYTHON_FALLTHROUGH;
37105 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37106 CYTHON_FALLTHROUGH;
37107 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37108 CYTHON_FALLTHROUGH;
37109 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37110 CYTHON_FALLTHROUGH;
37111 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37112 CYTHON_FALLTHROUGH;
37113 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37114 CYTHON_FALLTHROUGH;
37115 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37116 CYTHON_FALLTHROUGH;
37117 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37118 CYTHON_FALLTHROUGH;
37119 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37120 CYTHON_FALLTHROUGH;
37121 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37122 CYTHON_FALLTHROUGH;
37123 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37124 CYTHON_FALLTHROUGH;
37125 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37126 CYTHON_FALLTHROUGH;
37127 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37128 CYTHON_FALLTHROUGH;
37129 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37130 CYTHON_FALLTHROUGH;
37131 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37132 CYTHON_FALLTHROUGH;
37133 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37134 CYTHON_FALLTHROUGH;
37135 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37136 CYTHON_FALLTHROUGH;
37137 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37138 CYTHON_FALLTHROUGH;
37139 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37140 CYTHON_FALLTHROUGH;
37142 default:
goto __pyx_L5_argtuple_error;
37144 kw_args = PyDict_Size(__pyx_kwds);
37145 switch (pos_args) {
37147 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
37148 else goto __pyx_L5_argtuple_error;
37149 CYTHON_FALLTHROUGH;
37151 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
37153 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 1); __PYX_ERR(0, 7014, __pyx_L3_error)
37155 CYTHON_FALLTHROUGH;
37157 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
37159 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 2); __PYX_ERR(0, 7014, __pyx_L3_error)
37161 CYTHON_FALLTHROUGH;
37163 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
37165 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 3); __PYX_ERR(0, 7014, __pyx_L3_error)
37167 CYTHON_FALLTHROUGH;
37169 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
37171 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 4); __PYX_ERR(0, 7014, __pyx_L3_error)
37173 CYTHON_FALLTHROUGH;
37175 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
37177 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 5); __PYX_ERR(0, 7014, __pyx_L3_error)
37179 CYTHON_FALLTHROUGH;
37181 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
37183 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 6); __PYX_ERR(0, 7014, __pyx_L3_error)
37185 CYTHON_FALLTHROUGH;
37187 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
37189 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 7); __PYX_ERR(0, 7014, __pyx_L3_error)
37191 CYTHON_FALLTHROUGH;
37193 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
37195 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 8); __PYX_ERR(0, 7014, __pyx_L3_error)
37197 CYTHON_FALLTHROUGH;
37199 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
37201 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 9); __PYX_ERR(0, 7014, __pyx_L3_error)
37203 CYTHON_FALLTHROUGH;
37205 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
37207 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 10); __PYX_ERR(0, 7014, __pyx_L3_error)
37209 CYTHON_FALLTHROUGH;
37211 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
37213 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 11); __PYX_ERR(0, 7014, __pyx_L3_error)
37215 CYTHON_FALLTHROUGH;
37217 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
37219 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 12); __PYX_ERR(0, 7014, __pyx_L3_error)
37221 CYTHON_FALLTHROUGH;
37223 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
37225 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 13); __PYX_ERR(0, 7014, __pyx_L3_error)
37227 CYTHON_FALLTHROUGH;
37229 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
37231 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 14); __PYX_ERR(0, 7014, __pyx_L3_error)
37233 CYTHON_FALLTHROUGH;
37235 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
37237 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 15); __PYX_ERR(0, 7014, __pyx_L3_error)
37239 CYTHON_FALLTHROUGH;
37241 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
37243 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 16); __PYX_ERR(0, 7014, __pyx_L3_error)
37245 CYTHON_FALLTHROUGH;
37247 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
37249 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 17); __PYX_ERR(0, 7014, __pyx_L3_error)
37251 CYTHON_FALLTHROUGH;
37253 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
37255 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 18); __PYX_ERR(0, 7014, __pyx_L3_error)
37257 CYTHON_FALLTHROUGH;
37259 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
37261 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 19); __PYX_ERR(0, 7014, __pyx_L3_error)
37263 CYTHON_FALLTHROUGH;
37265 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
37267 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 20); __PYX_ERR(0, 7014, __pyx_L3_error)
37269 CYTHON_FALLTHROUGH;
37271 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
37273 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 21); __PYX_ERR(0, 7014, __pyx_L3_error)
37275 CYTHON_FALLTHROUGH;
37277 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
37279 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 22); __PYX_ERR(0, 7014, __pyx_L3_error)
37281 CYTHON_FALLTHROUGH;
37283 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
37285 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 23); __PYX_ERR(0, 7014, __pyx_L3_error)
37287 CYTHON_FALLTHROUGH;
37289 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
37291 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 24); __PYX_ERR(0, 7014, __pyx_L3_error)
37293 CYTHON_FALLTHROUGH;
37295 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
37297 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 25); __PYX_ERR(0, 7014, __pyx_L3_error)
37299 CYTHON_FALLTHROUGH;
37301 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
37303 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 26); __PYX_ERR(0, 7014, __pyx_L3_error)
37305 CYTHON_FALLTHROUGH;
37307 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
37309 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 27); __PYX_ERR(0, 7014, __pyx_L3_error)
37311 CYTHON_FALLTHROUGH;
37313 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
37315 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 28); __PYX_ERR(0, 7014, __pyx_L3_error)
37317 CYTHON_FALLTHROUGH;
37319 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
37321 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 29); __PYX_ERR(0, 7014, __pyx_L3_error)
37323 CYTHON_FALLTHROUGH;
37325 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
37327 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 30); __PYX_ERR(0, 7014, __pyx_L3_error)
37329 CYTHON_FALLTHROUGH;
37331 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
37333 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 31); __PYX_ERR(0, 7014, __pyx_L3_error)
37335 CYTHON_FALLTHROUGH;
37337 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
37339 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 32); __PYX_ERR(0, 7014, __pyx_L3_error)
37341 CYTHON_FALLTHROUGH;
37343 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
37345 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 33); __PYX_ERR(0, 7014, __pyx_L3_error)
37347 CYTHON_FALLTHROUGH;
37349 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
37351 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 34); __PYX_ERR(0, 7014, __pyx_L3_error)
37353 CYTHON_FALLTHROUGH;
37355 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
37357 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 35); __PYX_ERR(0, 7014, __pyx_L3_error)
37359 CYTHON_FALLTHROUGH;
37361 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
37363 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, 36); __PYX_ERR(0, 7014, __pyx_L3_error)
37366 if (unlikely(kw_args > 0)) {
37367 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 7014, __pyx_L3_error)
37369 }
else if (PyTuple_GET_SIZE(__pyx_args) != 37) {
37370 goto __pyx_L5_argtuple_error;
37372 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37373 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37374 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37375 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37376 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37377 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37378 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37379 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37380 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37381 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37382 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37383 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37384 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37385 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37386 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37387 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37388 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37389 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37390 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37391 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37392 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37393 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37394 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37395 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37396 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37397 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37398 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37399 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37400 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37401 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37402 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37403 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37404 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37405 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37406 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37407 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37408 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37410 __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_k == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7014, __pyx_L3_error)
37411 __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_sigma_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7015, __pyx_L3_error)
37412 __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7016, __pyx_L3_error)
37413 __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_c_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7017, __pyx_L3_error)
37414 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7018, __pyx_L3_error)
37415 __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_c_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7019, __pyx_L3_error)
37416 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7020, __pyx_L3_error)
37417 __pyx_v_velocity = ((PyArrayObject *)values[7]);
37418 __pyx_v_gradu = ((PyArrayObject *)values[8]);
37419 __pyx_v_gradv = ((PyArrayObject *)values[9]);
37420 __pyx_v_gradw = ((PyArrayObject *)values[10]);
37421 __pyx_v_k = ((PyArrayObject *)values[11]);
37422 __pyx_v_epsilon = ((PyArrayObject *)values[12]);
37423 __pyx_v_m_k = ((PyArrayObject *)values[13]);
37424 __pyx_v_dm_k = ((PyArrayObject *)values[14]);
37425 __pyx_v_m_e = ((PyArrayObject *)values[15]);
37426 __pyx_v_dm_e = ((PyArrayObject *)values[16]);
37427 __pyx_v_phi_k = ((PyArrayObject *)values[17]);
37428 __pyx_v_dphi_k = ((PyArrayObject *)values[18]);
37429 __pyx_v_phi_e = ((PyArrayObject *)values[19]);
37430 __pyx_v_dphi_e = ((PyArrayObject *)values[20]);
37431 __pyx_v_f_k = ((PyArrayObject *)values[21]);
37432 __pyx_v_df_k = ((PyArrayObject *)values[22]);
37433 __pyx_v_f_e = ((PyArrayObject *)values[23]);
37434 __pyx_v_df_e = ((PyArrayObject *)values[24]);
37435 __pyx_v_a_k = ((PyArrayObject *)values[25]);
37436 __pyx_v_da_k_dk = ((PyArrayObject *)values[26]);
37437 __pyx_v_da_k_de = ((PyArrayObject *)values[27]);
37438 __pyx_v_a_e = ((PyArrayObject *)values[28]);
37439 __pyx_v_da_e_dk = ((PyArrayObject *)values[29]);
37440 __pyx_v_da_e_de = ((PyArrayObject *)values[30]);
37441 __pyx_v_r_k = ((PyArrayObject *)values[31]);
37442 __pyx_v_dr_k_dk = ((PyArrayObject *)values[32]);
37443 __pyx_v_dr_k_de = ((PyArrayObject *)values[33]);
37444 __pyx_v_r_e = ((PyArrayObject *)values[34]);
37445 __pyx_v_dr_e_dk = ((PyArrayObject *)values[35]);
37446 __pyx_v_dr_e_de = ((PyArrayObject *)values[36]);
37448 goto __pyx_L4_argument_unpacking_done;
37449 __pyx_L5_argtuple_error:;
37450 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate_sd", 1, 37, 37, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7014, __pyx_L3_error)
37452 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
37453 __Pyx_RefNannyFinishContext();
37455 __pyx_L4_argument_unpacking_done:;
37456 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 7021, __pyx_L1_error)
37457 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7022, __pyx_L1_error)
37458 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 7023, __pyx_L1_error)
37459 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1,
"gradw", 0))) __PYX_ERR(0, 7024, __pyx_L1_error)
37460 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7025, __pyx_L1_error)
37461 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7026, __pyx_L1_error)
37462 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1,
"m_k", 0))) __PYX_ERR(0, 7027, __pyx_L1_error)
37463 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1,
"dm_k", 0))) __PYX_ERR(0, 7028, __pyx_L1_error)
37464 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 7029, __pyx_L1_error)
37465 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 7030, __pyx_L1_error)
37466 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1,
"phi_k", 0))) __PYX_ERR(0, 7031, __pyx_L1_error)
37467 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1,
"dphi_k", 0))) __PYX_ERR(0, 7032, __pyx_L1_error)
37468 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1,
"phi_e", 0))) __PYX_ERR(0, 7033, __pyx_L1_error)
37469 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1,
"dphi_e", 0))) __PYX_ERR(0, 7034, __pyx_L1_error)
37470 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1,
"f_k", 0))) __PYX_ERR(0, 7035, __pyx_L1_error)
37471 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1,
"df_k", 0))) __PYX_ERR(0, 7036, __pyx_L1_error)
37472 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 7037, __pyx_L1_error)
37473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 7038, __pyx_L1_error)
37474 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1,
"a_k", 0))) __PYX_ERR(0, 7039, __pyx_L1_error)
37475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_k_dk", 0))) __PYX_ERR(0, 7040, __pyx_L1_error)
37476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1,
"da_k_de", 0))) __PYX_ERR(0, 7041, __pyx_L1_error)
37477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 7042, __pyx_L1_error)
37478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_e_dk", 0))) __PYX_ERR(0, 7043, __pyx_L1_error)
37479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1,
"da_e_de", 0))) __PYX_ERR(0, 7044, __pyx_L1_error)
37480 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1,
"r_k", 0))) __PYX_ERR(0, 7045, __pyx_L1_error)
37481 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_dk", 0))) __PYX_ERR(0, 7046, __pyx_L1_error)
37482 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_de", 0))) __PYX_ERR(0, 7047, __pyx_L1_error)
37483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 7048, __pyx_L1_error)
37484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_dk", 0))) __PYX_ERR(0, 7049, __pyx_L1_error)
37485 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 7050, __pyx_L1_error)
37486 __pyx_r = __pyx_pf_22ctransportCoefficients_184kEpsilon_3D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
37493 __Pyx_RefNannyFinishContext();
37497 static PyObject *__pyx_pf_22ctransportCoefficients_184kEpsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
37498 PyObject *__pyx_r = NULL;
37499 __Pyx_RefNannyDeclarations
37500 PyObject *__pyx_t_1 = NULL;
37502 int __pyx_lineno = 0;
37503 const char *__pyx_filename = NULL;
37504 int __pyx_clineno = 0;
37505 __Pyx_RefNannySetupContext(
"kEpsilon_3D_Evaluate_sd", 0);
37514 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7051, __pyx_L1_error)
37515 __Pyx_GOTREF(__pyx_t_1);
37516 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7051, __pyx_L1_error)
37517 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37526 kEpsilon_3D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_gradw->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_k->data), ((
double *)__pyx_v_dm_k->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_phi_k->data), ((
double *)__pyx_v_dphi_k->data), ((
double *)__pyx_v_phi_e->data), ((
double *)__pyx_v_dphi_e->data), ((
double *)__pyx_v_f_k->data), ((
double *)__pyx_v_df_k->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_k->data), ((
double *)__pyx_v_da_k_dk->data), ((
double *)__pyx_v_da_k_de->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_da_e_dk->data), ((
double *)__pyx_v_da_e_de->data), ((
double *)__pyx_v_r_k->data), ((
double *)__pyx_v_dr_k_dk->data), ((
double *)__pyx_v_dr_k_de->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_dk->data), ((
double *)__pyx_v_dr_e_de->data));
37537 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37540 __Pyx_XDECREF(__pyx_t_1);
37541 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
37544 __Pyx_XGIVEREF(__pyx_r);
37545 __Pyx_RefNannyFinishContext();
37558 static PyObject *__pyx_pw_22ctransportCoefficients_187kEpsilon_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37559 static PyMethodDef __pyx_mdef_22ctransportCoefficients_187kEpsilon_3D_Evaluate = {
"kEpsilon_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_187kEpsilon_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
37560 static PyObject *__pyx_pw_22ctransportCoefficients_187kEpsilon_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37561 double __pyx_v_sigma_k;
37562 double __pyx_v_sigma_e;
37563 double __pyx_v_c_1;
37564 double __pyx_v_c_2;
37565 double __pyx_v_c_mu;
37566 double __pyx_v_c_e;
37568 PyArrayObject *__pyx_v_velocity = 0;
37569 PyArrayObject *__pyx_v_gradu = 0;
37570 PyArrayObject *__pyx_v_gradv = 0;
37571 PyArrayObject *__pyx_v_gradw = 0;
37572 PyArrayObject *__pyx_v_k = 0;
37573 PyArrayObject *__pyx_v_epsilon = 0;
37574 PyArrayObject *__pyx_v_m_k = 0;
37575 PyArrayObject *__pyx_v_dm_k = 0;
37576 PyArrayObject *__pyx_v_m_e = 0;
37577 PyArrayObject *__pyx_v_dm_e = 0;
37578 PyArrayObject *__pyx_v_phi_k = 0;
37579 PyArrayObject *__pyx_v_dphi_k = 0;
37580 PyArrayObject *__pyx_v_phi_e = 0;
37581 PyArrayObject *__pyx_v_dphi_e = 0;
37582 PyArrayObject *__pyx_v_f_k = 0;
37583 PyArrayObject *__pyx_v_df_k = 0;
37584 PyArrayObject *__pyx_v_f_e = 0;
37585 PyArrayObject *__pyx_v_df_e = 0;
37586 PyArrayObject *__pyx_v_a_k = 0;
37587 PyArrayObject *__pyx_v_da_k_dk = 0;
37588 PyArrayObject *__pyx_v_da_k_de = 0;
37589 PyArrayObject *__pyx_v_a_e = 0;
37590 PyArrayObject *__pyx_v_da_e_dk = 0;
37591 PyArrayObject *__pyx_v_da_e_de = 0;
37592 PyArrayObject *__pyx_v_r_k = 0;
37593 PyArrayObject *__pyx_v_dr_k_dk = 0;
37594 PyArrayObject *__pyx_v_dr_k_de = 0;
37595 PyArrayObject *__pyx_v_r_e = 0;
37596 PyArrayObject *__pyx_v_dr_e_dk = 0;
37597 PyArrayObject *__pyx_v_dr_e_de = 0;
37598 int __pyx_lineno = 0;
37599 const char *__pyx_filename = NULL;
37600 int __pyx_clineno = 0;
37601 PyObject *__pyx_r = 0;
37602 __Pyx_RefNannyDeclarations
37603 __Pyx_RefNannySetupContext(
"kEpsilon_3D_Evaluate (wrapper)", 0);
37605 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_da_k_de,&__pyx_n_s_a_e,&__pyx_n_s_da_e_dk,&__pyx_n_s_da_e_de,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,&__pyx_n_s_dr_k_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_dk,&__pyx_n_s_dr_e_de,0};
37606 PyObject* values[37] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
37607 if (unlikely(__pyx_kwds)) {
37608 Py_ssize_t kw_args;
37609 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37610 switch (pos_args) {
37611 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37612 CYTHON_FALLTHROUGH;
37613 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37614 CYTHON_FALLTHROUGH;
37615 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37616 CYTHON_FALLTHROUGH;
37617 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37618 CYTHON_FALLTHROUGH;
37619 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37620 CYTHON_FALLTHROUGH;
37621 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37622 CYTHON_FALLTHROUGH;
37623 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37624 CYTHON_FALLTHROUGH;
37625 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37626 CYTHON_FALLTHROUGH;
37627 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37628 CYTHON_FALLTHROUGH;
37629 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37630 CYTHON_FALLTHROUGH;
37631 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37632 CYTHON_FALLTHROUGH;
37633 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37634 CYTHON_FALLTHROUGH;
37635 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37636 CYTHON_FALLTHROUGH;
37637 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37638 CYTHON_FALLTHROUGH;
37639 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37640 CYTHON_FALLTHROUGH;
37641 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37642 CYTHON_FALLTHROUGH;
37643 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37644 CYTHON_FALLTHROUGH;
37645 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37646 CYTHON_FALLTHROUGH;
37647 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37648 CYTHON_FALLTHROUGH;
37649 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37650 CYTHON_FALLTHROUGH;
37651 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37652 CYTHON_FALLTHROUGH;
37653 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37654 CYTHON_FALLTHROUGH;
37655 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37656 CYTHON_FALLTHROUGH;
37657 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37658 CYTHON_FALLTHROUGH;
37659 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37660 CYTHON_FALLTHROUGH;
37661 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37662 CYTHON_FALLTHROUGH;
37663 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37664 CYTHON_FALLTHROUGH;
37665 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37666 CYTHON_FALLTHROUGH;
37667 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37668 CYTHON_FALLTHROUGH;
37669 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37670 CYTHON_FALLTHROUGH;
37671 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37672 CYTHON_FALLTHROUGH;
37673 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37674 CYTHON_FALLTHROUGH;
37675 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37676 CYTHON_FALLTHROUGH;
37677 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37678 CYTHON_FALLTHROUGH;
37679 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37680 CYTHON_FALLTHROUGH;
37681 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37682 CYTHON_FALLTHROUGH;
37683 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37684 CYTHON_FALLTHROUGH;
37686 default:
goto __pyx_L5_argtuple_error;
37688 kw_args = PyDict_Size(__pyx_kwds);
37689 switch (pos_args) {
37691 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
37692 else goto __pyx_L5_argtuple_error;
37693 CYTHON_FALLTHROUGH;
37695 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
37697 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 1); __PYX_ERR(0, 7090, __pyx_L3_error)
37699 CYTHON_FALLTHROUGH;
37701 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
37703 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 2); __PYX_ERR(0, 7090, __pyx_L3_error)
37705 CYTHON_FALLTHROUGH;
37707 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
37709 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 3); __PYX_ERR(0, 7090, __pyx_L3_error)
37711 CYTHON_FALLTHROUGH;
37713 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
37715 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 4); __PYX_ERR(0, 7090, __pyx_L3_error)
37717 CYTHON_FALLTHROUGH;
37719 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
37721 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 5); __PYX_ERR(0, 7090, __pyx_L3_error)
37723 CYTHON_FALLTHROUGH;
37725 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
37727 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 6); __PYX_ERR(0, 7090, __pyx_L3_error)
37729 CYTHON_FALLTHROUGH;
37731 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
37733 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 7); __PYX_ERR(0, 7090, __pyx_L3_error)
37735 CYTHON_FALLTHROUGH;
37737 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
37739 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 8); __PYX_ERR(0, 7090, __pyx_L3_error)
37741 CYTHON_FALLTHROUGH;
37743 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
37745 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 9); __PYX_ERR(0, 7090, __pyx_L3_error)
37747 CYTHON_FALLTHROUGH;
37749 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
37751 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 10); __PYX_ERR(0, 7090, __pyx_L3_error)
37753 CYTHON_FALLTHROUGH;
37755 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
37757 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 11); __PYX_ERR(0, 7090, __pyx_L3_error)
37759 CYTHON_FALLTHROUGH;
37761 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
37763 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 12); __PYX_ERR(0, 7090, __pyx_L3_error)
37765 CYTHON_FALLTHROUGH;
37767 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
37769 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 13); __PYX_ERR(0, 7090, __pyx_L3_error)
37771 CYTHON_FALLTHROUGH;
37773 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
37775 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 14); __PYX_ERR(0, 7090, __pyx_L3_error)
37777 CYTHON_FALLTHROUGH;
37779 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
37781 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 15); __PYX_ERR(0, 7090, __pyx_L3_error)
37783 CYTHON_FALLTHROUGH;
37785 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
37787 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 16); __PYX_ERR(0, 7090, __pyx_L3_error)
37789 CYTHON_FALLTHROUGH;
37791 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
37793 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 17); __PYX_ERR(0, 7090, __pyx_L3_error)
37795 CYTHON_FALLTHROUGH;
37797 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
37799 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 18); __PYX_ERR(0, 7090, __pyx_L3_error)
37801 CYTHON_FALLTHROUGH;
37803 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
37805 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 19); __PYX_ERR(0, 7090, __pyx_L3_error)
37807 CYTHON_FALLTHROUGH;
37809 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
37811 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 20); __PYX_ERR(0, 7090, __pyx_L3_error)
37813 CYTHON_FALLTHROUGH;
37815 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
37817 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 21); __PYX_ERR(0, 7090, __pyx_L3_error)
37819 CYTHON_FALLTHROUGH;
37821 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
37823 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 22); __PYX_ERR(0, 7090, __pyx_L3_error)
37825 CYTHON_FALLTHROUGH;
37827 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
37829 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 23); __PYX_ERR(0, 7090, __pyx_L3_error)
37831 CYTHON_FALLTHROUGH;
37833 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
37835 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 24); __PYX_ERR(0, 7090, __pyx_L3_error)
37837 CYTHON_FALLTHROUGH;
37839 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
37841 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 25); __PYX_ERR(0, 7090, __pyx_L3_error)
37843 CYTHON_FALLTHROUGH;
37845 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
37847 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 26); __PYX_ERR(0, 7090, __pyx_L3_error)
37849 CYTHON_FALLTHROUGH;
37851 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_de)) != 0)) kw_args--;
37853 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 27); __PYX_ERR(0, 7090, __pyx_L3_error)
37855 CYTHON_FALLTHROUGH;
37857 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
37859 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 28); __PYX_ERR(0, 7090, __pyx_L3_error)
37861 CYTHON_FALLTHROUGH;
37863 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_dk)) != 0)) kw_args--;
37865 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 29); __PYX_ERR(0, 7090, __pyx_L3_error)
37867 CYTHON_FALLTHROUGH;
37869 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
37871 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 30); __PYX_ERR(0, 7090, __pyx_L3_error)
37873 CYTHON_FALLTHROUGH;
37875 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
37877 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 31); __PYX_ERR(0, 7090, __pyx_L3_error)
37879 CYTHON_FALLTHROUGH;
37881 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
37883 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 32); __PYX_ERR(0, 7090, __pyx_L3_error)
37885 CYTHON_FALLTHROUGH;
37887 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_de)) != 0)) kw_args--;
37889 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 33); __PYX_ERR(0, 7090, __pyx_L3_error)
37891 CYTHON_FALLTHROUGH;
37893 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
37895 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 34); __PYX_ERR(0, 7090, __pyx_L3_error)
37897 CYTHON_FALLTHROUGH;
37899 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_dk)) != 0)) kw_args--;
37901 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 35); __PYX_ERR(0, 7090, __pyx_L3_error)
37903 CYTHON_FALLTHROUGH;
37905 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
37907 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, 36); __PYX_ERR(0, 7090, __pyx_L3_error)
37910 if (unlikely(kw_args > 0)) {
37911 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_3D_Evaluate") < 0)) __PYX_ERR(0, 7090, __pyx_L3_error)
37913 }
else if (PyTuple_GET_SIZE(__pyx_args) != 37) {
37914 goto __pyx_L5_argtuple_error;
37916 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37917 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37918 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37919 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37920 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37921 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37922 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37923 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37924 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37925 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37926 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37927 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37928 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37929 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
37930 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
37931 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
37932 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
37933 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
37934 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
37935 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
37936 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
37937 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
37938 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
37939 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
37940 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
37941 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
37942 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
37943 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
37944 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
37945 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
37946 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
37947 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
37948 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
37949 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
37950 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
37951 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
37952 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
37954 __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_k == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7090, __pyx_L3_error)
37955 __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_sigma_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7091, __pyx_L3_error)
37956 __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7092, __pyx_L3_error)
37957 __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_c_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7093, __pyx_L3_error)
37958 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7094, __pyx_L3_error)
37959 __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_c_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7095, __pyx_L3_error)
37960 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7096, __pyx_L3_error)
37961 __pyx_v_velocity = ((PyArrayObject *)values[7]);
37962 __pyx_v_gradu = ((PyArrayObject *)values[8]);
37963 __pyx_v_gradv = ((PyArrayObject *)values[9]);
37964 __pyx_v_gradw = ((PyArrayObject *)values[10]);
37965 __pyx_v_k = ((PyArrayObject *)values[11]);
37966 __pyx_v_epsilon = ((PyArrayObject *)values[12]);
37967 __pyx_v_m_k = ((PyArrayObject *)values[13]);
37968 __pyx_v_dm_k = ((PyArrayObject *)values[14]);
37969 __pyx_v_m_e = ((PyArrayObject *)values[15]);
37970 __pyx_v_dm_e = ((PyArrayObject *)values[16]);
37971 __pyx_v_phi_k = ((PyArrayObject *)values[17]);
37972 __pyx_v_dphi_k = ((PyArrayObject *)values[18]);
37973 __pyx_v_phi_e = ((PyArrayObject *)values[19]);
37974 __pyx_v_dphi_e = ((PyArrayObject *)values[20]);
37975 __pyx_v_f_k = ((PyArrayObject *)values[21]);
37976 __pyx_v_df_k = ((PyArrayObject *)values[22]);
37977 __pyx_v_f_e = ((PyArrayObject *)values[23]);
37978 __pyx_v_df_e = ((PyArrayObject *)values[24]);
37979 __pyx_v_a_k = ((PyArrayObject *)values[25]);
37980 __pyx_v_da_k_dk = ((PyArrayObject *)values[26]);
37981 __pyx_v_da_k_de = ((PyArrayObject *)values[27]);
37982 __pyx_v_a_e = ((PyArrayObject *)values[28]);
37983 __pyx_v_da_e_dk = ((PyArrayObject *)values[29]);
37984 __pyx_v_da_e_de = ((PyArrayObject *)values[30]);
37985 __pyx_v_r_k = ((PyArrayObject *)values[31]);
37986 __pyx_v_dr_k_dk = ((PyArrayObject *)values[32]);
37987 __pyx_v_dr_k_de = ((PyArrayObject *)values[33]);
37988 __pyx_v_r_e = ((PyArrayObject *)values[34]);
37989 __pyx_v_dr_e_dk = ((PyArrayObject *)values[35]);
37990 __pyx_v_dr_e_de = ((PyArrayObject *)values[36]);
37992 goto __pyx_L4_argument_unpacking_done;
37993 __pyx_L5_argtuple_error:;
37994 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_3D_Evaluate", 1, 37, 37, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7090, __pyx_L3_error)
37996 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
37997 __Pyx_RefNannyFinishContext();
37999 __pyx_L4_argument_unpacking_done:;
38000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 7097, __pyx_L1_error)
38001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7098, __pyx_L1_error)
38002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 7099, __pyx_L1_error)
38003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1,
"gradw", 0))) __PYX_ERR(0, 7100, __pyx_L1_error)
38004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7101, __pyx_L1_error)
38005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7102, __pyx_L1_error)
38006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1,
"m_k", 0))) __PYX_ERR(0, 7103, __pyx_L1_error)
38007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1,
"dm_k", 0))) __PYX_ERR(0, 7104, __pyx_L1_error)
38008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 7105, __pyx_L1_error)
38009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 7106, __pyx_L1_error)
38010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1,
"phi_k", 0))) __PYX_ERR(0, 7107, __pyx_L1_error)
38011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1,
"dphi_k", 0))) __PYX_ERR(0, 7108, __pyx_L1_error)
38012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1,
"phi_e", 0))) __PYX_ERR(0, 7109, __pyx_L1_error)
38013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1,
"dphi_e", 0))) __PYX_ERR(0, 7110, __pyx_L1_error)
38014 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1,
"f_k", 0))) __PYX_ERR(0, 7111, __pyx_L1_error)
38015 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1,
"df_k", 0))) __PYX_ERR(0, 7112, __pyx_L1_error)
38016 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 7113, __pyx_L1_error)
38017 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 7114, __pyx_L1_error)
38018 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1,
"a_k", 0))) __PYX_ERR(0, 7115, __pyx_L1_error)
38019 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_k_dk", 0))) __PYX_ERR(0, 7116, __pyx_L1_error)
38020 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_de), __pyx_ptype_5numpy_ndarray, 1,
"da_k_de", 0))) __PYX_ERR(0, 7117, __pyx_L1_error)
38021 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 7118, __pyx_L1_error)
38022 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_e_dk", 0))) __PYX_ERR(0, 7119, __pyx_L1_error)
38023 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1,
"da_e_de", 0))) __PYX_ERR(0, 7120, __pyx_L1_error)
38024 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1,
"r_k", 0))) __PYX_ERR(0, 7121, __pyx_L1_error)
38025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_dk", 0))) __PYX_ERR(0, 7122, __pyx_L1_error)
38026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_de", 0))) __PYX_ERR(0, 7123, __pyx_L1_error)
38027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 7124, __pyx_L1_error)
38028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_dk", 0))) __PYX_ERR(0, 7125, __pyx_L1_error)
38029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 7126, __pyx_L1_error)
38030 __pyx_r = __pyx_pf_22ctransportCoefficients_186kEpsilon_3D_Evaluate(__pyx_self, __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_da_k_de, __pyx_v_a_e, __pyx_v_da_e_dk, __pyx_v_da_e_de, __pyx_v_r_k, __pyx_v_dr_k_dk, __pyx_v_dr_k_de, __pyx_v_r_e, __pyx_v_dr_e_dk, __pyx_v_dr_e_de);
38037 __Pyx_RefNannyFinishContext();
38041 static PyObject *__pyx_pf_22ctransportCoefficients_186kEpsilon_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_da_k_de, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_dk, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk, PyArrayObject *__pyx_v_dr_k_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_dk, PyArrayObject *__pyx_v_dr_e_de) {
38042 PyObject *__pyx_r = NULL;
38043 __Pyx_RefNannyDeclarations
38044 PyObject *__pyx_t_1 = NULL;
38046 int __pyx_lineno = 0;
38047 const char *__pyx_filename = NULL;
38048 int __pyx_clineno = 0;
38049 __Pyx_RefNannySetupContext(
"kEpsilon_3D_Evaluate", 0);
38058 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7127, __pyx_L1_error)
38059 __Pyx_GOTREF(__pyx_t_1);
38060 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7127, __pyx_L1_error)
38061 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38070 kEpsilon_3D_Evaluate(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_gradw->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_k->data), ((
double *)__pyx_v_dm_k->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_phi_k->data), ((
double *)__pyx_v_dphi_k->data), ((
double *)__pyx_v_phi_e->data), ((
double *)__pyx_v_dphi_e->data), ((
double *)__pyx_v_f_k->data), ((
double *)__pyx_v_df_k->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_k->data), ((
double *)__pyx_v_da_k_dk->data), ((
double *)__pyx_v_da_k_de->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_da_e_dk->data), ((
double *)__pyx_v_da_e_de->data), ((
double *)__pyx_v_r_k->data), ((
double *)__pyx_v_dr_k_dk->data), ((
double *)__pyx_v_dr_k_de->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_dk->data), ((
double *)__pyx_v_dr_e_de->data));
38081 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38084 __Pyx_XDECREF(__pyx_t_1);
38085 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
38088 __Pyx_XGIVEREF(__pyx_r);
38089 __Pyx_RefNannyFinishContext();
38102 static PyObject *__pyx_pw_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38103 static PyMethodDef __pyx_mdef_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd = {
"kEpsilon_k_2D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
38104 static PyObject *__pyx_pw_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38105 double __pyx_v_sigma_k;
38106 double __pyx_v_c_mu;
38108 PyArrayObject *__pyx_v_velocity = 0;
38109 PyArrayObject *__pyx_v_gradu = 0;
38110 PyArrayObject *__pyx_v_gradv = 0;
38111 PyArrayObject *__pyx_v_k = 0;
38112 PyArrayObject *__pyx_v_epsilon = 0;
38113 PyArrayObject *__pyx_v_m_k = 0;
38114 PyArrayObject *__pyx_v_dm_k = 0;
38115 PyArrayObject *__pyx_v_phi_k = 0;
38116 PyArrayObject *__pyx_v_dphi_k = 0;
38117 PyArrayObject *__pyx_v_f_k = 0;
38118 PyArrayObject *__pyx_v_df_k = 0;
38119 PyArrayObject *__pyx_v_a_k = 0;
38120 PyArrayObject *__pyx_v_da_k_dk = 0;
38121 PyArrayObject *__pyx_v_r_k = 0;
38122 PyArrayObject *__pyx_v_dr_k_dk = 0;
38123 int __pyx_lineno = 0;
38124 const char *__pyx_filename = NULL;
38125 int __pyx_clineno = 0;
38126 PyObject *__pyx_r = 0;
38127 __Pyx_RefNannyDeclarations
38128 __Pyx_RefNannySetupContext(
"kEpsilon_k_2D_Evaluate_sd (wrapper)", 0);
38130 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_c_mu,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,0};
38131 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
38132 if (unlikely(__pyx_kwds)) {
38133 Py_ssize_t kw_args;
38134 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38135 switch (pos_args) {
38136 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38137 CYTHON_FALLTHROUGH;
38138 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38139 CYTHON_FALLTHROUGH;
38140 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38141 CYTHON_FALLTHROUGH;
38142 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38143 CYTHON_FALLTHROUGH;
38144 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38145 CYTHON_FALLTHROUGH;
38146 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38147 CYTHON_FALLTHROUGH;
38148 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38149 CYTHON_FALLTHROUGH;
38150 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38151 CYTHON_FALLTHROUGH;
38152 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38153 CYTHON_FALLTHROUGH;
38154 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38155 CYTHON_FALLTHROUGH;
38156 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38157 CYTHON_FALLTHROUGH;
38158 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38159 CYTHON_FALLTHROUGH;
38160 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38161 CYTHON_FALLTHROUGH;
38162 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38163 CYTHON_FALLTHROUGH;
38164 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38165 CYTHON_FALLTHROUGH;
38166 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38167 CYTHON_FALLTHROUGH;
38168 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38169 CYTHON_FALLTHROUGH;
38170 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38171 CYTHON_FALLTHROUGH;
38173 default:
goto __pyx_L5_argtuple_error;
38175 kw_args = PyDict_Size(__pyx_kwds);
38176 switch (pos_args) {
38178 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
38179 else goto __pyx_L5_argtuple_error;
38180 CYTHON_FALLTHROUGH;
38182 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
38184 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 1); __PYX_ERR(0, 7166, __pyx_L3_error)
38186 CYTHON_FALLTHROUGH;
38188 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
38190 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 2); __PYX_ERR(0, 7166, __pyx_L3_error)
38192 CYTHON_FALLTHROUGH;
38194 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
38196 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 3); __PYX_ERR(0, 7166, __pyx_L3_error)
38198 CYTHON_FALLTHROUGH;
38200 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
38202 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 4); __PYX_ERR(0, 7166, __pyx_L3_error)
38204 CYTHON_FALLTHROUGH;
38206 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
38208 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 5); __PYX_ERR(0, 7166, __pyx_L3_error)
38210 CYTHON_FALLTHROUGH;
38212 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
38214 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 6); __PYX_ERR(0, 7166, __pyx_L3_error)
38216 CYTHON_FALLTHROUGH;
38218 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
38220 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 7); __PYX_ERR(0, 7166, __pyx_L3_error)
38222 CYTHON_FALLTHROUGH;
38224 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
38226 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 8); __PYX_ERR(0, 7166, __pyx_L3_error)
38228 CYTHON_FALLTHROUGH;
38230 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
38232 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 9); __PYX_ERR(0, 7166, __pyx_L3_error)
38234 CYTHON_FALLTHROUGH;
38236 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
38238 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 10); __PYX_ERR(0, 7166, __pyx_L3_error)
38240 CYTHON_FALLTHROUGH;
38242 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
38244 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 11); __PYX_ERR(0, 7166, __pyx_L3_error)
38246 CYTHON_FALLTHROUGH;
38248 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
38250 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 12); __PYX_ERR(0, 7166, __pyx_L3_error)
38252 CYTHON_FALLTHROUGH;
38254 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
38256 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 13); __PYX_ERR(0, 7166, __pyx_L3_error)
38258 CYTHON_FALLTHROUGH;
38260 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
38262 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 14); __PYX_ERR(0, 7166, __pyx_L3_error)
38264 CYTHON_FALLTHROUGH;
38266 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
38268 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 15); __PYX_ERR(0, 7166, __pyx_L3_error)
38270 CYTHON_FALLTHROUGH;
38272 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
38274 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 16); __PYX_ERR(0, 7166, __pyx_L3_error)
38276 CYTHON_FALLTHROUGH;
38278 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
38280 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, 17); __PYX_ERR(0, 7166, __pyx_L3_error)
38283 if (unlikely(kw_args > 0)) {
38284 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_k_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 7166, __pyx_L3_error)
38286 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
38287 goto __pyx_L5_argtuple_error;
38289 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38290 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38291 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38292 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38293 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38294 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38295 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38296 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38297 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38298 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38299 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38300 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38301 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38302 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38303 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38304 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38305 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38306 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38308 __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_k == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7166, __pyx_L3_error)
38309 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7167, __pyx_L3_error)
38310 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7168, __pyx_L3_error)
38311 __pyx_v_velocity = ((PyArrayObject *)values[3]);
38312 __pyx_v_gradu = ((PyArrayObject *)values[4]);
38313 __pyx_v_gradv = ((PyArrayObject *)values[5]);
38314 __pyx_v_k = ((PyArrayObject *)values[6]);
38315 __pyx_v_epsilon = ((PyArrayObject *)values[7]);
38316 __pyx_v_m_k = ((PyArrayObject *)values[8]);
38317 __pyx_v_dm_k = ((PyArrayObject *)values[9]);
38318 __pyx_v_phi_k = ((PyArrayObject *)values[10]);
38319 __pyx_v_dphi_k = ((PyArrayObject *)values[11]);
38320 __pyx_v_f_k = ((PyArrayObject *)values[12]);
38321 __pyx_v_df_k = ((PyArrayObject *)values[13]);
38322 __pyx_v_a_k = ((PyArrayObject *)values[14]);
38323 __pyx_v_da_k_dk = ((PyArrayObject *)values[15]);
38324 __pyx_v_r_k = ((PyArrayObject *)values[16]);
38325 __pyx_v_dr_k_dk = ((PyArrayObject *)values[17]);
38327 goto __pyx_L4_argument_unpacking_done;
38328 __pyx_L5_argtuple_error:;
38329 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_2D_Evaluate_sd", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7166, __pyx_L3_error)
38331 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_k_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38332 __Pyx_RefNannyFinishContext();
38334 __pyx_L4_argument_unpacking_done:;
38335 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 7169, __pyx_L1_error)
38336 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7170, __pyx_L1_error)
38337 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 7171, __pyx_L1_error)
38338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7172, __pyx_L1_error)
38339 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7173, __pyx_L1_error)
38340 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1,
"m_k", 0))) __PYX_ERR(0, 7174, __pyx_L1_error)
38341 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1,
"dm_k", 0))) __PYX_ERR(0, 7175, __pyx_L1_error)
38342 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1,
"phi_k", 0))) __PYX_ERR(0, 7176, __pyx_L1_error)
38343 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1,
"dphi_k", 0))) __PYX_ERR(0, 7177, __pyx_L1_error)
38344 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1,
"f_k", 0))) __PYX_ERR(0, 7178, __pyx_L1_error)
38345 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1,
"df_k", 0))) __PYX_ERR(0, 7179, __pyx_L1_error)
38346 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1,
"a_k", 0))) __PYX_ERR(0, 7180, __pyx_L1_error)
38347 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_k_dk", 0))) __PYX_ERR(0, 7181, __pyx_L1_error)
38348 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1,
"r_k", 0))) __PYX_ERR(0, 7182, __pyx_L1_error)
38349 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_dk", 0))) __PYX_ERR(0, 7183, __pyx_L1_error)
38350 __pyx_r = __pyx_pf_22ctransportCoefficients_188kEpsilon_k_2D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_r_k, __pyx_v_dr_k_dk);
38357 __Pyx_RefNannyFinishContext();
38361 static PyObject *__pyx_pf_22ctransportCoefficients_188kEpsilon_k_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_c_mu,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk) {
38362 PyObject *__pyx_r = NULL;
38363 __Pyx_RefNannyDeclarations
38364 PyObject *__pyx_t_1 = NULL;
38366 int __pyx_lineno = 0;
38367 const char *__pyx_filename = NULL;
38368 int __pyx_clineno = 0;
38369 __Pyx_RefNannySetupContext(
"kEpsilon_k_2D_Evaluate_sd", 0);
38378 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7184, __pyx_L1_error)
38379 __Pyx_GOTREF(__pyx_t_1);
38380 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7184, __pyx_L1_error)
38381 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38390 kEpsilon_k_2D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_k->data), ((
double *)__pyx_v_dm_k->data), ((
double *)__pyx_v_phi_k->data), ((
double *)__pyx_v_dphi_k->data), ((
double *)__pyx_v_f_k->data), ((
double *)__pyx_v_df_k->data), ((
double *)__pyx_v_a_k->data), ((
double *)__pyx_v_da_k_dk->data), ((
double *)__pyx_v_r_k->data), ((
double *)__pyx_v_dr_k_dk->data));
38401 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38404 __Pyx_XDECREF(__pyx_t_1);
38405 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_k_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38408 __Pyx_XGIVEREF(__pyx_r);
38409 __Pyx_RefNannyFinishContext();
38422 static PyObject *__pyx_pw_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38423 static PyMethodDef __pyx_mdef_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd = {
"kEpsilon_epsilon_2D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
38424 static PyObject *__pyx_pw_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38425 double __pyx_v_sigma_e;
38426 double __pyx_v_c_1;
38427 double __pyx_v_c_2;
38428 double __pyx_v_c_mu;
38429 double __pyx_v_c_e;
38431 PyArrayObject *__pyx_v_velocity = 0;
38432 PyArrayObject *__pyx_v_gradu = 0;
38433 PyArrayObject *__pyx_v_gradv = 0;
38434 PyArrayObject *__pyx_v_k = 0;
38435 PyArrayObject *__pyx_v_epsilon = 0;
38436 PyArrayObject *__pyx_v_m_e = 0;
38437 PyArrayObject *__pyx_v_dm_e = 0;
38438 PyArrayObject *__pyx_v_phi_e = 0;
38439 PyArrayObject *__pyx_v_dphi_e = 0;
38440 PyArrayObject *__pyx_v_f_e = 0;
38441 PyArrayObject *__pyx_v_df_e = 0;
38442 PyArrayObject *__pyx_v_a_e = 0;
38443 PyArrayObject *__pyx_v_da_e_de = 0;
38444 PyArrayObject *__pyx_v_r_e = 0;
38445 PyArrayObject *__pyx_v_dr_e_de = 0;
38446 int __pyx_lineno = 0;
38447 const char *__pyx_filename = NULL;
38448 int __pyx_clineno = 0;
38449 PyObject *__pyx_r = 0;
38450 __Pyx_RefNannyDeclarations
38451 __Pyx_RefNannySetupContext(
"kEpsilon_epsilon_2D_Evaluate_sd (wrapper)", 0);
38453 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_e,&__pyx_n_s_da_e_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_de,0};
38454 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
38455 if (unlikely(__pyx_kwds)) {
38456 Py_ssize_t kw_args;
38457 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38458 switch (pos_args) {
38459 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
38460 CYTHON_FALLTHROUGH;
38461 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
38462 CYTHON_FALLTHROUGH;
38463 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38464 CYTHON_FALLTHROUGH;
38465 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38466 CYTHON_FALLTHROUGH;
38467 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38468 CYTHON_FALLTHROUGH;
38469 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38470 CYTHON_FALLTHROUGH;
38471 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38472 CYTHON_FALLTHROUGH;
38473 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38474 CYTHON_FALLTHROUGH;
38475 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38476 CYTHON_FALLTHROUGH;
38477 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38478 CYTHON_FALLTHROUGH;
38479 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38480 CYTHON_FALLTHROUGH;
38481 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38482 CYTHON_FALLTHROUGH;
38483 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38484 CYTHON_FALLTHROUGH;
38485 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38486 CYTHON_FALLTHROUGH;
38487 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38488 CYTHON_FALLTHROUGH;
38489 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38490 CYTHON_FALLTHROUGH;
38491 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38492 CYTHON_FALLTHROUGH;
38493 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38494 CYTHON_FALLTHROUGH;
38495 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38496 CYTHON_FALLTHROUGH;
38497 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38498 CYTHON_FALLTHROUGH;
38499 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38500 CYTHON_FALLTHROUGH;
38502 default:
goto __pyx_L5_argtuple_error;
38504 kw_args = PyDict_Size(__pyx_kwds);
38505 switch (pos_args) {
38507 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
38508 else goto __pyx_L5_argtuple_error;
38509 CYTHON_FALLTHROUGH;
38511 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
38513 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 1); __PYX_ERR(0, 7204, __pyx_L3_error)
38515 CYTHON_FALLTHROUGH;
38517 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
38519 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 2); __PYX_ERR(0, 7204, __pyx_L3_error)
38521 CYTHON_FALLTHROUGH;
38523 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
38525 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 3); __PYX_ERR(0, 7204, __pyx_L3_error)
38527 CYTHON_FALLTHROUGH;
38529 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
38531 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 4); __PYX_ERR(0, 7204, __pyx_L3_error)
38533 CYTHON_FALLTHROUGH;
38535 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
38537 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 5); __PYX_ERR(0, 7204, __pyx_L3_error)
38539 CYTHON_FALLTHROUGH;
38541 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
38543 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 6); __PYX_ERR(0, 7204, __pyx_L3_error)
38545 CYTHON_FALLTHROUGH;
38547 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
38549 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 7); __PYX_ERR(0, 7204, __pyx_L3_error)
38551 CYTHON_FALLTHROUGH;
38553 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
38555 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 8); __PYX_ERR(0, 7204, __pyx_L3_error)
38557 CYTHON_FALLTHROUGH;
38559 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
38561 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 9); __PYX_ERR(0, 7204, __pyx_L3_error)
38563 CYTHON_FALLTHROUGH;
38565 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
38567 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 10); __PYX_ERR(0, 7204, __pyx_L3_error)
38569 CYTHON_FALLTHROUGH;
38571 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
38573 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 11); __PYX_ERR(0, 7204, __pyx_L3_error)
38575 CYTHON_FALLTHROUGH;
38577 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
38579 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 12); __PYX_ERR(0, 7204, __pyx_L3_error)
38581 CYTHON_FALLTHROUGH;
38583 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
38585 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 13); __PYX_ERR(0, 7204, __pyx_L3_error)
38587 CYTHON_FALLTHROUGH;
38589 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
38591 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 14); __PYX_ERR(0, 7204, __pyx_L3_error)
38593 CYTHON_FALLTHROUGH;
38595 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
38597 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 15); __PYX_ERR(0, 7204, __pyx_L3_error)
38599 CYTHON_FALLTHROUGH;
38601 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
38603 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 16); __PYX_ERR(0, 7204, __pyx_L3_error)
38605 CYTHON_FALLTHROUGH;
38607 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
38609 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 17); __PYX_ERR(0, 7204, __pyx_L3_error)
38611 CYTHON_FALLTHROUGH;
38613 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
38615 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 18); __PYX_ERR(0, 7204, __pyx_L3_error)
38617 CYTHON_FALLTHROUGH;
38619 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
38621 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 19); __PYX_ERR(0, 7204, __pyx_L3_error)
38623 CYTHON_FALLTHROUGH;
38625 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
38627 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, 20); __PYX_ERR(0, 7204, __pyx_L3_error)
38630 if (unlikely(kw_args > 0)) {
38631 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_epsilon_2D_Evaluate_sd") < 0)) __PYX_ERR(0, 7204, __pyx_L3_error)
38633 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
38634 goto __pyx_L5_argtuple_error;
38636 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38637 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38638 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38639 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38640 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38641 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38642 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38643 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38644 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38645 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38646 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38647 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38648 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38649 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38650 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38651 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38652 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38653 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38654 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38655 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
38656 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
38658 __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7204, __pyx_L3_error)
38659 __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7205, __pyx_L3_error)
38660 __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7206, __pyx_L3_error)
38661 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7207, __pyx_L3_error)
38662 __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_c_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7208, __pyx_L3_error)
38663 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7209, __pyx_L3_error)
38664 __pyx_v_velocity = ((PyArrayObject *)values[6]);
38665 __pyx_v_gradu = ((PyArrayObject *)values[7]);
38666 __pyx_v_gradv = ((PyArrayObject *)values[8]);
38667 __pyx_v_k = ((PyArrayObject *)values[9]);
38668 __pyx_v_epsilon = ((PyArrayObject *)values[10]);
38669 __pyx_v_m_e = ((PyArrayObject *)values[11]);
38670 __pyx_v_dm_e = ((PyArrayObject *)values[12]);
38671 __pyx_v_phi_e = ((PyArrayObject *)values[13]);
38672 __pyx_v_dphi_e = ((PyArrayObject *)values[14]);
38673 __pyx_v_f_e = ((PyArrayObject *)values[15]);
38674 __pyx_v_df_e = ((PyArrayObject *)values[16]);
38675 __pyx_v_a_e = ((PyArrayObject *)values[17]);
38676 __pyx_v_da_e_de = ((PyArrayObject *)values[18]);
38677 __pyx_v_r_e = ((PyArrayObject *)values[19]);
38678 __pyx_v_dr_e_de = ((PyArrayObject *)values[20]);
38680 goto __pyx_L4_argument_unpacking_done;
38681 __pyx_L5_argtuple_error:;
38682 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_2D_Evaluate_sd", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7204, __pyx_L3_error)
38684 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_epsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38685 __Pyx_RefNannyFinishContext();
38687 __pyx_L4_argument_unpacking_done:;
38688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 7210, __pyx_L1_error)
38689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7211, __pyx_L1_error)
38690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 7212, __pyx_L1_error)
38691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7213, __pyx_L1_error)
38692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7214, __pyx_L1_error)
38693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 7215, __pyx_L1_error)
38694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 7216, __pyx_L1_error)
38695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1,
"phi_e", 0))) __PYX_ERR(0, 7217, __pyx_L1_error)
38696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1,
"dphi_e", 0))) __PYX_ERR(0, 7218, __pyx_L1_error)
38697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 7219, __pyx_L1_error)
38698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 7220, __pyx_L1_error)
38699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 7221, __pyx_L1_error)
38700 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1,
"da_e_de", 0))) __PYX_ERR(0, 7222, __pyx_L1_error)
38701 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 7223, __pyx_L1_error)
38702 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 7224, __pyx_L1_error)
38703 __pyx_r = __pyx_pf_22ctransportCoefficients_190kEpsilon_epsilon_2D_Evaluate_sd(__pyx_self, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_e, __pyx_v_da_e_de, __pyx_v_r_e, __pyx_v_dr_e_de);
38710 __Pyx_RefNannyFinishContext();
38714 static PyObject *__pyx_pf_22ctransportCoefficients_190kEpsilon_epsilon_2D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de) {
38715 PyObject *__pyx_r = NULL;
38716 __Pyx_RefNannyDeclarations
38717 PyObject *__pyx_t_1 = NULL;
38719 int __pyx_lineno = 0;
38720 const char *__pyx_filename = NULL;
38721 int __pyx_clineno = 0;
38722 __Pyx_RefNannySetupContext(
"kEpsilon_epsilon_2D_Evaluate_sd", 0);
38731 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_epsilon), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7225, __pyx_L1_error)
38732 __Pyx_GOTREF(__pyx_t_1);
38733 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7225, __pyx_L1_error)
38734 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38743 kEpsilon_epsilon_2D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_e->dimensions[(__pyx_v_f_e->nd - 1)]), __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_phi_e->data), ((
double *)__pyx_v_dphi_e->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_da_e_de->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_de->data));
38754 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38757 __Pyx_XDECREF(__pyx_t_1);
38758 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_epsilon_2D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
38761 __Pyx_XGIVEREF(__pyx_r);
38762 __Pyx_RefNannyFinishContext();
38775 static PyObject *__pyx_pw_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38776 static PyMethodDef __pyx_mdef_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd = {
"kEpsilon_k_3D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
38777 static PyObject *__pyx_pw_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38778 double __pyx_v_sigma_k;
38779 double __pyx_v_c_mu;
38781 PyArrayObject *__pyx_v_velocity = 0;
38782 PyArrayObject *__pyx_v_gradu = 0;
38783 PyArrayObject *__pyx_v_gradv = 0;
38784 PyArrayObject *__pyx_v_gradw = 0;
38785 PyArrayObject *__pyx_v_k = 0;
38786 PyArrayObject *__pyx_v_epsilon = 0;
38787 PyArrayObject *__pyx_v_m_k = 0;
38788 PyArrayObject *__pyx_v_dm_k = 0;
38789 PyArrayObject *__pyx_v_phi_k = 0;
38790 PyArrayObject *__pyx_v_dphi_k = 0;
38791 PyArrayObject *__pyx_v_f_k = 0;
38792 PyArrayObject *__pyx_v_df_k = 0;
38793 PyArrayObject *__pyx_v_a_k = 0;
38794 PyArrayObject *__pyx_v_da_k_dk = 0;
38795 PyArrayObject *__pyx_v_r_k = 0;
38796 PyArrayObject *__pyx_v_dr_k_dk = 0;
38797 int __pyx_lineno = 0;
38798 const char *__pyx_filename = NULL;
38799 int __pyx_clineno = 0;
38800 PyObject *__pyx_r = 0;
38801 __Pyx_RefNannyDeclarations
38802 __Pyx_RefNannySetupContext(
"kEpsilon_k_3D_Evaluate_sd (wrapper)", 0);
38804 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_k,&__pyx_n_s_c_mu,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_k,&__pyx_n_s_dm_k,&__pyx_n_s_phi_k,&__pyx_n_s_dphi_k,&__pyx_n_s_f_k,&__pyx_n_s_df_k,&__pyx_n_s_a_k,&__pyx_n_s_da_k_dk,&__pyx_n_s_r_k,&__pyx_n_s_dr_k_dk,0};
38805 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
38806 if (unlikely(__pyx_kwds)) {
38807 Py_ssize_t kw_args;
38808 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38809 switch (pos_args) {
38810 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38811 CYTHON_FALLTHROUGH;
38812 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38813 CYTHON_FALLTHROUGH;
38814 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38815 CYTHON_FALLTHROUGH;
38816 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38817 CYTHON_FALLTHROUGH;
38818 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38819 CYTHON_FALLTHROUGH;
38820 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38821 CYTHON_FALLTHROUGH;
38822 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38823 CYTHON_FALLTHROUGH;
38824 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38825 CYTHON_FALLTHROUGH;
38826 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38827 CYTHON_FALLTHROUGH;
38828 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38829 CYTHON_FALLTHROUGH;
38830 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38831 CYTHON_FALLTHROUGH;
38832 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38833 CYTHON_FALLTHROUGH;
38834 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38835 CYTHON_FALLTHROUGH;
38836 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38837 CYTHON_FALLTHROUGH;
38838 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38839 CYTHON_FALLTHROUGH;
38840 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38841 CYTHON_FALLTHROUGH;
38842 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38843 CYTHON_FALLTHROUGH;
38844 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38845 CYTHON_FALLTHROUGH;
38846 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38847 CYTHON_FALLTHROUGH;
38849 default:
goto __pyx_L5_argtuple_error;
38851 kw_args = PyDict_Size(__pyx_kwds);
38852 switch (pos_args) {
38854 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_k)) != 0)) kw_args--;
38855 else goto __pyx_L5_argtuple_error;
38856 CYTHON_FALLTHROUGH;
38858 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
38860 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 1); __PYX_ERR(0, 7248, __pyx_L3_error)
38862 CYTHON_FALLTHROUGH;
38864 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
38866 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 2); __PYX_ERR(0, 7248, __pyx_L3_error)
38868 CYTHON_FALLTHROUGH;
38870 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
38872 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 3); __PYX_ERR(0, 7248, __pyx_L3_error)
38874 CYTHON_FALLTHROUGH;
38876 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
38878 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 4); __PYX_ERR(0, 7248, __pyx_L3_error)
38880 CYTHON_FALLTHROUGH;
38882 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
38884 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 5); __PYX_ERR(0, 7248, __pyx_L3_error)
38886 CYTHON_FALLTHROUGH;
38888 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
38890 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 6); __PYX_ERR(0, 7248, __pyx_L3_error)
38892 CYTHON_FALLTHROUGH;
38894 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
38896 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 7); __PYX_ERR(0, 7248, __pyx_L3_error)
38898 CYTHON_FALLTHROUGH;
38900 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
38902 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 8); __PYX_ERR(0, 7248, __pyx_L3_error)
38904 CYTHON_FALLTHROUGH;
38906 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_k)) != 0)) kw_args--;
38908 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 9); __PYX_ERR(0, 7248, __pyx_L3_error)
38910 CYTHON_FALLTHROUGH;
38912 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_k)) != 0)) kw_args--;
38914 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 10); __PYX_ERR(0, 7248, __pyx_L3_error)
38916 CYTHON_FALLTHROUGH;
38918 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_k)) != 0)) kw_args--;
38920 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 11); __PYX_ERR(0, 7248, __pyx_L3_error)
38922 CYTHON_FALLTHROUGH;
38924 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_k)) != 0)) kw_args--;
38926 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 12); __PYX_ERR(0, 7248, __pyx_L3_error)
38928 CYTHON_FALLTHROUGH;
38930 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_k)) != 0)) kw_args--;
38932 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 13); __PYX_ERR(0, 7248, __pyx_L3_error)
38934 CYTHON_FALLTHROUGH;
38936 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_k)) != 0)) kw_args--;
38938 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 14); __PYX_ERR(0, 7248, __pyx_L3_error)
38940 CYTHON_FALLTHROUGH;
38942 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_k)) != 0)) kw_args--;
38944 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 15); __PYX_ERR(0, 7248, __pyx_L3_error)
38946 CYTHON_FALLTHROUGH;
38948 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_k_dk)) != 0)) kw_args--;
38950 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 16); __PYX_ERR(0, 7248, __pyx_L3_error)
38952 CYTHON_FALLTHROUGH;
38954 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_k)) != 0)) kw_args--;
38956 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 17); __PYX_ERR(0, 7248, __pyx_L3_error)
38958 CYTHON_FALLTHROUGH;
38960 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_k_dk)) != 0)) kw_args--;
38962 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, 18); __PYX_ERR(0, 7248, __pyx_L3_error)
38965 if (unlikely(kw_args > 0)) {
38966 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_k_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 7248, __pyx_L3_error)
38968 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
38969 goto __pyx_L5_argtuple_error;
38971 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38972 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38973 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38974 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38975 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38976 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38977 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38978 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
38979 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
38980 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
38981 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
38982 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
38983 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
38984 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
38985 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
38986 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
38987 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
38988 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
38989 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
38991 __pyx_v_sigma_k = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_k == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7248, __pyx_L3_error)
38992 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7249, __pyx_L3_error)
38993 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7250, __pyx_L3_error)
38994 __pyx_v_velocity = ((PyArrayObject *)values[3]);
38995 __pyx_v_gradu = ((PyArrayObject *)values[4]);
38996 __pyx_v_gradv = ((PyArrayObject *)values[5]);
38997 __pyx_v_gradw = ((PyArrayObject *)values[6]);
38998 __pyx_v_k = ((PyArrayObject *)values[7]);
38999 __pyx_v_epsilon = ((PyArrayObject *)values[8]);
39000 __pyx_v_m_k = ((PyArrayObject *)values[9]);
39001 __pyx_v_dm_k = ((PyArrayObject *)values[10]);
39002 __pyx_v_phi_k = ((PyArrayObject *)values[11]);
39003 __pyx_v_dphi_k = ((PyArrayObject *)values[12]);
39004 __pyx_v_f_k = ((PyArrayObject *)values[13]);
39005 __pyx_v_df_k = ((PyArrayObject *)values[14]);
39006 __pyx_v_a_k = ((PyArrayObject *)values[15]);
39007 __pyx_v_da_k_dk = ((PyArrayObject *)values[16]);
39008 __pyx_v_r_k = ((PyArrayObject *)values[17]);
39009 __pyx_v_dr_k_dk = ((PyArrayObject *)values[18]);
39011 goto __pyx_L4_argument_unpacking_done;
39012 __pyx_L5_argtuple_error:;
39013 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_k_3D_Evaluate_sd", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7248, __pyx_L3_error)
39015 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_k_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39016 __Pyx_RefNannyFinishContext();
39018 __pyx_L4_argument_unpacking_done:;
39019 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 7251, __pyx_L1_error)
39020 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7252, __pyx_L1_error)
39021 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 7253, __pyx_L1_error)
39022 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1,
"gradw", 0))) __PYX_ERR(0, 7254, __pyx_L1_error)
39023 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7255, __pyx_L1_error)
39024 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7256, __pyx_L1_error)
39025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_k), __pyx_ptype_5numpy_ndarray, 1,
"m_k", 0))) __PYX_ERR(0, 7257, __pyx_L1_error)
39026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_k), __pyx_ptype_5numpy_ndarray, 1,
"dm_k", 0))) __PYX_ERR(0, 7258, __pyx_L1_error)
39027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_k), __pyx_ptype_5numpy_ndarray, 1,
"phi_k", 0))) __PYX_ERR(0, 7259, __pyx_L1_error)
39028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_k), __pyx_ptype_5numpy_ndarray, 1,
"dphi_k", 0))) __PYX_ERR(0, 7260, __pyx_L1_error)
39029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_k), __pyx_ptype_5numpy_ndarray, 1,
"f_k", 0))) __PYX_ERR(0, 7261, __pyx_L1_error)
39030 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_k), __pyx_ptype_5numpy_ndarray, 1,
"df_k", 0))) __PYX_ERR(0, 7262, __pyx_L1_error)
39031 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_k), __pyx_ptype_5numpy_ndarray, 1,
"a_k", 0))) __PYX_ERR(0, 7263, __pyx_L1_error)
39032 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"da_k_dk", 0))) __PYX_ERR(0, 7264, __pyx_L1_error)
39033 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_k), __pyx_ptype_5numpy_ndarray, 1,
"r_k", 0))) __PYX_ERR(0, 7265, __pyx_L1_error)
39034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_k_dk), __pyx_ptype_5numpy_ndarray, 1,
"dr_k_dk", 0))) __PYX_ERR(0, 7266, __pyx_L1_error)
39035 __pyx_r = __pyx_pf_22ctransportCoefficients_192kEpsilon_k_3D_Evaluate_sd(__pyx_self, __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_k, __pyx_v_dm_k, __pyx_v_phi_k, __pyx_v_dphi_k, __pyx_v_f_k, __pyx_v_df_k, __pyx_v_a_k, __pyx_v_da_k_dk, __pyx_v_r_k, __pyx_v_dr_k_dk);
39042 __Pyx_RefNannyFinishContext();
39046 static PyObject *__pyx_pf_22ctransportCoefficients_192kEpsilon_k_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_k,
double __pyx_v_c_mu,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_k, PyArrayObject *__pyx_v_dm_k, PyArrayObject *__pyx_v_phi_k, PyArrayObject *__pyx_v_dphi_k, PyArrayObject *__pyx_v_f_k, PyArrayObject *__pyx_v_df_k, PyArrayObject *__pyx_v_a_k, PyArrayObject *__pyx_v_da_k_dk, PyArrayObject *__pyx_v_r_k, PyArrayObject *__pyx_v_dr_k_dk) {
39047 PyObject *__pyx_r = NULL;
39048 __Pyx_RefNannyDeclarations
39049 PyObject *__pyx_t_1 = NULL;
39051 int __pyx_lineno = 0;
39052 const char *__pyx_filename = NULL;
39053 int __pyx_clineno = 0;
39054 __Pyx_RefNannySetupContext(
"kEpsilon_k_3D_Evaluate_sd", 0);
39063 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7267, __pyx_L1_error)
39064 __Pyx_GOTREF(__pyx_t_1);
39065 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7267, __pyx_L1_error)
39066 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39075 kEpsilon_k_3D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_k->dimensions[(__pyx_v_f_k->nd - 1)]), __pyx_v_sigma_k, __pyx_v_c_mu, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_gradw->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_k->data), ((
double *)__pyx_v_dm_k->data), ((
double *)__pyx_v_phi_k->data), ((
double *)__pyx_v_dphi_k->data), ((
double *)__pyx_v_f_k->data), ((
double *)__pyx_v_df_k->data), ((
double *)__pyx_v_a_k->data), ((
double *)__pyx_v_da_k_dk->data), ((
double *)__pyx_v_r_k->data), ((
double *)__pyx_v_dr_k_dk->data));
39086 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39089 __Pyx_XDECREF(__pyx_t_1);
39090 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_k_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39093 __Pyx_XGIVEREF(__pyx_r);
39094 __Pyx_RefNannyFinishContext();
39107 static PyObject *__pyx_pw_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39108 static PyMethodDef __pyx_mdef_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd = {
"kEpsilon_epsilon_3D_Evaluate_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd, METH_VARARGS|METH_KEYWORDS, 0};
39109 static PyObject *__pyx_pw_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39110 double __pyx_v_sigma_e;
39111 double __pyx_v_c_1;
39112 double __pyx_v_c_2;
39113 double __pyx_v_c_mu;
39114 double __pyx_v_c_e;
39116 PyArrayObject *__pyx_v_velocity = 0;
39117 PyArrayObject *__pyx_v_gradu = 0;
39118 PyArrayObject *__pyx_v_gradv = 0;
39119 PyArrayObject *__pyx_v_gradw = 0;
39120 PyArrayObject *__pyx_v_k = 0;
39121 PyArrayObject *__pyx_v_epsilon = 0;
39122 PyArrayObject *__pyx_v_m_e = 0;
39123 PyArrayObject *__pyx_v_dm_e = 0;
39124 PyArrayObject *__pyx_v_phi_e = 0;
39125 PyArrayObject *__pyx_v_dphi_e = 0;
39126 PyArrayObject *__pyx_v_f_e = 0;
39127 PyArrayObject *__pyx_v_df_e = 0;
39128 PyArrayObject *__pyx_v_a_e = 0;
39129 PyArrayObject *__pyx_v_da_e_de = 0;
39130 PyArrayObject *__pyx_v_r_e = 0;
39131 PyArrayObject *__pyx_v_dr_e_de = 0;
39132 int __pyx_lineno = 0;
39133 const char *__pyx_filename = NULL;
39134 int __pyx_clineno = 0;
39135 PyObject *__pyx_r = 0;
39136 __Pyx_RefNannyDeclarations
39137 __Pyx_RefNannySetupContext(
"kEpsilon_epsilon_3D_Evaluate_sd (wrapper)", 0);
39139 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma_e,&__pyx_n_s_c_1,&__pyx_n_s_c_2,&__pyx_n_s_c_mu,&__pyx_n_s_c_e,&__pyx_n_s_nu,&__pyx_n_s_velocity,&__pyx_n_s_gradu,&__pyx_n_s_gradv,&__pyx_n_s_gradw,&__pyx_n_s_k,&__pyx_n_s_epsilon,&__pyx_n_s_m_e,&__pyx_n_s_dm_e,&__pyx_n_s_phi_e,&__pyx_n_s_dphi_e,&__pyx_n_s_f_e,&__pyx_n_s_df_e,&__pyx_n_s_a_e,&__pyx_n_s_da_e_de,&__pyx_n_s_r_e,&__pyx_n_s_dr_e_de,0};
39140 PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
39141 if (unlikely(__pyx_kwds)) {
39142 Py_ssize_t kw_args;
39143 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39144 switch (pos_args) {
39145 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
39146 CYTHON_FALLTHROUGH;
39147 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
39148 CYTHON_FALLTHROUGH;
39149 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
39150 CYTHON_FALLTHROUGH;
39151 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
39152 CYTHON_FALLTHROUGH;
39153 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
39154 CYTHON_FALLTHROUGH;
39155 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
39156 CYTHON_FALLTHROUGH;
39157 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
39158 CYTHON_FALLTHROUGH;
39159 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
39160 CYTHON_FALLTHROUGH;
39161 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
39162 CYTHON_FALLTHROUGH;
39163 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
39164 CYTHON_FALLTHROUGH;
39165 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39166 CYTHON_FALLTHROUGH;
39167 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39168 CYTHON_FALLTHROUGH;
39169 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39170 CYTHON_FALLTHROUGH;
39171 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39172 CYTHON_FALLTHROUGH;
39173 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39174 CYTHON_FALLTHROUGH;
39175 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39176 CYTHON_FALLTHROUGH;
39177 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39178 CYTHON_FALLTHROUGH;
39179 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39180 CYTHON_FALLTHROUGH;
39181 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39182 CYTHON_FALLTHROUGH;
39183 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39184 CYTHON_FALLTHROUGH;
39185 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39186 CYTHON_FALLTHROUGH;
39187 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39188 CYTHON_FALLTHROUGH;
39190 default:
goto __pyx_L5_argtuple_error;
39192 kw_args = PyDict_Size(__pyx_kwds);
39193 switch (pos_args) {
39195 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma_e)) != 0)) kw_args--;
39196 else goto __pyx_L5_argtuple_error;
39197 CYTHON_FALLTHROUGH;
39199 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_1)) != 0)) kw_args--;
39201 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 1); __PYX_ERR(0, 7288, __pyx_L3_error)
39203 CYTHON_FALLTHROUGH;
39205 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_2)) != 0)) kw_args--;
39207 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 2); __PYX_ERR(0, 7288, __pyx_L3_error)
39209 CYTHON_FALLTHROUGH;
39211 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
39213 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 3); __PYX_ERR(0, 7288, __pyx_L3_error)
39215 CYTHON_FALLTHROUGH;
39217 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_e)) != 0)) kw_args--;
39219 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 4); __PYX_ERR(0, 7288, __pyx_L3_error)
39221 CYTHON_FALLTHROUGH;
39223 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
39225 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 5); __PYX_ERR(0, 7288, __pyx_L3_error)
39227 CYTHON_FALLTHROUGH;
39229 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
39231 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 6); __PYX_ERR(0, 7288, __pyx_L3_error)
39233 CYTHON_FALLTHROUGH;
39235 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
39237 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 7); __PYX_ERR(0, 7288, __pyx_L3_error)
39239 CYTHON_FALLTHROUGH;
39241 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradv)) != 0)) kw_args--;
39243 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 8); __PYX_ERR(0, 7288, __pyx_L3_error)
39245 CYTHON_FALLTHROUGH;
39247 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradw)) != 0)) kw_args--;
39249 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 9); __PYX_ERR(0, 7288, __pyx_L3_error)
39251 CYTHON_FALLTHROUGH;
39253 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
39255 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 10); __PYX_ERR(0, 7288, __pyx_L3_error)
39257 CYTHON_FALLTHROUGH;
39259 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
39261 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 11); __PYX_ERR(0, 7288, __pyx_L3_error)
39263 CYTHON_FALLTHROUGH;
39265 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m_e)) != 0)) kw_args--;
39267 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 12); __PYX_ERR(0, 7288, __pyx_L3_error)
39269 CYTHON_FALLTHROUGH;
39271 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_e)) != 0)) kw_args--;
39273 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 13); __PYX_ERR(0, 7288, __pyx_L3_error)
39275 CYTHON_FALLTHROUGH;
39277 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_e)) != 0)) kw_args--;
39279 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 14); __PYX_ERR(0, 7288, __pyx_L3_error)
39281 CYTHON_FALLTHROUGH;
39283 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_e)) != 0)) kw_args--;
39285 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 15); __PYX_ERR(0, 7288, __pyx_L3_error)
39287 CYTHON_FALLTHROUGH;
39289 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_e)) != 0)) kw_args--;
39291 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 16); __PYX_ERR(0, 7288, __pyx_L3_error)
39293 CYTHON_FALLTHROUGH;
39295 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_e)) != 0)) kw_args--;
39297 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 17); __PYX_ERR(0, 7288, __pyx_L3_error)
39299 CYTHON_FALLTHROUGH;
39301 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_e)) != 0)) kw_args--;
39303 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 18); __PYX_ERR(0, 7288, __pyx_L3_error)
39305 CYTHON_FALLTHROUGH;
39307 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_e_de)) != 0)) kw_args--;
39309 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 19); __PYX_ERR(0, 7288, __pyx_L3_error)
39311 CYTHON_FALLTHROUGH;
39313 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r_e)) != 0)) kw_args--;
39315 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 20); __PYX_ERR(0, 7288, __pyx_L3_error)
39317 CYTHON_FALLTHROUGH;
39319 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr_e_de)) != 0)) kw_args--;
39321 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, 21); __PYX_ERR(0, 7288, __pyx_L3_error)
39324 if (unlikely(kw_args > 0)) {
39325 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kEpsilon_epsilon_3D_Evaluate_sd") < 0)) __PYX_ERR(0, 7288, __pyx_L3_error)
39327 }
else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
39328 goto __pyx_L5_argtuple_error;
39330 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39331 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39332 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39333 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39334 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39335 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39336 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39337 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39338 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39339 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39340 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39341 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39342 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
39343 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
39344 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
39345 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
39346 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
39347 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
39348 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
39349 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
39350 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
39351 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
39353 __pyx_v_sigma_e = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sigma_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7288, __pyx_L3_error)
39354 __pyx_v_c_1 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7289, __pyx_L3_error)
39355 __pyx_v_c_2 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7290, __pyx_L3_error)
39356 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7291, __pyx_L3_error)
39357 __pyx_v_c_e = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_c_e == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7292, __pyx_L3_error)
39358 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7293, __pyx_L3_error)
39359 __pyx_v_velocity = ((PyArrayObject *)values[6]);
39360 __pyx_v_gradu = ((PyArrayObject *)values[7]);
39361 __pyx_v_gradv = ((PyArrayObject *)values[8]);
39362 __pyx_v_gradw = ((PyArrayObject *)values[9]);
39363 __pyx_v_k = ((PyArrayObject *)values[10]);
39364 __pyx_v_epsilon = ((PyArrayObject *)values[11]);
39365 __pyx_v_m_e = ((PyArrayObject *)values[12]);
39366 __pyx_v_dm_e = ((PyArrayObject *)values[13]);
39367 __pyx_v_phi_e = ((PyArrayObject *)values[14]);
39368 __pyx_v_dphi_e = ((PyArrayObject *)values[15]);
39369 __pyx_v_f_e = ((PyArrayObject *)values[16]);
39370 __pyx_v_df_e = ((PyArrayObject *)values[17]);
39371 __pyx_v_a_e = ((PyArrayObject *)values[18]);
39372 __pyx_v_da_e_de = ((PyArrayObject *)values[19]);
39373 __pyx_v_r_e = ((PyArrayObject *)values[20]);
39374 __pyx_v_dr_e_de = ((PyArrayObject *)values[21]);
39376 goto __pyx_L4_argument_unpacking_done;
39377 __pyx_L5_argtuple_error:;
39378 __Pyx_RaiseArgtupleInvalid(
"kEpsilon_epsilon_3D_Evaluate_sd", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7288, __pyx_L3_error)
39380 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_epsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39381 __Pyx_RefNannyFinishContext();
39383 __pyx_L4_argument_unpacking_done:;
39384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 7294, __pyx_L1_error)
39385 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7295, __pyx_L1_error)
39386 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradv), __pyx_ptype_5numpy_ndarray, 1,
"gradv", 0))) __PYX_ERR(0, 7296, __pyx_L1_error)
39387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradw), __pyx_ptype_5numpy_ndarray, 1,
"gradw", 0))) __PYX_ERR(0, 7297, __pyx_L1_error)
39388 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7298, __pyx_L1_error)
39389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7299, __pyx_L1_error)
39390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m_e), __pyx_ptype_5numpy_ndarray, 1,
"m_e", 0))) __PYX_ERR(0, 7300, __pyx_L1_error)
39391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_e), __pyx_ptype_5numpy_ndarray, 1,
"dm_e", 0))) __PYX_ERR(0, 7301, __pyx_L1_error)
39392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_e), __pyx_ptype_5numpy_ndarray, 1,
"phi_e", 0))) __PYX_ERR(0, 7302, __pyx_L1_error)
39393 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_e), __pyx_ptype_5numpy_ndarray, 1,
"dphi_e", 0))) __PYX_ERR(0, 7303, __pyx_L1_error)
39394 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_e), __pyx_ptype_5numpy_ndarray, 1,
"f_e", 0))) __PYX_ERR(0, 7304, __pyx_L1_error)
39395 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_e), __pyx_ptype_5numpy_ndarray, 1,
"df_e", 0))) __PYX_ERR(0, 7305, __pyx_L1_error)
39396 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_e), __pyx_ptype_5numpy_ndarray, 1,
"a_e", 0))) __PYX_ERR(0, 7306, __pyx_L1_error)
39397 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_e_de), __pyx_ptype_5numpy_ndarray, 1,
"da_e_de", 0))) __PYX_ERR(0, 7307, __pyx_L1_error)
39398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r_e), __pyx_ptype_5numpy_ndarray, 1,
"r_e", 0))) __PYX_ERR(0, 7308, __pyx_L1_error)
39399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr_e_de), __pyx_ptype_5numpy_ndarray, 1,
"dr_e_de", 0))) __PYX_ERR(0, 7309, __pyx_L1_error)
39400 __pyx_r = __pyx_pf_22ctransportCoefficients_194kEpsilon_epsilon_3D_Evaluate_sd(__pyx_self, __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, __pyx_v_velocity, __pyx_v_gradu, __pyx_v_gradv, __pyx_v_gradw, __pyx_v_k, __pyx_v_epsilon, __pyx_v_m_e, __pyx_v_dm_e, __pyx_v_phi_e, __pyx_v_dphi_e, __pyx_v_f_e, __pyx_v_df_e, __pyx_v_a_e, __pyx_v_da_e_de, __pyx_v_r_e, __pyx_v_dr_e_de);
39407 __Pyx_RefNannyFinishContext();
39411 static PyObject *__pyx_pf_22ctransportCoefficients_194kEpsilon_epsilon_3D_Evaluate_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sigma_e,
double __pyx_v_c_1,
double __pyx_v_c_2,
double __pyx_v_c_mu,
double __pyx_v_c_e,
double __pyx_v_nu, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_gradv, PyArrayObject *__pyx_v_gradw, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_m_e, PyArrayObject *__pyx_v_dm_e, PyArrayObject *__pyx_v_phi_e, PyArrayObject *__pyx_v_dphi_e, PyArrayObject *__pyx_v_f_e, PyArrayObject *__pyx_v_df_e, PyArrayObject *__pyx_v_a_e, PyArrayObject *__pyx_v_da_e_de, PyArrayObject *__pyx_v_r_e, PyArrayObject *__pyx_v_dr_e_de) {
39412 PyObject *__pyx_r = NULL;
39413 __Pyx_RefNannyDeclarations
39414 PyObject *__pyx_t_1 = NULL;
39416 int __pyx_lineno = 0;
39417 const char *__pyx_filename = NULL;
39418 int __pyx_clineno = 0;
39419 __Pyx_RefNannySetupContext(
"kEpsilon_epsilon_3D_Evaluate_sd", 0);
39428 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_epsilon), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7310, __pyx_L1_error)
39429 __Pyx_GOTREF(__pyx_t_1);
39430 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7310, __pyx_L1_error)
39431 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39440 kEpsilon_epsilon_3D_Evaluate_sd(__pyx_t_2, (__pyx_v_f_e->dimensions[(__pyx_v_f_e->nd - 1)]), __pyx_v_sigma_e, __pyx_v_c_1, __pyx_v_c_2, __pyx_v_c_mu, __pyx_v_c_e, __pyx_v_nu, ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_gradv->data), ((
double *)__pyx_v_gradw->data), ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_m_e->data), ((
double *)__pyx_v_dm_e->data), ((
double *)__pyx_v_phi_e->data), ((
double *)__pyx_v_dphi_e->data), ((
double *)__pyx_v_f_e->data), ((
double *)__pyx_v_df_e->data), ((
double *)__pyx_v_a_e->data), ((
double *)__pyx_v_da_e_de->data), ((
double *)__pyx_v_r_e->data), ((
double *)__pyx_v_dr_e_de->data));
39451 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39454 __Pyx_XDECREF(__pyx_t_1);
39455 __Pyx_AddTraceback(
"ctransportCoefficients.kEpsilon_epsilon_3D_Evaluate_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39458 __Pyx_XGIVEREF(__pyx_r);
39459 __Pyx_RefNannyFinishContext();
39472 static PyObject *__pyx_pw_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39473 static PyMethodDef __pyx_mdef_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update = {
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update, METH_VARARGS|METH_KEYWORDS, 0};
39474 static PyObject *__pyx_pw_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39476 double __pyx_v_c_mu;
39477 PyArrayObject *__pyx_v_k = 0;
39478 PyArrayObject *__pyx_v_grad_k = 0;
39479 PyArrayObject *__pyx_v_epsilon = 0;
39480 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
39481 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
39482 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
39483 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
39484 PyArrayObject *__pyx_v_mom_u_source = 0;
39485 PyArrayObject *__pyx_v_mom_v_source = 0;
39486 int __pyx_lineno = 0;
39487 const char *__pyx_filename = NULL;
39488 int __pyx_clineno = 0;
39489 PyObject *__pyx_r = 0;
39490 __Pyx_RefNannyDeclarations
39491 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update (wrapper)", 0);
39493 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,0};
39494 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
39495 if (unlikely(__pyx_kwds)) {
39496 Py_ssize_t kw_args;
39497 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39498 switch (pos_args) {
39499 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39500 CYTHON_FALLTHROUGH;
39501 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39502 CYTHON_FALLTHROUGH;
39503 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39504 CYTHON_FALLTHROUGH;
39505 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39506 CYTHON_FALLTHROUGH;
39507 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39508 CYTHON_FALLTHROUGH;
39509 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39510 CYTHON_FALLTHROUGH;
39511 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39512 CYTHON_FALLTHROUGH;
39513 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39514 CYTHON_FALLTHROUGH;
39515 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39516 CYTHON_FALLTHROUGH;
39517 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39518 CYTHON_FALLTHROUGH;
39519 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39520 CYTHON_FALLTHROUGH;
39522 default:
goto __pyx_L5_argtuple_error;
39524 kw_args = PyDict_Size(__pyx_kwds);
39525 switch (pos_args) {
39527 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
39528 else goto __pyx_L5_argtuple_error;
39529 CYTHON_FALLTHROUGH;
39531 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
39533 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 1); __PYX_ERR(0, 7334, __pyx_L3_error)
39535 CYTHON_FALLTHROUGH;
39537 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
39539 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 2); __PYX_ERR(0, 7334, __pyx_L3_error)
39541 CYTHON_FALLTHROUGH;
39543 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
39545 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 3); __PYX_ERR(0, 7334, __pyx_L3_error)
39547 CYTHON_FALLTHROUGH;
39549 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
39551 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 4); __PYX_ERR(0, 7334, __pyx_L3_error)
39553 CYTHON_FALLTHROUGH;
39555 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
39557 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 5); __PYX_ERR(0, 7334, __pyx_L3_error)
39559 CYTHON_FALLTHROUGH;
39561 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
39563 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 6); __PYX_ERR(0, 7334, __pyx_L3_error)
39565 CYTHON_FALLTHROUGH;
39567 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
39569 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 7); __PYX_ERR(0, 7334, __pyx_L3_error)
39571 CYTHON_FALLTHROUGH;
39573 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
39575 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 8); __PYX_ERR(0, 7334, __pyx_L3_error)
39577 CYTHON_FALLTHROUGH;
39579 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
39581 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 9); __PYX_ERR(0, 7334, __pyx_L3_error)
39583 CYTHON_FALLTHROUGH;
39585 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
39587 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, 10); __PYX_ERR(0, 7334, __pyx_L3_error)
39590 if (unlikely(kw_args > 0)) {
39591 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update") < 0)) __PYX_ERR(0, 7334, __pyx_L3_error)
39593 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
39594 goto __pyx_L5_argtuple_error;
39596 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39597 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39598 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39599 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39600 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39601 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39602 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39603 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39604 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39605 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39606 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39608 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7334, __pyx_L3_error)
39609 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7335, __pyx_L3_error)
39610 __pyx_v_k = ((PyArrayObject *)values[2]);
39611 __pyx_v_grad_k = ((PyArrayObject *)values[3]);
39612 __pyx_v_epsilon = ((PyArrayObject *)values[4]);
39613 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
39614 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
39615 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[7]);
39616 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[8]);
39617 __pyx_v_mom_u_source = ((PyArrayObject *)values[9]);
39618 __pyx_v_mom_v_source = ((PyArrayObject *)values[10]);
39620 goto __pyx_L4_argument_unpacking_done;
39621 __pyx_L5_argtuple_error:;
39622 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7334, __pyx_L3_error)
39624 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
39625 __Pyx_RefNannyFinishContext();
39627 __pyx_L4_argument_unpacking_done:;
39628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7336, __pyx_L1_error)
39629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1,
"grad_k", 0))) __PYX_ERR(0, 7337, __pyx_L1_error)
39630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7338, __pyx_L1_error)
39631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7339, __pyx_L1_error)
39632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7340, __pyx_L1_error)
39633 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7341, __pyx_L1_error)
39634 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7342, __pyx_L1_error)
39635 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 7343, __pyx_L1_error)
39636 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 7344, __pyx_L1_error)
39637 __pyx_r = __pyx_pf_22ctransportCoefficients_196ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(__pyx_self, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source);
39644 __Pyx_RefNannyFinishContext();
39648 static PyObject *__pyx_pf_22ctransportCoefficients_196ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source) {
39649 PyObject *__pyx_r = NULL;
39650 __Pyx_RefNannyDeclarations
39651 PyObject *__pyx_t_1 = NULL;
39653 int __pyx_lineno = 0;
39654 const char *__pyx_filename = NULL;
39655 int __pyx_clineno = 0;
39656 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", 0);
39665 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7345, __pyx_L1_error)
39666 __Pyx_GOTREF(__pyx_t_1);
39667 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7345, __pyx_L1_error)
39668 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39677 ReynoldsAveragedNavierStokes_kEpsilon_2D_Update(__pyx_t_2, __pyx_v_nu, __pyx_v_c_mu, ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_grad_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data));
39688 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39691 __Pyx_XDECREF(__pyx_t_1);
39692 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
39695 __Pyx_XGIVEREF(__pyx_r);
39696 __Pyx_RefNannyFinishContext();
39709 static PyObject *__pyx_pw_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39710 static PyMethodDef __pyx_mdef_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd = {
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
39711 static PyObject *__pyx_pw_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39712 double __pyx_v_rho;
39714 double __pyx_v_c_mu;
39715 PyArrayObject *__pyx_v_k = 0;
39716 PyArrayObject *__pyx_v_grad_k = 0;
39717 PyArrayObject *__pyx_v_epsilon = 0;
39718 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
39719 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
39720 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
39721 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
39722 PyArrayObject *__pyx_v_mom_u_source = 0;
39723 PyArrayObject *__pyx_v_mom_v_source = 0;
39724 int __pyx_lineno = 0;
39725 const char *__pyx_filename = NULL;
39726 int __pyx_clineno = 0;
39727 PyObject *__pyx_r = 0;
39728 __Pyx_RefNannyDeclarations
39729 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd (wrapper)", 0);
39731 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,0};
39732 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
39733 if (unlikely(__pyx_kwds)) {
39734 Py_ssize_t kw_args;
39735 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39736 switch (pos_args) {
39737 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39738 CYTHON_FALLTHROUGH;
39739 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39740 CYTHON_FALLTHROUGH;
39741 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39742 CYTHON_FALLTHROUGH;
39743 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39744 CYTHON_FALLTHROUGH;
39745 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39746 CYTHON_FALLTHROUGH;
39747 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39748 CYTHON_FALLTHROUGH;
39749 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39750 CYTHON_FALLTHROUGH;
39751 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39752 CYTHON_FALLTHROUGH;
39753 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39754 CYTHON_FALLTHROUGH;
39755 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39756 CYTHON_FALLTHROUGH;
39757 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39758 CYTHON_FALLTHROUGH;
39759 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39760 CYTHON_FALLTHROUGH;
39762 default:
goto __pyx_L5_argtuple_error;
39764 kw_args = PyDict_Size(__pyx_kwds);
39765 switch (pos_args) {
39767 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
39768 else goto __pyx_L5_argtuple_error;
39769 CYTHON_FALLTHROUGH;
39771 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
39773 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 1); __PYX_ERR(0, 7357, __pyx_L3_error)
39775 CYTHON_FALLTHROUGH;
39777 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
39779 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 2); __PYX_ERR(0, 7357, __pyx_L3_error)
39781 CYTHON_FALLTHROUGH;
39783 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
39785 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 3); __PYX_ERR(0, 7357, __pyx_L3_error)
39787 CYTHON_FALLTHROUGH;
39789 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
39791 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 4); __PYX_ERR(0, 7357, __pyx_L3_error)
39793 CYTHON_FALLTHROUGH;
39795 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
39797 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 5); __PYX_ERR(0, 7357, __pyx_L3_error)
39799 CYTHON_FALLTHROUGH;
39801 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
39803 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 6); __PYX_ERR(0, 7357, __pyx_L3_error)
39805 CYTHON_FALLTHROUGH;
39807 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
39809 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 7); __PYX_ERR(0, 7357, __pyx_L3_error)
39811 CYTHON_FALLTHROUGH;
39813 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
39815 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 8); __PYX_ERR(0, 7357, __pyx_L3_error)
39817 CYTHON_FALLTHROUGH;
39819 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
39821 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 9); __PYX_ERR(0, 7357, __pyx_L3_error)
39823 CYTHON_FALLTHROUGH;
39825 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
39827 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 10); __PYX_ERR(0, 7357, __pyx_L3_error)
39829 CYTHON_FALLTHROUGH;
39831 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
39833 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, 11); __PYX_ERR(0, 7357, __pyx_L3_error)
39836 if (unlikely(kw_args > 0)) {
39837 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd") < 0)) __PYX_ERR(0, 7357, __pyx_L3_error)
39839 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
39840 goto __pyx_L5_argtuple_error;
39842 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39843 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39844 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39845 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39846 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39847 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39848 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39849 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39850 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39851 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39852 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39853 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39855 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7357, __pyx_L3_error)
39856 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7358, __pyx_L3_error)
39857 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7359, __pyx_L3_error)
39858 __pyx_v_k = ((PyArrayObject *)values[3]);
39859 __pyx_v_grad_k = ((PyArrayObject *)values[4]);
39860 __pyx_v_epsilon = ((PyArrayObject *)values[5]);
39861 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[6]);
39862 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[7]);
39863 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[8]);
39864 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[9]);
39865 __pyx_v_mom_u_source = ((PyArrayObject *)values[10]);
39866 __pyx_v_mom_v_source = ((PyArrayObject *)values[11]);
39868 goto __pyx_L4_argument_unpacking_done;
39869 __pyx_L5_argtuple_error:;
39870 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7357, __pyx_L3_error)
39872 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39873 __Pyx_RefNannyFinishContext();
39875 __pyx_L4_argument_unpacking_done:;
39876 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7360, __pyx_L1_error)
39877 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1,
"grad_k", 0))) __PYX_ERR(0, 7361, __pyx_L1_error)
39878 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7362, __pyx_L1_error)
39879 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7363, __pyx_L1_error)
39880 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7364, __pyx_L1_error)
39881 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7365, __pyx_L1_error)
39882 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7366, __pyx_L1_error)
39883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 7367, __pyx_L1_error)
39884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 7368, __pyx_L1_error)
39885 __pyx_r = __pyx_pf_22ctransportCoefficients_198ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(__pyx_self, __pyx_v_rho, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source);
39892 __Pyx_RefNannyFinishContext();
39896 static PyObject *__pyx_pf_22ctransportCoefficients_198ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source) {
39897 PyObject *__pyx_r = NULL;
39898 __Pyx_RefNannyDeclarations
39899 PyObject *__pyx_t_1 = NULL;
39901 int __pyx_lineno = 0;
39902 const char *__pyx_filename = NULL;
39903 int __pyx_clineno = 0;
39904 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", 0);
39913 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7369, __pyx_L1_error)
39914 __Pyx_GOTREF(__pyx_t_1);
39915 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7369, __pyx_L1_error)
39916 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39925 ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd(__pyx_t_2, __pyx_v_rho, __pyx_v_nu, __pyx_v_c_mu, ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_grad_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data));
39936 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39939 __Pyx_XDECREF(__pyx_t_1);
39940 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
39943 __Pyx_XGIVEREF(__pyx_r);
39944 __Pyx_RefNannyFinishContext();
39957 static PyObject *__pyx_pw_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39958 static PyMethodDef __pyx_mdef_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update = {
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update, METH_VARARGS|METH_KEYWORDS, 0};
39959 static PyObject *__pyx_pw_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39961 double __pyx_v_c_mu;
39962 PyArrayObject *__pyx_v_k = 0;
39963 PyArrayObject *__pyx_v_grad_k = 0;
39964 PyArrayObject *__pyx_v_epsilon = 0;
39965 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
39966 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
39967 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
39968 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
39969 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
39970 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
39971 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
39972 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
39973 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
39974 PyArrayObject *__pyx_v_mom_u_source = 0;
39975 PyArrayObject *__pyx_v_mom_v_source = 0;
39976 PyArrayObject *__pyx_v_mom_w_source = 0;
39977 int __pyx_lineno = 0;
39978 const char *__pyx_filename = NULL;
39979 int __pyx_clineno = 0;
39980 PyObject *__pyx_r = 0;
39981 __Pyx_RefNannyDeclarations
39982 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update (wrapper)", 0);
39984 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,0};
39985 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
39986 if (unlikely(__pyx_kwds)) {
39987 Py_ssize_t kw_args;
39988 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39989 switch (pos_args) {
39990 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
39991 CYTHON_FALLTHROUGH;
39992 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
39993 CYTHON_FALLTHROUGH;
39994 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
39995 CYTHON_FALLTHROUGH;
39996 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
39997 CYTHON_FALLTHROUGH;
39998 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
39999 CYTHON_FALLTHROUGH;
40000 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40001 CYTHON_FALLTHROUGH;
40002 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40003 CYTHON_FALLTHROUGH;
40004 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40005 CYTHON_FALLTHROUGH;
40006 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40007 CYTHON_FALLTHROUGH;
40008 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40009 CYTHON_FALLTHROUGH;
40010 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40011 CYTHON_FALLTHROUGH;
40012 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40013 CYTHON_FALLTHROUGH;
40014 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40015 CYTHON_FALLTHROUGH;
40016 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40017 CYTHON_FALLTHROUGH;
40018 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40019 CYTHON_FALLTHROUGH;
40020 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40021 CYTHON_FALLTHROUGH;
40022 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40023 CYTHON_FALLTHROUGH;
40025 default:
goto __pyx_L5_argtuple_error;
40027 kw_args = PyDict_Size(__pyx_kwds);
40028 switch (pos_args) {
40030 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
40031 else goto __pyx_L5_argtuple_error;
40032 CYTHON_FALLTHROUGH;
40034 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
40036 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 1); __PYX_ERR(0, 7382, __pyx_L3_error)
40038 CYTHON_FALLTHROUGH;
40040 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
40042 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 2); __PYX_ERR(0, 7382, __pyx_L3_error)
40044 CYTHON_FALLTHROUGH;
40046 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
40048 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 3); __PYX_ERR(0, 7382, __pyx_L3_error)
40050 CYTHON_FALLTHROUGH;
40052 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
40054 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 4); __PYX_ERR(0, 7382, __pyx_L3_error)
40056 CYTHON_FALLTHROUGH;
40058 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
40060 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 5); __PYX_ERR(0, 7382, __pyx_L3_error)
40062 CYTHON_FALLTHROUGH;
40064 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
40066 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 6); __PYX_ERR(0, 7382, __pyx_L3_error)
40068 CYTHON_FALLTHROUGH;
40070 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
40072 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 7); __PYX_ERR(0, 7382, __pyx_L3_error)
40074 CYTHON_FALLTHROUGH;
40076 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
40078 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 8); __PYX_ERR(0, 7382, __pyx_L3_error)
40080 CYTHON_FALLTHROUGH;
40082 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
40084 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 9); __PYX_ERR(0, 7382, __pyx_L3_error)
40086 CYTHON_FALLTHROUGH;
40088 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
40090 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 10); __PYX_ERR(0, 7382, __pyx_L3_error)
40092 CYTHON_FALLTHROUGH;
40094 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
40096 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 11); __PYX_ERR(0, 7382, __pyx_L3_error)
40098 CYTHON_FALLTHROUGH;
40100 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
40102 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 12); __PYX_ERR(0, 7382, __pyx_L3_error)
40104 CYTHON_FALLTHROUGH;
40106 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
40108 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 13); __PYX_ERR(0, 7382, __pyx_L3_error)
40110 CYTHON_FALLTHROUGH;
40112 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
40114 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 14); __PYX_ERR(0, 7382, __pyx_L3_error)
40116 CYTHON_FALLTHROUGH;
40118 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
40120 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 15); __PYX_ERR(0, 7382, __pyx_L3_error)
40122 CYTHON_FALLTHROUGH;
40124 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
40126 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, 16); __PYX_ERR(0, 7382, __pyx_L3_error)
40129 if (unlikely(kw_args > 0)) {
40130 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update") < 0)) __PYX_ERR(0, 7382, __pyx_L3_error)
40132 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
40133 goto __pyx_L5_argtuple_error;
40135 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40136 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40137 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40138 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40139 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40140 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40141 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40142 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40143 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40144 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40145 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40146 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40147 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40148 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40149 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40150 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40151 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40153 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7382, __pyx_L3_error)
40154 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7383, __pyx_L3_error)
40155 __pyx_v_k = ((PyArrayObject *)values[2]);
40156 __pyx_v_grad_k = ((PyArrayObject *)values[3]);
40157 __pyx_v_epsilon = ((PyArrayObject *)values[4]);
40158 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
40159 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
40160 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[7]);
40161 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[8]);
40162 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[9]);
40163 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[10]);
40164 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[11]);
40165 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[12]);
40166 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[13]);
40167 __pyx_v_mom_u_source = ((PyArrayObject *)values[14]);
40168 __pyx_v_mom_v_source = ((PyArrayObject *)values[15]);
40169 __pyx_v_mom_w_source = ((PyArrayObject *)values[16]);
40171 goto __pyx_L4_argument_unpacking_done;
40172 __pyx_L5_argtuple_error:;
40173 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7382, __pyx_L3_error)
40175 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
40176 __Pyx_RefNannyFinishContext();
40178 __pyx_L4_argument_unpacking_done:;
40179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7384, __pyx_L1_error)
40180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1,
"grad_k", 0))) __PYX_ERR(0, 7385, __pyx_L1_error)
40181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7386, __pyx_L1_error)
40182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7387, __pyx_L1_error)
40183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7388, __pyx_L1_error)
40184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 7389, __pyx_L1_error)
40185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7390, __pyx_L1_error)
40186 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 7391, __pyx_L1_error)
40187 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7392, __pyx_L1_error)
40188 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 7393, __pyx_L1_error)
40189 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 7394, __pyx_L1_error)
40190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 7395, __pyx_L1_error)
40191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 7396, __pyx_L1_error)
40192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 7397, __pyx_L1_error)
40193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 7398, __pyx_L1_error)
40194 __pyx_r = __pyx_pf_22ctransportCoefficients_200ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(__pyx_self, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source);
40201 __Pyx_RefNannyFinishContext();
40205 static PyObject *__pyx_pf_22ctransportCoefficients_200ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source) {
40206 PyObject *__pyx_r = NULL;
40207 __Pyx_RefNannyDeclarations
40208 PyObject *__pyx_t_1 = NULL;
40210 int __pyx_lineno = 0;
40211 const char *__pyx_filename = NULL;
40212 int __pyx_clineno = 0;
40213 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", 0);
40222 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7399, __pyx_L1_error)
40223 __Pyx_GOTREF(__pyx_t_1);
40224 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7399, __pyx_L1_error)
40225 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40234 ReynoldsAveragedNavierStokes_kEpsilon_3D_Update(__pyx_t_2, __pyx_v_nu, __pyx_v_c_mu, ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_grad_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data));
40245 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40248 __Pyx_XDECREF(__pyx_t_1);
40249 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
40252 __Pyx_XGIVEREF(__pyx_r);
40253 __Pyx_RefNannyFinishContext();
40266 static PyObject *__pyx_pw_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40267 static PyMethodDef __pyx_mdef_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd = {
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
40268 static PyObject *__pyx_pw_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40270 double __pyx_v_c_mu;
40271 PyArrayObject *__pyx_v_k = 0;
40272 PyArrayObject *__pyx_v_grad_k = 0;
40273 PyArrayObject *__pyx_v_epsilon = 0;
40274 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
40275 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
40276 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
40277 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
40278 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
40279 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
40280 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
40281 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
40282 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
40283 PyArrayObject *__pyx_v_mom_u_source = 0;
40284 PyArrayObject *__pyx_v_mom_v_source = 0;
40285 PyArrayObject *__pyx_v_mom_w_source = 0;
40286 int __pyx_lineno = 0;
40287 const char *__pyx_filename = NULL;
40288 int __pyx_clineno = 0;
40289 PyObject *__pyx_r = 0;
40290 __Pyx_RefNannyDeclarations
40291 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd (wrapper)", 0);
40293 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu,&__pyx_n_s_c_mu,&__pyx_n_s_k,&__pyx_n_s_grad_k,&__pyx_n_s_epsilon,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,&__pyx_n_s_mom_u_source,&__pyx_n_s_mom_v_source,&__pyx_n_s_mom_w_source,0};
40294 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
40295 if (unlikely(__pyx_kwds)) {
40296 Py_ssize_t kw_args;
40297 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40298 switch (pos_args) {
40299 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40300 CYTHON_FALLTHROUGH;
40301 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40302 CYTHON_FALLTHROUGH;
40303 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40304 CYTHON_FALLTHROUGH;
40305 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40306 CYTHON_FALLTHROUGH;
40307 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40308 CYTHON_FALLTHROUGH;
40309 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40310 CYTHON_FALLTHROUGH;
40311 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40312 CYTHON_FALLTHROUGH;
40313 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40314 CYTHON_FALLTHROUGH;
40315 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40316 CYTHON_FALLTHROUGH;
40317 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40318 CYTHON_FALLTHROUGH;
40319 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40320 CYTHON_FALLTHROUGH;
40321 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40322 CYTHON_FALLTHROUGH;
40323 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40324 CYTHON_FALLTHROUGH;
40325 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40326 CYTHON_FALLTHROUGH;
40327 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40328 CYTHON_FALLTHROUGH;
40329 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40330 CYTHON_FALLTHROUGH;
40331 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40332 CYTHON_FALLTHROUGH;
40334 default:
goto __pyx_L5_argtuple_error;
40336 kw_args = PyDict_Size(__pyx_kwds);
40337 switch (pos_args) {
40339 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu)) != 0)) kw_args--;
40340 else goto __pyx_L5_argtuple_error;
40341 CYTHON_FALLTHROUGH;
40343 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mu)) != 0)) kw_args--;
40345 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 1); __PYX_ERR(0, 7417, __pyx_L3_error)
40347 CYTHON_FALLTHROUGH;
40349 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_k)) != 0)) kw_args--;
40351 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 2); __PYX_ERR(0, 7417, __pyx_L3_error)
40353 CYTHON_FALLTHROUGH;
40355 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_k)) != 0)) kw_args--;
40357 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 3); __PYX_ERR(0, 7417, __pyx_L3_error)
40359 CYTHON_FALLTHROUGH;
40361 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
40363 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 4); __PYX_ERR(0, 7417, __pyx_L3_error)
40365 CYTHON_FALLTHROUGH;
40367 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
40369 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 5); __PYX_ERR(0, 7417, __pyx_L3_error)
40371 CYTHON_FALLTHROUGH;
40373 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
40375 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 6); __PYX_ERR(0, 7417, __pyx_L3_error)
40377 CYTHON_FALLTHROUGH;
40379 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
40381 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 7); __PYX_ERR(0, 7417, __pyx_L3_error)
40383 CYTHON_FALLTHROUGH;
40385 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
40387 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 8); __PYX_ERR(0, 7417, __pyx_L3_error)
40389 CYTHON_FALLTHROUGH;
40391 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
40393 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 9); __PYX_ERR(0, 7417, __pyx_L3_error)
40395 CYTHON_FALLTHROUGH;
40397 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
40399 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 10); __PYX_ERR(0, 7417, __pyx_L3_error)
40401 CYTHON_FALLTHROUGH;
40403 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
40405 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 11); __PYX_ERR(0, 7417, __pyx_L3_error)
40407 CYTHON_FALLTHROUGH;
40409 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
40411 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 12); __PYX_ERR(0, 7417, __pyx_L3_error)
40413 CYTHON_FALLTHROUGH;
40415 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
40417 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 13); __PYX_ERR(0, 7417, __pyx_L3_error)
40419 CYTHON_FALLTHROUGH;
40421 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
40423 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 14); __PYX_ERR(0, 7417, __pyx_L3_error)
40425 CYTHON_FALLTHROUGH;
40427 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
40429 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 15); __PYX_ERR(0, 7417, __pyx_L3_error)
40431 CYTHON_FALLTHROUGH;
40433 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_source)) != 0)) kw_args--;
40435 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, 16); __PYX_ERR(0, 7417, __pyx_L3_error)
40438 if (unlikely(kw_args > 0)) {
40439 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd") < 0)) __PYX_ERR(0, 7417, __pyx_L3_error)
40441 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
40442 goto __pyx_L5_argtuple_error;
40444 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40445 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40446 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40447 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40448 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40449 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40450 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40451 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40452 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40453 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40454 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40455 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40456 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40457 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40458 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40459 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40460 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40462 __pyx_v_nu = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_nu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7417, __pyx_L3_error)
40463 __pyx_v_c_mu = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_c_mu == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7418, __pyx_L3_error)
40464 __pyx_v_k = ((PyArrayObject *)values[2]);
40465 __pyx_v_grad_k = ((PyArrayObject *)values[3]);
40466 __pyx_v_epsilon = ((PyArrayObject *)values[4]);
40467 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
40468 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
40469 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[7]);
40470 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[8]);
40471 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[9]);
40472 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[10]);
40473 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[11]);
40474 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[12]);
40475 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[13]);
40476 __pyx_v_mom_u_source = ((PyArrayObject *)values[14]);
40477 __pyx_v_mom_v_source = ((PyArrayObject *)values[15]);
40478 __pyx_v_mom_w_source = ((PyArrayObject *)values[16]);
40480 goto __pyx_L4_argument_unpacking_done;
40481 __pyx_L5_argtuple_error:;
40482 __Pyx_RaiseArgtupleInvalid(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7417, __pyx_L3_error)
40484 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
40485 __Pyx_RefNannyFinishContext();
40487 __pyx_L4_argument_unpacking_done:;
40488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_k), __pyx_ptype_5numpy_ndarray, 1,
"k", 0))) __PYX_ERR(0, 7419, __pyx_L1_error)
40489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_k), __pyx_ptype_5numpy_ndarray, 1,
"grad_k", 0))) __PYX_ERR(0, 7420, __pyx_L1_error)
40490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_epsilon), __pyx_ptype_5numpy_ndarray, 1,
"epsilon", 0))) __PYX_ERR(0, 7421, __pyx_L1_error)
40491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7422, __pyx_L1_error)
40492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7423, __pyx_L1_error)
40493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 7424, __pyx_L1_error)
40494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7425, __pyx_L1_error)
40495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 7426, __pyx_L1_error)
40496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7427, __pyx_L1_error)
40497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 7428, __pyx_L1_error)
40498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 7429, __pyx_L1_error)
40499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 7430, __pyx_L1_error)
40500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 7431, __pyx_L1_error)
40501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 7432, __pyx_L1_error)
40502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_source", 0))) __PYX_ERR(0, 7433, __pyx_L1_error)
40503 __pyx_r = __pyx_pf_22ctransportCoefficients_202ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(__pyx_self, __pyx_v_nu, __pyx_v_c_mu, __pyx_v_k, __pyx_v_grad_k, __pyx_v_epsilon, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten, __pyx_v_mom_u_source, __pyx_v_mom_v_source, __pyx_v_mom_w_source);
40510 __Pyx_RefNannyFinishContext();
40514 static PyObject *__pyx_pf_22ctransportCoefficients_202ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_nu,
double __pyx_v_c_mu, PyArrayObject *__pyx_v_k, PyArrayObject *__pyx_v_grad_k, PyArrayObject *__pyx_v_epsilon, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_mom_w_source) {
40515 PyObject *__pyx_r = NULL;
40516 __Pyx_RefNannyDeclarations
40517 PyObject *__pyx_t_1 = NULL;
40519 int __pyx_lineno = 0;
40520 const char *__pyx_filename = NULL;
40521 int __pyx_clineno = 0;
40522 __Pyx_RefNannySetupContext(
"ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", 0);
40531 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_k), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7434, __pyx_L1_error)
40532 __Pyx_GOTREF(__pyx_t_1);
40533 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7434, __pyx_L1_error)
40534 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40543 ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd(__pyx_t_2, __pyx_v_nu, __pyx_v_c_mu, ((
double *)__pyx_v_k->data), ((
double *)__pyx_v_grad_k->data), ((
double *)__pyx_v_epsilon->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_mom_w_source->data));
40554 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40557 __Pyx_XDECREF(__pyx_t_1);
40558 __Pyx_AddTraceback(
"ctransportCoefficients.ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
40561 __Pyx_XGIVEREF(__pyx_r);
40562 __Pyx_RefNannyFinishContext();
40575 static PyObject *__pyx_pw_22ctransportCoefficients_205scriptedSphereMotionSignedDistance(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40576 static PyMethodDef __pyx_mdef_22ctransportCoefficients_205scriptedSphereMotionSignedDistance = {
"scriptedSphereMotionSignedDistance", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_205scriptedSphereMotionSignedDistance, METH_VARARGS|METH_KEYWORDS, 0};
40577 static PyObject *__pyx_pw_22ctransportCoefficients_205scriptedSphereMotionSignedDistance(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40579 PyArrayObject *__pyx_v_radii = 0;
40580 PyArrayObject *__pyx_v_centers = 0;
40581 PyArrayObject *__pyx_v_x = 0;
40582 PyArrayObject *__pyx_v_phi = 0;
40583 PyArrayObject *__pyx_v_n = 0;
40584 int __pyx_lineno = 0;
40585 const char *__pyx_filename = NULL;
40586 int __pyx_clineno = 0;
40587 PyObject *__pyx_r = 0;
40588 __Pyx_RefNannyDeclarations
40589 __Pyx_RefNannySetupContext(
"scriptedSphereMotionSignedDistance (wrapper)", 0);
40591 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_radii,&__pyx_n_s_centers,&__pyx_n_s_x,&__pyx_n_s_phi,&__pyx_n_s_n,0};
40592 PyObject* values[6] = {0,0,0,0,0,0};
40593 if (unlikely(__pyx_kwds)) {
40594 Py_ssize_t kw_args;
40595 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40596 switch (pos_args) {
40597 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40598 CYTHON_FALLTHROUGH;
40599 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40600 CYTHON_FALLTHROUGH;
40601 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40602 CYTHON_FALLTHROUGH;
40603 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40604 CYTHON_FALLTHROUGH;
40605 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40606 CYTHON_FALLTHROUGH;
40607 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40608 CYTHON_FALLTHROUGH;
40610 default:
goto __pyx_L5_argtuple_error;
40612 kw_args = PyDict_Size(__pyx_kwds);
40613 switch (pos_args) {
40615 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
40616 else goto __pyx_L5_argtuple_error;
40617 CYTHON_FALLTHROUGH;
40619 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_radii)) != 0)) kw_args--;
40621 __Pyx_RaiseArgtupleInvalid(
"scriptedSphereMotionSignedDistance", 1, 6, 6, 1); __PYX_ERR(0, 7452, __pyx_L3_error)
40623 CYTHON_FALLTHROUGH;
40625 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_centers)) != 0)) kw_args--;
40627 __Pyx_RaiseArgtupleInvalid(
"scriptedSphereMotionSignedDistance", 1, 6, 6, 2); __PYX_ERR(0, 7452, __pyx_L3_error)
40629 CYTHON_FALLTHROUGH;
40631 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
40633 __Pyx_RaiseArgtupleInvalid(
"scriptedSphereMotionSignedDistance", 1, 6, 6, 3); __PYX_ERR(0, 7452, __pyx_L3_error)
40635 CYTHON_FALLTHROUGH;
40637 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
40639 __Pyx_RaiseArgtupleInvalid(
"scriptedSphereMotionSignedDistance", 1, 6, 6, 4); __PYX_ERR(0, 7452, __pyx_L3_error)
40641 CYTHON_FALLTHROUGH;
40643 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
40645 __Pyx_RaiseArgtupleInvalid(
"scriptedSphereMotionSignedDistance", 1, 6, 6, 5); __PYX_ERR(0, 7452, __pyx_L3_error)
40648 if (unlikely(kw_args > 0)) {
40649 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"scriptedSphereMotionSignedDistance") < 0)) __PYX_ERR(0, 7452, __pyx_L3_error)
40651 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
40652 goto __pyx_L5_argtuple_error;
40654 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40655 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40656 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40657 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40658 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40659 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40661 __pyx_v_t = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7452, __pyx_L3_error)
40662 __pyx_v_radii = ((PyArrayObject *)values[1]);
40663 __pyx_v_centers = ((PyArrayObject *)values[2]);
40664 __pyx_v_x = ((PyArrayObject *)values[3]);
40665 __pyx_v_phi = ((PyArrayObject *)values[4]);
40666 __pyx_v_n = ((PyArrayObject *)values[5]);
40668 goto __pyx_L4_argument_unpacking_done;
40669 __pyx_L5_argtuple_error:;
40670 __Pyx_RaiseArgtupleInvalid(
"scriptedSphereMotionSignedDistance", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7452, __pyx_L3_error)
40672 __Pyx_AddTraceback(
"ctransportCoefficients.scriptedSphereMotionSignedDistance", __pyx_clineno, __pyx_lineno, __pyx_filename);
40673 __Pyx_RefNannyFinishContext();
40675 __pyx_L4_argument_unpacking_done:;
40676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_radii), __pyx_ptype_5numpy_ndarray, 1,
"radii", 0))) __PYX_ERR(0, 7453, __pyx_L1_error)
40677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_centers), __pyx_ptype_5numpy_ndarray, 1,
"centers", 0))) __PYX_ERR(0, 7454, __pyx_L1_error)
40678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 7455, __pyx_L1_error)
40679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 7456, __pyx_L1_error)
40680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 7457, __pyx_L1_error)
40681 __pyx_r = __pyx_pf_22ctransportCoefficients_204scriptedSphereMotionSignedDistance(__pyx_self, __pyx_v_t, __pyx_v_radii, __pyx_v_centers, __pyx_v_x, __pyx_v_phi, __pyx_v_n);
40688 __Pyx_RefNannyFinishContext();
40692 static PyObject *__pyx_pf_22ctransportCoefficients_204scriptedSphereMotionSignedDistance(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_t, PyArrayObject *__pyx_v_radii, PyArrayObject *__pyx_v_centers, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_n) {
40693 PyObject *__pyx_r = NULL;
40694 __Pyx_RefNannyDeclarations
40695 PyObject *__pyx_t_1 = NULL;
40697 int __pyx_lineno = 0;
40698 const char *__pyx_filename = NULL;
40699 int __pyx_clineno = 0;
40700 __Pyx_RefNannySetupContext(
"scriptedSphereMotionSignedDistance", 0);
40709 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_phi), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7458, __pyx_L1_error)
40710 __Pyx_GOTREF(__pyx_t_1);
40711 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7458, __pyx_L1_error)
40712 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40721 scriptedSphereMotionSignedDistance(__pyx_t_2, __pyx_v_t, (__pyx_v_n->dimensions[(__pyx_v_n->nd - 1)]), (__pyx_v_radii->dimensions[0]), ((
double *)__pyx_v_radii->data), ((
double *)__pyx_v_centers->data), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_n->data));
40732 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40735 __Pyx_XDECREF(__pyx_t_1);
40736 __Pyx_AddTraceback(
"ctransportCoefficients.scriptedSphereMotionSignedDistance", __pyx_clineno, __pyx_lineno, __pyx_filename);
40739 __Pyx_XGIVEREF(__pyx_r);
40740 __Pyx_RefNannyFinishContext();
40753 static PyObject *__pyx_pw_22ctransportCoefficients_207shallowWater_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40754 static PyMethodDef __pyx_mdef_22ctransportCoefficients_207shallowWater_1D_Evaluate = {
"shallowWater_1D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_207shallowWater_1D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
40755 static PyObject *__pyx_pw_22ctransportCoefficients_207shallowWater_1D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40756 double __pyx_v_h_eps;
40758 double __pyx_v_bedFrictionCoefficient;
40759 double __pyx_v_bedFrictionPower;
40760 double __pyx_v_eddyViscosity;
40761 PyArrayObject *__pyx_v_x = 0;
40762 PyArrayObject *__pyx_v_db_dx = 0;
40763 PyArrayObject *__pyx_v_h = 0;
40764 PyArrayObject *__pyx_v_hu = 0;
40765 PyArrayObject *__pyx_v_H = 0;
40766 PyArrayObject *__pyx_v_mass_acc = 0;
40767 PyArrayObject *__pyx_v_dmass_acc_dh = 0;
40768 PyArrayObject *__pyx_v_mom_acc = 0;
40769 PyArrayObject *__pyx_v_dmom_acc_dhu = 0;
40770 PyArrayObject *__pyx_v_mass_adv = 0;
40771 PyArrayObject *__pyx_v_dmass_adv_dhu = 0;
40772 PyArrayObject *__pyx_v_mom_adv = 0;
40773 PyArrayObject *__pyx_v_dmom_adv_dh = 0;
40774 PyArrayObject *__pyx_v_dmom_adv_dhu = 0;
40775 PyArrayObject *__pyx_v_mom_source = 0;
40776 PyArrayObject *__pyx_v_dmom_source_dh = 0;
40777 PyArrayObject *__pyx_v_dmom_source_dhu = 0;
40778 PyArrayObject *__pyx_v_mom_diff = 0;
40779 int __pyx_lineno = 0;
40780 const char *__pyx_filename = NULL;
40781 int __pyx_clineno = 0;
40782 PyObject *__pyx_r = 0;
40783 __Pyx_RefNannyDeclarations
40784 __Pyx_RefNannySetupContext(
"shallowWater_1D_Evaluate (wrapper)", 0);
40786 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_g,&__pyx_n_s_bedFrictionCoefficient,&__pyx_n_s_bedFrictionPower,&__pyx_n_s_eddyViscosity,&__pyx_n_s_x,&__pyx_n_s_db_dx,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_H,&__pyx_n_s_mass_acc,&__pyx_n_s_dmass_acc_dh,&__pyx_n_s_mom_acc,&__pyx_n_s_dmom_acc_dhu,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_dhu,&__pyx_n_s_mom_adv,&__pyx_n_s_dmom_adv_dh,&__pyx_n_s_dmom_adv_dhu,&__pyx_n_s_mom_source,&__pyx_n_s_dmom_source_dh,&__pyx_n_s_dmom_source_dhu,&__pyx_n_s_mom_diff,0};
40787 PyObject* values[23] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
40788 if (unlikely(__pyx_kwds)) {
40789 Py_ssize_t kw_args;
40790 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40791 switch (pos_args) {
40792 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
40793 CYTHON_FALLTHROUGH;
40794 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
40795 CYTHON_FALLTHROUGH;
40796 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
40797 CYTHON_FALLTHROUGH;
40798 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
40799 CYTHON_FALLTHROUGH;
40800 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
40801 CYTHON_FALLTHROUGH;
40802 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
40803 CYTHON_FALLTHROUGH;
40804 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40805 CYTHON_FALLTHROUGH;
40806 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40807 CYTHON_FALLTHROUGH;
40808 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40809 CYTHON_FALLTHROUGH;
40810 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40811 CYTHON_FALLTHROUGH;
40812 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40813 CYTHON_FALLTHROUGH;
40814 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40815 CYTHON_FALLTHROUGH;
40816 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40817 CYTHON_FALLTHROUGH;
40818 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40819 CYTHON_FALLTHROUGH;
40820 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40821 CYTHON_FALLTHROUGH;
40822 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40823 CYTHON_FALLTHROUGH;
40824 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40825 CYTHON_FALLTHROUGH;
40826 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40827 CYTHON_FALLTHROUGH;
40828 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40829 CYTHON_FALLTHROUGH;
40830 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40831 CYTHON_FALLTHROUGH;
40832 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40833 CYTHON_FALLTHROUGH;
40834 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40835 CYTHON_FALLTHROUGH;
40836 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40837 CYTHON_FALLTHROUGH;
40839 default:
goto __pyx_L5_argtuple_error;
40841 kw_args = PyDict_Size(__pyx_kwds);
40842 switch (pos_args) {
40844 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
40845 else goto __pyx_L5_argtuple_error;
40846 CYTHON_FALLTHROUGH;
40848 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
40850 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 1); __PYX_ERR(0, 7467, __pyx_L3_error)
40852 CYTHON_FALLTHROUGH;
40854 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionCoefficient)) != 0)) kw_args--;
40856 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 2); __PYX_ERR(0, 7467, __pyx_L3_error)
40858 CYTHON_FALLTHROUGH;
40860 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionPower)) != 0)) kw_args--;
40862 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 3); __PYX_ERR(0, 7467, __pyx_L3_error)
40864 CYTHON_FALLTHROUGH;
40866 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eddyViscosity)) != 0)) kw_args--;
40868 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 4); __PYX_ERR(0, 7467, __pyx_L3_error)
40870 CYTHON_FALLTHROUGH;
40872 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
40874 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 5); __PYX_ERR(0, 7467, __pyx_L3_error)
40876 CYTHON_FALLTHROUGH;
40878 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db_dx)) != 0)) kw_args--;
40880 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 6); __PYX_ERR(0, 7467, __pyx_L3_error)
40882 CYTHON_FALLTHROUGH;
40884 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
40886 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 7); __PYX_ERR(0, 7467, __pyx_L3_error)
40888 CYTHON_FALLTHROUGH;
40890 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
40892 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 8); __PYX_ERR(0, 7467, __pyx_L3_error)
40894 CYTHON_FALLTHROUGH;
40896 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
40898 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 9); __PYX_ERR(0, 7467, __pyx_L3_error)
40900 CYTHON_FALLTHROUGH;
40902 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_acc)) != 0)) kw_args--;
40904 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 10); __PYX_ERR(0, 7467, __pyx_L3_error)
40906 CYTHON_FALLTHROUGH;
40908 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_acc_dh)) != 0)) kw_args--;
40910 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 11); __PYX_ERR(0, 7467, __pyx_L3_error)
40912 CYTHON_FALLTHROUGH;
40914 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_acc)) != 0)) kw_args--;
40916 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 12); __PYX_ERR(0, 7467, __pyx_L3_error)
40918 CYTHON_FALLTHROUGH;
40920 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_acc_dhu)) != 0)) kw_args--;
40922 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 13); __PYX_ERR(0, 7467, __pyx_L3_error)
40924 CYTHON_FALLTHROUGH;
40926 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
40928 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 14); __PYX_ERR(0, 7467, __pyx_L3_error)
40930 CYTHON_FALLTHROUGH;
40932 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_dhu)) != 0)) kw_args--;
40934 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 15); __PYX_ERR(0, 7467, __pyx_L3_error)
40936 CYTHON_FALLTHROUGH;
40938 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_adv)) != 0)) kw_args--;
40940 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 16); __PYX_ERR(0, 7467, __pyx_L3_error)
40942 CYTHON_FALLTHROUGH;
40944 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_adv_dh)) != 0)) kw_args--;
40946 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 17); __PYX_ERR(0, 7467, __pyx_L3_error)
40948 CYTHON_FALLTHROUGH;
40950 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_adv_dhu)) != 0)) kw_args--;
40952 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 18); __PYX_ERR(0, 7467, __pyx_L3_error)
40954 CYTHON_FALLTHROUGH;
40956 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_source)) != 0)) kw_args--;
40958 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 19); __PYX_ERR(0, 7467, __pyx_L3_error)
40960 CYTHON_FALLTHROUGH;
40962 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_source_dh)) != 0)) kw_args--;
40964 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 20); __PYX_ERR(0, 7467, __pyx_L3_error)
40966 CYTHON_FALLTHROUGH;
40968 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_source_dhu)) != 0)) kw_args--;
40970 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 21); __PYX_ERR(0, 7467, __pyx_L3_error)
40972 CYTHON_FALLTHROUGH;
40974 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_diff)) != 0)) kw_args--;
40976 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, 22); __PYX_ERR(0, 7467, __pyx_L3_error)
40979 if (unlikely(kw_args > 0)) {
40980 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"shallowWater_1D_Evaluate") < 0)) __PYX_ERR(0, 7467, __pyx_L3_error)
40982 }
else if (PyTuple_GET_SIZE(__pyx_args) != 23) {
40983 goto __pyx_L5_argtuple_error;
40985 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40986 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40987 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40988 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40989 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40990 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40991 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40992 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40993 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40994 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40995 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40996 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40997 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40998 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40999 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41000 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41001 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41002 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41003 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41004 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41005 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41006 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41007 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41009 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7467, __pyx_L3_error)
41010 __pyx_v_g = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7468, __pyx_L3_error)
41011 __pyx_v_bedFrictionCoefficient = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_bedFrictionCoefficient == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7469, __pyx_L3_error)
41012 __pyx_v_bedFrictionPower = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_bedFrictionPower == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7470, __pyx_L3_error)
41013 __pyx_v_eddyViscosity = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_eddyViscosity == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7471, __pyx_L3_error)
41014 __pyx_v_x = ((PyArrayObject *)values[5]);
41015 __pyx_v_db_dx = ((PyArrayObject *)values[6]);
41016 __pyx_v_h = ((PyArrayObject *)values[7]);
41017 __pyx_v_hu = ((PyArrayObject *)values[8]);
41018 __pyx_v_H = ((PyArrayObject *)values[9]);
41019 __pyx_v_mass_acc = ((PyArrayObject *)values[10]);
41020 __pyx_v_dmass_acc_dh = ((PyArrayObject *)values[11]);
41021 __pyx_v_mom_acc = ((PyArrayObject *)values[12]);
41022 __pyx_v_dmom_acc_dhu = ((PyArrayObject *)values[13]);
41023 __pyx_v_mass_adv = ((PyArrayObject *)values[14]);
41024 __pyx_v_dmass_adv_dhu = ((PyArrayObject *)values[15]);
41025 __pyx_v_mom_adv = ((PyArrayObject *)values[16]);
41026 __pyx_v_dmom_adv_dh = ((PyArrayObject *)values[17]);
41027 __pyx_v_dmom_adv_dhu = ((PyArrayObject *)values[18]);
41028 __pyx_v_mom_source = ((PyArrayObject *)values[19]);
41029 __pyx_v_dmom_source_dh = ((PyArrayObject *)values[20]);
41030 __pyx_v_dmom_source_dhu = ((PyArrayObject *)values[21]);
41031 __pyx_v_mom_diff = ((PyArrayObject *)values[22]);
41033 goto __pyx_L4_argument_unpacking_done;
41034 __pyx_L5_argtuple_error:;
41035 __Pyx_RaiseArgtupleInvalid(
"shallowWater_1D_Evaluate", 1, 23, 23, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7467, __pyx_L3_error)
41037 __Pyx_AddTraceback(
"ctransportCoefficients.shallowWater_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41038 __Pyx_RefNannyFinishContext();
41040 __pyx_L4_argument_unpacking_done:;
41041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 7472, __pyx_L1_error)
41042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db_dx), __pyx_ptype_5numpy_ndarray, 1,
"db_dx", 0))) __PYX_ERR(0, 7473, __pyx_L1_error)
41043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 7474, __pyx_L1_error)
41044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1,
"hu", 0))) __PYX_ERR(0, 7475, __pyx_L1_error)
41045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 7476, __pyx_L1_error)
41046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_acc), __pyx_ptype_5numpy_ndarray, 1,
"mass_acc", 0))) __PYX_ERR(0, 7477, __pyx_L1_error)
41047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_acc_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmass_acc_dh", 0))) __PYX_ERR(0, 7478, __pyx_L1_error)
41048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_acc", 0))) __PYX_ERR(0, 7479, __pyx_L1_error)
41049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_acc_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_acc_dhu", 0))) __PYX_ERR(0, 7480, __pyx_L1_error)
41050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 7481, __pyx_L1_error)
41051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_dhu", 0))) __PYX_ERR(0, 7482, __pyx_L1_error)
41052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_adv", 0))) __PYX_ERR(0, 7483, __pyx_L1_error)
41053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_adv_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmom_adv_dh", 0))) __PYX_ERR(0, 7484, __pyx_L1_error)
41054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_adv_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_adv_dhu", 0))) __PYX_ERR(0, 7485, __pyx_L1_error)
41055 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_source", 0))) __PYX_ERR(0, 7486, __pyx_L1_error)
41056 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_source_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmom_source_dh", 0))) __PYX_ERR(0, 7487, __pyx_L1_error)
41057 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_source_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_source_dhu", 0))) __PYX_ERR(0, 7488, __pyx_L1_error)
41058 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_diff), __pyx_ptype_5numpy_ndarray, 1,
"mom_diff", 0))) __PYX_ERR(0, 7489, __pyx_L1_error)
41059 __pyx_r = __pyx_pf_22ctransportCoefficients_206shallowWater_1D_Evaluate(__pyx_self, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, __pyx_v_x, __pyx_v_db_dx, __pyx_v_h, __pyx_v_hu, __pyx_v_H, __pyx_v_mass_acc, __pyx_v_dmass_acc_dh, __pyx_v_mom_acc, __pyx_v_dmom_acc_dhu, __pyx_v_mass_adv, __pyx_v_dmass_adv_dhu, __pyx_v_mom_adv, __pyx_v_dmom_adv_dh, __pyx_v_dmom_adv_dhu, __pyx_v_mom_source, __pyx_v_dmom_source_dh, __pyx_v_dmom_source_dhu, __pyx_v_mom_diff);
41066 __Pyx_RefNannyFinishContext();
41070 static PyObject *__pyx_pf_22ctransportCoefficients_206shallowWater_1D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_g,
double __pyx_v_bedFrictionCoefficient,
double __pyx_v_bedFrictionPower,
double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_db_dx, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_acc, PyArrayObject *__pyx_v_dmom_acc_dhu, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_mom_adv, PyArrayObject *__pyx_v_dmom_adv_dh, PyArrayObject *__pyx_v_dmom_adv_dhu, PyArrayObject *__pyx_v_mom_source, PyArrayObject *__pyx_v_dmom_source_dh, PyArrayObject *__pyx_v_dmom_source_dhu, PyArrayObject *__pyx_v_mom_diff) {
41071 PyObject *__pyx_r = NULL;
41072 __Pyx_RefNannyDeclarations
41073 PyObject *__pyx_t_1 = NULL;
41075 int __pyx_lineno = 0;
41076 const char *__pyx_filename = NULL;
41077 int __pyx_clineno = 0;
41078 __Pyx_RefNannySetupContext(
"shallowWater_1D_Evaluate", 0);
41087 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_h), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7490, __pyx_L1_error)
41088 __Pyx_GOTREF(__pyx_t_1);
41089 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7490, __pyx_L1_error)
41090 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41099 shallowWater_1D_Evaluate(__pyx_t_2, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_db_dx->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_hu->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_mass_acc->data), ((
double *)__pyx_v_dmass_acc_dh->data), ((
double *)__pyx_v_mom_acc->data), ((
double *)__pyx_v_dmom_acc_dhu->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_dhu->data), ((
double *)__pyx_v_mom_adv->data), ((
double *)__pyx_v_dmom_adv_dh->data), ((
double *)__pyx_v_dmom_adv_dhu->data), ((
double *)__pyx_v_mom_source->data), ((
double *)__pyx_v_dmom_source_dh->data), ((
double *)__pyx_v_dmom_source_dhu->data), ((
double *)__pyx_v_mom_diff->data));
41110 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41113 __Pyx_XDECREF(__pyx_t_1);
41114 __Pyx_AddTraceback(
"ctransportCoefficients.shallowWater_1D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41117 __Pyx_XGIVEREF(__pyx_r);
41118 __Pyx_RefNannyFinishContext();
41131 static PyObject *__pyx_pw_22ctransportCoefficients_209shallowWater_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41132 static PyMethodDef __pyx_mdef_22ctransportCoefficients_209shallowWater_2D_Evaluate = {
"shallowWater_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_209shallowWater_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
41133 static PyObject *__pyx_pw_22ctransportCoefficients_209shallowWater_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41134 double __pyx_v_h_eps;
41136 double __pyx_v_bedFrictionCoefficient;
41137 double __pyx_v_bedFrictionPower;
41138 double __pyx_v_eddyViscosity;
41139 PyArrayObject *__pyx_v_x = 0;
41140 PyArrayObject *__pyx_v_grad_b = 0;
41141 PyArrayObject *__pyx_v_h = 0;
41142 PyArrayObject *__pyx_v_hu = 0;
41143 PyArrayObject *__pyx_v_hv = 0;
41144 PyArrayObject *__pyx_v_H = 0;
41145 PyArrayObject *__pyx_v_mass_acc = 0;
41146 PyArrayObject *__pyx_v_dmass_acc_dh = 0;
41147 PyArrayObject *__pyx_v_mom_u_acc = 0;
41148 PyArrayObject *__pyx_v_dmom_u_acc_dhu = 0;
41149 PyArrayObject *__pyx_v_mom_v_acc = 0;
41150 PyArrayObject *__pyx_v_dmom_v_acc_dhv = 0;
41151 PyArrayObject *__pyx_v_mass_adv = 0;
41152 PyArrayObject *__pyx_v_dmass_adv_dhu = 0;
41153 PyArrayObject *__pyx_v_dmass_adv_dhv = 0;
41154 PyArrayObject *__pyx_v_mom_u_adv = 0;
41155 PyArrayObject *__pyx_v_dmom_u_adv_dh = 0;
41156 PyArrayObject *__pyx_v_dmom_u_adv_dhu = 0;
41157 PyArrayObject *__pyx_v_dmom_u_adv_dhv = 0;
41158 PyArrayObject *__pyx_v_mom_v_adv = 0;
41159 PyArrayObject *__pyx_v_dmom_v_adv_dh = 0;
41160 PyArrayObject *__pyx_v_dmom_v_adv_dhu = 0;
41161 PyArrayObject *__pyx_v_dmom_v_adv_dhv = 0;
41162 PyArrayObject *__pyx_v_mom_u_diff = 0;
41163 PyArrayObject *__pyx_v_mom_v_diff = 0;
41164 PyArrayObject *__pyx_v_mom_u_source = 0;
41165 PyArrayObject *__pyx_v_dmom_u_source_dh = 0;
41166 PyArrayObject *__pyx_v_dmom_u_source_dhu = 0;
41167 PyArrayObject *__pyx_v_dmom_u_source_dhv = 0;
41168 PyArrayObject *__pyx_v_mom_v_source = 0;
41169 PyArrayObject *__pyx_v_dmom_v_source_dh = 0;
41170 PyArrayObject *__pyx_v_dmom_v_source_dhu = 0;
41171 PyArrayObject *__pyx_v_dmom_v_source_dhv = 0;
41172 int __pyx_lineno = 0;
41173 const char *__pyx_filename = NULL;
41174 int __pyx_clineno = 0;
41175 PyObject *__pyx_r = 0;
41176 __Pyx_RefNannyDeclarations
41177 __Pyx_RefNannySetupContext(
"shallowWater_2D_Evaluate (wrapper)", 0);
41179 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_g,&__pyx_n_s_bedFrictionCoefficient,&__pyx_n_s_bedFrictionPower,&__pyx_n_s_eddyViscosity,&__pyx_n_s_x,&__pyx_n_s_grad_b,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_hv,&__pyx_n_s_H,&__pyx_n_s_mass_acc,&__pyx_n_s_dmass_acc_dh,&__pyx_n_s_mom_u_acc,&__pyx_n_s_dmom_u_acc_dhu,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_v_acc_dhv,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_dhu,&__pyx_n_s_dmass_adv_dhv,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_dh,&__pyx_n_s_dmom_u_adv_dhu,&__pyx_n_s_dmom_u_adv_dhv,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_dh,&__pyx_n_s_dmom_v_adv_dhu,&__pyx_n_s_dmom_v_adv_dhv,&__pyx_n_s_mom_u_diff,&__pyx_n_s_mom_v_diff,&__pyx_n_s_mom_u_source,&__pyx_n_s_dmom_u_source_dh,&__pyx_n_s_dmom_u_source_dhu,&__pyx_n_s_dmom_u_source_dhv,&__pyx_n_s_mom_v_source,&__pyx_n_s_dmom_v_source_dh,&__pyx_n_s_dmom_v_source_dhu,&__pyx_n_s_dmom_v_source_dhv,0};
41180 PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
41181 if (unlikely(__pyx_kwds)) {
41182 Py_ssize_t kw_args;
41183 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41184 switch (pos_args) {
41185 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
41186 CYTHON_FALLTHROUGH;
41187 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
41188 CYTHON_FALLTHROUGH;
41189 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
41190 CYTHON_FALLTHROUGH;
41191 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
41192 CYTHON_FALLTHROUGH;
41193 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
41194 CYTHON_FALLTHROUGH;
41195 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
41196 CYTHON_FALLTHROUGH;
41197 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
41198 CYTHON_FALLTHROUGH;
41199 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
41200 CYTHON_FALLTHROUGH;
41201 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
41202 CYTHON_FALLTHROUGH;
41203 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
41204 CYTHON_FALLTHROUGH;
41205 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41206 CYTHON_FALLTHROUGH;
41207 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41208 CYTHON_FALLTHROUGH;
41209 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41210 CYTHON_FALLTHROUGH;
41211 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41212 CYTHON_FALLTHROUGH;
41213 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41214 CYTHON_FALLTHROUGH;
41215 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41216 CYTHON_FALLTHROUGH;
41217 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41218 CYTHON_FALLTHROUGH;
41219 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41220 CYTHON_FALLTHROUGH;
41221 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41222 CYTHON_FALLTHROUGH;
41223 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41224 CYTHON_FALLTHROUGH;
41225 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41226 CYTHON_FALLTHROUGH;
41227 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41228 CYTHON_FALLTHROUGH;
41229 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41230 CYTHON_FALLTHROUGH;
41231 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41232 CYTHON_FALLTHROUGH;
41233 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41234 CYTHON_FALLTHROUGH;
41235 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41236 CYTHON_FALLTHROUGH;
41237 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41238 CYTHON_FALLTHROUGH;
41239 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41240 CYTHON_FALLTHROUGH;
41241 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41242 CYTHON_FALLTHROUGH;
41243 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41244 CYTHON_FALLTHROUGH;
41245 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41246 CYTHON_FALLTHROUGH;
41247 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41248 CYTHON_FALLTHROUGH;
41249 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41250 CYTHON_FALLTHROUGH;
41251 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41252 CYTHON_FALLTHROUGH;
41253 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41254 CYTHON_FALLTHROUGH;
41255 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41256 CYTHON_FALLTHROUGH;
41257 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41258 CYTHON_FALLTHROUGH;
41259 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41260 CYTHON_FALLTHROUGH;
41262 default:
goto __pyx_L5_argtuple_error;
41264 kw_args = PyDict_Size(__pyx_kwds);
41265 switch (pos_args) {
41267 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
41268 else goto __pyx_L5_argtuple_error;
41269 CYTHON_FALLTHROUGH;
41271 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
41273 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 1); __PYX_ERR(0, 7514, __pyx_L3_error)
41275 CYTHON_FALLTHROUGH;
41277 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionCoefficient)) != 0)) kw_args--;
41279 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 2); __PYX_ERR(0, 7514, __pyx_L3_error)
41281 CYTHON_FALLTHROUGH;
41283 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bedFrictionPower)) != 0)) kw_args--;
41285 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 3); __PYX_ERR(0, 7514, __pyx_L3_error)
41287 CYTHON_FALLTHROUGH;
41289 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eddyViscosity)) != 0)) kw_args--;
41291 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 4); __PYX_ERR(0, 7514, __pyx_L3_error)
41293 CYTHON_FALLTHROUGH;
41295 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
41297 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 5); __PYX_ERR(0, 7514, __pyx_L3_error)
41299 CYTHON_FALLTHROUGH;
41301 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_b)) != 0)) kw_args--;
41303 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 6); __PYX_ERR(0, 7514, __pyx_L3_error)
41305 CYTHON_FALLTHROUGH;
41307 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
41309 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 7); __PYX_ERR(0, 7514, __pyx_L3_error)
41311 CYTHON_FALLTHROUGH;
41313 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
41315 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 8); __PYX_ERR(0, 7514, __pyx_L3_error)
41317 CYTHON_FALLTHROUGH;
41319 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hv)) != 0)) kw_args--;
41321 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 9); __PYX_ERR(0, 7514, __pyx_L3_error)
41323 CYTHON_FALLTHROUGH;
41325 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
41327 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 10); __PYX_ERR(0, 7514, __pyx_L3_error)
41329 CYTHON_FALLTHROUGH;
41331 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_acc)) != 0)) kw_args--;
41333 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 11); __PYX_ERR(0, 7514, __pyx_L3_error)
41335 CYTHON_FALLTHROUGH;
41337 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_acc_dh)) != 0)) kw_args--;
41339 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 12); __PYX_ERR(0, 7514, __pyx_L3_error)
41341 CYTHON_FALLTHROUGH;
41343 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
41345 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 13); __PYX_ERR(0, 7514, __pyx_L3_error)
41347 CYTHON_FALLTHROUGH;
41349 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_dhu)) != 0)) kw_args--;
41351 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 14); __PYX_ERR(0, 7514, __pyx_L3_error)
41353 CYTHON_FALLTHROUGH;
41355 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
41357 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 15); __PYX_ERR(0, 7514, __pyx_L3_error)
41359 CYTHON_FALLTHROUGH;
41361 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_dhv)) != 0)) kw_args--;
41363 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 16); __PYX_ERR(0, 7514, __pyx_L3_error)
41365 CYTHON_FALLTHROUGH;
41367 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
41369 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 17); __PYX_ERR(0, 7514, __pyx_L3_error)
41371 CYTHON_FALLTHROUGH;
41373 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_dhu)) != 0)) kw_args--;
41375 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 18); __PYX_ERR(0, 7514, __pyx_L3_error)
41377 CYTHON_FALLTHROUGH;
41379 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_dhv)) != 0)) kw_args--;
41381 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 19); __PYX_ERR(0, 7514, __pyx_L3_error)
41383 CYTHON_FALLTHROUGH;
41385 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
41387 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 20); __PYX_ERR(0, 7514, __pyx_L3_error)
41389 CYTHON_FALLTHROUGH;
41391 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_dh)) != 0)) kw_args--;
41393 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 21); __PYX_ERR(0, 7514, __pyx_L3_error)
41395 CYTHON_FALLTHROUGH;
41397 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_dhu)) != 0)) kw_args--;
41399 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 22); __PYX_ERR(0, 7514, __pyx_L3_error)
41401 CYTHON_FALLTHROUGH;
41403 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_dhv)) != 0)) kw_args--;
41405 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 23); __PYX_ERR(0, 7514, __pyx_L3_error)
41407 CYTHON_FALLTHROUGH;
41409 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
41411 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 24); __PYX_ERR(0, 7514, __pyx_L3_error)
41413 CYTHON_FALLTHROUGH;
41415 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_dh)) != 0)) kw_args--;
41417 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 25); __PYX_ERR(0, 7514, __pyx_L3_error)
41419 CYTHON_FALLTHROUGH;
41421 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_dhu)) != 0)) kw_args--;
41423 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 26); __PYX_ERR(0, 7514, __pyx_L3_error)
41425 CYTHON_FALLTHROUGH;
41427 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_dhv)) != 0)) kw_args--;
41429 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 27); __PYX_ERR(0, 7514, __pyx_L3_error)
41431 CYTHON_FALLTHROUGH;
41433 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff)) != 0)) kw_args--;
41435 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 28); __PYX_ERR(0, 7514, __pyx_L3_error)
41437 CYTHON_FALLTHROUGH;
41439 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff)) != 0)) kw_args--;
41441 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 29); __PYX_ERR(0, 7514, __pyx_L3_error)
41443 CYTHON_FALLTHROUGH;
41445 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_source)) != 0)) kw_args--;
41447 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 30); __PYX_ERR(0, 7514, __pyx_L3_error)
41449 CYTHON_FALLTHROUGH;
41451 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_dh)) != 0)) kw_args--;
41453 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 31); __PYX_ERR(0, 7514, __pyx_L3_error)
41455 CYTHON_FALLTHROUGH;
41457 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_dhu)) != 0)) kw_args--;
41459 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 32); __PYX_ERR(0, 7514, __pyx_L3_error)
41461 CYTHON_FALLTHROUGH;
41463 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_source_dhv)) != 0)) kw_args--;
41465 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 33); __PYX_ERR(0, 7514, __pyx_L3_error)
41467 CYTHON_FALLTHROUGH;
41469 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_source)) != 0)) kw_args--;
41471 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 34); __PYX_ERR(0, 7514, __pyx_L3_error)
41473 CYTHON_FALLTHROUGH;
41475 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_dh)) != 0)) kw_args--;
41477 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 35); __PYX_ERR(0, 7514, __pyx_L3_error)
41479 CYTHON_FALLTHROUGH;
41481 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_dhu)) != 0)) kw_args--;
41483 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 36); __PYX_ERR(0, 7514, __pyx_L3_error)
41485 CYTHON_FALLTHROUGH;
41487 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_source_dhv)) != 0)) kw_args--;
41489 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, 37); __PYX_ERR(0, 7514, __pyx_L3_error)
41492 if (unlikely(kw_args > 0)) {
41493 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"shallowWater_2D_Evaluate") < 0)) __PYX_ERR(0, 7514, __pyx_L3_error)
41495 }
else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
41496 goto __pyx_L5_argtuple_error;
41498 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41499 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41500 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41501 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41502 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41503 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41504 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41505 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41506 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41507 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41508 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41509 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41510 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41511 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41512 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41513 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41514 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41515 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41516 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41517 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41518 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41519 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41520 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41521 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41522 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41523 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41524 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41525 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41526 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
41527 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
41528 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
41529 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
41530 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
41531 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
41532 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
41533 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
41534 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
41535 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
41537 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7514, __pyx_L3_error)
41538 __pyx_v_g = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7515, __pyx_L3_error)
41539 __pyx_v_bedFrictionCoefficient = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_bedFrictionCoefficient == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7516, __pyx_L3_error)
41540 __pyx_v_bedFrictionPower = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_bedFrictionPower == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7517, __pyx_L3_error)
41541 __pyx_v_eddyViscosity = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_eddyViscosity == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7518, __pyx_L3_error)
41542 __pyx_v_x = ((PyArrayObject *)values[5]);
41543 __pyx_v_grad_b = ((PyArrayObject *)values[6]);
41544 __pyx_v_h = ((PyArrayObject *)values[7]);
41545 __pyx_v_hu = ((PyArrayObject *)values[8]);
41546 __pyx_v_hv = ((PyArrayObject *)values[9]);
41547 __pyx_v_H = ((PyArrayObject *)values[10]);
41548 __pyx_v_mass_acc = ((PyArrayObject *)values[11]);
41549 __pyx_v_dmass_acc_dh = ((PyArrayObject *)values[12]);
41550 __pyx_v_mom_u_acc = ((PyArrayObject *)values[13]);
41551 __pyx_v_dmom_u_acc_dhu = ((PyArrayObject *)values[14]);
41552 __pyx_v_mom_v_acc = ((PyArrayObject *)values[15]);
41553 __pyx_v_dmom_v_acc_dhv = ((PyArrayObject *)values[16]);
41554 __pyx_v_mass_adv = ((PyArrayObject *)values[17]);
41555 __pyx_v_dmass_adv_dhu = ((PyArrayObject *)values[18]);
41556 __pyx_v_dmass_adv_dhv = ((PyArrayObject *)values[19]);
41557 __pyx_v_mom_u_adv = ((PyArrayObject *)values[20]);
41558 __pyx_v_dmom_u_adv_dh = ((PyArrayObject *)values[21]);
41559 __pyx_v_dmom_u_adv_dhu = ((PyArrayObject *)values[22]);
41560 __pyx_v_dmom_u_adv_dhv = ((PyArrayObject *)values[23]);
41561 __pyx_v_mom_v_adv = ((PyArrayObject *)values[24]);
41562 __pyx_v_dmom_v_adv_dh = ((PyArrayObject *)values[25]);
41563 __pyx_v_dmom_v_adv_dhu = ((PyArrayObject *)values[26]);
41564 __pyx_v_dmom_v_adv_dhv = ((PyArrayObject *)values[27]);
41565 __pyx_v_mom_u_diff = ((PyArrayObject *)values[28]);
41566 __pyx_v_mom_v_diff = ((PyArrayObject *)values[29]);
41567 __pyx_v_mom_u_source = ((PyArrayObject *)values[30]);
41568 __pyx_v_dmom_u_source_dh = ((PyArrayObject *)values[31]);
41569 __pyx_v_dmom_u_source_dhu = ((PyArrayObject *)values[32]);
41570 __pyx_v_dmom_u_source_dhv = ((PyArrayObject *)values[33]);
41571 __pyx_v_mom_v_source = ((PyArrayObject *)values[34]);
41572 __pyx_v_dmom_v_source_dh = ((PyArrayObject *)values[35]);
41573 __pyx_v_dmom_v_source_dhu = ((PyArrayObject *)values[36]);
41574 __pyx_v_dmom_v_source_dhv = ((PyArrayObject *)values[37]);
41576 goto __pyx_L4_argument_unpacking_done;
41577 __pyx_L5_argtuple_error:;
41578 __Pyx_RaiseArgtupleInvalid(
"shallowWater_2D_Evaluate", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7514, __pyx_L3_error)
41580 __Pyx_AddTraceback(
"ctransportCoefficients.shallowWater_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41581 __Pyx_RefNannyFinishContext();
41583 __pyx_L4_argument_unpacking_done:;
41584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 7519, __pyx_L1_error)
41585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_b), __pyx_ptype_5numpy_ndarray, 1,
"grad_b", 0))) __PYX_ERR(0, 7520, __pyx_L1_error)
41586 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 7521, __pyx_L1_error)
41587 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1,
"hu", 0))) __PYX_ERR(0, 7522, __pyx_L1_error)
41588 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hv), __pyx_ptype_5numpy_ndarray, 1,
"hv", 0))) __PYX_ERR(0, 7523, __pyx_L1_error)
41589 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 7524, __pyx_L1_error)
41590 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_acc), __pyx_ptype_5numpy_ndarray, 1,
"mass_acc", 0))) __PYX_ERR(0, 7525, __pyx_L1_error)
41591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_acc_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmass_acc_dh", 0))) __PYX_ERR(0, 7526, __pyx_L1_error)
41592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 7527, __pyx_L1_error)
41593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_dhu", 0))) __PYX_ERR(0, 7528, __pyx_L1_error)
41594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 7529, __pyx_L1_error)
41595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_dhv), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_dhv", 0))) __PYX_ERR(0, 7530, __pyx_L1_error)
41596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 7531, __pyx_L1_error)
41597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_dhu", 0))) __PYX_ERR(0, 7532, __pyx_L1_error)
41598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_dhv), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_dhv", 0))) __PYX_ERR(0, 7533, __pyx_L1_error)
41599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 7534, __pyx_L1_error)
41600 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_dh", 0))) __PYX_ERR(0, 7535, __pyx_L1_error)
41601 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_dhu", 0))) __PYX_ERR(0, 7536, __pyx_L1_error)
41602 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_dhv), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_dhv", 0))) __PYX_ERR(0, 7537, __pyx_L1_error)
41603 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 7538, __pyx_L1_error)
41604 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_dh", 0))) __PYX_ERR(0, 7539, __pyx_L1_error)
41605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_dhu", 0))) __PYX_ERR(0, 7540, __pyx_L1_error)
41606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_dhv), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_dhv", 0))) __PYX_ERR(0, 7541, __pyx_L1_error)
41607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff", 0))) __PYX_ERR(0, 7542, __pyx_L1_error)
41608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff", 0))) __PYX_ERR(0, 7543, __pyx_L1_error)
41609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_source", 0))) __PYX_ERR(0, 7544, __pyx_L1_error)
41610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_dh", 0))) __PYX_ERR(0, 7545, __pyx_L1_error)
41611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_dhu", 0))) __PYX_ERR(0, 7546, __pyx_L1_error)
41612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_source_dhv), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_source_dhv", 0))) __PYX_ERR(0, 7547, __pyx_L1_error)
41613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_source), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_source", 0))) __PYX_ERR(0, 7548, __pyx_L1_error)
41614 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_dh), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_dh", 0))) __PYX_ERR(0, 7549, __pyx_L1_error)
41615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_dhu), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_dhu", 0))) __PYX_ERR(0, 7550, __pyx_L1_error)
41616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_source_dhv), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_source_dhv", 0))) __PYX_ERR(0, 7551, __pyx_L1_error)
41617 __pyx_r = __pyx_pf_22ctransportCoefficients_208shallowWater_2D_Evaluate(__pyx_self, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, __pyx_v_x, __pyx_v_grad_b, __pyx_v_h, __pyx_v_hu, __pyx_v_hv, __pyx_v_H, __pyx_v_mass_acc, __pyx_v_dmass_acc_dh, __pyx_v_mom_u_acc, __pyx_v_dmom_u_acc_dhu, __pyx_v_mom_v_acc, __pyx_v_dmom_v_acc_dhv, __pyx_v_mass_adv, __pyx_v_dmass_adv_dhu, __pyx_v_dmass_adv_dhv, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_dh, __pyx_v_dmom_u_adv_dhu, __pyx_v_dmom_u_adv_dhv, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_dh, __pyx_v_dmom_v_adv_dhu, __pyx_v_dmom_v_adv_dhv, __pyx_v_mom_u_diff, __pyx_v_mom_v_diff, __pyx_v_mom_u_source, __pyx_v_dmom_u_source_dh, __pyx_v_dmom_u_source_dhu, __pyx_v_dmom_u_source_dhv, __pyx_v_mom_v_source, __pyx_v_dmom_v_source_dh, __pyx_v_dmom_v_source_dhu, __pyx_v_dmom_v_source_dhv);
41624 __Pyx_RefNannyFinishContext();
41628 static PyObject *__pyx_pf_22ctransportCoefficients_208shallowWater_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_g,
double __pyx_v_bedFrictionCoefficient,
double __pyx_v_bedFrictionPower,
double __pyx_v_eddyViscosity, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_grad_b, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_hv, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_mass_acc, PyArrayObject *__pyx_v_dmass_acc_dh, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_dmom_u_acc_dhu, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_v_acc_dhv, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_dhu, PyArrayObject *__pyx_v_dmass_adv_dhv, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_dh, PyArrayObject *__pyx_v_dmom_u_adv_dhu, PyArrayObject *__pyx_v_dmom_u_adv_dhv, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_dh, PyArrayObject *__pyx_v_dmom_v_adv_dhu, PyArrayObject *__pyx_v_dmom_v_adv_dhv, PyArrayObject *__pyx_v_mom_u_diff, PyArrayObject *__pyx_v_mom_v_diff, PyArrayObject *__pyx_v_mom_u_source, PyArrayObject *__pyx_v_dmom_u_source_dh, PyArrayObject *__pyx_v_dmom_u_source_dhu, PyArrayObject *__pyx_v_dmom_u_source_dhv, PyArrayObject *__pyx_v_mom_v_source, PyArrayObject *__pyx_v_dmom_v_source_dh, PyArrayObject *__pyx_v_dmom_v_source_dhu, PyArrayObject *__pyx_v_dmom_v_source_dhv) {
41629 PyObject *__pyx_r = NULL;
41630 __Pyx_RefNannyDeclarations
41631 PyObject *__pyx_t_1 = NULL;
41633 int __pyx_lineno = 0;
41634 const char *__pyx_filename = NULL;
41635 int __pyx_clineno = 0;
41636 __Pyx_RefNannySetupContext(
"shallowWater_2D_Evaluate", 0);
41645 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_h), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7552, __pyx_L1_error)
41646 __Pyx_GOTREF(__pyx_t_1);
41647 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7552, __pyx_L1_error)
41648 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41657 shallowWater_2D_Evaluate(__pyx_t_2, __pyx_v_h_eps, __pyx_v_g, __pyx_v_bedFrictionCoefficient, __pyx_v_bedFrictionPower, __pyx_v_eddyViscosity, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_grad_b->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_hu->data), ((
double *)__pyx_v_hv->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_mass_acc->data), ((
double *)__pyx_v_dmass_acc_dh->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_dmom_u_acc_dhu->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_v_acc_dhv->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_dhu->data), ((
double *)__pyx_v_dmass_adv_dhv->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_dh->data), ((
double *)__pyx_v_dmom_u_adv_dhu->data), ((
double *)__pyx_v_dmom_u_adv_dhv->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_dh->data), ((
double *)__pyx_v_dmom_v_adv_dhu->data), ((
double *)__pyx_v_dmom_v_adv_dhv->data), ((
double *)__pyx_v_mom_u_diff->data), ((
double *)__pyx_v_mom_v_diff->data), ((
double *)__pyx_v_mom_u_source->data), ((
double *)__pyx_v_dmom_u_source_dh->data), ((
double *)__pyx_v_dmom_u_source_dhu->data), ((
double *)__pyx_v_dmom_u_source_dhv->data), ((
double *)__pyx_v_mom_v_source->data), ((
double *)__pyx_v_dmom_v_source_dh->data), ((
double *)__pyx_v_dmom_v_source_dhu->data), ((
double *)__pyx_v_dmom_v_source_dhv->data));
41668 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41671 __Pyx_XDECREF(__pyx_t_1);
41672 __Pyx_AddTraceback(
"ctransportCoefficients.shallowWater_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
41675 __Pyx_XGIVEREF(__pyx_r);
41676 __Pyx_RefNannyFinishContext();
41689 static PyObject *__pyx_pw_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41690 static PyMethodDef __pyx_mdef_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind = {
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind, METH_VARARGS|METH_KEYWORDS, 0};
41691 static PyObject *__pyx_pw_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41692 int __pyx_v_upwindFlag;
41693 int __pyx_v_computeAverages;
41694 int __pyx_v_nQuadraturePoints_elementBoundary;
41695 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
41696 PyArrayObject *__pyx_v_quadraturePointToElementBoundary = 0;
41697 PyArrayObject *__pyx_v_materialTypes = 0;
41698 double __pyx_v_rho;
41699 double __pyx_v_beta;
41700 PyArrayObject *__pyx_v_gravity = 0;
41701 PyArrayObject *__pyx_v_alpha = 0;
41702 PyArrayObject *__pyx_v_n_vg = 0;
41703 PyArrayObject *__pyx_v_thetaR = 0;
41704 PyArrayObject *__pyx_v_thetaSR = 0;
41705 PyArrayObject *__pyx_v_KWs = 0;
41706 PyArrayObject *__pyx_v_u = 0;
41707 PyArrayObject *__pyx_v_gradu = 0;
41708 PyArrayObject *__pyx_v_n_global = 0;
41709 PyArrayObject *__pyx_v_dV = 0;
41710 PyArrayObject *__pyx_v_mass = 0;
41711 PyArrayObject *__pyx_v_dmass = 0;
41712 PyArrayObject *__pyx_v_f_avg = 0;
41713 PyArrayObject *__pyx_v_df_avg = 0;
41714 PyArrayObject *__pyx_v_a_avg = 0;
41715 PyArrayObject *__pyx_v_da_avg = 0;
41716 PyArrayObject *__pyx_v_f = 0;
41717 PyArrayObject *__pyx_v_df = 0;
41718 PyArrayObject *__pyx_v_a = 0;
41719 PyArrayObject *__pyx_v_da = 0;
41720 int __pyx_lineno = 0;
41721 const char *__pyx_filename = NULL;
41722 int __pyx_clineno = 0;
41723 PyObject *__pyx_r = 0;
41724 __Pyx_RefNannyDeclarations
41725 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind (wrapper)", 0);
41727 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upwindFlag,&__pyx_n_s_computeAverages,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_quadraturePointToElementBoundary,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n_vg,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_n_global,&__pyx_n_s_dV,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f_avg,&__pyx_n_s_df_avg,&__pyx_n_s_a_avg,&__pyx_n_s_da_avg,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
41728 PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
41729 if (unlikely(__pyx_kwds)) {
41730 Py_ssize_t kw_args;
41731 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41732 switch (pos_args) {
41733 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41734 CYTHON_FALLTHROUGH;
41735 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41736 CYTHON_FALLTHROUGH;
41737 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41738 CYTHON_FALLTHROUGH;
41739 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41740 CYTHON_FALLTHROUGH;
41741 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41742 CYTHON_FALLTHROUGH;
41743 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41744 CYTHON_FALLTHROUGH;
41745 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41746 CYTHON_FALLTHROUGH;
41747 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41748 CYTHON_FALLTHROUGH;
41749 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41750 CYTHON_FALLTHROUGH;
41751 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41752 CYTHON_FALLTHROUGH;
41753 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41754 CYTHON_FALLTHROUGH;
41755 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41756 CYTHON_FALLTHROUGH;
41757 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41758 CYTHON_FALLTHROUGH;
41759 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41760 CYTHON_FALLTHROUGH;
41761 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41762 CYTHON_FALLTHROUGH;
41763 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41764 CYTHON_FALLTHROUGH;
41765 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41766 CYTHON_FALLTHROUGH;
41767 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41768 CYTHON_FALLTHROUGH;
41769 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41770 CYTHON_FALLTHROUGH;
41771 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41772 CYTHON_FALLTHROUGH;
41773 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41774 CYTHON_FALLTHROUGH;
41775 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41776 CYTHON_FALLTHROUGH;
41777 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41778 CYTHON_FALLTHROUGH;
41779 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41780 CYTHON_FALLTHROUGH;
41781 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41782 CYTHON_FALLTHROUGH;
41783 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41784 CYTHON_FALLTHROUGH;
41785 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41786 CYTHON_FALLTHROUGH;
41787 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41788 CYTHON_FALLTHROUGH;
41790 default:
goto __pyx_L5_argtuple_error;
41792 kw_args = PyDict_Size(__pyx_kwds);
41793 switch (pos_args) {
41795 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upwindFlag)) != 0)) kw_args--;
41796 else goto __pyx_L5_argtuple_error;
41797 CYTHON_FALLTHROUGH;
41799 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_computeAverages)) != 0)) kw_args--;
41801 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 1); __PYX_ERR(0, 7591, __pyx_L3_error)
41803 CYTHON_FALLTHROUGH;
41805 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
41807 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 2); __PYX_ERR(0, 7591, __pyx_L3_error)
41809 CYTHON_FALLTHROUGH;
41811 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
41813 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 3); __PYX_ERR(0, 7591, __pyx_L3_error)
41815 CYTHON_FALLTHROUGH;
41817 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quadraturePointToElementBoundary)) != 0)) kw_args--;
41819 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 4); __PYX_ERR(0, 7591, __pyx_L3_error)
41821 CYTHON_FALLTHROUGH;
41823 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
41825 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 5); __PYX_ERR(0, 7591, __pyx_L3_error)
41827 CYTHON_FALLTHROUGH;
41829 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
41831 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 6); __PYX_ERR(0, 7591, __pyx_L3_error)
41833 CYTHON_FALLTHROUGH;
41835 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
41837 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 7); __PYX_ERR(0, 7591, __pyx_L3_error)
41839 CYTHON_FALLTHROUGH;
41841 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
41843 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 8); __PYX_ERR(0, 7591, __pyx_L3_error)
41845 CYTHON_FALLTHROUGH;
41847 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
41849 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 9); __PYX_ERR(0, 7591, __pyx_L3_error)
41851 CYTHON_FALLTHROUGH;
41853 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_vg)) != 0)) kw_args--;
41855 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 10); __PYX_ERR(0, 7591, __pyx_L3_error)
41857 CYTHON_FALLTHROUGH;
41859 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
41861 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 11); __PYX_ERR(0, 7591, __pyx_L3_error)
41863 CYTHON_FALLTHROUGH;
41865 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
41867 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 12); __PYX_ERR(0, 7591, __pyx_L3_error)
41869 CYTHON_FALLTHROUGH;
41871 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
41873 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 13); __PYX_ERR(0, 7591, __pyx_L3_error)
41875 CYTHON_FALLTHROUGH;
41877 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
41879 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 14); __PYX_ERR(0, 7591, __pyx_L3_error)
41881 CYTHON_FALLTHROUGH;
41883 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
41885 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 15); __PYX_ERR(0, 7591, __pyx_L3_error)
41887 CYTHON_FALLTHROUGH;
41889 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_global)) != 0)) kw_args--;
41891 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 16); __PYX_ERR(0, 7591, __pyx_L3_error)
41893 CYTHON_FALLTHROUGH;
41895 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
41897 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 17); __PYX_ERR(0, 7591, __pyx_L3_error)
41899 CYTHON_FALLTHROUGH;
41901 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
41903 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 18); __PYX_ERR(0, 7591, __pyx_L3_error)
41905 CYTHON_FALLTHROUGH;
41907 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
41909 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 19); __PYX_ERR(0, 7591, __pyx_L3_error)
41911 CYTHON_FALLTHROUGH;
41913 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_avg)) != 0)) kw_args--;
41915 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 20); __PYX_ERR(0, 7591, __pyx_L3_error)
41917 CYTHON_FALLTHROUGH;
41919 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_avg)) != 0)) kw_args--;
41921 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 21); __PYX_ERR(0, 7591, __pyx_L3_error)
41923 CYTHON_FALLTHROUGH;
41925 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_avg)) != 0)) kw_args--;
41927 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 22); __PYX_ERR(0, 7591, __pyx_L3_error)
41929 CYTHON_FALLTHROUGH;
41931 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_avg)) != 0)) kw_args--;
41933 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 23); __PYX_ERR(0, 7591, __pyx_L3_error)
41935 CYTHON_FALLTHROUGH;
41937 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
41939 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 24); __PYX_ERR(0, 7591, __pyx_L3_error)
41941 CYTHON_FALLTHROUGH;
41943 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
41945 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 25); __PYX_ERR(0, 7591, __pyx_L3_error)
41947 CYTHON_FALLTHROUGH;
41949 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
41951 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 26); __PYX_ERR(0, 7591, __pyx_L3_error)
41953 CYTHON_FALLTHROUGH;
41955 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
41957 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, 27); __PYX_ERR(0, 7591, __pyx_L3_error)
41960 if (unlikely(kw_args > 0)) {
41961 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind") < 0)) __PYX_ERR(0, 7591, __pyx_L3_error)
41963 }
else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
41964 goto __pyx_L5_argtuple_error;
41966 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41967 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41968 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41969 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41970 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41971 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41972 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41973 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41974 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41975 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41976 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41977 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41978 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41979 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41980 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41981 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41982 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41983 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41984 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41985 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41986 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41987 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41988 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41989 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
41990 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
41991 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
41992 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
41993 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
41995 __pyx_v_upwindFlag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_upwindFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7591, __pyx_L3_error)
41996 __pyx_v_computeAverages = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_computeAverages == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7592, __pyx_L3_error)
41997 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7593, __pyx_L3_error)
41998 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[3]);
41999 __pyx_v_quadraturePointToElementBoundary = ((PyArrayObject *)values[4]);
42000 __pyx_v_materialTypes = ((PyArrayObject *)values[5]);
42001 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7597, __pyx_L3_error)
42002 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7598, __pyx_L3_error)
42003 __pyx_v_gravity = ((PyArrayObject *)values[8]);
42004 __pyx_v_alpha = ((PyArrayObject *)values[9]);
42005 __pyx_v_n_vg = ((PyArrayObject *)values[10]);
42006 __pyx_v_thetaR = ((PyArrayObject *)values[11]);
42007 __pyx_v_thetaSR = ((PyArrayObject *)values[12]);
42008 __pyx_v_KWs = ((PyArrayObject *)values[13]);
42009 __pyx_v_u = ((PyArrayObject *)values[14]);
42010 __pyx_v_gradu = ((PyArrayObject *)values[15]);
42011 __pyx_v_n_global = ((PyArrayObject *)values[16]);
42012 __pyx_v_dV = ((PyArrayObject *)values[17]);
42013 __pyx_v_mass = ((PyArrayObject *)values[18]);
42014 __pyx_v_dmass = ((PyArrayObject *)values[19]);
42015 __pyx_v_f_avg = ((PyArrayObject *)values[20]);
42016 __pyx_v_df_avg = ((PyArrayObject *)values[21]);
42017 __pyx_v_a_avg = ((PyArrayObject *)values[22]);
42018 __pyx_v_da_avg = ((PyArrayObject *)values[23]);
42019 __pyx_v_f = ((PyArrayObject *)values[24]);
42020 __pyx_v_df = ((PyArrayObject *)values[25]);
42021 __pyx_v_a = ((PyArrayObject *)values[26]);
42022 __pyx_v_da = ((PyArrayObject *)values[27]);
42024 goto __pyx_L4_argument_unpacking_done;
42025 __pyx_L5_argtuple_error:;
42026 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7591, __pyx_L3_error)
42028 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
42029 __Pyx_RefNannyFinishContext();
42031 __pyx_L4_argument_unpacking_done:;
42032 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 7594, __pyx_L1_error)
42033 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quadraturePointToElementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"quadraturePointToElementBoundary", 0))) __PYX_ERR(0, 7595, __pyx_L1_error)
42034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 7596, __pyx_L1_error)
42035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 7599, __pyx_L1_error)
42036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 7600, __pyx_L1_error)
42037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_vg), __pyx_ptype_5numpy_ndarray, 1,
"n_vg", 0))) __PYX_ERR(0, 7601, __pyx_L1_error)
42038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 7602, __pyx_L1_error)
42039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 7603, __pyx_L1_error)
42040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 7604, __pyx_L1_error)
42041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 7605, __pyx_L1_error)
42042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7606, __pyx_L1_error)
42043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_global), __pyx_ptype_5numpy_ndarray, 1,
"n_global", 0))) __PYX_ERR(0, 7607, __pyx_L1_error)
42044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 7608, __pyx_L1_error)
42045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 7609, __pyx_L1_error)
42046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 7610, __pyx_L1_error)
42047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_avg), __pyx_ptype_5numpy_ndarray, 1,
"f_avg", 0))) __PYX_ERR(0, 7611, __pyx_L1_error)
42048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_avg), __pyx_ptype_5numpy_ndarray, 1,
"df_avg", 0))) __PYX_ERR(0, 7612, __pyx_L1_error)
42049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_avg), __pyx_ptype_5numpy_ndarray, 1,
"a_avg", 0))) __PYX_ERR(0, 7613, __pyx_L1_error)
42050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_avg), __pyx_ptype_5numpy_ndarray, 1,
"da_avg", 0))) __PYX_ERR(0, 7614, __pyx_L1_error)
42051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 7615, __pyx_L1_error)
42052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 7616, __pyx_L1_error)
42053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 7617, __pyx_L1_error)
42054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 7618, __pyx_L1_error)
42055 __pyx_r = __pyx_pf_22ctransportCoefficients_210conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(__pyx_self, __pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_elementBoundaryElementsArray, __pyx_v_quadraturePointToElementBoundary, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n_vg, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_gradu, __pyx_v_n_global, __pyx_v_dV, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f_avg, __pyx_v_df_avg, __pyx_v_a_avg, __pyx_v_da_avg, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
42062 __Pyx_RefNannyFinishContext();
42066 static PyObject *__pyx_pf_22ctransportCoefficients_210conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_upwindFlag,
int __pyx_v_computeAverages,
int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
42067 PyObject *__pyx_r = NULL;
42068 __Pyx_RefNannyDeclarations
42069 PyObject *__pyx_t_1 = NULL;
42070 PyObject *__pyx_t_2 = NULL;
42071 PyObject *__pyx_t_3 = NULL;
42073 int __pyx_lineno = 0;
42074 const char *__pyx_filename = NULL;
42075 int __pyx_clineno = 0;
42076 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", 0);
42085 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7621, __pyx_L1_error)
42086 __Pyx_GOTREF(__pyx_t_1);
42087 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7621, __pyx_L1_error)
42088 __Pyx_GOTREF(__pyx_t_2);
42089 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7621, __pyx_L1_error)
42090 __Pyx_GOTREF(__pyx_t_3);
42091 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42092 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42093 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7621, __pyx_L1_error)
42094 __Pyx_GOTREF(__pyx_t_2);
42095 __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7621, __pyx_L1_error)
42096 __Pyx_GOTREF(__pyx_t_1);
42097 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42098 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42099 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7621, __pyx_L1_error)
42100 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42109 conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind(__pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_quadraturePointToElementBoundary->data), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n_vg->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_n_global->data), ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f_avg->data), ((
double *)__pyx_v_df_avg->data), ((
double *)__pyx_v_a_avg->data), ((
double *)__pyx_v_da_avg->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
42120 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
42123 __Pyx_XDECREF(__pyx_t_1);
42124 __Pyx_XDECREF(__pyx_t_2);
42125 __Pyx_XDECREF(__pyx_t_3);
42126 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
42129 __Pyx_XGIVEREF(__pyx_r);
42130 __Pyx_RefNannyFinishContext();
42143 static PyObject *__pyx_pw_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
42144 static PyMethodDef __pyx_mdef_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm = {
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm, METH_VARARGS|METH_KEYWORDS, 0};
42145 static PyObject *__pyx_pw_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42146 int __pyx_v_upwindFlag;
42147 int __pyx_v_computeAverages;
42148 int __pyx_v_nQuadraturePoints_elementBoundary;
42149 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
42150 PyArrayObject *__pyx_v_quadraturePointToElementBoundary = 0;
42151 PyArrayObject *__pyx_v_materialTypes = 0;
42152 double __pyx_v_rho;
42153 double __pyx_v_beta;
42154 PyArrayObject *__pyx_v_gravity = 0;
42155 PyArrayObject *__pyx_v_alpha = 0;
42156 PyArrayObject *__pyx_v_n_vg = 0;
42157 PyArrayObject *__pyx_v_thetaR = 0;
42158 PyArrayObject *__pyx_v_thetaSR = 0;
42159 PyArrayObject *__pyx_v_KWs = 0;
42160 PyArrayObject *__pyx_v_u = 0;
42161 PyArrayObject *__pyx_v_gradu = 0;
42162 PyArrayObject *__pyx_v_n_global = 0;
42163 PyArrayObject *__pyx_v_dV = 0;
42164 PyArrayObject *__pyx_v_mass = 0;
42165 PyArrayObject *__pyx_v_dmass = 0;
42166 PyArrayObject *__pyx_v_f_avg = 0;
42167 PyArrayObject *__pyx_v_df_avg = 0;
42168 PyArrayObject *__pyx_v_a_avg = 0;
42169 PyArrayObject *__pyx_v_da_avg = 0;
42170 PyArrayObject *__pyx_v_f = 0;
42171 PyArrayObject *__pyx_v_df = 0;
42172 PyArrayObject *__pyx_v_a = 0;
42173 PyArrayObject *__pyx_v_da = 0;
42174 int __pyx_lineno = 0;
42175 const char *__pyx_filename = NULL;
42176 int __pyx_clineno = 0;
42177 PyObject *__pyx_r = 0;
42178 __Pyx_RefNannyDeclarations
42179 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm (wrapper)", 0);
42181 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upwindFlag,&__pyx_n_s_computeAverages,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_quadraturePointToElementBoundary,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n_vg,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_n_global,&__pyx_n_s_dV,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f_avg,&__pyx_n_s_df_avg,&__pyx_n_s_a_avg,&__pyx_n_s_da_avg,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
42182 PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42183 if (unlikely(__pyx_kwds)) {
42184 Py_ssize_t kw_args;
42185 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42186 switch (pos_args) {
42187 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42188 CYTHON_FALLTHROUGH;
42189 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42190 CYTHON_FALLTHROUGH;
42191 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42192 CYTHON_FALLTHROUGH;
42193 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42194 CYTHON_FALLTHROUGH;
42195 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42196 CYTHON_FALLTHROUGH;
42197 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42198 CYTHON_FALLTHROUGH;
42199 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42200 CYTHON_FALLTHROUGH;
42201 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42202 CYTHON_FALLTHROUGH;
42203 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42204 CYTHON_FALLTHROUGH;
42205 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42206 CYTHON_FALLTHROUGH;
42207 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42208 CYTHON_FALLTHROUGH;
42209 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42210 CYTHON_FALLTHROUGH;
42211 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42212 CYTHON_FALLTHROUGH;
42213 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42214 CYTHON_FALLTHROUGH;
42215 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42216 CYTHON_FALLTHROUGH;
42217 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42218 CYTHON_FALLTHROUGH;
42219 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42220 CYTHON_FALLTHROUGH;
42221 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42222 CYTHON_FALLTHROUGH;
42223 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42224 CYTHON_FALLTHROUGH;
42225 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42226 CYTHON_FALLTHROUGH;
42227 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42228 CYTHON_FALLTHROUGH;
42229 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42230 CYTHON_FALLTHROUGH;
42231 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42232 CYTHON_FALLTHROUGH;
42233 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42234 CYTHON_FALLTHROUGH;
42235 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42236 CYTHON_FALLTHROUGH;
42237 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42238 CYTHON_FALLTHROUGH;
42239 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42240 CYTHON_FALLTHROUGH;
42241 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42242 CYTHON_FALLTHROUGH;
42244 default:
goto __pyx_L5_argtuple_error;
42246 kw_args = PyDict_Size(__pyx_kwds);
42247 switch (pos_args) {
42249 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upwindFlag)) != 0)) kw_args--;
42250 else goto __pyx_L5_argtuple_error;
42251 CYTHON_FALLTHROUGH;
42253 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_computeAverages)) != 0)) kw_args--;
42255 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 1); __PYX_ERR(0, 7650, __pyx_L3_error)
42257 CYTHON_FALLTHROUGH;
42259 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
42261 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 2); __PYX_ERR(0, 7650, __pyx_L3_error)
42263 CYTHON_FALLTHROUGH;
42265 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
42267 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 3); __PYX_ERR(0, 7650, __pyx_L3_error)
42269 CYTHON_FALLTHROUGH;
42271 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quadraturePointToElementBoundary)) != 0)) kw_args--;
42273 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 4); __PYX_ERR(0, 7650, __pyx_L3_error)
42275 CYTHON_FALLTHROUGH;
42277 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
42279 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 5); __PYX_ERR(0, 7650, __pyx_L3_error)
42281 CYTHON_FALLTHROUGH;
42283 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
42285 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 6); __PYX_ERR(0, 7650, __pyx_L3_error)
42287 CYTHON_FALLTHROUGH;
42289 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
42291 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 7); __PYX_ERR(0, 7650, __pyx_L3_error)
42293 CYTHON_FALLTHROUGH;
42295 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
42297 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 8); __PYX_ERR(0, 7650, __pyx_L3_error)
42299 CYTHON_FALLTHROUGH;
42301 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
42303 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 9); __PYX_ERR(0, 7650, __pyx_L3_error)
42305 CYTHON_FALLTHROUGH;
42307 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_vg)) != 0)) kw_args--;
42309 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 10); __PYX_ERR(0, 7650, __pyx_L3_error)
42311 CYTHON_FALLTHROUGH;
42313 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
42315 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 11); __PYX_ERR(0, 7650, __pyx_L3_error)
42317 CYTHON_FALLTHROUGH;
42319 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
42321 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 12); __PYX_ERR(0, 7650, __pyx_L3_error)
42323 CYTHON_FALLTHROUGH;
42325 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
42327 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 13); __PYX_ERR(0, 7650, __pyx_L3_error)
42329 CYTHON_FALLTHROUGH;
42331 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
42333 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 14); __PYX_ERR(0, 7650, __pyx_L3_error)
42335 CYTHON_FALLTHROUGH;
42337 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
42339 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 15); __PYX_ERR(0, 7650, __pyx_L3_error)
42341 CYTHON_FALLTHROUGH;
42343 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_global)) != 0)) kw_args--;
42345 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 16); __PYX_ERR(0, 7650, __pyx_L3_error)
42347 CYTHON_FALLTHROUGH;
42349 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
42351 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 17); __PYX_ERR(0, 7650, __pyx_L3_error)
42353 CYTHON_FALLTHROUGH;
42355 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
42357 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 18); __PYX_ERR(0, 7650, __pyx_L3_error)
42359 CYTHON_FALLTHROUGH;
42361 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
42363 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 19); __PYX_ERR(0, 7650, __pyx_L3_error)
42365 CYTHON_FALLTHROUGH;
42367 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_avg)) != 0)) kw_args--;
42369 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 20); __PYX_ERR(0, 7650, __pyx_L3_error)
42371 CYTHON_FALLTHROUGH;
42373 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_avg)) != 0)) kw_args--;
42375 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 21); __PYX_ERR(0, 7650, __pyx_L3_error)
42377 CYTHON_FALLTHROUGH;
42379 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_avg)) != 0)) kw_args--;
42381 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 22); __PYX_ERR(0, 7650, __pyx_L3_error)
42383 CYTHON_FALLTHROUGH;
42385 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_avg)) != 0)) kw_args--;
42387 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 23); __PYX_ERR(0, 7650, __pyx_L3_error)
42389 CYTHON_FALLTHROUGH;
42391 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
42393 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 24); __PYX_ERR(0, 7650, __pyx_L3_error)
42395 CYTHON_FALLTHROUGH;
42397 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
42399 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 25); __PYX_ERR(0, 7650, __pyx_L3_error)
42401 CYTHON_FALLTHROUGH;
42403 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
42405 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 26); __PYX_ERR(0, 7650, __pyx_L3_error)
42407 CYTHON_FALLTHROUGH;
42409 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
42411 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, 27); __PYX_ERR(0, 7650, __pyx_L3_error)
42414 if (unlikely(kw_args > 0)) {
42415 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm") < 0)) __PYX_ERR(0, 7650, __pyx_L3_error)
42417 }
else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
42418 goto __pyx_L5_argtuple_error;
42420 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42421 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42422 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42423 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42424 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42425 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42426 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42427 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42428 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42429 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42430 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42431 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42432 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42433 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42434 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42435 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42436 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42437 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42438 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42439 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42440 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42441 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42442 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42443 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42444 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42445 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42446 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42447 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42449 __pyx_v_upwindFlag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_upwindFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7650, __pyx_L3_error)
42450 __pyx_v_computeAverages = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_computeAverages == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7651, __pyx_L3_error)
42451 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7652, __pyx_L3_error)
42452 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[3]);
42453 __pyx_v_quadraturePointToElementBoundary = ((PyArrayObject *)values[4]);
42454 __pyx_v_materialTypes = ((PyArrayObject *)values[5]);
42455 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7656, __pyx_L3_error)
42456 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7657, __pyx_L3_error)
42457 __pyx_v_gravity = ((PyArrayObject *)values[8]);
42458 __pyx_v_alpha = ((PyArrayObject *)values[9]);
42459 __pyx_v_n_vg = ((PyArrayObject *)values[10]);
42460 __pyx_v_thetaR = ((PyArrayObject *)values[11]);
42461 __pyx_v_thetaSR = ((PyArrayObject *)values[12]);
42462 __pyx_v_KWs = ((PyArrayObject *)values[13]);
42463 __pyx_v_u = ((PyArrayObject *)values[14]);
42464 __pyx_v_gradu = ((PyArrayObject *)values[15]);
42465 __pyx_v_n_global = ((PyArrayObject *)values[16]);
42466 __pyx_v_dV = ((PyArrayObject *)values[17]);
42467 __pyx_v_mass = ((PyArrayObject *)values[18]);
42468 __pyx_v_dmass = ((PyArrayObject *)values[19]);
42469 __pyx_v_f_avg = ((PyArrayObject *)values[20]);
42470 __pyx_v_df_avg = ((PyArrayObject *)values[21]);
42471 __pyx_v_a_avg = ((PyArrayObject *)values[22]);
42472 __pyx_v_da_avg = ((PyArrayObject *)values[23]);
42473 __pyx_v_f = ((PyArrayObject *)values[24]);
42474 __pyx_v_df = ((PyArrayObject *)values[25]);
42475 __pyx_v_a = ((PyArrayObject *)values[26]);
42476 __pyx_v_da = ((PyArrayObject *)values[27]);
42478 goto __pyx_L4_argument_unpacking_done;
42479 __pyx_L5_argtuple_error:;
42480 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7650, __pyx_L3_error)
42482 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", __pyx_clineno, __pyx_lineno, __pyx_filename);
42483 __Pyx_RefNannyFinishContext();
42485 __pyx_L4_argument_unpacking_done:;
42486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 7653, __pyx_L1_error)
42487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quadraturePointToElementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"quadraturePointToElementBoundary", 0))) __PYX_ERR(0, 7654, __pyx_L1_error)
42488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 7655, __pyx_L1_error)
42489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 7658, __pyx_L1_error)
42490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 7659, __pyx_L1_error)
42491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_vg), __pyx_ptype_5numpy_ndarray, 1,
"n_vg", 0))) __PYX_ERR(0, 7660, __pyx_L1_error)
42492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 7661, __pyx_L1_error)
42493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 7662, __pyx_L1_error)
42494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 7663, __pyx_L1_error)
42495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 7664, __pyx_L1_error)
42496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7665, __pyx_L1_error)
42497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_global), __pyx_ptype_5numpy_ndarray, 1,
"n_global", 0))) __PYX_ERR(0, 7666, __pyx_L1_error)
42498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 7667, __pyx_L1_error)
42499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 7668, __pyx_L1_error)
42500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 7669, __pyx_L1_error)
42501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_avg), __pyx_ptype_5numpy_ndarray, 1,
"f_avg", 0))) __PYX_ERR(0, 7670, __pyx_L1_error)
42502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_avg), __pyx_ptype_5numpy_ndarray, 1,
"df_avg", 0))) __PYX_ERR(0, 7671, __pyx_L1_error)
42503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_avg), __pyx_ptype_5numpy_ndarray, 1,
"a_avg", 0))) __PYX_ERR(0, 7672, __pyx_L1_error)
42504 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_avg), __pyx_ptype_5numpy_ndarray, 1,
"da_avg", 0))) __PYX_ERR(0, 7673, __pyx_L1_error)
42505 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 7674, __pyx_L1_error)
42506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 7675, __pyx_L1_error)
42507 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 7676, __pyx_L1_error)
42508 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 7677, __pyx_L1_error)
42509 __pyx_r = __pyx_pf_22ctransportCoefficients_212conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(__pyx_self, __pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_elementBoundaryElementsArray, __pyx_v_quadraturePointToElementBoundary, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n_vg, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_gradu, __pyx_v_n_global, __pyx_v_dV, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f_avg, __pyx_v_df_avg, __pyx_v_a_avg, __pyx_v_da_avg, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
42516 __Pyx_RefNannyFinishContext();
42520 static PyObject *__pyx_pf_22ctransportCoefficients_212conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_upwindFlag,
int __pyx_v_computeAverages,
int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
42521 PyObject *__pyx_r = NULL;
42522 __Pyx_RefNannyDeclarations
42523 PyObject *__pyx_t_1 = NULL;
42524 PyObject *__pyx_t_2 = NULL;
42525 PyObject *__pyx_t_3 = NULL;
42527 int __pyx_lineno = 0;
42528 const char *__pyx_filename = NULL;
42529 int __pyx_clineno = 0;
42530 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", 0);
42539 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7680, __pyx_L1_error)
42540 __Pyx_GOTREF(__pyx_t_1);
42541 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7680, __pyx_L1_error)
42542 __Pyx_GOTREF(__pyx_t_2);
42543 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7680, __pyx_L1_error)
42544 __Pyx_GOTREF(__pyx_t_3);
42545 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42546 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42547 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7680, __pyx_L1_error)
42548 __Pyx_GOTREF(__pyx_t_2);
42549 __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7680, __pyx_L1_error)
42550 __Pyx_GOTREF(__pyx_t_1);
42551 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42552 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42553 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7680, __pyx_L1_error)
42554 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42563 conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(__pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_quadraturePointToElementBoundary->data), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n_vg->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_n_global->data), ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f_avg->data), ((
double *)__pyx_v_df_avg->data), ((
double *)__pyx_v_a_avg->data), ((
double *)__pyx_v_da_avg->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
42574 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
42577 __Pyx_XDECREF(__pyx_t_1);
42578 __Pyx_XDECREF(__pyx_t_2);
42579 __Pyx_XDECREF(__pyx_t_3);
42580 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm", __pyx_clineno, __pyx_lineno, __pyx_filename);
42583 __Pyx_XGIVEREF(__pyx_r);
42584 __Pyx_RefNannyFinishContext();
42597 static PyObject *__pyx_pw_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
42598 static PyMethodDef __pyx_mdef_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd = {
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd, METH_VARARGS|METH_KEYWORDS, 0};
42599 static PyObject *__pyx_pw_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42600 int __pyx_v_upwindFlag;
42601 int __pyx_v_computeAverages;
42602 int __pyx_v_nQuadraturePoints_elementBoundary;
42603 PyArrayObject *__pyx_v_rowptr = 0;
42604 PyArrayObject *__pyx_v_colind = 0;
42605 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
42606 PyArrayObject *__pyx_v_quadraturePointToElementBoundary = 0;
42607 PyArrayObject *__pyx_v_materialTypes = 0;
42608 double __pyx_v_rho;
42609 double __pyx_v_beta;
42610 PyArrayObject *__pyx_v_gravity = 0;
42611 PyArrayObject *__pyx_v_alpha = 0;
42612 PyArrayObject *__pyx_v_n_vg = 0;
42613 PyArrayObject *__pyx_v_thetaR = 0;
42614 PyArrayObject *__pyx_v_thetaSR = 0;
42615 PyArrayObject *__pyx_v_KWs = 0;
42616 PyArrayObject *__pyx_v_u = 0;
42617 PyArrayObject *__pyx_v_gradu = 0;
42618 PyArrayObject *__pyx_v_n_global = 0;
42619 PyArrayObject *__pyx_v_dV = 0;
42620 PyArrayObject *__pyx_v_mass = 0;
42621 PyArrayObject *__pyx_v_dmass = 0;
42622 PyArrayObject *__pyx_v_f_avg = 0;
42623 PyArrayObject *__pyx_v_df_avg = 0;
42624 PyArrayObject *__pyx_v_a_avg = 0;
42625 PyArrayObject *__pyx_v_da_avg = 0;
42626 PyArrayObject *__pyx_v_f = 0;
42627 PyArrayObject *__pyx_v_df = 0;
42628 PyArrayObject *__pyx_v_a = 0;
42629 PyArrayObject *__pyx_v_da = 0;
42630 int __pyx_lineno = 0;
42631 const char *__pyx_filename = NULL;
42632 int __pyx_clineno = 0;
42633 PyObject *__pyx_r = 0;
42634 __Pyx_RefNannyDeclarations
42635 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd (wrapper)", 0);
42637 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_upwindFlag,&__pyx_n_s_computeAverages,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_quadraturePointToElementBoundary,&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_alpha,&__pyx_n_s_n_vg,&__pyx_n_s_thetaR,&__pyx_n_s_thetaSR,&__pyx_n_s_KWs,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_n_global,&__pyx_n_s_dV,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f_avg,&__pyx_n_s_df_avg,&__pyx_n_s_a_avg,&__pyx_n_s_da_avg,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
42638 PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42639 if (unlikely(__pyx_kwds)) {
42640 Py_ssize_t kw_args;
42641 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42642 switch (pos_args) {
42643 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
42644 CYTHON_FALLTHROUGH;
42645 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
42646 CYTHON_FALLTHROUGH;
42647 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42648 CYTHON_FALLTHROUGH;
42649 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42650 CYTHON_FALLTHROUGH;
42651 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42652 CYTHON_FALLTHROUGH;
42653 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42654 CYTHON_FALLTHROUGH;
42655 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42656 CYTHON_FALLTHROUGH;
42657 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42658 CYTHON_FALLTHROUGH;
42659 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42660 CYTHON_FALLTHROUGH;
42661 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42662 CYTHON_FALLTHROUGH;
42663 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42664 CYTHON_FALLTHROUGH;
42665 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42666 CYTHON_FALLTHROUGH;
42667 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42668 CYTHON_FALLTHROUGH;
42669 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42670 CYTHON_FALLTHROUGH;
42671 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42672 CYTHON_FALLTHROUGH;
42673 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42674 CYTHON_FALLTHROUGH;
42675 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42676 CYTHON_FALLTHROUGH;
42677 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42678 CYTHON_FALLTHROUGH;
42679 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42680 CYTHON_FALLTHROUGH;
42681 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42682 CYTHON_FALLTHROUGH;
42683 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42684 CYTHON_FALLTHROUGH;
42685 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42686 CYTHON_FALLTHROUGH;
42687 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42688 CYTHON_FALLTHROUGH;
42689 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42690 CYTHON_FALLTHROUGH;
42691 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42692 CYTHON_FALLTHROUGH;
42693 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42694 CYTHON_FALLTHROUGH;
42695 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42696 CYTHON_FALLTHROUGH;
42697 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42698 CYTHON_FALLTHROUGH;
42699 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42700 CYTHON_FALLTHROUGH;
42701 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42702 CYTHON_FALLTHROUGH;
42704 default:
goto __pyx_L5_argtuple_error;
42706 kw_args = PyDict_Size(__pyx_kwds);
42707 switch (pos_args) {
42709 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_upwindFlag)) != 0)) kw_args--;
42710 else goto __pyx_L5_argtuple_error;
42711 CYTHON_FALLTHROUGH;
42713 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_computeAverages)) != 0)) kw_args--;
42715 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 1); __PYX_ERR(0, 7709, __pyx_L3_error)
42717 CYTHON_FALLTHROUGH;
42719 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
42721 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 2); __PYX_ERR(0, 7709, __pyx_L3_error)
42723 CYTHON_FALLTHROUGH;
42725 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
42727 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 3); __PYX_ERR(0, 7709, __pyx_L3_error)
42729 CYTHON_FALLTHROUGH;
42731 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
42733 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 4); __PYX_ERR(0, 7709, __pyx_L3_error)
42735 CYTHON_FALLTHROUGH;
42737 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
42739 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 5); __PYX_ERR(0, 7709, __pyx_L3_error)
42741 CYTHON_FALLTHROUGH;
42743 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quadraturePointToElementBoundary)) != 0)) kw_args--;
42745 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 6); __PYX_ERR(0, 7709, __pyx_L3_error)
42747 CYTHON_FALLTHROUGH;
42749 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
42751 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 7); __PYX_ERR(0, 7709, __pyx_L3_error)
42753 CYTHON_FALLTHROUGH;
42755 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
42757 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 8); __PYX_ERR(0, 7709, __pyx_L3_error)
42759 CYTHON_FALLTHROUGH;
42761 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
42763 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 9); __PYX_ERR(0, 7709, __pyx_L3_error)
42765 CYTHON_FALLTHROUGH;
42767 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
42769 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 10); __PYX_ERR(0, 7709, __pyx_L3_error)
42771 CYTHON_FALLTHROUGH;
42773 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
42775 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 11); __PYX_ERR(0, 7709, __pyx_L3_error)
42777 CYTHON_FALLTHROUGH;
42779 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_vg)) != 0)) kw_args--;
42781 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 12); __PYX_ERR(0, 7709, __pyx_L3_error)
42783 CYTHON_FALLTHROUGH;
42785 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaR)) != 0)) kw_args--;
42787 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 13); __PYX_ERR(0, 7709, __pyx_L3_error)
42789 CYTHON_FALLTHROUGH;
42791 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_thetaSR)) != 0)) kw_args--;
42793 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 14); __PYX_ERR(0, 7709, __pyx_L3_error)
42795 CYTHON_FALLTHROUGH;
42797 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_KWs)) != 0)) kw_args--;
42799 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 15); __PYX_ERR(0, 7709, __pyx_L3_error)
42801 CYTHON_FALLTHROUGH;
42803 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
42805 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 16); __PYX_ERR(0, 7709, __pyx_L3_error)
42807 CYTHON_FALLTHROUGH;
42809 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
42811 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 17); __PYX_ERR(0, 7709, __pyx_L3_error)
42813 CYTHON_FALLTHROUGH;
42815 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_global)) != 0)) kw_args--;
42817 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 18); __PYX_ERR(0, 7709, __pyx_L3_error)
42819 CYTHON_FALLTHROUGH;
42821 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
42823 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 19); __PYX_ERR(0, 7709, __pyx_L3_error)
42825 CYTHON_FALLTHROUGH;
42827 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
42829 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 20); __PYX_ERR(0, 7709, __pyx_L3_error)
42831 CYTHON_FALLTHROUGH;
42833 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
42835 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 21); __PYX_ERR(0, 7709, __pyx_L3_error)
42837 CYTHON_FALLTHROUGH;
42839 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_avg)) != 0)) kw_args--;
42841 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 22); __PYX_ERR(0, 7709, __pyx_L3_error)
42843 CYTHON_FALLTHROUGH;
42845 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_avg)) != 0)) kw_args--;
42847 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 23); __PYX_ERR(0, 7709, __pyx_L3_error)
42849 CYTHON_FALLTHROUGH;
42851 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_avg)) != 0)) kw_args--;
42853 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 24); __PYX_ERR(0, 7709, __pyx_L3_error)
42855 CYTHON_FALLTHROUGH;
42857 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_avg)) != 0)) kw_args--;
42859 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 25); __PYX_ERR(0, 7709, __pyx_L3_error)
42861 CYTHON_FALLTHROUGH;
42863 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
42865 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 26); __PYX_ERR(0, 7709, __pyx_L3_error)
42867 CYTHON_FALLTHROUGH;
42869 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
42871 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 27); __PYX_ERR(0, 7709, __pyx_L3_error)
42873 CYTHON_FALLTHROUGH;
42875 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
42877 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 28); __PYX_ERR(0, 7709, __pyx_L3_error)
42879 CYTHON_FALLTHROUGH;
42881 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
42883 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, 29); __PYX_ERR(0, 7709, __pyx_L3_error)
42886 if (unlikely(kw_args > 0)) {
42887 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd") < 0)) __PYX_ERR(0, 7709, __pyx_L3_error)
42889 }
else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
42890 goto __pyx_L5_argtuple_error;
42892 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42893 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42894 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42895 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42896 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42897 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42898 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42899 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42900 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42901 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42902 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42903 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42904 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42905 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42906 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42907 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42908 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42909 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42910 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42911 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42912 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42913 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42914 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42915 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42916 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42917 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42918 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
42919 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
42920 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
42921 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
42923 __pyx_v_upwindFlag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_upwindFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7709, __pyx_L3_error)
42924 __pyx_v_computeAverages = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_computeAverages == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7710, __pyx_L3_error)
42925 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7711, __pyx_L3_error)
42926 __pyx_v_rowptr = ((PyArrayObject *)values[3]);
42927 __pyx_v_colind = ((PyArrayObject *)values[4]);
42928 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[5]);
42929 __pyx_v_quadraturePointToElementBoundary = ((PyArrayObject *)values[6]);
42930 __pyx_v_materialTypes = ((PyArrayObject *)values[7]);
42931 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7717, __pyx_L3_error)
42932 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7718, __pyx_L3_error)
42933 __pyx_v_gravity = ((PyArrayObject *)values[10]);
42934 __pyx_v_alpha = ((PyArrayObject *)values[11]);
42935 __pyx_v_n_vg = ((PyArrayObject *)values[12]);
42936 __pyx_v_thetaR = ((PyArrayObject *)values[13]);
42937 __pyx_v_thetaSR = ((PyArrayObject *)values[14]);
42938 __pyx_v_KWs = ((PyArrayObject *)values[15]);
42939 __pyx_v_u = ((PyArrayObject *)values[16]);
42940 __pyx_v_gradu = ((PyArrayObject *)values[17]);
42941 __pyx_v_n_global = ((PyArrayObject *)values[18]);
42942 __pyx_v_dV = ((PyArrayObject *)values[19]);
42943 __pyx_v_mass = ((PyArrayObject *)values[20]);
42944 __pyx_v_dmass = ((PyArrayObject *)values[21]);
42945 __pyx_v_f_avg = ((PyArrayObject *)values[22]);
42946 __pyx_v_df_avg = ((PyArrayObject *)values[23]);
42947 __pyx_v_a_avg = ((PyArrayObject *)values[24]);
42948 __pyx_v_da_avg = ((PyArrayObject *)values[25]);
42949 __pyx_v_f = ((PyArrayObject *)values[26]);
42950 __pyx_v_df = ((PyArrayObject *)values[27]);
42951 __pyx_v_a = ((PyArrayObject *)values[28]);
42952 __pyx_v_da = ((PyArrayObject *)values[29]);
42954 goto __pyx_L4_argument_unpacking_done;
42955 __pyx_L5_argtuple_error:;
42956 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7709, __pyx_L3_error)
42958 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
42959 __Pyx_RefNannyFinishContext();
42961 __pyx_L4_argument_unpacking_done:;
42962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 7712, __pyx_L1_error)
42963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 7713, __pyx_L1_error)
42964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 7714, __pyx_L1_error)
42965 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quadraturePointToElementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"quadraturePointToElementBoundary", 0))) __PYX_ERR(0, 7715, __pyx_L1_error)
42966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 7716, __pyx_L1_error)
42967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 7719, __pyx_L1_error)
42968 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 7720, __pyx_L1_error)
42969 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_vg), __pyx_ptype_5numpy_ndarray, 1,
"n_vg", 0))) __PYX_ERR(0, 7721, __pyx_L1_error)
42970 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaR), __pyx_ptype_5numpy_ndarray, 1,
"thetaR", 0))) __PYX_ERR(0, 7722, __pyx_L1_error)
42971 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_thetaSR), __pyx_ptype_5numpy_ndarray, 1,
"thetaSR", 0))) __PYX_ERR(0, 7723, __pyx_L1_error)
42972 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_KWs), __pyx_ptype_5numpy_ndarray, 1,
"KWs", 0))) __PYX_ERR(0, 7724, __pyx_L1_error)
42973 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 7725, __pyx_L1_error)
42974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 7726, __pyx_L1_error)
42975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n_global), __pyx_ptype_5numpy_ndarray, 1,
"n_global", 0))) __PYX_ERR(0, 7727, __pyx_L1_error)
42976 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 7728, __pyx_L1_error)
42977 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 7729, __pyx_L1_error)
42978 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 7730, __pyx_L1_error)
42979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_avg), __pyx_ptype_5numpy_ndarray, 1,
"f_avg", 0))) __PYX_ERR(0, 7731, __pyx_L1_error)
42980 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_avg), __pyx_ptype_5numpy_ndarray, 1,
"df_avg", 0))) __PYX_ERR(0, 7732, __pyx_L1_error)
42981 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_avg), __pyx_ptype_5numpy_ndarray, 1,
"a_avg", 0))) __PYX_ERR(0, 7733, __pyx_L1_error)
42982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_avg), __pyx_ptype_5numpy_ndarray, 1,
"da_avg", 0))) __PYX_ERR(0, 7734, __pyx_L1_error)
42983 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 7735, __pyx_L1_error)
42984 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 7736, __pyx_L1_error)
42985 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 7737, __pyx_L1_error)
42986 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 7738, __pyx_L1_error)
42987 __pyx_r = __pyx_pf_22ctransportCoefficients_214conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(__pyx_self, __pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_elementBoundaryElementsArray, __pyx_v_quadraturePointToElementBoundary, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_alpha, __pyx_v_n_vg, __pyx_v_thetaR, __pyx_v_thetaSR, __pyx_v_KWs, __pyx_v_u, __pyx_v_gradu, __pyx_v_n_global, __pyx_v_dV, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f_avg, __pyx_v_df_avg, __pyx_v_a_avg, __pyx_v_da_avg, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
42994 __Pyx_RefNannyFinishContext();
42998 static PyObject *__pyx_pf_22ctransportCoefficients_214conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_upwindFlag,
int __pyx_v_computeAverages,
int __pyx_v_nQuadraturePoints_elementBoundary, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_quadraturePointToElementBoundary, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_n_vg, PyArrayObject *__pyx_v_thetaR, PyArrayObject *__pyx_v_thetaSR, PyArrayObject *__pyx_v_KWs, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_n_global, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f_avg, PyArrayObject *__pyx_v_df_avg, PyArrayObject *__pyx_v_a_avg, PyArrayObject *__pyx_v_da_avg, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
42999 PyObject *__pyx_r = NULL;
43000 __Pyx_RefNannyDeclarations
43001 PyObject *__pyx_t_1 = NULL;
43002 PyObject *__pyx_t_2 = NULL;
43003 PyObject *__pyx_t_3 = NULL;
43005 int __pyx_lineno = 0;
43006 const char *__pyx_filename = NULL;
43007 int __pyx_clineno = 0;
43008 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", 0);
43017 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7741, __pyx_L1_error)
43018 __Pyx_GOTREF(__pyx_t_1);
43019 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7741, __pyx_L1_error)
43020 __Pyx_GOTREF(__pyx_t_2);
43021 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7741, __pyx_L1_error)
43022 __Pyx_GOTREF(__pyx_t_3);
43023 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43024 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43025 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7741, __pyx_L1_error)
43026 __Pyx_GOTREF(__pyx_t_2);
43027 __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7741, __pyx_L1_error)
43028 __Pyx_GOTREF(__pyx_t_1);
43029 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43030 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43031 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7741, __pyx_L1_error)
43032 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43041 conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd(__pyx_v_upwindFlag, __pyx_v_computeAverages, __pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_quadraturePointToElementBoundary->data), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_n_vg->data), ((
double *)__pyx_v_thetaR->data), ((
double *)__pyx_v_thetaSR->data), ((
double *)__pyx_v_KWs->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_n_global->data), ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f_avg->data), ((
double *)__pyx_v_df_avg->data), ((
double *)__pyx_v_a_avg->data), ((
double *)__pyx_v_da_avg->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
43052 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43055 __Pyx_XDECREF(__pyx_t_1);
43056 __Pyx_XDECREF(__pyx_t_2);
43057 __Pyx_XDECREF(__pyx_t_3);
43058 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
43061 __Pyx_XGIVEREF(__pyx_r);
43062 __Pyx_RefNannyFinishContext();
43075 static PyObject *__pyx_pw_22ctransportCoefficients_217applyContactLineSlip(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43076 static PyMethodDef __pyx_mdef_22ctransportCoefficients_217applyContactLineSlip = {
"applyContactLineSlip", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_217applyContactLineSlip, METH_VARARGS|METH_KEYWORDS, 0};
43077 static PyObject *__pyx_pw_22ctransportCoefficients_217applyContactLineSlip(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43078 double __pyx_v_eps;
43079 PyArrayObject *__pyx_v_isDOFBoundary = 0;
43080 PyArrayObject *__pyx_v_phi = 0;
43081 PyArrayObject *__pyx_v_advectiveFlux = 0;
43082 PyArrayObject *__pyx_v_diffusiveFlux = 0;
43083 int __pyx_lineno = 0;
43084 const char *__pyx_filename = NULL;
43085 int __pyx_clineno = 0;
43086 PyObject *__pyx_r = 0;
43087 __Pyx_RefNannyDeclarations
43088 __Pyx_RefNannySetupContext(
"applyContactLineSlip (wrapper)", 0);
43090 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_phi,&__pyx_n_s_advectiveFlux,&__pyx_n_s_diffusiveFlux,0};
43091 PyObject* values[5] = {0,0,0,0,0};
43092 if (unlikely(__pyx_kwds)) {
43093 Py_ssize_t kw_args;
43094 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43095 switch (pos_args) {
43096 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43097 CYTHON_FALLTHROUGH;
43098 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43099 CYTHON_FALLTHROUGH;
43100 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43101 CYTHON_FALLTHROUGH;
43102 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43103 CYTHON_FALLTHROUGH;
43104 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43105 CYTHON_FALLTHROUGH;
43107 default:
goto __pyx_L5_argtuple_error;
43109 kw_args = PyDict_Size(__pyx_kwds);
43110 switch (pos_args) {
43112 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43113 else goto __pyx_L5_argtuple_error;
43114 CYTHON_FALLTHROUGH;
43116 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
43118 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlip", 1, 5, 5, 1); __PYX_ERR(0, 7772, __pyx_L3_error)
43120 CYTHON_FALLTHROUGH;
43122 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
43124 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlip", 1, 5, 5, 2); __PYX_ERR(0, 7772, __pyx_L3_error)
43126 CYTHON_FALLTHROUGH;
43128 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveFlux)) != 0)) kw_args--;
43130 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlip", 1, 5, 5, 3); __PYX_ERR(0, 7772, __pyx_L3_error)
43132 CYTHON_FALLTHROUGH;
43134 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
43136 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlip", 1, 5, 5, 4); __PYX_ERR(0, 7772, __pyx_L3_error)
43139 if (unlikely(kw_args > 0)) {
43140 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"applyContactLineSlip") < 0)) __PYX_ERR(0, 7772, __pyx_L3_error)
43142 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
43143 goto __pyx_L5_argtuple_error;
43145 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43146 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43147 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43148 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43149 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43151 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7772, __pyx_L3_error)
43152 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[1]);
43153 __pyx_v_phi = ((PyArrayObject *)values[2]);
43154 __pyx_v_advectiveFlux = ((PyArrayObject *)values[3]);
43155 __pyx_v_diffusiveFlux = ((PyArrayObject *)values[4]);
43157 goto __pyx_L4_argument_unpacking_done;
43158 __pyx_L5_argtuple_error:;
43159 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlip", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7772, __pyx_L3_error)
43161 __Pyx_AddTraceback(
"ctransportCoefficients.applyContactLineSlip", __pyx_clineno, __pyx_lineno, __pyx_filename);
43162 __Pyx_RefNannyFinishContext();
43164 __pyx_L4_argument_unpacking_done:;
43165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 7773, __pyx_L1_error)
43166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 7774, __pyx_L1_error)
43167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"advectiveFlux", 0))) __PYX_ERR(0, 7775, __pyx_L1_error)
43168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux", 0))) __PYX_ERR(0, 7776, __pyx_L1_error)
43169 __pyx_r = __pyx_pf_22ctransportCoefficients_216applyContactLineSlip(__pyx_self, __pyx_v_eps, __pyx_v_isDOFBoundary, __pyx_v_phi, __pyx_v_advectiveFlux, __pyx_v_diffusiveFlux);
43176 __Pyx_RefNannyFinishContext();
43180 static PyObject *__pyx_pf_22ctransportCoefficients_216applyContactLineSlip(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_advectiveFlux, PyArrayObject *__pyx_v_diffusiveFlux) {
43181 PyObject *__pyx_r = NULL;
43182 __Pyx_RefNannyDeclarations
43183 __Pyx_RefNannySetupContext(
"applyContactLineSlip", 0);
43192 applyContactLineSlip((__pyx_v_phi->dimensions[0]), (__pyx_v_phi->dimensions[1]), __pyx_v_eps, ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_advectiveFlux->data), ((
double *)__pyx_v_diffusiveFlux->data));
43203 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43204 __Pyx_XGIVEREF(__pyx_r);
43205 __Pyx_RefNannyFinishContext();
43218 static PyObject *__pyx_pw_22ctransportCoefficients_219applyContactLineSlipJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43219 static PyMethodDef __pyx_mdef_22ctransportCoefficients_219applyContactLineSlipJacobian = {
"applyContactLineSlipJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_219applyContactLineSlipJacobian, METH_VARARGS|METH_KEYWORDS, 0};
43220 static PyObject *__pyx_pw_22ctransportCoefficients_219applyContactLineSlipJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43221 double __pyx_v_eps;
43222 PyArrayObject *__pyx_v_isDOFBoundary = 0;
43223 PyArrayObject *__pyx_v_phi = 0;
43224 PyArrayObject *__pyx_v_fluxJacobian = 0;
43225 int __pyx_lineno = 0;
43226 const char *__pyx_filename = NULL;
43227 int __pyx_clineno = 0;
43228 PyObject *__pyx_r = 0;
43229 __Pyx_RefNannyDeclarations
43230 __Pyx_RefNannySetupContext(
"applyContactLineSlipJacobian (wrapper)", 0);
43232 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_phi,&__pyx_n_s_fluxJacobian,0};
43233 PyObject* values[4] = {0,0,0,0};
43234 if (unlikely(__pyx_kwds)) {
43235 Py_ssize_t kw_args;
43236 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43237 switch (pos_args) {
43238 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43239 CYTHON_FALLTHROUGH;
43240 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43241 CYTHON_FALLTHROUGH;
43242 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43243 CYTHON_FALLTHROUGH;
43244 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43245 CYTHON_FALLTHROUGH;
43247 default:
goto __pyx_L5_argtuple_error;
43249 kw_args = PyDict_Size(__pyx_kwds);
43250 switch (pos_args) {
43252 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43253 else goto __pyx_L5_argtuple_error;
43254 CYTHON_FALLTHROUGH;
43256 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
43258 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlipJacobian", 1, 4, 4, 1); __PYX_ERR(0, 7784, __pyx_L3_error)
43260 CYTHON_FALLTHROUGH;
43262 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
43264 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlipJacobian", 1, 4, 4, 2); __PYX_ERR(0, 7784, __pyx_L3_error)
43266 CYTHON_FALLTHROUGH;
43268 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
43270 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlipJacobian", 1, 4, 4, 3); __PYX_ERR(0, 7784, __pyx_L3_error)
43273 if (unlikely(kw_args > 0)) {
43274 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"applyContactLineSlipJacobian") < 0)) __PYX_ERR(0, 7784, __pyx_L3_error)
43276 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
43277 goto __pyx_L5_argtuple_error;
43279 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43280 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43281 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43282 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43284 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7784, __pyx_L3_error)
43285 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[1]);
43286 __pyx_v_phi = ((PyArrayObject *)values[2]);
43287 __pyx_v_fluxJacobian = ((PyArrayObject *)values[3]);
43289 goto __pyx_L4_argument_unpacking_done;
43290 __pyx_L5_argtuple_error:;
43291 __Pyx_RaiseArgtupleInvalid(
"applyContactLineSlipJacobian", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7784, __pyx_L3_error)
43293 __Pyx_AddTraceback(
"ctransportCoefficients.applyContactLineSlipJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
43294 __Pyx_RefNannyFinishContext();
43296 __pyx_L4_argument_unpacking_done:;
43297 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 7785, __pyx_L1_error)
43298 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 7786, __pyx_L1_error)
43299 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 7787, __pyx_L1_error)
43300 __pyx_r = __pyx_pf_22ctransportCoefficients_218applyContactLineSlipJacobian(__pyx_self, __pyx_v_eps, __pyx_v_isDOFBoundary, __pyx_v_phi, __pyx_v_fluxJacobian);
43307 __Pyx_RefNannyFinishContext();
43311 static PyObject *__pyx_pf_22ctransportCoefficients_218applyContactLineSlipJacobian(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_fluxJacobian) {
43312 PyObject *__pyx_r = NULL;
43313 __Pyx_RefNannyDeclarations
43314 __Pyx_RefNannySetupContext(
"applyContactLineSlipJacobian", 0);
43323 applyContactLineSlipJacobian((__pyx_v_fluxJacobian->dimensions[0]), (__pyx_v_fluxJacobian->dimensions[1]), (__pyx_v_fluxJacobian->dimensions[2]), __pyx_v_eps, ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_fluxJacobian->data));
43334 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43335 __Pyx_XGIVEREF(__pyx_r);
43336 __Pyx_RefNannyFinishContext();
43349 static PyObject *__pyx_pw_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43350 static PyMethodDef __pyx_mdef_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D = {
"calculateEddyViscosity_Smagorinsky_2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D, METH_VARARGS|METH_KEYWORDS, 0};
43351 static PyObject *__pyx_pw_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43352 double __pyx_v_smagorinskyConstant;
43353 PyArrayObject *__pyx_v_h_e = 0;
43354 PyArrayObject *__pyx_v_grad_u = 0;
43355 PyArrayObject *__pyx_v_grad_v = 0;
43356 PyArrayObject *__pyx_v_nu_t = 0;
43357 int __pyx_lineno = 0;
43358 const char *__pyx_filename = NULL;
43359 int __pyx_clineno = 0;
43360 PyObject *__pyx_r = 0;
43361 __Pyx_RefNannyDeclarations
43362 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky_2D (wrapper)", 0);
43364 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_nu_t,0};
43365 PyObject* values[5] = {0,0,0,0,0};
43366 if (unlikely(__pyx_kwds)) {
43367 Py_ssize_t kw_args;
43368 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43369 switch (pos_args) {
43370 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43371 CYTHON_FALLTHROUGH;
43372 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43373 CYTHON_FALLTHROUGH;
43374 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43375 CYTHON_FALLTHROUGH;
43376 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43377 CYTHON_FALLTHROUGH;
43378 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43379 CYTHON_FALLTHROUGH;
43381 default:
goto __pyx_L5_argtuple_error;
43383 kw_args = PyDict_Size(__pyx_kwds);
43384 switch (pos_args) {
43386 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant)) != 0)) kw_args--;
43387 else goto __pyx_L5_argtuple_error;
43388 CYTHON_FALLTHROUGH;
43390 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43392 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 1); __PYX_ERR(0, 7795, __pyx_L3_error)
43394 CYTHON_FALLTHROUGH;
43396 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43398 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 2); __PYX_ERR(0, 7795, __pyx_L3_error)
43400 CYTHON_FALLTHROUGH;
43402 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43404 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 3); __PYX_ERR(0, 7795, __pyx_L3_error)
43406 CYTHON_FALLTHROUGH;
43408 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43410 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, 4); __PYX_ERR(0, 7795, __pyx_L3_error)
43413 if (unlikely(kw_args > 0)) {
43414 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateEddyViscosity_Smagorinsky_2D") < 0)) __PYX_ERR(0, 7795, __pyx_L3_error)
43416 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
43417 goto __pyx_L5_argtuple_error;
43419 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43420 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43421 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43422 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43423 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43425 __pyx_v_smagorinskyConstant = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_smagorinskyConstant == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7795, __pyx_L3_error)
43426 __pyx_v_h_e = ((PyArrayObject *)values[1]);
43427 __pyx_v_grad_u = ((PyArrayObject *)values[2]);
43428 __pyx_v_grad_v = ((PyArrayObject *)values[3]);
43429 __pyx_v_nu_t = ((PyArrayObject *)values[4]);
43431 goto __pyx_L4_argument_unpacking_done;
43432 __pyx_L5_argtuple_error:;
43433 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_2D", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7795, __pyx_L3_error)
43435 __Pyx_AddTraceback(
"ctransportCoefficients.calculateEddyViscosity_Smagorinsky_2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43436 __Pyx_RefNannyFinishContext();
43438 __pyx_L4_argument_unpacking_done:;
43439 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1,
"h_e", 0))) __PYX_ERR(0, 7796, __pyx_L1_error)
43440 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 7797, __pyx_L1_error)
43441 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 7798, __pyx_L1_error)
43442 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7799, __pyx_L1_error)
43443 __pyx_r = __pyx_pf_22ctransportCoefficients_220calculateEddyViscosity_Smagorinsky_2D(__pyx_self, __pyx_v_smagorinskyConstant, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_nu_t);
43450 __Pyx_RefNannyFinishContext();
43454 static PyObject *__pyx_pf_22ctransportCoefficients_220calculateEddyViscosity_Smagorinsky_2D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t) {
43455 PyObject *__pyx_r = NULL;
43456 __Pyx_RefNannyDeclarations
43457 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky_2D", 0);
43466 calculateEddyViscosity_Smagorinsky_2D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant, ((
double *)__pyx_v_h_e->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_nu_t->data));
43477 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43478 __Pyx_XGIVEREF(__pyx_r);
43479 __Pyx_RefNannyFinishContext();
43492 static PyObject *__pyx_pw_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43493 static PyMethodDef __pyx_mdef_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D = {
"calculateEddyViscosity_Smagorinsky_3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D, METH_VARARGS|METH_KEYWORDS, 0};
43494 static PyObject *__pyx_pw_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43495 double __pyx_v_smagorinskyConstant;
43496 PyArrayObject *__pyx_v_h_e = 0;
43497 PyArrayObject *__pyx_v_grad_u = 0;
43498 PyArrayObject *__pyx_v_grad_v = 0;
43499 PyArrayObject *__pyx_v_grad_w = 0;
43500 PyArrayObject *__pyx_v_nu_t = 0;
43501 int __pyx_lineno = 0;
43502 const char *__pyx_filename = NULL;
43503 int __pyx_clineno = 0;
43504 PyObject *__pyx_r = 0;
43505 __Pyx_RefNannyDeclarations
43506 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky_3D (wrapper)", 0);
43508 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_grad_w,&__pyx_n_s_nu_t,0};
43509 PyObject* values[6] = {0,0,0,0,0,0};
43510 if (unlikely(__pyx_kwds)) {
43511 Py_ssize_t kw_args;
43512 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43513 switch (pos_args) {
43514 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43515 CYTHON_FALLTHROUGH;
43516 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43517 CYTHON_FALLTHROUGH;
43518 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43519 CYTHON_FALLTHROUGH;
43520 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43521 CYTHON_FALLTHROUGH;
43522 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43523 CYTHON_FALLTHROUGH;
43524 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43525 CYTHON_FALLTHROUGH;
43527 default:
goto __pyx_L5_argtuple_error;
43529 kw_args = PyDict_Size(__pyx_kwds);
43530 switch (pos_args) {
43532 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant)) != 0)) kw_args--;
43533 else goto __pyx_L5_argtuple_error;
43534 CYTHON_FALLTHROUGH;
43536 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43538 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 1); __PYX_ERR(0, 7807, __pyx_L3_error)
43540 CYTHON_FALLTHROUGH;
43542 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43544 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 2); __PYX_ERR(0, 7807, __pyx_L3_error)
43546 CYTHON_FALLTHROUGH;
43548 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43550 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 3); __PYX_ERR(0, 7807, __pyx_L3_error)
43552 CYTHON_FALLTHROUGH;
43554 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
43556 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 4); __PYX_ERR(0, 7807, __pyx_L3_error)
43558 CYTHON_FALLTHROUGH;
43560 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43562 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, 5); __PYX_ERR(0, 7807, __pyx_L3_error)
43565 if (unlikely(kw_args > 0)) {
43566 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateEddyViscosity_Smagorinsky_3D") < 0)) __PYX_ERR(0, 7807, __pyx_L3_error)
43568 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
43569 goto __pyx_L5_argtuple_error;
43571 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43572 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43573 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43574 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43575 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43576 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43578 __pyx_v_smagorinskyConstant = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_smagorinskyConstant == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7807, __pyx_L3_error)
43579 __pyx_v_h_e = ((PyArrayObject *)values[1]);
43580 __pyx_v_grad_u = ((PyArrayObject *)values[2]);
43581 __pyx_v_grad_v = ((PyArrayObject *)values[3]);
43582 __pyx_v_grad_w = ((PyArrayObject *)values[4]);
43583 __pyx_v_nu_t = ((PyArrayObject *)values[5]);
43585 goto __pyx_L4_argument_unpacking_done;
43586 __pyx_L5_argtuple_error:;
43587 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky_3D", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7807, __pyx_L3_error)
43589 __Pyx_AddTraceback(
"ctransportCoefficients.calculateEddyViscosity_Smagorinsky_3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43590 __Pyx_RefNannyFinishContext();
43592 __pyx_L4_argument_unpacking_done:;
43593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1,
"h_e", 0))) __PYX_ERR(0, 7808, __pyx_L1_error)
43594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 7809, __pyx_L1_error)
43595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 7810, __pyx_L1_error)
43596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 7811, __pyx_L1_error)
43597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7812, __pyx_L1_error)
43598 __pyx_r = __pyx_pf_22ctransportCoefficients_222calculateEddyViscosity_Smagorinsky_3D(__pyx_self, __pyx_v_smagorinskyConstant, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_grad_w, __pyx_v_nu_t);
43605 __Pyx_RefNannyFinishContext();
43609 static PyObject *__pyx_pf_22ctransportCoefficients_222calculateEddyViscosity_Smagorinsky_3D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t) {
43610 PyObject *__pyx_r = NULL;
43611 __Pyx_RefNannyDeclarations
43612 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky_3D", 0);
43621 calculateEddyViscosity_Smagorinsky_3D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant, ((
double *)__pyx_v_h_e->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_nu_t->data));
43632 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43633 __Pyx_XGIVEREF(__pyx_r);
43634 __Pyx_RefNannyFinishContext();
43647 static PyObject *__pyx_pw_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43648 static PyMethodDef __pyx_mdef_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D = {
"calculateEddyViscosity_Smagorinsky2P_2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D, METH_VARARGS|METH_KEYWORDS, 0};
43649 static PyObject *__pyx_pw_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43650 double __pyx_v_smagorinskyConstant_0;
43651 double __pyx_v_smagorinskyConstant_1;
43652 double __pyx_v_eps;
43653 PyArrayObject *__pyx_v_phi_ls = 0;
43654 PyArrayObject *__pyx_v_h_e = 0;
43655 PyArrayObject *__pyx_v_grad_u = 0;
43656 PyArrayObject *__pyx_v_grad_v = 0;
43657 PyArrayObject *__pyx_v_nu_t = 0;
43658 int __pyx_lineno = 0;
43659 const char *__pyx_filename = NULL;
43660 int __pyx_clineno = 0;
43661 PyObject *__pyx_r = 0;
43662 __Pyx_RefNannyDeclarations
43663 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky2P_2D (wrapper)", 0);
43665 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant_0,&__pyx_n_s_smagorinskyConstant_1,&__pyx_n_s_eps,&__pyx_n_s_phi_ls,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_nu_t,0};
43666 PyObject* values[8] = {0,0,0,0,0,0,0,0};
43667 if (unlikely(__pyx_kwds)) {
43668 Py_ssize_t kw_args;
43669 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43670 switch (pos_args) {
43671 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43672 CYTHON_FALLTHROUGH;
43673 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43674 CYTHON_FALLTHROUGH;
43675 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43676 CYTHON_FALLTHROUGH;
43677 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43678 CYTHON_FALLTHROUGH;
43679 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43680 CYTHON_FALLTHROUGH;
43681 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43682 CYTHON_FALLTHROUGH;
43683 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43684 CYTHON_FALLTHROUGH;
43685 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43686 CYTHON_FALLTHROUGH;
43688 default:
goto __pyx_L5_argtuple_error;
43690 kw_args = PyDict_Size(__pyx_kwds);
43691 switch (pos_args) {
43693 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_0)) != 0)) kw_args--;
43694 else goto __pyx_L5_argtuple_error;
43695 CYTHON_FALLTHROUGH;
43697 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_1)) != 0)) kw_args--;
43699 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 1); __PYX_ERR(0, 7821, __pyx_L3_error)
43701 CYTHON_FALLTHROUGH;
43703 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43705 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 2); __PYX_ERR(0, 7821, __pyx_L3_error)
43707 CYTHON_FALLTHROUGH;
43709 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_ls)) != 0)) kw_args--;
43711 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 3); __PYX_ERR(0, 7821, __pyx_L3_error)
43713 CYTHON_FALLTHROUGH;
43715 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43717 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 4); __PYX_ERR(0, 7821, __pyx_L3_error)
43719 CYTHON_FALLTHROUGH;
43721 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43723 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 5); __PYX_ERR(0, 7821, __pyx_L3_error)
43725 CYTHON_FALLTHROUGH;
43727 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43729 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 6); __PYX_ERR(0, 7821, __pyx_L3_error)
43731 CYTHON_FALLTHROUGH;
43733 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43735 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, 7); __PYX_ERR(0, 7821, __pyx_L3_error)
43738 if (unlikely(kw_args > 0)) {
43739 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateEddyViscosity_Smagorinsky2P_2D") < 0)) __PYX_ERR(0, 7821, __pyx_L3_error)
43741 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
43742 goto __pyx_L5_argtuple_error;
43744 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43745 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43746 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43747 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43748 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43749 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43750 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43751 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43753 __pyx_v_smagorinskyConstant_0 = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_smagorinskyConstant_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7821, __pyx_L3_error)
43754 __pyx_v_smagorinskyConstant_1 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_smagorinskyConstant_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7822, __pyx_L3_error)
43755 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7823, __pyx_L3_error)
43756 __pyx_v_phi_ls = ((PyArrayObject *)values[3]);
43757 __pyx_v_h_e = ((PyArrayObject *)values[4]);
43758 __pyx_v_grad_u = ((PyArrayObject *)values[5]);
43759 __pyx_v_grad_v = ((PyArrayObject *)values[6]);
43760 __pyx_v_nu_t = ((PyArrayObject *)values[7]);
43762 goto __pyx_L4_argument_unpacking_done;
43763 __pyx_L5_argtuple_error:;
43764 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_2D", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7821, __pyx_L3_error)
43766 __Pyx_AddTraceback(
"ctransportCoefficients.calculateEddyViscosity_Smagorinsky2P_2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43767 __Pyx_RefNannyFinishContext();
43769 __pyx_L4_argument_unpacking_done:;
43770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_ls), __pyx_ptype_5numpy_ndarray, 1,
"phi_ls", 0))) __PYX_ERR(0, 7824, __pyx_L1_error)
43771 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1,
"h_e", 0))) __PYX_ERR(0, 7825, __pyx_L1_error)
43772 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 7826, __pyx_L1_error)
43773 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 7827, __pyx_L1_error)
43774 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7828, __pyx_L1_error)
43775 __pyx_r = __pyx_pf_22ctransportCoefficients_224calculateEddyViscosity_Smagorinsky2P_2D(__pyx_self, __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, __pyx_v_phi_ls, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_nu_t);
43782 __Pyx_RefNannyFinishContext();
43786 static PyObject *__pyx_pf_22ctransportCoefficients_224calculateEddyViscosity_Smagorinsky2P_2D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant_0,
double __pyx_v_smagorinskyConstant_1,
double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_nu_t) {
43787 PyObject *__pyx_r = NULL;
43788 __Pyx_RefNannyDeclarations
43789 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky2P_2D", 0);
43798 calculateEddyViscosity_Smagorinsky2P_2D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, ((
double *)__pyx_v_phi_ls->data), ((
double *)__pyx_v_h_e->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_nu_t->data));
43809 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43810 __Pyx_XGIVEREF(__pyx_r);
43811 __Pyx_RefNannyFinishContext();
43824 static PyObject *__pyx_pw_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43825 static PyMethodDef __pyx_mdef_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D = {
"calculateEddyViscosity_Smagorinsky2P_3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D, METH_VARARGS|METH_KEYWORDS, 0};
43826 static PyObject *__pyx_pw_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43827 double __pyx_v_smagorinskyConstant_0;
43828 double __pyx_v_smagorinskyConstant_1;
43829 double __pyx_v_eps;
43830 PyArrayObject *__pyx_v_phi_ls = 0;
43831 PyArrayObject *__pyx_v_h_e = 0;
43832 PyArrayObject *__pyx_v_grad_u = 0;
43833 PyArrayObject *__pyx_v_grad_v = 0;
43834 PyArrayObject *__pyx_v_grad_w = 0;
43835 PyArrayObject *__pyx_v_nu_t = 0;
43836 int __pyx_lineno = 0;
43837 const char *__pyx_filename = NULL;
43838 int __pyx_clineno = 0;
43839 PyObject *__pyx_r = 0;
43840 __Pyx_RefNannyDeclarations
43841 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky2P_3D (wrapper)", 0);
43843 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_smagorinskyConstant_0,&__pyx_n_s_smagorinskyConstant_1,&__pyx_n_s_eps,&__pyx_n_s_phi_ls,&__pyx_n_s_h_e,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_grad_w,&__pyx_n_s_nu_t,0};
43844 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
43845 if (unlikely(__pyx_kwds)) {
43846 Py_ssize_t kw_args;
43847 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43848 switch (pos_args) {
43849 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
43850 CYTHON_FALLTHROUGH;
43851 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43852 CYTHON_FALLTHROUGH;
43853 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43854 CYTHON_FALLTHROUGH;
43855 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43856 CYTHON_FALLTHROUGH;
43857 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43858 CYTHON_FALLTHROUGH;
43859 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43860 CYTHON_FALLTHROUGH;
43861 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43862 CYTHON_FALLTHROUGH;
43863 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43864 CYTHON_FALLTHROUGH;
43865 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43866 CYTHON_FALLTHROUGH;
43868 default:
goto __pyx_L5_argtuple_error;
43870 kw_args = PyDict_Size(__pyx_kwds);
43871 switch (pos_args) {
43873 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_0)) != 0)) kw_args--;
43874 else goto __pyx_L5_argtuple_error;
43875 CYTHON_FALLTHROUGH;
43877 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smagorinskyConstant_1)) != 0)) kw_args--;
43879 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 1); __PYX_ERR(0, 7839, __pyx_L3_error)
43881 CYTHON_FALLTHROUGH;
43883 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
43885 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 2); __PYX_ERR(0, 7839, __pyx_L3_error)
43887 CYTHON_FALLTHROUGH;
43889 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_ls)) != 0)) kw_args--;
43891 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 3); __PYX_ERR(0, 7839, __pyx_L3_error)
43893 CYTHON_FALLTHROUGH;
43895 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_e)) != 0)) kw_args--;
43897 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 4); __PYX_ERR(0, 7839, __pyx_L3_error)
43899 CYTHON_FALLTHROUGH;
43901 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
43903 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 5); __PYX_ERR(0, 7839, __pyx_L3_error)
43905 CYTHON_FALLTHROUGH;
43907 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
43909 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 6); __PYX_ERR(0, 7839, __pyx_L3_error)
43911 CYTHON_FALLTHROUGH;
43913 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
43915 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 7); __PYX_ERR(0, 7839, __pyx_L3_error)
43917 CYTHON_FALLTHROUGH;
43919 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
43921 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, 8); __PYX_ERR(0, 7839, __pyx_L3_error)
43924 if (unlikely(kw_args > 0)) {
43925 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateEddyViscosity_Smagorinsky2P_3D") < 0)) __PYX_ERR(0, 7839, __pyx_L3_error)
43927 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
43928 goto __pyx_L5_argtuple_error;
43930 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43931 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43932 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43933 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43934 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43935 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43936 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43937 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43938 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
43940 __pyx_v_smagorinskyConstant_0 = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_smagorinskyConstant_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7839, __pyx_L3_error)
43941 __pyx_v_smagorinskyConstant_1 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_smagorinskyConstant_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7840, __pyx_L3_error)
43942 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7841, __pyx_L3_error)
43943 __pyx_v_phi_ls = ((PyArrayObject *)values[3]);
43944 __pyx_v_h_e = ((PyArrayObject *)values[4]);
43945 __pyx_v_grad_u = ((PyArrayObject *)values[5]);
43946 __pyx_v_grad_v = ((PyArrayObject *)values[6]);
43947 __pyx_v_grad_w = ((PyArrayObject *)values[7]);
43948 __pyx_v_nu_t = ((PyArrayObject *)values[8]);
43950 goto __pyx_L4_argument_unpacking_done;
43951 __pyx_L5_argtuple_error:;
43952 __Pyx_RaiseArgtupleInvalid(
"calculateEddyViscosity_Smagorinsky2P_3D", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7839, __pyx_L3_error)
43954 __Pyx_AddTraceback(
"ctransportCoefficients.calculateEddyViscosity_Smagorinsky2P_3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
43955 __Pyx_RefNannyFinishContext();
43957 __pyx_L4_argument_unpacking_done:;
43958 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_ls), __pyx_ptype_5numpy_ndarray, 1,
"phi_ls", 0))) __PYX_ERR(0, 7842, __pyx_L1_error)
43959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_e), __pyx_ptype_5numpy_ndarray, 1,
"h_e", 0))) __PYX_ERR(0, 7843, __pyx_L1_error)
43960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 7844, __pyx_L1_error)
43961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 7845, __pyx_L1_error)
43962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 7846, __pyx_L1_error)
43963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7847, __pyx_L1_error)
43964 __pyx_r = __pyx_pf_22ctransportCoefficients_226calculateEddyViscosity_Smagorinsky2P_3D(__pyx_self, __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, __pyx_v_phi_ls, __pyx_v_h_e, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_grad_w, __pyx_v_nu_t);
43971 __Pyx_RefNannyFinishContext();
43975 static PyObject *__pyx_pf_22ctransportCoefficients_226calculateEddyViscosity_Smagorinsky2P_3D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_smagorinskyConstant_0,
double __pyx_v_smagorinskyConstant_1,
double __pyx_v_eps, PyArrayObject *__pyx_v_phi_ls, PyArrayObject *__pyx_v_h_e, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_nu_t) {
43976 PyObject *__pyx_r = NULL;
43977 __Pyx_RefNannyDeclarations
43978 __Pyx_RefNannySetupContext(
"calculateEddyViscosity_Smagorinsky2P_3D", 0);
43987 calculateEddyViscosity_Smagorinsky2P_3D((__pyx_v_grad_u->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), __pyx_v_smagorinskyConstant_0, __pyx_v_smagorinskyConstant_1, __pyx_v_eps, ((
double *)__pyx_v_phi_ls->data), ((
double *)__pyx_v_h_e->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_nu_t->data));
43998 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43999 __Pyx_XGIVEREF(__pyx_r);
44000 __Pyx_RefNannyFinishContext();
44013 static PyObject *__pyx_pw_22ctransportCoefficients_229eddyViscosity_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44014 static PyMethodDef __pyx_mdef_22ctransportCoefficients_229eddyViscosity_2D_Update = {
"eddyViscosity_2D_Update", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_229eddyViscosity_2D_Update, METH_VARARGS|METH_KEYWORDS, 0};
44015 static PyObject *__pyx_pw_22ctransportCoefficients_229eddyViscosity_2D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44016 PyArrayObject *__pyx_v_nu_t = 0;
44017 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44018 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44019 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44020 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44021 int __pyx_lineno = 0;
44022 const char *__pyx_filename = NULL;
44023 int __pyx_clineno = 0;
44024 PyObject *__pyx_r = 0;
44025 __Pyx_RefNannyDeclarations
44026 __Pyx_RefNannySetupContext(
"eddyViscosity_2D_Update (wrapper)", 0);
44028 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,0};
44029 PyObject* values[5] = {0,0,0,0,0};
44030 if (unlikely(__pyx_kwds)) {
44031 Py_ssize_t kw_args;
44032 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44033 switch (pos_args) {
44034 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44035 CYTHON_FALLTHROUGH;
44036 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44037 CYTHON_FALLTHROUGH;
44038 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44039 CYTHON_FALLTHROUGH;
44040 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44041 CYTHON_FALLTHROUGH;
44042 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44043 CYTHON_FALLTHROUGH;
44045 default:
goto __pyx_L5_argtuple_error;
44047 kw_args = PyDict_Size(__pyx_kwds);
44048 switch (pos_args) {
44050 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44051 else goto __pyx_L5_argtuple_error;
44052 CYTHON_FALLTHROUGH;
44054 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44056 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update", 1, 5, 5, 1); __PYX_ERR(0, 7859, __pyx_L3_error)
44058 CYTHON_FALLTHROUGH;
44060 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44062 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update", 1, 5, 5, 2); __PYX_ERR(0, 7859, __pyx_L3_error)
44064 CYTHON_FALLTHROUGH;
44066 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44068 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update", 1, 5, 5, 3); __PYX_ERR(0, 7859, __pyx_L3_error)
44070 CYTHON_FALLTHROUGH;
44072 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44074 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update", 1, 5, 5, 4); __PYX_ERR(0, 7859, __pyx_L3_error)
44077 if (unlikely(kw_args > 0)) {
44078 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"eddyViscosity_2D_Update") < 0)) __PYX_ERR(0, 7859, __pyx_L3_error)
44080 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
44081 goto __pyx_L5_argtuple_error;
44083 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44084 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44085 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44086 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44087 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44089 __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44090 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44091 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44092 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[3]);
44093 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[4]);
44095 goto __pyx_L4_argument_unpacking_done;
44096 __pyx_L5_argtuple_error:;
44097 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7859, __pyx_L3_error)
44099 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44100 __Pyx_RefNannyFinishContext();
44102 __pyx_L4_argument_unpacking_done:;
44103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7859, __pyx_L1_error)
44104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7860, __pyx_L1_error)
44105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7861, __pyx_L1_error)
44106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7862, __pyx_L1_error)
44107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7863, __pyx_L1_error)
44108 __pyx_r = __pyx_pf_22ctransportCoefficients_228eddyViscosity_2D_Update(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten);
44115 __Pyx_RefNannyFinishContext();
44119 static PyObject *__pyx_pf_22ctransportCoefficients_228eddyViscosity_2D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten) {
44120 PyObject *__pyx_r = NULL;
44121 __Pyx_RefNannyDeclarations
44122 PyObject *__pyx_t_1 = NULL;
44124 int __pyx_lineno = 0;
44125 const char *__pyx_filename = NULL;
44126 int __pyx_clineno = 0;
44127 __Pyx_RefNannySetupContext(
"eddyViscosity_2D_Update", 0);
44136 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7864, __pyx_L1_error)
44137 __Pyx_GOTREF(__pyx_t_1);
44138 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7864, __pyx_L1_error)
44139 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44148 eddyViscosity_2D_Update(__pyx_t_2, ((
double *)__pyx_v_nu_t->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data));
44159 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44162 __Pyx_XDECREF(__pyx_t_1);
44163 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_2D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44166 __Pyx_XGIVEREF(__pyx_r);
44167 __Pyx_RefNannyFinishContext();
44180 static PyObject *__pyx_pw_22ctransportCoefficients_231eddyViscosity_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44181 static PyMethodDef __pyx_mdef_22ctransportCoefficients_231eddyViscosity_2D_Update_sd = {
"eddyViscosity_2D_Update_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_231eddyViscosity_2D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
44182 static PyObject *__pyx_pw_22ctransportCoefficients_231eddyViscosity_2D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44183 PyArrayObject *__pyx_v_nu_t = 0;
44184 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44185 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44186 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44187 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44188 int __pyx_lineno = 0;
44189 const char *__pyx_filename = NULL;
44190 int __pyx_clineno = 0;
44191 PyObject *__pyx_r = 0;
44192 __Pyx_RefNannyDeclarations
44193 __Pyx_RefNannySetupContext(
"eddyViscosity_2D_Update_sd (wrapper)", 0);
44195 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_vu_diff_ten,0};
44196 PyObject* values[5] = {0,0,0,0,0};
44197 if (unlikely(__pyx_kwds)) {
44198 Py_ssize_t kw_args;
44199 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44200 switch (pos_args) {
44201 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44202 CYTHON_FALLTHROUGH;
44203 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44204 CYTHON_FALLTHROUGH;
44205 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44206 CYTHON_FALLTHROUGH;
44207 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44208 CYTHON_FALLTHROUGH;
44209 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44210 CYTHON_FALLTHROUGH;
44212 default:
goto __pyx_L5_argtuple_error;
44214 kw_args = PyDict_Size(__pyx_kwds);
44215 switch (pos_args) {
44217 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44218 else goto __pyx_L5_argtuple_error;
44219 CYTHON_FALLTHROUGH;
44221 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44223 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update_sd", 1, 5, 5, 1); __PYX_ERR(0, 7870, __pyx_L3_error)
44225 CYTHON_FALLTHROUGH;
44227 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44229 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update_sd", 1, 5, 5, 2); __PYX_ERR(0, 7870, __pyx_L3_error)
44231 CYTHON_FALLTHROUGH;
44233 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44235 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update_sd", 1, 5, 5, 3); __PYX_ERR(0, 7870, __pyx_L3_error)
44237 CYTHON_FALLTHROUGH;
44239 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44241 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update_sd", 1, 5, 5, 4); __PYX_ERR(0, 7870, __pyx_L3_error)
44244 if (unlikely(kw_args > 0)) {
44245 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"eddyViscosity_2D_Update_sd") < 0)) __PYX_ERR(0, 7870, __pyx_L3_error)
44247 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
44248 goto __pyx_L5_argtuple_error;
44250 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44251 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44252 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44253 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44254 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44256 __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44257 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44258 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44259 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[3]);
44260 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[4]);
44262 goto __pyx_L4_argument_unpacking_done;
44263 __pyx_L5_argtuple_error:;
44264 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_2D_Update_sd", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7870, __pyx_L3_error)
44266 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44267 __Pyx_RefNannyFinishContext();
44269 __pyx_L4_argument_unpacking_done:;
44270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7870, __pyx_L1_error)
44271 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7871, __pyx_L1_error)
44272 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7872, __pyx_L1_error)
44273 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7873, __pyx_L1_error)
44274 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7874, __pyx_L1_error)
44275 __pyx_r = __pyx_pf_22ctransportCoefficients_230eddyViscosity_2D_Update_sd(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_vu_diff_ten);
44282 __Pyx_RefNannyFinishContext();
44286 static PyObject *__pyx_pf_22ctransportCoefficients_230eddyViscosity_2D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten) {
44287 PyObject *__pyx_r = NULL;
44288 __Pyx_RefNannyDeclarations
44289 PyObject *__pyx_t_1 = NULL;
44291 int __pyx_lineno = 0;
44292 const char *__pyx_filename = NULL;
44293 int __pyx_clineno = 0;
44294 __Pyx_RefNannySetupContext(
"eddyViscosity_2D_Update_sd", 0);
44303 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7875, __pyx_L1_error)
44304 __Pyx_GOTREF(__pyx_t_1);
44305 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7875, __pyx_L1_error)
44306 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44315 eddyViscosity_2D_Update_sd(__pyx_t_2, ((
double *)__pyx_v_nu_t->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data));
44326 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44329 __Pyx_XDECREF(__pyx_t_1);
44330 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_2D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44333 __Pyx_XGIVEREF(__pyx_r);
44334 __Pyx_RefNannyFinishContext();
44347 static PyObject *__pyx_pw_22ctransportCoefficients_233eddyViscosity_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44348 static PyMethodDef __pyx_mdef_22ctransportCoefficients_233eddyViscosity_3D_Update = {
"eddyViscosity_3D_Update", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_233eddyViscosity_3D_Update, METH_VARARGS|METH_KEYWORDS, 0};
44349 static PyObject *__pyx_pw_22ctransportCoefficients_233eddyViscosity_3D_Update(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44350 PyArrayObject *__pyx_v_nu_t = 0;
44351 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44352 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44353 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
44354 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44355 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
44356 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44357 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
44358 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
44359 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
44360 int __pyx_lineno = 0;
44361 const char *__pyx_filename = NULL;
44362 int __pyx_clineno = 0;
44363 PyObject *__pyx_r = 0;
44364 __Pyx_RefNannyDeclarations
44365 __Pyx_RefNannySetupContext(
"eddyViscosity_3D_Update (wrapper)", 0);
44367 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,0};
44368 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
44369 if (unlikely(__pyx_kwds)) {
44370 Py_ssize_t kw_args;
44371 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44372 switch (pos_args) {
44373 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44374 CYTHON_FALLTHROUGH;
44375 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44376 CYTHON_FALLTHROUGH;
44377 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44378 CYTHON_FALLTHROUGH;
44379 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44380 CYTHON_FALLTHROUGH;
44381 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44382 CYTHON_FALLTHROUGH;
44383 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44384 CYTHON_FALLTHROUGH;
44385 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44386 CYTHON_FALLTHROUGH;
44387 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44388 CYTHON_FALLTHROUGH;
44389 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44390 CYTHON_FALLTHROUGH;
44391 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44392 CYTHON_FALLTHROUGH;
44394 default:
goto __pyx_L5_argtuple_error;
44396 kw_args = PyDict_Size(__pyx_kwds);
44397 switch (pos_args) {
44399 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44400 else goto __pyx_L5_argtuple_error;
44401 CYTHON_FALLTHROUGH;
44403 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44405 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 1); __PYX_ERR(0, 7881, __pyx_L3_error)
44407 CYTHON_FALLTHROUGH;
44409 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44411 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 2); __PYX_ERR(0, 7881, __pyx_L3_error)
44413 CYTHON_FALLTHROUGH;
44415 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
44417 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 3); __PYX_ERR(0, 7881, __pyx_L3_error)
44419 CYTHON_FALLTHROUGH;
44421 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44423 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 4); __PYX_ERR(0, 7881, __pyx_L3_error)
44425 CYTHON_FALLTHROUGH;
44427 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
44429 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 5); __PYX_ERR(0, 7881, __pyx_L3_error)
44431 CYTHON_FALLTHROUGH;
44433 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44435 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 6); __PYX_ERR(0, 7881, __pyx_L3_error)
44437 CYTHON_FALLTHROUGH;
44439 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
44441 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 7); __PYX_ERR(0, 7881, __pyx_L3_error)
44443 CYTHON_FALLTHROUGH;
44445 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
44447 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 8); __PYX_ERR(0, 7881, __pyx_L3_error)
44449 CYTHON_FALLTHROUGH;
44451 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
44453 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, 9); __PYX_ERR(0, 7881, __pyx_L3_error)
44456 if (unlikely(kw_args > 0)) {
44457 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"eddyViscosity_3D_Update") < 0)) __PYX_ERR(0, 7881, __pyx_L3_error)
44459 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
44460 goto __pyx_L5_argtuple_error;
44462 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44463 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44464 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44465 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44466 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44467 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44468 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44469 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44470 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44471 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44473 __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44474 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44475 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44476 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[3]);
44477 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[4]);
44478 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[5]);
44479 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[6]);
44480 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[7]);
44481 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[8]);
44482 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[9]);
44484 goto __pyx_L4_argument_unpacking_done;
44485 __pyx_L5_argtuple_error:;
44486 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7881, __pyx_L3_error)
44488 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44489 __Pyx_RefNannyFinishContext();
44491 __pyx_L4_argument_unpacking_done:;
44492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7881, __pyx_L1_error)
44493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7882, __pyx_L1_error)
44494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7883, __pyx_L1_error)
44495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 7884, __pyx_L1_error)
44496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7885, __pyx_L1_error)
44497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 7886, __pyx_L1_error)
44498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7887, __pyx_L1_error)
44499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 7888, __pyx_L1_error)
44500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 7889, __pyx_L1_error)
44501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 7890, __pyx_L1_error)
44502 __pyx_r = __pyx_pf_22ctransportCoefficients_232eddyViscosity_3D_Update(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten);
44509 __Pyx_RefNannyFinishContext();
44513 static PyObject *__pyx_pf_22ctransportCoefficients_232eddyViscosity_3D_Update(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten) {
44514 PyObject *__pyx_r = NULL;
44515 __Pyx_RefNannyDeclarations
44516 PyObject *__pyx_t_1 = NULL;
44518 int __pyx_lineno = 0;
44519 const char *__pyx_filename = NULL;
44520 int __pyx_clineno = 0;
44521 __Pyx_RefNannySetupContext(
"eddyViscosity_3D_Update", 0);
44530 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7891, __pyx_L1_error)
44531 __Pyx_GOTREF(__pyx_t_1);
44532 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7891, __pyx_L1_error)
44533 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44542 eddyViscosity_3D_Update(__pyx_t_2, ((
double *)__pyx_v_nu_t->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data));
44553 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44556 __Pyx_XDECREF(__pyx_t_1);
44557 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_3D_Update", __pyx_clineno, __pyx_lineno, __pyx_filename);
44560 __Pyx_XGIVEREF(__pyx_r);
44561 __Pyx_RefNannyFinishContext();
44574 static PyObject *__pyx_pw_22ctransportCoefficients_235eddyViscosity_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44575 static PyMethodDef __pyx_mdef_22ctransportCoefficients_235eddyViscosity_3D_Update_sd = {
"eddyViscosity_3D_Update_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_235eddyViscosity_3D_Update_sd, METH_VARARGS|METH_KEYWORDS, 0};
44576 static PyObject *__pyx_pw_22ctransportCoefficients_235eddyViscosity_3D_Update_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44577 PyArrayObject *__pyx_v_nu_t = 0;
44578 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
44579 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
44580 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
44581 PyArrayObject *__pyx_v_mom_uv_diff_ten = 0;
44582 PyArrayObject *__pyx_v_mom_uw_diff_ten = 0;
44583 PyArrayObject *__pyx_v_mom_vu_diff_ten = 0;
44584 PyArrayObject *__pyx_v_mom_vw_diff_ten = 0;
44585 PyArrayObject *__pyx_v_mom_wu_diff_ten = 0;
44586 PyArrayObject *__pyx_v_mom_wv_diff_ten = 0;
44587 int __pyx_lineno = 0;
44588 const char *__pyx_filename = NULL;
44589 int __pyx_clineno = 0;
44590 PyObject *__pyx_r = 0;
44591 __Pyx_RefNannyDeclarations
44592 __Pyx_RefNannySetupContext(
"eddyViscosity_3D_Update_sd (wrapper)", 0);
44594 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nu_t,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,&__pyx_n_s_mom_uv_diff_ten,&__pyx_n_s_mom_uw_diff_ten,&__pyx_n_s_mom_vu_diff_ten,&__pyx_n_s_mom_vw_diff_ten,&__pyx_n_s_mom_wu_diff_ten,&__pyx_n_s_mom_wv_diff_ten,0};
44595 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
44596 if (unlikely(__pyx_kwds)) {
44597 Py_ssize_t kw_args;
44598 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44599 switch (pos_args) {
44600 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44601 CYTHON_FALLTHROUGH;
44602 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44603 CYTHON_FALLTHROUGH;
44604 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44605 CYTHON_FALLTHROUGH;
44606 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44607 CYTHON_FALLTHROUGH;
44608 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44609 CYTHON_FALLTHROUGH;
44610 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44611 CYTHON_FALLTHROUGH;
44612 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44613 CYTHON_FALLTHROUGH;
44614 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44615 CYTHON_FALLTHROUGH;
44616 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44617 CYTHON_FALLTHROUGH;
44618 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44619 CYTHON_FALLTHROUGH;
44621 default:
goto __pyx_L5_argtuple_error;
44623 kw_args = PyDict_Size(__pyx_kwds);
44624 switch (pos_args) {
44626 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_t)) != 0)) kw_args--;
44627 else goto __pyx_L5_argtuple_error;
44628 CYTHON_FALLTHROUGH;
44630 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
44632 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 1); __PYX_ERR(0, 7902, __pyx_L3_error)
44634 CYTHON_FALLTHROUGH;
44636 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
44638 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 2); __PYX_ERR(0, 7902, __pyx_L3_error)
44640 CYTHON_FALLTHROUGH;
44642 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
44644 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 3); __PYX_ERR(0, 7902, __pyx_L3_error)
44646 CYTHON_FALLTHROUGH;
44648 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uv_diff_ten)) != 0)) kw_args--;
44650 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 4); __PYX_ERR(0, 7902, __pyx_L3_error)
44652 CYTHON_FALLTHROUGH;
44654 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_uw_diff_ten)) != 0)) kw_args--;
44656 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 5); __PYX_ERR(0, 7902, __pyx_L3_error)
44658 CYTHON_FALLTHROUGH;
44660 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vu_diff_ten)) != 0)) kw_args--;
44662 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 6); __PYX_ERR(0, 7902, __pyx_L3_error)
44664 CYTHON_FALLTHROUGH;
44666 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_vw_diff_ten)) != 0)) kw_args--;
44668 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 7); __PYX_ERR(0, 7902, __pyx_L3_error)
44670 CYTHON_FALLTHROUGH;
44672 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wu_diff_ten)) != 0)) kw_args--;
44674 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 8); __PYX_ERR(0, 7902, __pyx_L3_error)
44676 CYTHON_FALLTHROUGH;
44678 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_wv_diff_ten)) != 0)) kw_args--;
44680 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, 9); __PYX_ERR(0, 7902, __pyx_L3_error)
44683 if (unlikely(kw_args > 0)) {
44684 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"eddyViscosity_3D_Update_sd") < 0)) __PYX_ERR(0, 7902, __pyx_L3_error)
44686 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
44687 goto __pyx_L5_argtuple_error;
44689 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44690 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44691 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44692 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44693 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44694 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44695 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44696 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44697 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44698 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44700 __pyx_v_nu_t = ((PyArrayObject *)values[0]);
44701 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[1]);
44702 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[2]);
44703 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[3]);
44704 __pyx_v_mom_uv_diff_ten = ((PyArrayObject *)values[4]);
44705 __pyx_v_mom_uw_diff_ten = ((PyArrayObject *)values[5]);
44706 __pyx_v_mom_vu_diff_ten = ((PyArrayObject *)values[6]);
44707 __pyx_v_mom_vw_diff_ten = ((PyArrayObject *)values[7]);
44708 __pyx_v_mom_wu_diff_ten = ((PyArrayObject *)values[8]);
44709 __pyx_v_mom_wv_diff_ten = ((PyArrayObject *)values[9]);
44711 goto __pyx_L4_argument_unpacking_done;
44712 __pyx_L5_argtuple_error:;
44713 __Pyx_RaiseArgtupleInvalid(
"eddyViscosity_3D_Update_sd", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7902, __pyx_L3_error)
44715 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44716 __Pyx_RefNannyFinishContext();
44718 __pyx_L4_argument_unpacking_done:;
44719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nu_t), __pyx_ptype_5numpy_ndarray, 1,
"nu_t", 0))) __PYX_ERR(0, 7902, __pyx_L1_error)
44720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 7903, __pyx_L1_error)
44721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 7904, __pyx_L1_error)
44722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 7905, __pyx_L1_error)
44723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uv_diff_ten", 0))) __PYX_ERR(0, 7906, __pyx_L1_error)
44724 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_uw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_uw_diff_ten", 0))) __PYX_ERR(0, 7907, __pyx_L1_error)
44725 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vu_diff_ten", 0))) __PYX_ERR(0, 7908, __pyx_L1_error)
44726 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_vw_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_vw_diff_ten", 0))) __PYX_ERR(0, 7909, __pyx_L1_error)
44727 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wu_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wu_diff_ten", 0))) __PYX_ERR(0, 7910, __pyx_L1_error)
44728 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_wv_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_wv_diff_ten", 0))) __PYX_ERR(0, 7911, __pyx_L1_error)
44729 __pyx_r = __pyx_pf_22ctransportCoefficients_234eddyViscosity_3D_Update_sd(__pyx_self, __pyx_v_nu_t, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten, __pyx_v_mom_uv_diff_ten, __pyx_v_mom_uw_diff_ten, __pyx_v_mom_vu_diff_ten, __pyx_v_mom_vw_diff_ten, __pyx_v_mom_wu_diff_ten, __pyx_v_mom_wv_diff_ten);
44736 __Pyx_RefNannyFinishContext();
44740 static PyObject *__pyx_pf_22ctransportCoefficients_234eddyViscosity_3D_Update_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nu_t, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten, PyArrayObject *__pyx_v_mom_uv_diff_ten, PyArrayObject *__pyx_v_mom_uw_diff_ten, PyArrayObject *__pyx_v_mom_vu_diff_ten, PyArrayObject *__pyx_v_mom_vw_diff_ten, PyArrayObject *__pyx_v_mom_wu_diff_ten, PyArrayObject *__pyx_v_mom_wv_diff_ten) {
44741 PyObject *__pyx_r = NULL;
44742 __Pyx_RefNannyDeclarations
44743 PyObject *__pyx_t_1 = NULL;
44745 int __pyx_lineno = 0;
44746 const char *__pyx_filename = NULL;
44747 int __pyx_clineno = 0;
44748 __Pyx_RefNannySetupContext(
"eddyViscosity_3D_Update_sd", 0);
44757 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nu_t), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7912, __pyx_L1_error)
44758 __Pyx_GOTREF(__pyx_t_1);
44759 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7912, __pyx_L1_error)
44760 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44769 eddyViscosity_3D_Update_sd(__pyx_t_2, ((
double *)__pyx_v_nu_t->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data), ((
double *)__pyx_v_mom_uv_diff_ten->data), ((
double *)__pyx_v_mom_uw_diff_ten->data), ((
double *)__pyx_v_mom_vu_diff_ten->data), ((
double *)__pyx_v_mom_vw_diff_ten->data), ((
double *)__pyx_v_mom_wu_diff_ten->data), ((
double *)__pyx_v_mom_wv_diff_ten->data));
44780 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44783 __Pyx_XDECREF(__pyx_t_1);
44784 __Pyx_AddTraceback(
"ctransportCoefficients.eddyViscosity_3D_Update_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44787 __Pyx_XGIVEREF(__pyx_r);
44788 __Pyx_RefNannyFinishContext();
44801 static PyObject *__pyx_pw_22ctransportCoefficients_237calculateWaveFunction3d_ref(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44802 static PyMethodDef __pyx_mdef_22ctransportCoefficients_237calculateWaveFunction3d_ref = {
"calculateWaveFunction3d_ref", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_237calculateWaveFunction3d_ref, METH_VARARGS|METH_KEYWORDS, 0};
44803 static PyObject *__pyx_pw_22ctransportCoefficients_237calculateWaveFunction3d_ref(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44804 PyArrayObject *__pyx_v_mesh_trial_ref = 0;
44805 PyArrayObject *__pyx_v_mesh_dof = 0;
44806 PyArrayObject *__pyx_v_mesh_l2g = 0;
44807 PyArrayObject *__pyx_v_elementDiametersArray = 0;
44808 PyArrayObject *__pyx_v_omega_s_x = 0;
44809 PyArrayObject *__pyx_v_omega_s_y = 0;
44810 PyArrayObject *__pyx_v_omega_s_z = 0;
44812 int __pyx_v_waveFlag;
44813 double __pyx_v_epsFact;
44814 double __pyx_v_waveHeight;
44815 double __pyx_v_waveCelerity;
44816 double __pyx_v_waveFrequency;
44817 double __pyx_v_waveNumber;
44818 double __pyx_v_waterDepth;
44819 PyArrayObject *__pyx_v_source = 0;
44820 int __pyx_lineno = 0;
44821 const char *__pyx_filename = NULL;
44822 int __pyx_clineno = 0;
44823 PyObject *__pyx_r = 0;
44824 __Pyx_RefNannyDeclarations
44825 __Pyx_RefNannySetupContext(
"calculateWaveFunction3d_ref (wrapper)", 0);
44827 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mesh_trial_ref,&__pyx_n_s_mesh_dof,&__pyx_n_s_mesh_l2g,&__pyx_n_s_elementDiametersArray,&__pyx_n_s_omega_s_x,&__pyx_n_s_omega_s_y,&__pyx_n_s_omega_s_z,&__pyx_n_s_t,&__pyx_n_s_waveFlag,&__pyx_n_s_epsFact,&__pyx_n_s_waveHeight,&__pyx_n_s_waveCelerity,&__pyx_n_s_waveFrequency,&__pyx_n_s_waveNumber,&__pyx_n_s_waterDepth,&__pyx_n_s_source,0};
44828 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
44829 if (unlikely(__pyx_kwds)) {
44830 Py_ssize_t kw_args;
44831 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44832 switch (pos_args) {
44833 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
44834 CYTHON_FALLTHROUGH;
44835 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
44836 CYTHON_FALLTHROUGH;
44837 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
44838 CYTHON_FALLTHROUGH;
44839 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
44840 CYTHON_FALLTHROUGH;
44841 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44842 CYTHON_FALLTHROUGH;
44843 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44844 CYTHON_FALLTHROUGH;
44845 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44846 CYTHON_FALLTHROUGH;
44847 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44848 CYTHON_FALLTHROUGH;
44849 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44850 CYTHON_FALLTHROUGH;
44851 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44852 CYTHON_FALLTHROUGH;
44853 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44854 CYTHON_FALLTHROUGH;
44855 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44856 CYTHON_FALLTHROUGH;
44857 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44858 CYTHON_FALLTHROUGH;
44859 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44860 CYTHON_FALLTHROUGH;
44861 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44862 CYTHON_FALLTHROUGH;
44863 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44864 CYTHON_FALLTHROUGH;
44866 default:
goto __pyx_L5_argtuple_error;
44868 kw_args = PyDict_Size(__pyx_kwds);
44869 switch (pos_args) {
44871 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mesh_trial_ref)) != 0)) kw_args--;
44872 else goto __pyx_L5_argtuple_error;
44873 CYTHON_FALLTHROUGH;
44875 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mesh_dof)) != 0)) kw_args--;
44877 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 1); __PYX_ERR(0, 7923, __pyx_L3_error)
44879 CYTHON_FALLTHROUGH;
44881 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mesh_l2g)) != 0)) kw_args--;
44883 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 2); __PYX_ERR(0, 7923, __pyx_L3_error)
44885 CYTHON_FALLTHROUGH;
44887 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiametersArray)) != 0)) kw_args--;
44889 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 3); __PYX_ERR(0, 7923, __pyx_L3_error)
44891 CYTHON_FALLTHROUGH;
44893 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_s_x)) != 0)) kw_args--;
44895 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 4); __PYX_ERR(0, 7923, __pyx_L3_error)
44897 CYTHON_FALLTHROUGH;
44899 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_s_y)) != 0)) kw_args--;
44901 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 5); __PYX_ERR(0, 7923, __pyx_L3_error)
44903 CYTHON_FALLTHROUGH;
44905 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_omega_s_z)) != 0)) kw_args--;
44907 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 6); __PYX_ERR(0, 7923, __pyx_L3_error)
44909 CYTHON_FALLTHROUGH;
44911 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
44913 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 7); __PYX_ERR(0, 7923, __pyx_L3_error)
44915 CYTHON_FALLTHROUGH;
44917 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveFlag)) != 0)) kw_args--;
44919 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 8); __PYX_ERR(0, 7923, __pyx_L3_error)
44921 CYTHON_FALLTHROUGH;
44923 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
44925 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 9); __PYX_ERR(0, 7923, __pyx_L3_error)
44927 CYTHON_FALLTHROUGH;
44929 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveHeight)) != 0)) kw_args--;
44931 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 10); __PYX_ERR(0, 7923, __pyx_L3_error)
44933 CYTHON_FALLTHROUGH;
44935 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveCelerity)) != 0)) kw_args--;
44937 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 11); __PYX_ERR(0, 7923, __pyx_L3_error)
44939 CYTHON_FALLTHROUGH;
44941 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveFrequency)) != 0)) kw_args--;
44943 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 12); __PYX_ERR(0, 7923, __pyx_L3_error)
44945 CYTHON_FALLTHROUGH;
44947 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waveNumber)) != 0)) kw_args--;
44949 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 13); __PYX_ERR(0, 7923, __pyx_L3_error)
44951 CYTHON_FALLTHROUGH;
44953 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waterDepth)) != 0)) kw_args--;
44955 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 14); __PYX_ERR(0, 7923, __pyx_L3_error)
44957 CYTHON_FALLTHROUGH;
44959 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_source)) != 0)) kw_args--;
44961 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, 15); __PYX_ERR(0, 7923, __pyx_L3_error)
44964 if (unlikely(kw_args > 0)) {
44965 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateWaveFunction3d_ref") < 0)) __PYX_ERR(0, 7923, __pyx_L3_error)
44967 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
44968 goto __pyx_L5_argtuple_error;
44970 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44971 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44972 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44973 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44974 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44975 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44976 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44977 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44978 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44979 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44980 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44981 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44982 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
44983 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
44984 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
44985 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
44987 __pyx_v_mesh_trial_ref = ((PyArrayObject *)values[0]);
44988 __pyx_v_mesh_dof = ((PyArrayObject *)values[1]);
44989 __pyx_v_mesh_l2g = ((PyArrayObject *)values[2]);
44990 __pyx_v_elementDiametersArray = ((PyArrayObject *)values[3]);
44991 __pyx_v_omega_s_x = ((PyArrayObject *)values[4]);
44992 __pyx_v_omega_s_y = ((PyArrayObject *)values[5]);
44993 __pyx_v_omega_s_z = ((PyArrayObject *)values[6]);
44994 __pyx_v_t = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7930, __pyx_L3_error)
44995 __pyx_v_waveFlag = __Pyx_PyInt_As_int(values[8]);
if (unlikely((__pyx_v_waveFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7931, __pyx_L3_error)
44996 __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[9]);
if (unlikely((__pyx_v_epsFact == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7932, __pyx_L3_error)
44997 __pyx_v_waveHeight = __pyx_PyFloat_AsDouble(values[10]);
if (unlikely((__pyx_v_waveHeight == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7933, __pyx_L3_error)
44998 __pyx_v_waveCelerity = __pyx_PyFloat_AsDouble(values[11]);
if (unlikely((__pyx_v_waveCelerity == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7934, __pyx_L3_error)
44999 __pyx_v_waveFrequency = __pyx_PyFloat_AsDouble(values[12]);
if (unlikely((__pyx_v_waveFrequency == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7935, __pyx_L3_error)
45000 __pyx_v_waveNumber = __pyx_PyFloat_AsDouble(values[13]);
if (unlikely((__pyx_v_waveNumber == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7936, __pyx_L3_error)
45001 __pyx_v_waterDepth = __pyx_PyFloat_AsDouble(values[14]);
if (unlikely((__pyx_v_waterDepth == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7937, __pyx_L3_error)
45002 __pyx_v_source = ((PyArrayObject *)values[15]);
45004 goto __pyx_L4_argument_unpacking_done;
45005 __pyx_L5_argtuple_error:;
45006 __Pyx_RaiseArgtupleInvalid(
"calculateWaveFunction3d_ref", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7923, __pyx_L3_error)
45008 __Pyx_AddTraceback(
"ctransportCoefficients.calculateWaveFunction3d_ref", __pyx_clineno, __pyx_lineno, __pyx_filename);
45009 __Pyx_RefNannyFinishContext();
45011 __pyx_L4_argument_unpacking_done:;
45012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mesh_trial_ref), __pyx_ptype_5numpy_ndarray, 1,
"mesh_trial_ref", 0))) __PYX_ERR(0, 7923, __pyx_L1_error)
45013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mesh_dof), __pyx_ptype_5numpy_ndarray, 1,
"mesh_dof", 0))) __PYX_ERR(0, 7924, __pyx_L1_error)
45014 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mesh_l2g), __pyx_ptype_5numpy_ndarray, 1,
"mesh_l2g", 0))) __PYX_ERR(0, 7925, __pyx_L1_error)
45015 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiametersArray), __pyx_ptype_5numpy_ndarray, 1,
"elementDiametersArray", 0))) __PYX_ERR(0, 7926, __pyx_L1_error)
45016 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_s_x), __pyx_ptype_5numpy_ndarray, 1,
"omega_s_x", 0))) __PYX_ERR(0, 7927, __pyx_L1_error)
45017 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_s_y), __pyx_ptype_5numpy_ndarray, 1,
"omega_s_y", 0))) __PYX_ERR(0, 7928, __pyx_L1_error)
45018 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_omega_s_z), __pyx_ptype_5numpy_ndarray, 1,
"omega_s_z", 0))) __PYX_ERR(0, 7929, __pyx_L1_error)
45019 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_source), __pyx_ptype_5numpy_ndarray, 1,
"source", 0))) __PYX_ERR(0, 7938, __pyx_L1_error)
45020 __pyx_r = __pyx_pf_22ctransportCoefficients_236calculateWaveFunction3d_ref(__pyx_self, __pyx_v_mesh_trial_ref, __pyx_v_mesh_dof, __pyx_v_mesh_l2g, __pyx_v_elementDiametersArray, __pyx_v_omega_s_x, __pyx_v_omega_s_y, __pyx_v_omega_s_z, __pyx_v_t, __pyx_v_waveFlag, __pyx_v_epsFact, __pyx_v_waveHeight, __pyx_v_waveCelerity, __pyx_v_waveFrequency, __pyx_v_waveNumber, __pyx_v_waterDepth, __pyx_v_source);
45027 __Pyx_RefNannyFinishContext();
45031 static PyObject *__pyx_pf_22ctransportCoefficients_236calculateWaveFunction3d_ref(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mesh_trial_ref, PyArrayObject *__pyx_v_mesh_dof, PyArrayObject *__pyx_v_mesh_l2g, PyArrayObject *__pyx_v_elementDiametersArray, PyArrayObject *__pyx_v_omega_s_x, PyArrayObject *__pyx_v_omega_s_y, PyArrayObject *__pyx_v_omega_s_z,
double __pyx_v_t,
int __pyx_v_waveFlag,
double __pyx_v_epsFact,
double __pyx_v_waveHeight,
double __pyx_v_waveCelerity,
double __pyx_v_waveFrequency,
double __pyx_v_waveNumber,
double __pyx_v_waterDepth, PyArrayObject *__pyx_v_source) {
45032 PyObject *__pyx_r = NULL;
45033 __Pyx_RefNannyDeclarations
45034 __Pyx_RefNannySetupContext(
"calculateWaveFunction3d_ref", 0);
45043 calculateWaveFunction3d_ref((__pyx_v_mesh_l2g->dimensions[0]), (__pyx_v_mesh_l2g->dimensions[1]), (__pyx_v_mesh_trial_ref->dimensions[0]), ((
double *)__pyx_v_mesh_trial_ref->data), ((
double *)__pyx_v_mesh_dof->data), ((
int *)__pyx_v_mesh_l2g->data), ((
double *)__pyx_v_elementDiametersArray->data), ((
double *)__pyx_v_omega_s_x->data), ((
double *)__pyx_v_omega_s_y->data), ((
double *)__pyx_v_omega_s_z->data), __pyx_v_t, __pyx_v_waveFlag, __pyx_v_epsFact, __pyx_v_waveHeight, __pyx_v_waveCelerity, __pyx_v_waveFrequency, __pyx_v_waveNumber, __pyx_v_waterDepth, ((
double *)__pyx_v_source->data));
45054 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45055 __Pyx_XGIVEREF(__pyx_r);
45056 __Pyx_RefNannyFinishContext();
45069 static PyObject *__pyx_pw_22ctransportCoefficients_239Mass_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45070 static PyMethodDef __pyx_mdef_22ctransportCoefficients_239Mass_2D_Evaluate = {
"Mass_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_239Mass_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
45071 static PyObject *__pyx_pw_22ctransportCoefficients_239Mass_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45072 double __pyx_v_rho;
45073 PyArrayObject *__pyx_v_p = 0;
45074 PyArrayObject *__pyx_v_u = 0;
45075 PyArrayObject *__pyx_v_v = 0;
45076 PyArrayObject *__pyx_v_mom_p_acc = 0;
45077 PyArrayObject *__pyx_v_mom_u_acc = 0;
45078 PyArrayObject *__pyx_v_mom_v_acc = 0;
45079 PyArrayObject *__pyx_v_dmom_p_acc_p = 0;
45080 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
45081 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
45082 int __pyx_lineno = 0;
45083 const char *__pyx_filename = NULL;
45084 int __pyx_clineno = 0;
45085 PyObject *__pyx_r = 0;
45086 __Pyx_RefNannyDeclarations
45087 __Pyx_RefNannySetupContext(
"Mass_2D_Evaluate (wrapper)", 0);
45089 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mom_p_acc,&__pyx_n_s_mom_u_acc,&__pyx_n_s_mom_v_acc,&__pyx_n_s_dmom_p_acc_p,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_dmom_v_acc_v,0};
45090 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
45091 if (unlikely(__pyx_kwds)) {
45092 Py_ssize_t kw_args;
45093 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45094 switch (pos_args) {
45095 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45096 CYTHON_FALLTHROUGH;
45097 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45098 CYTHON_FALLTHROUGH;
45099 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45100 CYTHON_FALLTHROUGH;
45101 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45102 CYTHON_FALLTHROUGH;
45103 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45104 CYTHON_FALLTHROUGH;
45105 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45106 CYTHON_FALLTHROUGH;
45107 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45108 CYTHON_FALLTHROUGH;
45109 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45110 CYTHON_FALLTHROUGH;
45111 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45112 CYTHON_FALLTHROUGH;
45113 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45114 CYTHON_FALLTHROUGH;
45116 default:
goto __pyx_L5_argtuple_error;
45118 kw_args = PyDict_Size(__pyx_kwds);
45119 switch (pos_args) {
45121 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
45122 else goto __pyx_L5_argtuple_error;
45123 CYTHON_FALLTHROUGH;
45125 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
45127 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 1); __PYX_ERR(0, 7958, __pyx_L3_error)
45129 CYTHON_FALLTHROUGH;
45131 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
45133 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 2); __PYX_ERR(0, 7958, __pyx_L3_error)
45135 CYTHON_FALLTHROUGH;
45137 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45139 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 3); __PYX_ERR(0, 7958, __pyx_L3_error)
45141 CYTHON_FALLTHROUGH;
45143 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_acc)) != 0)) kw_args--;
45145 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 4); __PYX_ERR(0, 7958, __pyx_L3_error)
45147 CYTHON_FALLTHROUGH;
45149 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
45151 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 5); __PYX_ERR(0, 7958, __pyx_L3_error)
45153 CYTHON_FALLTHROUGH;
45155 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
45157 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 6); __PYX_ERR(0, 7958, __pyx_L3_error)
45159 CYTHON_FALLTHROUGH;
45161 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_p_acc_p)) != 0)) kw_args--;
45163 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 7); __PYX_ERR(0, 7958, __pyx_L3_error)
45165 CYTHON_FALLTHROUGH;
45167 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
45169 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 8); __PYX_ERR(0, 7958, __pyx_L3_error)
45171 CYTHON_FALLTHROUGH;
45173 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
45175 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, 9); __PYX_ERR(0, 7958, __pyx_L3_error)
45178 if (unlikely(kw_args > 0)) {
45179 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"Mass_2D_Evaluate") < 0)) __PYX_ERR(0, 7958, __pyx_L3_error)
45181 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
45182 goto __pyx_L5_argtuple_error;
45184 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45185 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45186 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45187 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45188 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45189 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45190 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45191 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45192 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45193 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45195 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7958, __pyx_L3_error)
45196 __pyx_v_p = ((PyArrayObject *)values[1]);
45197 __pyx_v_u = ((PyArrayObject *)values[2]);
45198 __pyx_v_v = ((PyArrayObject *)values[3]);
45199 __pyx_v_mom_p_acc = ((PyArrayObject *)values[4]);
45200 __pyx_v_mom_u_acc = ((PyArrayObject *)values[5]);
45201 __pyx_v_mom_v_acc = ((PyArrayObject *)values[6]);
45202 __pyx_v_dmom_p_acc_p = ((PyArrayObject *)values[7]);
45203 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[8]);
45204 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[9]);
45206 goto __pyx_L4_argument_unpacking_done;
45207 __pyx_L5_argtuple_error:;
45208 __Pyx_RaiseArgtupleInvalid(
"Mass_2D_Evaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7958, __pyx_L3_error)
45210 __Pyx_AddTraceback(
"ctransportCoefficients.Mass_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45211 __Pyx_RefNannyFinishContext();
45213 __pyx_L4_argument_unpacking_done:;
45214 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 7959, __pyx_L1_error)
45215 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 7960, __pyx_L1_error)
45216 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 7961, __pyx_L1_error)
45217 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_p_acc", 0))) __PYX_ERR(0, 7962, __pyx_L1_error)
45218 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 7963, __pyx_L1_error)
45219 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 7964, __pyx_L1_error)
45220 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_p_acc_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_p_acc_p", 0))) __PYX_ERR(0, 7965, __pyx_L1_error)
45221 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 7966, __pyx_L1_error)
45222 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 7967, __pyx_L1_error)
45223 __pyx_r = __pyx_pf_22ctransportCoefficients_238Mass_2D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_mom_p_acc, __pyx_v_mom_u_acc, __pyx_v_mom_v_acc, __pyx_v_dmom_p_acc_p, __pyx_v_dmom_u_acc_u, __pyx_v_dmom_v_acc_v);
45230 __Pyx_RefNannyFinishContext();
45234 static PyObject *__pyx_pf_22ctransportCoefficients_238Mass_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v) {
45235 PyObject *__pyx_r = NULL;
45236 __Pyx_RefNannyDeclarations
45237 PyObject *__pyx_t_1 = NULL;
45239 int __pyx_lineno = 0;
45240 const char *__pyx_filename = NULL;
45241 int __pyx_clineno = 0;
45242 __Pyx_RefNannySetupContext(
"Mass_2D_Evaluate", 0);
45251 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7968, __pyx_L1_error)
45252 __Pyx_GOTREF(__pyx_t_1);
45253 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7968, __pyx_L1_error)
45254 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45263 Mass_2D_Evaluate(__pyx_t_2, __pyx_v_rho, ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mom_p_acc->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_dmom_p_acc_p->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_dmom_v_acc_v->data));
45274 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45277 __Pyx_XDECREF(__pyx_t_1);
45278 __Pyx_AddTraceback(
"ctransportCoefficients.Mass_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45281 __Pyx_XGIVEREF(__pyx_r);
45282 __Pyx_RefNannyFinishContext();
45295 static PyObject *__pyx_pw_22ctransportCoefficients_241Mass_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45296 static PyMethodDef __pyx_mdef_22ctransportCoefficients_241Mass_3D_Evaluate = {
"Mass_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_241Mass_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
45297 static PyObject *__pyx_pw_22ctransportCoefficients_241Mass_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45298 double __pyx_v_rho;
45299 PyArrayObject *__pyx_v_p = 0;
45300 PyArrayObject *__pyx_v_u = 0;
45301 PyArrayObject *__pyx_v_v = 0;
45302 PyArrayObject *__pyx_v_w = 0;
45303 PyArrayObject *__pyx_v_mom_p_acc = 0;
45304 PyArrayObject *__pyx_v_mom_u_acc = 0;
45305 PyArrayObject *__pyx_v_mom_v_acc = 0;
45306 PyArrayObject *__pyx_v_mom_w_acc = 0;
45307 PyArrayObject *__pyx_v_dmom_p_acc_p = 0;
45308 PyArrayObject *__pyx_v_dmom_u_acc_u = 0;
45309 PyArrayObject *__pyx_v_dmom_v_acc_v = 0;
45310 PyArrayObject *__pyx_v_dmom_w_acc_w = 0;
45311 int __pyx_lineno = 0;
45312 const char *__pyx_filename = NULL;
45313 int __pyx_clineno = 0;
45314 PyObject *__pyx_r = 0;
45315 __Pyx_RefNannyDeclarations
45316 __Pyx_RefNannySetupContext(
"Mass_3D_Evaluate (wrapper)", 0);
45318 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rho,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_p_acc,&__pyx_n_s_mom_u_acc,&__pyx_n_s_mom_v_acc,&__pyx_n_s_mom_w_acc,&__pyx_n_s_dmom_p_acc_p,&__pyx_n_s_dmom_u_acc_u,&__pyx_n_s_dmom_v_acc_v,&__pyx_n_s_dmom_w_acc_w,0};
45319 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
45320 if (unlikely(__pyx_kwds)) {
45321 Py_ssize_t kw_args;
45322 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45323 switch (pos_args) {
45324 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45325 CYTHON_FALLTHROUGH;
45326 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45327 CYTHON_FALLTHROUGH;
45328 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45329 CYTHON_FALLTHROUGH;
45330 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45331 CYTHON_FALLTHROUGH;
45332 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45333 CYTHON_FALLTHROUGH;
45334 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45335 CYTHON_FALLTHROUGH;
45336 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45337 CYTHON_FALLTHROUGH;
45338 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45339 CYTHON_FALLTHROUGH;
45340 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45341 CYTHON_FALLTHROUGH;
45342 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45343 CYTHON_FALLTHROUGH;
45344 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45345 CYTHON_FALLTHROUGH;
45346 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45347 CYTHON_FALLTHROUGH;
45348 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45349 CYTHON_FALLTHROUGH;
45351 default:
goto __pyx_L5_argtuple_error;
45353 kw_args = PyDict_Size(__pyx_kwds);
45354 switch (pos_args) {
45356 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
45357 else goto __pyx_L5_argtuple_error;
45358 CYTHON_FALLTHROUGH;
45360 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
45362 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 1); __PYX_ERR(0, 7979, __pyx_L3_error)
45364 CYTHON_FALLTHROUGH;
45366 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
45368 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 2); __PYX_ERR(0, 7979, __pyx_L3_error)
45370 CYTHON_FALLTHROUGH;
45372 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45374 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 3); __PYX_ERR(0, 7979, __pyx_L3_error)
45376 CYTHON_FALLTHROUGH;
45378 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
45380 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 4); __PYX_ERR(0, 7979, __pyx_L3_error)
45382 CYTHON_FALLTHROUGH;
45384 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_acc)) != 0)) kw_args--;
45386 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 5); __PYX_ERR(0, 7979, __pyx_L3_error)
45388 CYTHON_FALLTHROUGH;
45390 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_acc)) != 0)) kw_args--;
45392 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 6); __PYX_ERR(0, 7979, __pyx_L3_error)
45394 CYTHON_FALLTHROUGH;
45396 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_acc)) != 0)) kw_args--;
45398 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 7); __PYX_ERR(0, 7979, __pyx_L3_error)
45400 CYTHON_FALLTHROUGH;
45402 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_acc)) != 0)) kw_args--;
45404 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 8); __PYX_ERR(0, 7979, __pyx_L3_error)
45406 CYTHON_FALLTHROUGH;
45408 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_p_acc_p)) != 0)) kw_args--;
45410 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 9); __PYX_ERR(0, 7979, __pyx_L3_error)
45412 CYTHON_FALLTHROUGH;
45414 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_acc_u)) != 0)) kw_args--;
45416 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 10); __PYX_ERR(0, 7979, __pyx_L3_error)
45418 CYTHON_FALLTHROUGH;
45420 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_acc_v)) != 0)) kw_args--;
45422 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 11); __PYX_ERR(0, 7979, __pyx_L3_error)
45424 CYTHON_FALLTHROUGH;
45426 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_w_acc_w)) != 0)) kw_args--;
45428 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, 12); __PYX_ERR(0, 7979, __pyx_L3_error)
45431 if (unlikely(kw_args > 0)) {
45432 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"Mass_3D_Evaluate") < 0)) __PYX_ERR(0, 7979, __pyx_L3_error)
45434 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
45435 goto __pyx_L5_argtuple_error;
45437 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45438 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45439 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45440 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45441 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45442 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45443 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45444 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45445 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45446 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45447 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45448 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45449 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45451 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7979, __pyx_L3_error)
45452 __pyx_v_p = ((PyArrayObject *)values[1]);
45453 __pyx_v_u = ((PyArrayObject *)values[2]);
45454 __pyx_v_v = ((PyArrayObject *)values[3]);
45455 __pyx_v_w = ((PyArrayObject *)values[4]);
45456 __pyx_v_mom_p_acc = ((PyArrayObject *)values[5]);
45457 __pyx_v_mom_u_acc = ((PyArrayObject *)values[6]);
45458 __pyx_v_mom_v_acc = ((PyArrayObject *)values[7]);
45459 __pyx_v_mom_w_acc = ((PyArrayObject *)values[8]);
45460 __pyx_v_dmom_p_acc_p = ((PyArrayObject *)values[9]);
45461 __pyx_v_dmom_u_acc_u = ((PyArrayObject *)values[10]);
45462 __pyx_v_dmom_v_acc_v = ((PyArrayObject *)values[11]);
45463 __pyx_v_dmom_w_acc_w = ((PyArrayObject *)values[12]);
45465 goto __pyx_L4_argument_unpacking_done;
45466 __pyx_L5_argtuple_error:;
45467 __Pyx_RaiseArgtupleInvalid(
"Mass_3D_Evaluate", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7979, __pyx_L3_error)
45469 __Pyx_AddTraceback(
"ctransportCoefficients.Mass_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45470 __Pyx_RefNannyFinishContext();
45472 __pyx_L4_argument_unpacking_done:;
45473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 7980, __pyx_L1_error)
45474 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 7981, __pyx_L1_error)
45475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 7982, __pyx_L1_error)
45476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 7983, __pyx_L1_error)
45477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_p_acc", 0))) __PYX_ERR(0, 7984, __pyx_L1_error)
45478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_acc", 0))) __PYX_ERR(0, 7985, __pyx_L1_error)
45479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_acc", 0))) __PYX_ERR(0, 7986, __pyx_L1_error)
45480 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_acc), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_acc", 0))) __PYX_ERR(0, 7987, __pyx_L1_error)
45481 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_p_acc_p), __pyx_ptype_5numpy_ndarray, 1,
"dmom_p_acc_p", 0))) __PYX_ERR(0, 7988, __pyx_L1_error)
45482 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_acc_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_acc_u", 0))) __PYX_ERR(0, 7989, __pyx_L1_error)
45483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_acc_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_acc_v", 0))) __PYX_ERR(0, 7990, __pyx_L1_error)
45484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_w_acc_w), __pyx_ptype_5numpy_ndarray, 1,
"dmom_w_acc_w", 0))) __PYX_ERR(0, 7991, __pyx_L1_error)
45485 __pyx_r = __pyx_pf_22ctransportCoefficients_240Mass_3D_Evaluate(__pyx_self, __pyx_v_rho, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_p_acc, __pyx_v_mom_u_acc, __pyx_v_mom_v_acc, __pyx_v_mom_w_acc, __pyx_v_dmom_p_acc_p, __pyx_v_dmom_u_acc_u, __pyx_v_dmom_v_acc_v, __pyx_v_dmom_w_acc_w);
45492 __Pyx_RefNannyFinishContext();
45496 static PyObject *__pyx_pf_22ctransportCoefficients_240Mass_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_rho, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_acc, PyArrayObject *__pyx_v_mom_u_acc, PyArrayObject *__pyx_v_mom_v_acc, PyArrayObject *__pyx_v_mom_w_acc, PyArrayObject *__pyx_v_dmom_p_acc_p, PyArrayObject *__pyx_v_dmom_u_acc_u, PyArrayObject *__pyx_v_dmom_v_acc_v, PyArrayObject *__pyx_v_dmom_w_acc_w) {
45497 PyObject *__pyx_r = NULL;
45498 __Pyx_RefNannyDeclarations
45499 PyObject *__pyx_t_1 = NULL;
45501 int __pyx_lineno = 0;
45502 const char *__pyx_filename = NULL;
45503 int __pyx_clineno = 0;
45504 __Pyx_RefNannySetupContext(
"Mass_3D_Evaluate", 0);
45513 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7992, __pyx_L1_error)
45514 __Pyx_GOTREF(__pyx_t_1);
45515 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7992, __pyx_L1_error)
45516 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45525 Mass_3D_Evaluate(__pyx_t_2, __pyx_v_rho, ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_mom_p_acc->data), ((
double *)__pyx_v_mom_u_acc->data), ((
double *)__pyx_v_mom_v_acc->data), ((
double *)__pyx_v_mom_w_acc->data), ((
double *)__pyx_v_dmom_p_acc_p->data), ((
double *)__pyx_v_dmom_u_acc_u->data), ((
double *)__pyx_v_dmom_v_acc_v->data), ((
double *)__pyx_v_dmom_w_acc_w->data));
45536 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45539 __Pyx_XDECREF(__pyx_t_1);
45540 __Pyx_AddTraceback(
"ctransportCoefficients.Mass_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45543 __Pyx_XGIVEREF(__pyx_r);
45544 __Pyx_RefNannyFinishContext();
45557 static PyObject *__pyx_pw_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45558 static PyMethodDef __pyx_mdef_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate = {
"TwoPhaseAdvection_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
45559 static PyObject *__pyx_pw_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45560 double __pyx_v_eps;
45561 double __pyx_v_rho_0;
45562 double __pyx_v_nu_0;
45563 double __pyx_v_rho_1;
45564 double __pyx_v_nu_1;
45565 PyArrayObject *__pyx_v_phi = 0;
45566 PyArrayObject *__pyx_v_p = 0;
45567 PyArrayObject *__pyx_v_u = 0;
45568 PyArrayObject *__pyx_v_v = 0;
45569 PyArrayObject *__pyx_v_mass_adv = 0;
45570 PyArrayObject *__pyx_v_dmass_adv_p = 0;
45571 PyArrayObject *__pyx_v_dmass_adv_u = 0;
45572 PyArrayObject *__pyx_v_dmass_adv_v = 0;
45573 PyArrayObject *__pyx_v_mom_u_adv = 0;
45574 PyArrayObject *__pyx_v_dmom_u_adv_u = 0;
45575 PyArrayObject *__pyx_v_dmom_u_adv_v = 0;
45576 PyArrayObject *__pyx_v_mom_v_adv = 0;
45577 PyArrayObject *__pyx_v_dmom_v_adv_u = 0;
45578 PyArrayObject *__pyx_v_dmom_v_adv_v = 0;
45579 int __pyx_lineno = 0;
45580 const char *__pyx_filename = NULL;
45581 int __pyx_clineno = 0;
45582 PyObject *__pyx_r = 0;
45583 __Pyx_RefNannyDeclarations
45584 __Pyx_RefNannySetupContext(
"TwoPhaseAdvection_2D_Evaluate (wrapper)", 0);
45586 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_rho_0,&__pyx_n_s_nu_0,&__pyx_n_s_rho_1,&__pyx_n_s_nu_1,&__pyx_n_s_phi,&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_mass_adv,&__pyx_n_s_dmass_adv_p,&__pyx_n_s_dmass_adv_u,&__pyx_n_s_dmass_adv_v,&__pyx_n_s_mom_u_adv,&__pyx_n_s_dmom_u_adv_u,&__pyx_n_s_dmom_u_adv_v,&__pyx_n_s_mom_v_adv,&__pyx_n_s_dmom_v_adv_u,&__pyx_n_s_dmom_v_adv_v,0};
45587 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
45588 if (unlikely(__pyx_kwds)) {
45589 Py_ssize_t kw_args;
45590 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45591 switch (pos_args) {
45592 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
45593 CYTHON_FALLTHROUGH;
45594 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
45595 CYTHON_FALLTHROUGH;
45596 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
45597 CYTHON_FALLTHROUGH;
45598 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
45599 CYTHON_FALLTHROUGH;
45600 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
45601 CYTHON_FALLTHROUGH;
45602 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
45603 CYTHON_FALLTHROUGH;
45604 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45605 CYTHON_FALLTHROUGH;
45606 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45607 CYTHON_FALLTHROUGH;
45608 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45609 CYTHON_FALLTHROUGH;
45610 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45611 CYTHON_FALLTHROUGH;
45612 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45613 CYTHON_FALLTHROUGH;
45614 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45615 CYTHON_FALLTHROUGH;
45616 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45617 CYTHON_FALLTHROUGH;
45618 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45619 CYTHON_FALLTHROUGH;
45620 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45621 CYTHON_FALLTHROUGH;
45622 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45623 CYTHON_FALLTHROUGH;
45624 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45625 CYTHON_FALLTHROUGH;
45626 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45627 CYTHON_FALLTHROUGH;
45628 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45629 CYTHON_FALLTHROUGH;
45631 default:
goto __pyx_L5_argtuple_error;
45633 kw_args = PyDict_Size(__pyx_kwds);
45634 switch (pos_args) {
45636 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
45637 else goto __pyx_L5_argtuple_error;
45638 CYTHON_FALLTHROUGH;
45640 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_0)) != 0)) kw_args--;
45642 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 1); __PYX_ERR(0, 8006, __pyx_L3_error)
45644 CYTHON_FALLTHROUGH;
45646 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_0)) != 0)) kw_args--;
45648 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 2); __PYX_ERR(0, 8006, __pyx_L3_error)
45650 CYTHON_FALLTHROUGH;
45652 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_1)) != 0)) kw_args--;
45654 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 3); __PYX_ERR(0, 8006, __pyx_L3_error)
45656 CYTHON_FALLTHROUGH;
45658 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu_1)) != 0)) kw_args--;
45660 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 4); __PYX_ERR(0, 8006, __pyx_L3_error)
45662 CYTHON_FALLTHROUGH;
45664 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
45666 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 5); __PYX_ERR(0, 8006, __pyx_L3_error)
45668 CYTHON_FALLTHROUGH;
45670 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
45672 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 6); __PYX_ERR(0, 8006, __pyx_L3_error)
45674 CYTHON_FALLTHROUGH;
45676 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
45678 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 7); __PYX_ERR(0, 8006, __pyx_L3_error)
45680 CYTHON_FALLTHROUGH;
45682 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45684 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 8); __PYX_ERR(0, 8006, __pyx_L3_error)
45686 CYTHON_FALLTHROUGH;
45688 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass_adv)) != 0)) kw_args--;
45690 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 9); __PYX_ERR(0, 8006, __pyx_L3_error)
45692 CYTHON_FALLTHROUGH;
45694 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_p)) != 0)) kw_args--;
45696 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 10); __PYX_ERR(0, 8006, __pyx_L3_error)
45698 CYTHON_FALLTHROUGH;
45700 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_u)) != 0)) kw_args--;
45702 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 11); __PYX_ERR(0, 8006, __pyx_L3_error)
45704 CYTHON_FALLTHROUGH;
45706 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass_adv_v)) != 0)) kw_args--;
45708 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 12); __PYX_ERR(0, 8006, __pyx_L3_error)
45710 CYTHON_FALLTHROUGH;
45712 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_adv)) != 0)) kw_args--;
45714 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 13); __PYX_ERR(0, 8006, __pyx_L3_error)
45716 CYTHON_FALLTHROUGH;
45718 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_u)) != 0)) kw_args--;
45720 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 14); __PYX_ERR(0, 8006, __pyx_L3_error)
45722 CYTHON_FALLTHROUGH;
45724 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_u_adv_v)) != 0)) kw_args--;
45726 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 15); __PYX_ERR(0, 8006, __pyx_L3_error)
45728 CYTHON_FALLTHROUGH;
45730 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_adv)) != 0)) kw_args--;
45732 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 16); __PYX_ERR(0, 8006, __pyx_L3_error)
45734 CYTHON_FALLTHROUGH;
45736 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_u)) != 0)) kw_args--;
45738 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 17); __PYX_ERR(0, 8006, __pyx_L3_error)
45740 CYTHON_FALLTHROUGH;
45742 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmom_v_adv_v)) != 0)) kw_args--;
45744 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, 18); __PYX_ERR(0, 8006, __pyx_L3_error)
45747 if (unlikely(kw_args > 0)) {
45748 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"TwoPhaseAdvection_2D_Evaluate") < 0)) __PYX_ERR(0, 8006, __pyx_L3_error)
45750 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
45751 goto __pyx_L5_argtuple_error;
45753 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45754 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45755 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45756 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45757 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45758 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45759 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45760 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45761 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45762 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45763 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45764 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45765 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
45766 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
45767 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
45768 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
45769 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
45770 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
45771 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
45773 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8006, __pyx_L3_error)
45774 __pyx_v_rho_0 = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8007, __pyx_L3_error)
45775 __pyx_v_nu_0 = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_nu_0 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8008, __pyx_L3_error)
45776 __pyx_v_rho_1 = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_rho_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8009, __pyx_L3_error)
45777 __pyx_v_nu_1 = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_nu_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8010, __pyx_L3_error)
45778 __pyx_v_phi = ((PyArrayObject *)values[5]);
45779 __pyx_v_p = ((PyArrayObject *)values[6]);
45780 __pyx_v_u = ((PyArrayObject *)values[7]);
45781 __pyx_v_v = ((PyArrayObject *)values[8]);
45782 __pyx_v_mass_adv = ((PyArrayObject *)values[9]);
45783 __pyx_v_dmass_adv_p = ((PyArrayObject *)values[10]);
45784 __pyx_v_dmass_adv_u = ((PyArrayObject *)values[11]);
45785 __pyx_v_dmass_adv_v = ((PyArrayObject *)values[12]);
45786 __pyx_v_mom_u_adv = ((PyArrayObject *)values[13]);
45787 __pyx_v_dmom_u_adv_u = ((PyArrayObject *)values[14]);
45788 __pyx_v_dmom_u_adv_v = ((PyArrayObject *)values[15]);
45789 __pyx_v_mom_v_adv = ((PyArrayObject *)values[16]);
45790 __pyx_v_dmom_v_adv_u = ((PyArrayObject *)values[17]);
45791 __pyx_v_dmom_v_adv_v = ((PyArrayObject *)values[18]);
45793 goto __pyx_L4_argument_unpacking_done;
45794 __pyx_L5_argtuple_error:;
45795 __Pyx_RaiseArgtupleInvalid(
"TwoPhaseAdvection_2D_Evaluate", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8006, __pyx_L3_error)
45797 __Pyx_AddTraceback(
"ctransportCoefficients.TwoPhaseAdvection_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45798 __Pyx_RefNannyFinishContext();
45800 __pyx_L4_argument_unpacking_done:;
45801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 8011, __pyx_L1_error)
45802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 8012, __pyx_L1_error)
45803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8013, __pyx_L1_error)
45804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 8014, __pyx_L1_error)
45805 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass_adv), __pyx_ptype_5numpy_ndarray, 1,
"mass_adv", 0))) __PYX_ERR(0, 8015, __pyx_L1_error)
45806 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_p), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_p", 0))) __PYX_ERR(0, 8016, __pyx_L1_error)
45807 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_u", 0))) __PYX_ERR(0, 8017, __pyx_L1_error)
45808 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmass_adv_v", 0))) __PYX_ERR(0, 8018, __pyx_L1_error)
45809 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_adv", 0))) __PYX_ERR(0, 8019, __pyx_L1_error)
45810 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_u", 0))) __PYX_ERR(0, 8020, __pyx_L1_error)
45811 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_u_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_u_adv_v", 0))) __PYX_ERR(0, 8021, __pyx_L1_error)
45812 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_adv), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_adv", 0))) __PYX_ERR(0, 8022, __pyx_L1_error)
45813 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_u), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_u", 0))) __PYX_ERR(0, 8023, __pyx_L1_error)
45814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmom_v_adv_v), __pyx_ptype_5numpy_ndarray, 1,
"dmom_v_adv_v", 0))) __PYX_ERR(0, 8024, __pyx_L1_error)
45815 __pyx_r = __pyx_pf_22ctransportCoefficients_242TwoPhaseAdvection_2D_Evaluate(__pyx_self, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, __pyx_v_phi, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_mass_adv, __pyx_v_dmass_adv_p, __pyx_v_dmass_adv_u, __pyx_v_dmass_adv_v, __pyx_v_mom_u_adv, __pyx_v_dmom_u_adv_u, __pyx_v_dmom_u_adv_v, __pyx_v_mom_v_adv, __pyx_v_dmom_v_adv_u, __pyx_v_dmom_v_adv_v);
45822 __Pyx_RefNannyFinishContext();
45826 static PyObject *__pyx_pf_22ctransportCoefficients_242TwoPhaseAdvection_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_rho_0,
double __pyx_v_nu_0,
double __pyx_v_rho_1,
double __pyx_v_nu_1, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_mass_adv, PyArrayObject *__pyx_v_dmass_adv_p, PyArrayObject *__pyx_v_dmass_adv_u, PyArrayObject *__pyx_v_dmass_adv_v, PyArrayObject *__pyx_v_mom_u_adv, PyArrayObject *__pyx_v_dmom_u_adv_u, PyArrayObject *__pyx_v_dmom_u_adv_v, PyArrayObject *__pyx_v_mom_v_adv, PyArrayObject *__pyx_v_dmom_v_adv_u, PyArrayObject *__pyx_v_dmom_v_adv_v) {
45827 PyObject *__pyx_r = NULL;
45828 __Pyx_RefNannyDeclarations
45829 PyObject *__pyx_t_1 = NULL;
45831 int __pyx_lineno = 0;
45832 const char *__pyx_filename = NULL;
45833 int __pyx_clineno = 0;
45834 __Pyx_RefNannySetupContext(
"TwoPhaseAdvection_2D_Evaluate", 0);
45843 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8025, __pyx_L1_error)
45844 __Pyx_GOTREF(__pyx_t_1);
45845 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8025, __pyx_L1_error)
45846 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45855 TwoPhaseAdvection_2D_Evaluate(__pyx_t_2, __pyx_v_eps, __pyx_v_rho_0, __pyx_v_nu_0, __pyx_v_rho_1, __pyx_v_nu_1, ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_mass_adv->data), ((
double *)__pyx_v_dmass_adv_p->data), ((
double *)__pyx_v_dmass_adv_u->data), ((
double *)__pyx_v_dmass_adv_v->data), ((
double *)__pyx_v_mom_u_adv->data), ((
double *)__pyx_v_dmom_u_adv_u->data), ((
double *)__pyx_v_dmom_u_adv_v->data), ((
double *)__pyx_v_mom_v_adv->data), ((
double *)__pyx_v_dmom_v_adv_u->data), ((
double *)__pyx_v_dmom_v_adv_v->data));
45866 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45869 __Pyx_XDECREF(__pyx_t_1);
45870 __Pyx_AddTraceback(
"ctransportCoefficients.TwoPhaseAdvection_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
45873 __Pyx_XGIVEREF(__pyx_r);
45874 __Pyx_RefNannyFinishContext();
45887 static PyObject *__pyx_pw_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45888 static PyMethodDef __pyx_mdef_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction = {
"twophaseSignedDistanceUpdateSignFunction", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction, METH_VARARGS|METH_KEYWORDS, 0};
45889 static PyObject *__pyx_pw_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45890 int __pyx_v_nPoints;
45891 double __pyx_v_eps;
45892 PyArrayObject *__pyx_v_u_levelSet = 0;
45893 PyArrayObject *__pyx_v_S = 0;
45894 int __pyx_lineno = 0;
45895 const char *__pyx_filename = NULL;
45896 int __pyx_clineno = 0;
45897 PyObject *__pyx_r = 0;
45898 __Pyx_RefNannyDeclarations
45899 __Pyx_RefNannySetupContext(
"twophaseSignedDistanceUpdateSignFunction (wrapper)", 0);
45901 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nPoints,&__pyx_n_s_eps,&__pyx_n_s_u_levelSet,&__pyx_n_s_S,0};
45902 PyObject* values[4] = {0,0,0,0};
45903 if (unlikely(__pyx_kwds)) {
45904 Py_ssize_t kw_args;
45905 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45906 switch (pos_args) {
45907 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45908 CYTHON_FALLTHROUGH;
45909 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45910 CYTHON_FALLTHROUGH;
45911 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45912 CYTHON_FALLTHROUGH;
45913 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45914 CYTHON_FALLTHROUGH;
45916 default:
goto __pyx_L5_argtuple_error;
45918 kw_args = PyDict_Size(__pyx_kwds);
45919 switch (pos_args) {
45921 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPoints)) != 0)) kw_args--;
45922 else goto __pyx_L5_argtuple_error;
45923 CYTHON_FALLTHROUGH;
45925 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
45927 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, 1); __PYX_ERR(0, 8045, __pyx_L3_error)
45929 CYTHON_FALLTHROUGH;
45931 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_levelSet)) != 0)) kw_args--;
45933 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, 2); __PYX_ERR(0, 8045, __pyx_L3_error)
45935 CYTHON_FALLTHROUGH;
45937 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S)) != 0)) kw_args--;
45939 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, 3); __PYX_ERR(0, 8045, __pyx_L3_error)
45942 if (unlikely(kw_args > 0)) {
45943 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"twophaseSignedDistanceUpdateSignFunction") < 0)) __PYX_ERR(0, 8045, __pyx_L3_error)
45945 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
45946 goto __pyx_L5_argtuple_error;
45948 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45949 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45950 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45951 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45953 __pyx_v_nPoints = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nPoints == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8045, __pyx_L3_error)
45954 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8046, __pyx_L3_error)
45955 __pyx_v_u_levelSet = ((PyArrayObject *)values[2]);
45956 __pyx_v_S = ((PyArrayObject *)values[3]);
45958 goto __pyx_L4_argument_unpacking_done;
45959 __pyx_L5_argtuple_error:;
45960 __Pyx_RaiseArgtupleInvalid(
"twophaseSignedDistanceUpdateSignFunction", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8045, __pyx_L3_error)
45962 __Pyx_AddTraceback(
"ctransportCoefficients.twophaseSignedDistanceUpdateSignFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
45963 __Pyx_RefNannyFinishContext();
45965 __pyx_L4_argument_unpacking_done:;
45966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_levelSet), __pyx_ptype_5numpy_ndarray, 1,
"u_levelSet", 0))) __PYX_ERR(0, 8047, __pyx_L1_error)
45967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S), __pyx_ptype_5numpy_ndarray, 1,
"S", 0))) __PYX_ERR(0, 8048, __pyx_L1_error)
45968 __pyx_r = __pyx_pf_22ctransportCoefficients_244twophaseSignedDistanceUpdateSignFunction(__pyx_self, __pyx_v_nPoints, __pyx_v_eps, __pyx_v_u_levelSet, __pyx_v_S);
45975 __Pyx_RefNannyFinishContext();
45979 static PyObject *__pyx_pf_22ctransportCoefficients_244twophaseSignedDistanceUpdateSignFunction(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nPoints,
double __pyx_v_eps, PyArrayObject *__pyx_v_u_levelSet, PyArrayObject *__pyx_v_S) {
45980 PyObject *__pyx_r = NULL;
45981 __Pyx_RefNannyDeclarations
45982 __Pyx_RefNannySetupContext(
"twophaseSignedDistanceUpdateSignFunction", 0);
46002 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46003 __Pyx_XGIVEREF(__pyx_r);
46004 __Pyx_RefNannyFinishContext();
46017 static PyObject *__pyx_pw_22ctransportCoefficients_247Laplace_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46018 static PyMethodDef __pyx_mdef_22ctransportCoefficients_247Laplace_2D_Evaluate = {
"Laplace_2D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_247Laplace_2D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
46019 static PyObject *__pyx_pw_22ctransportCoefficients_247Laplace_2D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46020 PyArrayObject *__pyx_v_p = 0;
46021 CYTHON_UNUSED PyArrayObject *__pyx_v_u = 0;
46022 CYTHON_UNUSED PyArrayObject *__pyx_v_v = 0;
46023 CYTHON_UNUSED PyArrayObject *__pyx_v_w = 0;
46024 PyArrayObject *__pyx_v_mom_p_diff_ten = 0;
46025 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
46026 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
46027 int __pyx_lineno = 0;
46028 const char *__pyx_filename = NULL;
46029 int __pyx_clineno = 0;
46030 PyObject *__pyx_r = 0;
46031 __Pyx_RefNannyDeclarations
46032 __Pyx_RefNannySetupContext(
"Laplace_2D_Evaluate (wrapper)", 0);
46034 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_p_diff_ten,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,0};
46035 PyObject* values[7] = {0,0,0,0,0,0,0};
46036 if (unlikely(__pyx_kwds)) {
46037 Py_ssize_t kw_args;
46038 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46039 switch (pos_args) {
46040 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46041 CYTHON_FALLTHROUGH;
46042 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46043 CYTHON_FALLTHROUGH;
46044 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46045 CYTHON_FALLTHROUGH;
46046 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46047 CYTHON_FALLTHROUGH;
46048 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46049 CYTHON_FALLTHROUGH;
46050 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46051 CYTHON_FALLTHROUGH;
46052 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46053 CYTHON_FALLTHROUGH;
46055 default:
goto __pyx_L5_argtuple_error;
46057 kw_args = PyDict_Size(__pyx_kwds);
46058 switch (pos_args) {
46060 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
46061 else goto __pyx_L5_argtuple_error;
46062 CYTHON_FALLTHROUGH;
46064 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
46066 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, 1); __PYX_ERR(0, 8053, __pyx_L3_error)
46068 CYTHON_FALLTHROUGH;
46070 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
46072 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, 2); __PYX_ERR(0, 8053, __pyx_L3_error)
46074 CYTHON_FALLTHROUGH;
46076 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
46078 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, 3); __PYX_ERR(0, 8053, __pyx_L3_error)
46080 CYTHON_FALLTHROUGH;
46082 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_diff_ten)) != 0)) kw_args--;
46084 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, 4); __PYX_ERR(0, 8053, __pyx_L3_error)
46086 CYTHON_FALLTHROUGH;
46088 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
46090 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, 5); __PYX_ERR(0, 8053, __pyx_L3_error)
46092 CYTHON_FALLTHROUGH;
46094 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
46096 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, 6); __PYX_ERR(0, 8053, __pyx_L3_error)
46099 if (unlikely(kw_args > 0)) {
46100 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"Laplace_2D_Evaluate") < 0)) __PYX_ERR(0, 8053, __pyx_L3_error)
46102 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
46103 goto __pyx_L5_argtuple_error;
46105 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46106 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46107 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46108 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46109 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46110 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46111 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46113 __pyx_v_p = ((PyArrayObject *)values[0]);
46114 __pyx_v_u = ((PyArrayObject *)values[1]);
46115 __pyx_v_v = ((PyArrayObject *)values[2]);
46116 __pyx_v_w = ((PyArrayObject *)values[3]);
46117 __pyx_v_mom_p_diff_ten = ((PyArrayObject *)values[4]);
46118 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
46119 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
46121 goto __pyx_L4_argument_unpacking_done;
46122 __pyx_L5_argtuple_error:;
46123 __Pyx_RaiseArgtupleInvalid(
"Laplace_2D_Evaluate", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8053, __pyx_L3_error)
46125 __Pyx_AddTraceback(
"ctransportCoefficients.Laplace_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46126 __Pyx_RefNannyFinishContext();
46128 __pyx_L4_argument_unpacking_done:;
46129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 8053, __pyx_L1_error)
46130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8054, __pyx_L1_error)
46131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 8055, __pyx_L1_error)
46132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 8056, __pyx_L1_error)
46133 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_p_diff_ten", 0))) __PYX_ERR(0, 8057, __pyx_L1_error)
46134 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 8058, __pyx_L1_error)
46135 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 8059, __pyx_L1_error)
46136 __pyx_r = __pyx_pf_22ctransportCoefficients_246Laplace_2D_Evaluate(__pyx_self, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_p_diff_ten, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten);
46143 __Pyx_RefNannyFinishContext();
46147 static PyObject *__pyx_pf_22ctransportCoefficients_246Laplace_2D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten) {
46148 PyObject *__pyx_r = NULL;
46149 __Pyx_RefNannyDeclarations
46150 PyObject *__pyx_t_1 = NULL;
46152 int __pyx_lineno = 0;
46153 const char *__pyx_filename = NULL;
46154 int __pyx_clineno = 0;
46155 __Pyx_RefNannySetupContext(
"Laplace_2D_Evaluate", 0);
46164 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8060, __pyx_L1_error)
46165 __Pyx_GOTREF(__pyx_t_1);
46166 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8060, __pyx_L1_error)
46167 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46176 Laplace_Evaluate2D(__pyx_t_2, ((
double *)__pyx_v_mom_p_diff_ten->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data));
46187 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46190 __Pyx_XDECREF(__pyx_t_1);
46191 __Pyx_AddTraceback(
"ctransportCoefficients.Laplace_2D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46194 __Pyx_XGIVEREF(__pyx_r);
46195 __Pyx_RefNannyFinishContext();
46208 static PyObject *__pyx_pw_22ctransportCoefficients_249Laplace_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46209 static PyMethodDef __pyx_mdef_22ctransportCoefficients_249Laplace_3D_Evaluate = {
"Laplace_3D_Evaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_249Laplace_3D_Evaluate, METH_VARARGS|METH_KEYWORDS, 0};
46210 static PyObject *__pyx_pw_22ctransportCoefficients_249Laplace_3D_Evaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46211 PyArrayObject *__pyx_v_p = 0;
46212 CYTHON_UNUSED PyArrayObject *__pyx_v_u = 0;
46213 CYTHON_UNUSED PyArrayObject *__pyx_v_v = 0;
46214 CYTHON_UNUSED PyArrayObject *__pyx_v_w = 0;
46215 PyArrayObject *__pyx_v_mom_p_diff_ten = 0;
46216 PyArrayObject *__pyx_v_mom_u_diff_ten = 0;
46217 PyArrayObject *__pyx_v_mom_v_diff_ten = 0;
46218 PyArrayObject *__pyx_v_mom_w_diff_ten = 0;
46219 int __pyx_lineno = 0;
46220 const char *__pyx_filename = NULL;
46221 int __pyx_clineno = 0;
46222 PyObject *__pyx_r = 0;
46223 __Pyx_RefNannyDeclarations
46224 __Pyx_RefNannySetupContext(
"Laplace_3D_Evaluate (wrapper)", 0);
46226 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_mom_p_diff_ten,&__pyx_n_s_mom_u_diff_ten,&__pyx_n_s_mom_v_diff_ten,&__pyx_n_s_mom_w_diff_ten,0};
46227 PyObject* values[8] = {0,0,0,0,0,0,0,0};
46228 if (unlikely(__pyx_kwds)) {
46229 Py_ssize_t kw_args;
46230 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46231 switch (pos_args) {
46232 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
46233 CYTHON_FALLTHROUGH;
46234 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46235 CYTHON_FALLTHROUGH;
46236 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46237 CYTHON_FALLTHROUGH;
46238 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46239 CYTHON_FALLTHROUGH;
46240 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46241 CYTHON_FALLTHROUGH;
46242 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46243 CYTHON_FALLTHROUGH;
46244 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46245 CYTHON_FALLTHROUGH;
46246 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46247 CYTHON_FALLTHROUGH;
46249 default:
goto __pyx_L5_argtuple_error;
46251 kw_args = PyDict_Size(__pyx_kwds);
46252 switch (pos_args) {
46254 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
46255 else goto __pyx_L5_argtuple_error;
46256 CYTHON_FALLTHROUGH;
46258 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
46260 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 1); __PYX_ERR(0, 8064, __pyx_L3_error)
46262 CYTHON_FALLTHROUGH;
46264 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
46266 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 2); __PYX_ERR(0, 8064, __pyx_L3_error)
46268 CYTHON_FALLTHROUGH;
46270 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
46272 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 3); __PYX_ERR(0, 8064, __pyx_L3_error)
46274 CYTHON_FALLTHROUGH;
46276 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_p_diff_ten)) != 0)) kw_args--;
46278 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 4); __PYX_ERR(0, 8064, __pyx_L3_error)
46280 CYTHON_FALLTHROUGH;
46282 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_u_diff_ten)) != 0)) kw_args--;
46284 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 5); __PYX_ERR(0, 8064, __pyx_L3_error)
46286 CYTHON_FALLTHROUGH;
46288 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_v_diff_ten)) != 0)) kw_args--;
46290 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 6); __PYX_ERR(0, 8064, __pyx_L3_error)
46292 CYTHON_FALLTHROUGH;
46294 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_w_diff_ten)) != 0)) kw_args--;
46296 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, 7); __PYX_ERR(0, 8064, __pyx_L3_error)
46299 if (unlikely(kw_args > 0)) {
46300 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"Laplace_3D_Evaluate") < 0)) __PYX_ERR(0, 8064, __pyx_L3_error)
46302 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
46303 goto __pyx_L5_argtuple_error;
46305 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46306 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46307 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46308 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46309 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46310 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
46311 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
46312 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
46314 __pyx_v_p = ((PyArrayObject *)values[0]);
46315 __pyx_v_u = ((PyArrayObject *)values[1]);
46316 __pyx_v_v = ((PyArrayObject *)values[2]);
46317 __pyx_v_w = ((PyArrayObject *)values[3]);
46318 __pyx_v_mom_p_diff_ten = ((PyArrayObject *)values[4]);
46319 __pyx_v_mom_u_diff_ten = ((PyArrayObject *)values[5]);
46320 __pyx_v_mom_v_diff_ten = ((PyArrayObject *)values[6]);
46321 __pyx_v_mom_w_diff_ten = ((PyArrayObject *)values[7]);
46323 goto __pyx_L4_argument_unpacking_done;
46324 __pyx_L5_argtuple_error:;
46325 __Pyx_RaiseArgtupleInvalid(
"Laplace_3D_Evaluate", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8064, __pyx_L3_error)
46327 __Pyx_AddTraceback(
"ctransportCoefficients.Laplace_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46328 __Pyx_RefNannyFinishContext();
46330 __pyx_L4_argument_unpacking_done:;
46331 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 8064, __pyx_L1_error)
46332 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8065, __pyx_L1_error)
46333 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 8066, __pyx_L1_error)
46334 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 8067, __pyx_L1_error)
46335 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_p_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_p_diff_ten", 0))) __PYX_ERR(0, 8068, __pyx_L1_error)
46336 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_u_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_u_diff_ten", 0))) __PYX_ERR(0, 8069, __pyx_L1_error)
46337 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_v_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_v_diff_ten", 0))) __PYX_ERR(0, 8070, __pyx_L1_error)
46338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_w_diff_ten), __pyx_ptype_5numpy_ndarray, 1,
"mom_w_diff_ten", 0))) __PYX_ERR(0, 8071, __pyx_L1_error)
46339 __pyx_r = __pyx_pf_22ctransportCoefficients_248Laplace_3D_Evaluate(__pyx_self, __pyx_v_p, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_mom_p_diff_ten, __pyx_v_mom_u_diff_ten, __pyx_v_mom_v_diff_ten, __pyx_v_mom_w_diff_ten);
46346 __Pyx_RefNannyFinishContext();
46350 static PyObject *__pyx_pf_22ctransportCoefficients_248Laplace_3D_Evaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_p, CYTHON_UNUSED PyArrayObject *__pyx_v_u, CYTHON_UNUSED PyArrayObject *__pyx_v_v, CYTHON_UNUSED PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_mom_p_diff_ten, PyArrayObject *__pyx_v_mom_u_diff_ten, PyArrayObject *__pyx_v_mom_v_diff_ten, PyArrayObject *__pyx_v_mom_w_diff_ten) {
46351 PyObject *__pyx_r = NULL;
46352 __Pyx_RefNannyDeclarations
46353 PyObject *__pyx_t_1 = NULL;
46355 int __pyx_lineno = 0;
46356 const char *__pyx_filename = NULL;
46357 int __pyx_clineno = 0;
46358 __Pyx_RefNannySetupContext(
"Laplace_3D_Evaluate", 0);
46367 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_p), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8072, __pyx_L1_error)
46368 __Pyx_GOTREF(__pyx_t_1);
46369 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8072, __pyx_L1_error)
46370 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46379 Laplace_Evaluate3D(__pyx_t_2, ((
double *)__pyx_v_mom_p_diff_ten->data), ((
double *)__pyx_v_mom_u_diff_ten->data), ((
double *)__pyx_v_mom_v_diff_ten->data), ((
double *)__pyx_v_mom_w_diff_ten->data));
46390 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46393 __Pyx_XDECREF(__pyx_t_1);
46394 __Pyx_AddTraceback(
"ctransportCoefficients.Laplace_3D_Evaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46397 __Pyx_XGIVEREF(__pyx_r);
46398 __Pyx_RefNannyFinishContext();
46411 static PyObject *__pyx_pw_22ctransportCoefficients_251l2projectScalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46412 static PyMethodDef __pyx_mdef_22ctransportCoefficients_251l2projectScalar = {
"l2projectScalar", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_251l2projectScalar, METH_VARARGS|METH_KEYWORDS, 0};
46413 static PyObject *__pyx_pw_22ctransportCoefficients_251l2projectScalar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46414 int __pyx_v_nSimplices;
46415 int __pyx_v_nPointsPerSimplex;
46416 PyArrayObject *__pyx_v_dV = 0;
46417 PyArrayObject *__pyx_v_r = 0;
46418 int __pyx_lineno = 0;
46419 const char *__pyx_filename = NULL;
46420 int __pyx_clineno = 0;
46421 PyObject *__pyx_r = 0;
46422 __Pyx_RefNannyDeclarations
46423 __Pyx_RefNannySetupContext(
"l2projectScalar (wrapper)", 0);
46425 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSimplices,&__pyx_n_s_nPointsPerSimplex,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46426 PyObject* values[4] = {0,0,0,0};
46427 if (unlikely(__pyx_kwds)) {
46428 Py_ssize_t kw_args;
46429 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46430 switch (pos_args) {
46431 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46432 CYTHON_FALLTHROUGH;
46433 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46434 CYTHON_FALLTHROUGH;
46435 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46436 CYTHON_FALLTHROUGH;
46437 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46438 CYTHON_FALLTHROUGH;
46440 default:
goto __pyx_L5_argtuple_error;
46442 kw_args = PyDict_Size(__pyx_kwds);
46443 switch (pos_args) {
46445 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSimplices)) != 0)) kw_args--;
46446 else goto __pyx_L5_argtuple_error;
46447 CYTHON_FALLTHROUGH;
46449 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPointsPerSimplex)) != 0)) kw_args--;
46451 __Pyx_RaiseArgtupleInvalid(
"l2projectScalar", 1, 4, 4, 1); __PYX_ERR(0, 8077, __pyx_L3_error)
46453 CYTHON_FALLTHROUGH;
46455 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46457 __Pyx_RaiseArgtupleInvalid(
"l2projectScalar", 1, 4, 4, 2); __PYX_ERR(0, 8077, __pyx_L3_error)
46459 CYTHON_FALLTHROUGH;
46461 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46463 __Pyx_RaiseArgtupleInvalid(
"l2projectScalar", 1, 4, 4, 3); __PYX_ERR(0, 8077, __pyx_L3_error)
46466 if (unlikely(kw_args > 0)) {
46467 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"l2projectScalar") < 0)) __PYX_ERR(0, 8077, __pyx_L3_error)
46469 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
46470 goto __pyx_L5_argtuple_error;
46472 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46473 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46474 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46475 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46477 __pyx_v_nSimplices = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nSimplices == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8077, __pyx_L3_error)
46478 __pyx_v_nPointsPerSimplex = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nPointsPerSimplex == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8078, __pyx_L3_error)
46479 __pyx_v_dV = ((PyArrayObject *)values[2]);
46480 __pyx_v_r = ((PyArrayObject *)values[3]);
46482 goto __pyx_L4_argument_unpacking_done;
46483 __pyx_L5_argtuple_error:;
46484 __Pyx_RaiseArgtupleInvalid(
"l2projectScalar", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8077, __pyx_L3_error)
46486 __Pyx_AddTraceback(
"ctransportCoefficients.l2projectScalar", __pyx_clineno, __pyx_lineno, __pyx_filename);
46487 __Pyx_RefNannyFinishContext();
46489 __pyx_L4_argument_unpacking_done:;
46490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 8079, __pyx_L1_error)
46491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 8080, __pyx_L1_error)
46492 __pyx_r = __pyx_pf_22ctransportCoefficients_250l2projectScalar(__pyx_self, __pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_dV, __pyx_v_r);
46499 __Pyx_RefNannyFinishContext();
46503 static PyObject *__pyx_pf_22ctransportCoefficients_250l2projectScalar(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSimplices,
int __pyx_v_nPointsPerSimplex, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46504 PyObject *__pyx_r = NULL;
46505 __Pyx_RefNannyDeclarations
46506 __Pyx_RefNannySetupContext(
"l2projectScalar", 0);
46515 l2projectScalar(__pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_r->data));
46526 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46527 __Pyx_XGIVEREF(__pyx_r);
46528 __Pyx_RefNannyFinishContext();
46541 static PyObject *__pyx_pw_22ctransportCoefficients_253l2projectVector(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46542 static PyMethodDef __pyx_mdef_22ctransportCoefficients_253l2projectVector = {
"l2projectVector", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_253l2projectVector, METH_VARARGS|METH_KEYWORDS, 0};
46543 static PyObject *__pyx_pw_22ctransportCoefficients_253l2projectVector(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46544 int __pyx_v_nSimplices;
46545 int __pyx_v_nPointsPerSimplex;
46546 int __pyx_v_nSpace;
46547 PyArrayObject *__pyx_v_dV = 0;
46548 PyArrayObject *__pyx_v_r = 0;
46549 int __pyx_lineno = 0;
46550 const char *__pyx_filename = NULL;
46551 int __pyx_clineno = 0;
46552 PyObject *__pyx_r = 0;
46553 __Pyx_RefNannyDeclarations
46554 __Pyx_RefNannySetupContext(
"l2projectVector (wrapper)", 0);
46556 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSimplices,&__pyx_n_s_nPointsPerSimplex,&__pyx_n_s_nSpace,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46557 PyObject* values[5] = {0,0,0,0,0};
46558 if (unlikely(__pyx_kwds)) {
46559 Py_ssize_t kw_args;
46560 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46561 switch (pos_args) {
46562 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46563 CYTHON_FALLTHROUGH;
46564 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46565 CYTHON_FALLTHROUGH;
46566 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46567 CYTHON_FALLTHROUGH;
46568 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46569 CYTHON_FALLTHROUGH;
46570 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46571 CYTHON_FALLTHROUGH;
46573 default:
goto __pyx_L5_argtuple_error;
46575 kw_args = PyDict_Size(__pyx_kwds);
46576 switch (pos_args) {
46578 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSimplices)) != 0)) kw_args--;
46579 else goto __pyx_L5_argtuple_error;
46580 CYTHON_FALLTHROUGH;
46582 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPointsPerSimplex)) != 0)) kw_args--;
46584 __Pyx_RaiseArgtupleInvalid(
"l2projectVector", 1, 5, 5, 1); __PYX_ERR(0, 8085, __pyx_L3_error)
46586 CYTHON_FALLTHROUGH;
46588 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
46590 __Pyx_RaiseArgtupleInvalid(
"l2projectVector", 1, 5, 5, 2); __PYX_ERR(0, 8085, __pyx_L3_error)
46592 CYTHON_FALLTHROUGH;
46594 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46596 __Pyx_RaiseArgtupleInvalid(
"l2projectVector", 1, 5, 5, 3); __PYX_ERR(0, 8085, __pyx_L3_error)
46598 CYTHON_FALLTHROUGH;
46600 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46602 __Pyx_RaiseArgtupleInvalid(
"l2projectVector", 1, 5, 5, 4); __PYX_ERR(0, 8085, __pyx_L3_error)
46605 if (unlikely(kw_args > 0)) {
46606 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"l2projectVector") < 0)) __PYX_ERR(0, 8085, __pyx_L3_error)
46608 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
46609 goto __pyx_L5_argtuple_error;
46611 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46612 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46613 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46614 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46615 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46617 __pyx_v_nSimplices = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nSimplices == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8085, __pyx_L3_error)
46618 __pyx_v_nPointsPerSimplex = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nPointsPerSimplex == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8086, __pyx_L3_error)
46619 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8087, __pyx_L3_error)
46620 __pyx_v_dV = ((PyArrayObject *)values[3]);
46621 __pyx_v_r = ((PyArrayObject *)values[4]);
46623 goto __pyx_L4_argument_unpacking_done;
46624 __pyx_L5_argtuple_error:;
46625 __Pyx_RaiseArgtupleInvalid(
"l2projectVector", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8085, __pyx_L3_error)
46627 __Pyx_AddTraceback(
"ctransportCoefficients.l2projectVector", __pyx_clineno, __pyx_lineno, __pyx_filename);
46628 __Pyx_RefNannyFinishContext();
46630 __pyx_L4_argument_unpacking_done:;
46631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 8088, __pyx_L1_error)
46632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 8089, __pyx_L1_error)
46633 __pyx_r = __pyx_pf_22ctransportCoefficients_252l2projectVector(__pyx_self, __pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, __pyx_v_dV, __pyx_v_r);
46640 __Pyx_RefNannyFinishContext();
46644 static PyObject *__pyx_pf_22ctransportCoefficients_252l2projectVector(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSimplices,
int __pyx_v_nPointsPerSimplex,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46645 PyObject *__pyx_r = NULL;
46646 __Pyx_RefNannyDeclarations
46647 __Pyx_RefNannySetupContext(
"l2projectVector", 0);
46656 l2projectVector(__pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_r->data));
46667 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46668 __Pyx_XGIVEREF(__pyx_r);
46669 __Pyx_RefNannyFinishContext();
46682 static PyObject *__pyx_pw_22ctransportCoefficients_255l2project2Tensor(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46683 static PyMethodDef __pyx_mdef_22ctransportCoefficients_255l2project2Tensor = {
"l2project2Tensor", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_255l2project2Tensor, METH_VARARGS|METH_KEYWORDS, 0};
46684 static PyObject *__pyx_pw_22ctransportCoefficients_255l2project2Tensor(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46685 int __pyx_v_nSimplices;
46686 int __pyx_v_nPointsPerSimplex;
46687 int __pyx_v_nSpace;
46688 PyArrayObject *__pyx_v_dV = 0;
46689 PyArrayObject *__pyx_v_r = 0;
46690 int __pyx_lineno = 0;
46691 const char *__pyx_filename = NULL;
46692 int __pyx_clineno = 0;
46693 PyObject *__pyx_r = 0;
46694 __Pyx_RefNannyDeclarations
46695 __Pyx_RefNannySetupContext(
"l2project2Tensor (wrapper)", 0);
46697 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSimplices,&__pyx_n_s_nPointsPerSimplex,&__pyx_n_s_nSpace,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46698 PyObject* values[5] = {0,0,0,0,0};
46699 if (unlikely(__pyx_kwds)) {
46700 Py_ssize_t kw_args;
46701 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46702 switch (pos_args) {
46703 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46704 CYTHON_FALLTHROUGH;
46705 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46706 CYTHON_FALLTHROUGH;
46707 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46708 CYTHON_FALLTHROUGH;
46709 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46710 CYTHON_FALLTHROUGH;
46711 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46712 CYTHON_FALLTHROUGH;
46714 default:
goto __pyx_L5_argtuple_error;
46716 kw_args = PyDict_Size(__pyx_kwds);
46717 switch (pos_args) {
46719 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSimplices)) != 0)) kw_args--;
46720 else goto __pyx_L5_argtuple_error;
46721 CYTHON_FALLTHROUGH;
46723 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nPointsPerSimplex)) != 0)) kw_args--;
46725 __Pyx_RaiseArgtupleInvalid(
"l2project2Tensor", 1, 5, 5, 1); __PYX_ERR(0, 8095, __pyx_L3_error)
46727 CYTHON_FALLTHROUGH;
46729 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
46731 __Pyx_RaiseArgtupleInvalid(
"l2project2Tensor", 1, 5, 5, 2); __PYX_ERR(0, 8095, __pyx_L3_error)
46733 CYTHON_FALLTHROUGH;
46735 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46737 __Pyx_RaiseArgtupleInvalid(
"l2project2Tensor", 1, 5, 5, 3); __PYX_ERR(0, 8095, __pyx_L3_error)
46739 CYTHON_FALLTHROUGH;
46741 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46743 __Pyx_RaiseArgtupleInvalid(
"l2project2Tensor", 1, 5, 5, 4); __PYX_ERR(0, 8095, __pyx_L3_error)
46746 if (unlikely(kw_args > 0)) {
46747 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"l2project2Tensor") < 0)) __PYX_ERR(0, 8095, __pyx_L3_error)
46749 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
46750 goto __pyx_L5_argtuple_error;
46752 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46753 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46754 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46755 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46756 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
46758 __pyx_v_nSimplices = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nSimplices == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8095, __pyx_L3_error)
46759 __pyx_v_nPointsPerSimplex = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nPointsPerSimplex == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8096, __pyx_L3_error)
46760 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8097, __pyx_L3_error)
46761 __pyx_v_dV = ((PyArrayObject *)values[3]);
46762 __pyx_v_r = ((PyArrayObject *)values[4]);
46764 goto __pyx_L4_argument_unpacking_done;
46765 __pyx_L5_argtuple_error:;
46766 __Pyx_RaiseArgtupleInvalid(
"l2project2Tensor", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8095, __pyx_L3_error)
46768 __Pyx_AddTraceback(
"ctransportCoefficients.l2project2Tensor", __pyx_clineno, __pyx_lineno, __pyx_filename);
46769 __Pyx_RefNannyFinishContext();
46771 __pyx_L4_argument_unpacking_done:;
46772 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 8098, __pyx_L1_error)
46773 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 8099, __pyx_L1_error)
46774 __pyx_r = __pyx_pf_22ctransportCoefficients_254l2project2Tensor(__pyx_self, __pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, __pyx_v_dV, __pyx_v_r);
46781 __Pyx_RefNannyFinishContext();
46785 static PyObject *__pyx_pf_22ctransportCoefficients_254l2project2Tensor(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSimplices,
int __pyx_v_nPointsPerSimplex,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46786 PyObject *__pyx_r = NULL;
46787 __Pyx_RefNannyDeclarations
46788 __Pyx_RefNannySetupContext(
"l2project2Tensor", 0);
46797 l2project2Tensor(__pyx_v_nSimplices, __pyx_v_nPointsPerSimplex, __pyx_v_nSpace, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_r->data));
46808 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
46809 __Pyx_XGIVEREF(__pyx_r);
46810 __Pyx_RefNannyFinishContext();
46823 static PyObject *__pyx_pw_22ctransportCoefficients_257L2projectEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46824 static PyMethodDef __pyx_mdef_22ctransportCoefficients_257L2projectEvaluate = {
"L2projectEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_257L2projectEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
46825 static PyObject *__pyx_pw_22ctransportCoefficients_257L2projectEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46827 PyArrayObject *__pyx_v_dV = 0;
46828 PyArrayObject *__pyx_v_r = 0;
46829 int __pyx_lineno = 0;
46830 const char *__pyx_filename = NULL;
46831 int __pyx_clineno = 0;
46832 PyObject *__pyx_r = 0;
46833 __Pyx_RefNannyDeclarations
46834 __Pyx_RefNannySetupContext(
"L2projectEvaluate (wrapper)", 0);
46836 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rank,&__pyx_n_s_dV,&__pyx_n_s_r,0};
46837 PyObject* values[3] = {0,0,0};
46838 if (unlikely(__pyx_kwds)) {
46839 Py_ssize_t kw_args;
46840 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46841 switch (pos_args) {
46842 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46843 CYTHON_FALLTHROUGH;
46844 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46845 CYTHON_FALLTHROUGH;
46846 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46847 CYTHON_FALLTHROUGH;
46849 default:
goto __pyx_L5_argtuple_error;
46851 kw_args = PyDict_Size(__pyx_kwds);
46852 switch (pos_args) {
46854 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rank)) != 0)) kw_args--;
46855 else goto __pyx_L5_argtuple_error;
46856 CYTHON_FALLTHROUGH;
46858 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
46860 __Pyx_RaiseArgtupleInvalid(
"L2projectEvaluate", 1, 3, 3, 1); __PYX_ERR(0, 8105, __pyx_L3_error)
46862 CYTHON_FALLTHROUGH;
46864 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
46866 __Pyx_RaiseArgtupleInvalid(
"L2projectEvaluate", 1, 3, 3, 2); __PYX_ERR(0, 8105, __pyx_L3_error)
46869 if (unlikely(kw_args > 0)) {
46870 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"L2projectEvaluate") < 0)) __PYX_ERR(0, 8105, __pyx_L3_error)
46872 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
46873 goto __pyx_L5_argtuple_error;
46875 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46876 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46877 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46879 __pyx_v_rank = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_rank == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8105, __pyx_L3_error)
46880 __pyx_v_dV = ((PyArrayObject *)values[1]);
46881 __pyx_v_r = ((PyArrayObject *)values[2]);
46883 goto __pyx_L4_argument_unpacking_done;
46884 __pyx_L5_argtuple_error:;
46885 __Pyx_RaiseArgtupleInvalid(
"L2projectEvaluate", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8105, __pyx_L3_error)
46887 __Pyx_AddTraceback(
"ctransportCoefficients.L2projectEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
46888 __Pyx_RefNannyFinishContext();
46890 __pyx_L4_argument_unpacking_done:;
46891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 8106, __pyx_L1_error)
46892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 8107, __pyx_L1_error)
46893 __pyx_r = __pyx_pf_22ctransportCoefficients_256L2projectEvaluate(__pyx_self, __pyx_v_rank, __pyx_v_dV, __pyx_v_r);
46900 __Pyx_RefNannyFinishContext();
46904 static PyObject *__pyx_pf_22ctransportCoefficients_256L2projectEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_rank, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_r) {
46905 PyObject *__pyx_r = NULL;
46906 __Pyx_RefNannyDeclarations
46907 PyObject *__pyx_t_1 = NULL;
46908 PyObject *__pyx_t_2 = NULL;
46909 PyObject *__pyx_t_3 = NULL;
46910 PyObject *__pyx_t_4 = NULL;
46911 PyObject *__pyx_t_5 = NULL;
46913 PyObject *__pyx_t_7 = NULL;
46914 PyObject *__pyx_t_8 = NULL;
46915 int __pyx_lineno = 0;
46916 const char *__pyx_filename = NULL;
46917 int __pyx_clineno = 0;
46918 __Pyx_RefNannySetupContext(
"L2projectEvaluate", 0);
46927 switch (__pyx_v_rank) {
46937 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_l2projectScalar);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8109, __pyx_L1_error)
46938 __Pyx_GOTREF(__pyx_t_2);
46939 __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[0]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8109, __pyx_L1_error)
46940 __Pyx_GOTREF(__pyx_t_3);
46941 __pyx_t_4 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[1]));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8109, __pyx_L1_error)
46942 __Pyx_GOTREF(__pyx_t_4);
46945 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
46946 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
46947 if (likely(__pyx_t_5)) {
46948 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
46949 __Pyx_INCREF(__pyx_t_5);
46950 __Pyx_INCREF(
function);
46951 __Pyx_DECREF_SET(__pyx_t_2,
function);
46955 #if CYTHON_FAST_PYCALL
46956 if (PyFunction_Check(__pyx_t_2)) {
46957 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
46958 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8109, __pyx_L1_error)
46959 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46960 __Pyx_GOTREF(__pyx_t_1);
46961 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46962 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46965 #if CYTHON_FAST_PYCCALL
46966 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
46967 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
46968 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8109, __pyx_L1_error)
46969 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46970 __Pyx_GOTREF(__pyx_t_1);
46971 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46972 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46976 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8109, __pyx_L1_error)
46977 __Pyx_GOTREF(__pyx_t_7);
46979 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
46981 __Pyx_GIVEREF(__pyx_t_3);
46982 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_t_3);
46983 __Pyx_GIVEREF(__pyx_t_4);
46984 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_4);
46985 __Pyx_INCREF(((PyObject *)__pyx_v_dV));
46986 __Pyx_GIVEREF(((PyObject *)__pyx_v_dV));
46987 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, ((PyObject *)__pyx_v_dV));
46988 __Pyx_INCREF(((PyObject *)__pyx_v_r));
46989 __Pyx_GIVEREF(((PyObject *)__pyx_v_r));
46990 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, ((PyObject *)__pyx_v_r));
46993 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8109, __pyx_L1_error)
46994 __Pyx_GOTREF(__pyx_t_1);
46995 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46997 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
46998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47017 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_l2projectVector);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8111, __pyx_L1_error)
47018 __Pyx_GOTREF(__pyx_t_2);
47019 __pyx_t_7 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[0]));
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8111, __pyx_L1_error)
47020 __Pyx_GOTREF(__pyx_t_7);
47021 __pyx_t_4 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[1]));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8111, __pyx_L1_error)
47022 __Pyx_GOTREF(__pyx_t_4);
47023 __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[2]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8111, __pyx_L1_error)
47024 __Pyx_GOTREF(__pyx_t_3);
47027 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
47028 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
47029 if (likely(__pyx_t_5)) {
47030 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
47031 __Pyx_INCREF(__pyx_t_5);
47032 __Pyx_INCREF(
function);
47033 __Pyx_DECREF_SET(__pyx_t_2,
function);
47037 #if CYTHON_FAST_PYCALL
47038 if (PyFunction_Check(__pyx_t_2)) {
47039 PyObject *__pyx_temp[6] = {__pyx_t_5, __pyx_t_7, __pyx_t_4, __pyx_t_3, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47040 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8111, __pyx_L1_error)
47041 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47042 __Pyx_GOTREF(__pyx_t_1);
47043 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
47044 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47045 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47048 #if CYTHON_FAST_PYCCALL
47049 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
47050 PyObject *__pyx_temp[6] = {__pyx_t_5, __pyx_t_7, __pyx_t_4, __pyx_t_3, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47051 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8111, __pyx_L1_error)
47052 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47053 __Pyx_GOTREF(__pyx_t_1);
47054 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
47055 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47056 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47060 __pyx_t_8 = PyTuple_New(5+__pyx_t_6);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8111, __pyx_L1_error)
47061 __Pyx_GOTREF(__pyx_t_8);
47063 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL;
47065 __Pyx_GIVEREF(__pyx_t_7);
47066 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_6, __pyx_t_7);
47067 __Pyx_GIVEREF(__pyx_t_4);
47068 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_6, __pyx_t_4);
47069 __Pyx_GIVEREF(__pyx_t_3);
47070 PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_6, __pyx_t_3);
47071 __Pyx_INCREF(((PyObject *)__pyx_v_dV));
47072 __Pyx_GIVEREF(((PyObject *)__pyx_v_dV));
47073 PyTuple_SET_ITEM(__pyx_t_8, 3+__pyx_t_6, ((PyObject *)__pyx_v_dV));
47074 __Pyx_INCREF(((PyObject *)__pyx_v_r));
47075 __Pyx_GIVEREF(((PyObject *)__pyx_v_r));
47076 PyTuple_SET_ITEM(__pyx_t_8, 4+__pyx_t_6, ((PyObject *)__pyx_v_r));
47080 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8111, __pyx_L1_error)
47081 __Pyx_GOTREF(__pyx_t_1);
47082 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
47084 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47085 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47104 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_l2project2Tensor);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8113, __pyx_L1_error)
47105 __Pyx_GOTREF(__pyx_t_2);
47106 __pyx_t_8 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[0]));
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8113, __pyx_L1_error)
47107 __Pyx_GOTREF(__pyx_t_8);
47108 __pyx_t_3 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[1]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8113, __pyx_L1_error)
47109 __Pyx_GOTREF(__pyx_t_3);
47110 __pyx_t_4 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_r->dimensions[2]));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8113, __pyx_L1_error)
47111 __Pyx_GOTREF(__pyx_t_4);
47114 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
47115 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2);
47116 if (likely(__pyx_t_7)) {
47117 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
47118 __Pyx_INCREF(__pyx_t_7);
47119 __Pyx_INCREF(
function);
47120 __Pyx_DECREF_SET(__pyx_t_2,
function);
47124 #if CYTHON_FAST_PYCALL
47125 if (PyFunction_Check(__pyx_t_2)) {
47126 PyObject *__pyx_temp[6] = {__pyx_t_7, __pyx_t_8, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47127 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error)
47128 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47129 __Pyx_GOTREF(__pyx_t_1);
47130 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
47131 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47132 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47135 #if CYTHON_FAST_PYCCALL
47136 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
47137 PyObject *__pyx_temp[6] = {__pyx_t_7, __pyx_t_8, __pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_dV), ((PyObject *)__pyx_v_r)};
47138 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error)
47139 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47140 __Pyx_GOTREF(__pyx_t_1);
47141 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
47142 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47143 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47147 __pyx_t_5 = PyTuple_New(5+__pyx_t_6);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8113, __pyx_L1_error)
47148 __Pyx_GOTREF(__pyx_t_5);
47150 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL;
47152 __Pyx_GIVEREF(__pyx_t_8);
47153 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_t_8);
47154 __Pyx_GIVEREF(__pyx_t_3);
47155 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_t_3);
47156 __Pyx_GIVEREF(__pyx_t_4);
47157 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_6, __pyx_t_4);
47158 __Pyx_INCREF(((PyObject *)__pyx_v_dV));
47159 __Pyx_GIVEREF(((PyObject *)__pyx_v_dV));
47160 PyTuple_SET_ITEM(__pyx_t_5, 3+__pyx_t_6, ((PyObject *)__pyx_v_dV));
47161 __Pyx_INCREF(((PyObject *)__pyx_v_r));
47162 __Pyx_GIVEREF(((PyObject *)__pyx_v_r));
47163 PyTuple_SET_ITEM(__pyx_t_5, 4+__pyx_t_6, ((PyObject *)__pyx_v_r));
47167 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error)
47168 __Pyx_GOTREF(__pyx_t_1);
47169 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
47171 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47172 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47191 #ifndef CYTHON_WITHOUT_ASSERTIONS
47192 if (unlikely(!Py_OptimizeFlag)) {
47193 if (unlikely(!0)) {
47194 PyErr_SetNone(PyExc_AssertionError);
47195 __PYX_ERR(0, 8115, __pyx_L1_error)
47211 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47214 __Pyx_XDECREF(__pyx_t_1);
47215 __Pyx_XDECREF(__pyx_t_2);
47216 __Pyx_XDECREF(__pyx_t_3);
47217 __Pyx_XDECREF(__pyx_t_4);
47218 __Pyx_XDECREF(__pyx_t_5);
47219 __Pyx_XDECREF(__pyx_t_7);
47220 __Pyx_XDECREF(__pyx_t_8);
47221 __Pyx_AddTraceback(
"ctransportCoefficients.L2projectEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47224 __Pyx_XGIVEREF(__pyx_r);
47225 __Pyx_RefNannyFinishContext();
47238 static PyObject *__pyx_pw_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47239 static PyMethodDef __pyx_mdef_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate = {
"conservativeHeadRichardsJLeverettEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
47240 static PyObject *__pyx_pw_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47241 PyArrayObject *__pyx_v_materialTypes = 0;
47242 double __pyx_v_rho;
47243 double __pyx_v_beta;
47244 PyArrayObject *__pyx_v_gravity = 0;
47245 PyArrayObject *__pyx_v_phi = 0;
47246 PyArrayObject *__pyx_v_psiD = 0;
47247 PyArrayObject *__pyx_v_ns = 0;
47248 PyArrayObject *__pyx_v_nk = 0;
47249 PyArrayObject *__pyx_v_S_wirr = 0;
47250 PyArrayObject *__pyx_v_S_nwr = 0;
47251 PyArrayObject *__pyx_v_kr0 = 0;
47252 PyArrayObject *__pyx_v_u = 0;
47253 PyArrayObject *__pyx_v_mass = 0;
47254 PyArrayObject *__pyx_v_dmass = 0;
47255 PyArrayObject *__pyx_v_f = 0;
47256 PyArrayObject *__pyx_v_df = 0;
47257 PyArrayObject *__pyx_v_a = 0;
47258 PyArrayObject *__pyx_v_da = 0;
47259 int __pyx_lineno = 0;
47260 const char *__pyx_filename = NULL;
47261 int __pyx_clineno = 0;
47262 PyObject *__pyx_r = 0;
47263 __Pyx_RefNannyDeclarations
47264 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsJLeverettEvaluate (wrapper)", 0);
47266 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_phi,&__pyx_n_s_psiD,&__pyx_n_s_ns,&__pyx_n_s_nk,&__pyx_n_s_S_wirr,&__pyx_n_s_S_nwr,&__pyx_n_s_kr0,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
47267 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
47268 if (unlikely(__pyx_kwds)) {
47269 Py_ssize_t kw_args;
47270 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47271 switch (pos_args) {
47272 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47273 CYTHON_FALLTHROUGH;
47274 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47275 CYTHON_FALLTHROUGH;
47276 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47277 CYTHON_FALLTHROUGH;
47278 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47279 CYTHON_FALLTHROUGH;
47280 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47281 CYTHON_FALLTHROUGH;
47282 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47283 CYTHON_FALLTHROUGH;
47284 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47285 CYTHON_FALLTHROUGH;
47286 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47287 CYTHON_FALLTHROUGH;
47288 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47289 CYTHON_FALLTHROUGH;
47290 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47291 CYTHON_FALLTHROUGH;
47292 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47293 CYTHON_FALLTHROUGH;
47294 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47295 CYTHON_FALLTHROUGH;
47296 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47297 CYTHON_FALLTHROUGH;
47298 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47299 CYTHON_FALLTHROUGH;
47300 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47301 CYTHON_FALLTHROUGH;
47302 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47303 CYTHON_FALLTHROUGH;
47304 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47305 CYTHON_FALLTHROUGH;
47306 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47307 CYTHON_FALLTHROUGH;
47309 default:
goto __pyx_L5_argtuple_error;
47311 kw_args = PyDict_Size(__pyx_kwds);
47312 switch (pos_args) {
47314 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
47315 else goto __pyx_L5_argtuple_error;
47316 CYTHON_FALLTHROUGH;
47318 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
47320 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 1); __PYX_ERR(0, 8116, __pyx_L3_error)
47322 CYTHON_FALLTHROUGH;
47324 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
47326 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 2); __PYX_ERR(0, 8116, __pyx_L3_error)
47328 CYTHON_FALLTHROUGH;
47330 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
47332 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 3); __PYX_ERR(0, 8116, __pyx_L3_error)
47334 CYTHON_FALLTHROUGH;
47336 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
47338 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 4); __PYX_ERR(0, 8116, __pyx_L3_error)
47340 CYTHON_FALLTHROUGH;
47342 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psiD)) != 0)) kw_args--;
47344 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 5); __PYX_ERR(0, 8116, __pyx_L3_error)
47346 CYTHON_FALLTHROUGH;
47348 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ns)) != 0)) kw_args--;
47350 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 6); __PYX_ERR(0, 8116, __pyx_L3_error)
47352 CYTHON_FALLTHROUGH;
47354 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nk)) != 0)) kw_args--;
47356 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 7); __PYX_ERR(0, 8116, __pyx_L3_error)
47358 CYTHON_FALLTHROUGH;
47360 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_wirr)) != 0)) kw_args--;
47362 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 8); __PYX_ERR(0, 8116, __pyx_L3_error)
47364 CYTHON_FALLTHROUGH;
47366 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_nwr)) != 0)) kw_args--;
47368 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 9); __PYX_ERR(0, 8116, __pyx_L3_error)
47370 CYTHON_FALLTHROUGH;
47372 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0)) != 0)) kw_args--;
47374 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 10); __PYX_ERR(0, 8116, __pyx_L3_error)
47376 CYTHON_FALLTHROUGH;
47378 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
47380 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 11); __PYX_ERR(0, 8116, __pyx_L3_error)
47382 CYTHON_FALLTHROUGH;
47384 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
47386 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 12); __PYX_ERR(0, 8116, __pyx_L3_error)
47388 CYTHON_FALLTHROUGH;
47390 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
47392 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 13); __PYX_ERR(0, 8116, __pyx_L3_error)
47394 CYTHON_FALLTHROUGH;
47396 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
47398 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 14); __PYX_ERR(0, 8116, __pyx_L3_error)
47400 CYTHON_FALLTHROUGH;
47402 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
47404 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 15); __PYX_ERR(0, 8116, __pyx_L3_error)
47406 CYTHON_FALLTHROUGH;
47408 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
47410 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 16); __PYX_ERR(0, 8116, __pyx_L3_error)
47412 CYTHON_FALLTHROUGH;
47414 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
47416 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, 17); __PYX_ERR(0, 8116, __pyx_L3_error)
47419 if (unlikely(kw_args > 0)) {
47420 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsJLeverettEvaluate") < 0)) __PYX_ERR(0, 8116, __pyx_L3_error)
47422 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
47423 goto __pyx_L5_argtuple_error;
47425 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47426 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47427 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47428 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47429 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47430 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47431 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47432 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47433 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47434 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47435 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47436 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47437 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47438 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47439 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47440 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47441 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47442 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47444 __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
47445 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8117, __pyx_L3_error)
47446 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8118, __pyx_L3_error)
47447 __pyx_v_gravity = ((PyArrayObject *)values[3]);
47448 __pyx_v_phi = ((PyArrayObject *)values[4]);
47449 __pyx_v_psiD = ((PyArrayObject *)values[5]);
47450 __pyx_v_ns = ((PyArrayObject *)values[6]);
47451 __pyx_v_nk = ((PyArrayObject *)values[7]);
47452 __pyx_v_S_wirr = ((PyArrayObject *)values[8]);
47453 __pyx_v_S_nwr = ((PyArrayObject *)values[9]);
47454 __pyx_v_kr0 = ((PyArrayObject *)values[10]);
47455 __pyx_v_u = ((PyArrayObject *)values[11]);
47456 __pyx_v_mass = ((PyArrayObject *)values[12]);
47457 __pyx_v_dmass = ((PyArrayObject *)values[13]);
47458 __pyx_v_f = ((PyArrayObject *)values[14]);
47459 __pyx_v_df = ((PyArrayObject *)values[15]);
47460 __pyx_v_a = ((PyArrayObject *)values[16]);
47461 __pyx_v_da = ((PyArrayObject *)values[17]);
47463 goto __pyx_L4_argument_unpacking_done;
47464 __pyx_L5_argtuple_error:;
47465 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettEvaluate", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8116, __pyx_L3_error)
47467 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsJLeverettEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47468 __Pyx_RefNannyFinishContext();
47470 __pyx_L4_argument_unpacking_done:;
47471 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 8116, __pyx_L1_error)
47472 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 8119, __pyx_L1_error)
47473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 8120, __pyx_L1_error)
47474 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psiD), __pyx_ptype_5numpy_ndarray, 1,
"psiD", 0))) __PYX_ERR(0, 8121, __pyx_L1_error)
47475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ns), __pyx_ptype_5numpy_ndarray, 1,
"ns", 0))) __PYX_ERR(0, 8122, __pyx_L1_error)
47476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nk), __pyx_ptype_5numpy_ndarray, 1,
"nk", 0))) __PYX_ERR(0, 8123, __pyx_L1_error)
47477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_wirr), __pyx_ptype_5numpy_ndarray, 1,
"S_wirr", 0))) __PYX_ERR(0, 8124, __pyx_L1_error)
47478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_nwr), __pyx_ptype_5numpy_ndarray, 1,
"S_nwr", 0))) __PYX_ERR(0, 8125, __pyx_L1_error)
47479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0), __pyx_ptype_5numpy_ndarray, 1,
"kr0", 0))) __PYX_ERR(0, 8126, __pyx_L1_error)
47480 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8127, __pyx_L1_error)
47481 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 8128, __pyx_L1_error)
47482 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 8129, __pyx_L1_error)
47483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 8130, __pyx_L1_error)
47484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 8131, __pyx_L1_error)
47485 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 8132, __pyx_L1_error)
47486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 8133, __pyx_L1_error)
47487 __pyx_r = __pyx_pf_22ctransportCoefficients_258conservativeHeadRichardsJLeverettEvaluate(__pyx_self, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_phi, __pyx_v_psiD, __pyx_v_ns, __pyx_v_nk, __pyx_v_S_wirr, __pyx_v_S_nwr, __pyx_v_kr0, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
47494 __Pyx_RefNannyFinishContext();
47498 static PyObject *__pyx_pf_22ctransportCoefficients_258conservativeHeadRichardsJLeverettEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
47499 PyObject *__pyx_r = NULL;
47500 __Pyx_RefNannyDeclarations
47501 PyObject *__pyx_t_1 = NULL;
47502 PyObject *__pyx_t_2 = NULL;
47503 PyObject *__pyx_t_3 = NULL;
47505 int __pyx_lineno = 0;
47506 const char *__pyx_filename = NULL;
47507 int __pyx_clineno = 0;
47508 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsJLeverettEvaluate", 0);
47517 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8134, __pyx_L1_error)
47518 __Pyx_GOTREF(__pyx_t_1);
47519 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8134, __pyx_L1_error)
47520 __Pyx_GOTREF(__pyx_t_2);
47521 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8134, __pyx_L1_error)
47522 __Pyx_GOTREF(__pyx_t_3);
47523 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47524 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47525 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8134, __pyx_L1_error)
47526 __Pyx_GOTREF(__pyx_t_2);
47527 __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8134, __pyx_L1_error)
47528 __Pyx_GOTREF(__pyx_t_1);
47529 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47530 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47531 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8134, __pyx_L1_error)
47532 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47541 conservativeHeadRichardsJLeverett(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_psiD->data), ((
double *)__pyx_v_ns->data), ((
double *)__pyx_v_nk->data), ((
double *)__pyx_v_S_wirr->data), ((
double *)__pyx_v_S_nwr->data), ((
double *)__pyx_v_kr0->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
47552 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47555 __Pyx_XDECREF(__pyx_t_1);
47556 __Pyx_XDECREF(__pyx_t_2);
47557 __Pyx_XDECREF(__pyx_t_3);
47558 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsJLeverettEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47561 __Pyx_XGIVEREF(__pyx_r);
47562 __Pyx_RefNannyFinishContext();
47575 static PyObject *__pyx_pw_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47576 static PyMethodDef __pyx_mdef_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate = {
"conservativeHeadRichardsJLeverettAniEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
47577 static PyObject *__pyx_pw_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47578 PyArrayObject *__pyx_v_materialTypes = 0;
47579 double __pyx_v_rho;
47580 double __pyx_v_beta;
47581 PyArrayObject *__pyx_v_gravity = 0;
47582 PyArrayObject *__pyx_v_phi = 0;
47583 PyArrayObject *__pyx_v_psiD = 0;
47584 PyArrayObject *__pyx_v_ns = 0;
47585 PyArrayObject *__pyx_v_nk = 0;
47586 PyArrayObject *__pyx_v_S_wirr = 0;
47587 PyArrayObject *__pyx_v_S_nwr = 0;
47588 PyArrayObject *__pyx_v_kr0x = 0;
47589 PyArrayObject *__pyx_v_kr0y = 0;
47590 PyArrayObject *__pyx_v_kr0z = 0;
47591 PyArrayObject *__pyx_v_u = 0;
47592 PyArrayObject *__pyx_v_mass = 0;
47593 PyArrayObject *__pyx_v_dmass = 0;
47594 PyArrayObject *__pyx_v_f = 0;
47595 PyArrayObject *__pyx_v_df = 0;
47596 PyArrayObject *__pyx_v_a = 0;
47597 PyArrayObject *__pyx_v_da = 0;
47598 int __pyx_lineno = 0;
47599 const char *__pyx_filename = NULL;
47600 int __pyx_clineno = 0;
47601 PyObject *__pyx_r = 0;
47602 __Pyx_RefNannyDeclarations
47603 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsJLeverettAniEvaluate (wrapper)", 0);
47605 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_materialTypes,&__pyx_n_s_rho,&__pyx_n_s_beta,&__pyx_n_s_gravity,&__pyx_n_s_phi,&__pyx_n_s_psiD,&__pyx_n_s_ns,&__pyx_n_s_nk,&__pyx_n_s_S_wirr,&__pyx_n_s_S_nwr,&__pyx_n_s_kr0x,&__pyx_n_s_kr0y,&__pyx_n_s_kr0z,&__pyx_n_s_u,&__pyx_n_s_mass,&__pyx_n_s_dmass,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_da,0};
47606 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
47607 if (unlikely(__pyx_kwds)) {
47608 Py_ssize_t kw_args;
47609 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47610 switch (pos_args) {
47611 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
47612 CYTHON_FALLTHROUGH;
47613 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
47614 CYTHON_FALLTHROUGH;
47615 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47616 CYTHON_FALLTHROUGH;
47617 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47618 CYTHON_FALLTHROUGH;
47619 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47620 CYTHON_FALLTHROUGH;
47621 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47622 CYTHON_FALLTHROUGH;
47623 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47624 CYTHON_FALLTHROUGH;
47625 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47626 CYTHON_FALLTHROUGH;
47627 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47628 CYTHON_FALLTHROUGH;
47629 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47630 CYTHON_FALLTHROUGH;
47631 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47632 CYTHON_FALLTHROUGH;
47633 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47634 CYTHON_FALLTHROUGH;
47635 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47636 CYTHON_FALLTHROUGH;
47637 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47638 CYTHON_FALLTHROUGH;
47639 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47640 CYTHON_FALLTHROUGH;
47641 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47642 CYTHON_FALLTHROUGH;
47643 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47644 CYTHON_FALLTHROUGH;
47645 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47646 CYTHON_FALLTHROUGH;
47647 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47648 CYTHON_FALLTHROUGH;
47649 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47650 CYTHON_FALLTHROUGH;
47652 default:
goto __pyx_L5_argtuple_error;
47654 kw_args = PyDict_Size(__pyx_kwds);
47655 switch (pos_args) {
47657 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_materialTypes)) != 0)) kw_args--;
47658 else goto __pyx_L5_argtuple_error;
47659 CYTHON_FALLTHROUGH;
47661 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
47663 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 1); __PYX_ERR(0, 8155, __pyx_L3_error)
47665 CYTHON_FALLTHROUGH;
47667 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_beta)) != 0)) kw_args--;
47669 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 2); __PYX_ERR(0, 8155, __pyx_L3_error)
47671 CYTHON_FALLTHROUGH;
47673 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gravity)) != 0)) kw_args--;
47675 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 3); __PYX_ERR(0, 8155, __pyx_L3_error)
47677 CYTHON_FALLTHROUGH;
47679 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
47681 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 4); __PYX_ERR(0, 8155, __pyx_L3_error)
47683 CYTHON_FALLTHROUGH;
47685 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psiD)) != 0)) kw_args--;
47687 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 5); __PYX_ERR(0, 8155, __pyx_L3_error)
47689 CYTHON_FALLTHROUGH;
47691 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ns)) != 0)) kw_args--;
47693 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 6); __PYX_ERR(0, 8155, __pyx_L3_error)
47695 CYTHON_FALLTHROUGH;
47697 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nk)) != 0)) kw_args--;
47699 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 7); __PYX_ERR(0, 8155, __pyx_L3_error)
47701 CYTHON_FALLTHROUGH;
47703 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_wirr)) != 0)) kw_args--;
47705 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 8); __PYX_ERR(0, 8155, __pyx_L3_error)
47707 CYTHON_FALLTHROUGH;
47709 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_S_nwr)) != 0)) kw_args--;
47711 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 9); __PYX_ERR(0, 8155, __pyx_L3_error)
47713 CYTHON_FALLTHROUGH;
47715 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0x)) != 0)) kw_args--;
47717 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 10); __PYX_ERR(0, 8155, __pyx_L3_error)
47719 CYTHON_FALLTHROUGH;
47721 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0y)) != 0)) kw_args--;
47723 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 11); __PYX_ERR(0, 8155, __pyx_L3_error)
47725 CYTHON_FALLTHROUGH;
47727 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kr0z)) != 0)) kw_args--;
47729 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 12); __PYX_ERR(0, 8155, __pyx_L3_error)
47731 CYTHON_FALLTHROUGH;
47733 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
47735 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 13); __PYX_ERR(0, 8155, __pyx_L3_error)
47737 CYTHON_FALLTHROUGH;
47739 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mass)) != 0)) kw_args--;
47741 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 14); __PYX_ERR(0, 8155, __pyx_L3_error)
47743 CYTHON_FALLTHROUGH;
47745 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmass)) != 0)) kw_args--;
47747 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 15); __PYX_ERR(0, 8155, __pyx_L3_error)
47749 CYTHON_FALLTHROUGH;
47751 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
47753 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 16); __PYX_ERR(0, 8155, __pyx_L3_error)
47755 CYTHON_FALLTHROUGH;
47757 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
47759 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 17); __PYX_ERR(0, 8155, __pyx_L3_error)
47761 CYTHON_FALLTHROUGH;
47763 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
47765 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 18); __PYX_ERR(0, 8155, __pyx_L3_error)
47767 CYTHON_FALLTHROUGH;
47769 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
47771 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, 19); __PYX_ERR(0, 8155, __pyx_L3_error)
47774 if (unlikely(kw_args > 0)) {
47775 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"conservativeHeadRichardsJLeverettAniEvaluate") < 0)) __PYX_ERR(0, 8155, __pyx_L3_error)
47777 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
47778 goto __pyx_L5_argtuple_error;
47780 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47781 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47782 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47783 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47784 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47785 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47786 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47787 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47788 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47789 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47790 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
47791 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
47792 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
47793 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
47794 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
47795 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
47796 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
47797 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
47798 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
47799 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
47801 __pyx_v_materialTypes = ((PyArrayObject *)values[0]);
47802 __pyx_v_rho = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_rho == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8156, __pyx_L3_error)
47803 __pyx_v_beta = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_beta == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8157, __pyx_L3_error)
47804 __pyx_v_gravity = ((PyArrayObject *)values[3]);
47805 __pyx_v_phi = ((PyArrayObject *)values[4]);
47806 __pyx_v_psiD = ((PyArrayObject *)values[5]);
47807 __pyx_v_ns = ((PyArrayObject *)values[6]);
47808 __pyx_v_nk = ((PyArrayObject *)values[7]);
47809 __pyx_v_S_wirr = ((PyArrayObject *)values[8]);
47810 __pyx_v_S_nwr = ((PyArrayObject *)values[9]);
47811 __pyx_v_kr0x = ((PyArrayObject *)values[10]);
47812 __pyx_v_kr0y = ((PyArrayObject *)values[11]);
47813 __pyx_v_kr0z = ((PyArrayObject *)values[12]);
47814 __pyx_v_u = ((PyArrayObject *)values[13]);
47815 __pyx_v_mass = ((PyArrayObject *)values[14]);
47816 __pyx_v_dmass = ((PyArrayObject *)values[15]);
47817 __pyx_v_f = ((PyArrayObject *)values[16]);
47818 __pyx_v_df = ((PyArrayObject *)values[17]);
47819 __pyx_v_a = ((PyArrayObject *)values[18]);
47820 __pyx_v_da = ((PyArrayObject *)values[19]);
47822 goto __pyx_L4_argument_unpacking_done;
47823 __pyx_L5_argtuple_error:;
47824 __Pyx_RaiseArgtupleInvalid(
"conservativeHeadRichardsJLeverettAniEvaluate", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8155, __pyx_L3_error)
47826 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsJLeverettAniEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47827 __Pyx_RefNannyFinishContext();
47829 __pyx_L4_argument_unpacking_done:;
47830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_materialTypes), __pyx_ptype_5numpy_ndarray, 1,
"materialTypes", 0))) __PYX_ERR(0, 8155, __pyx_L1_error)
47831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gravity), __pyx_ptype_5numpy_ndarray, 1,
"gravity", 0))) __PYX_ERR(0, 8158, __pyx_L1_error)
47832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 8159, __pyx_L1_error)
47833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psiD), __pyx_ptype_5numpy_ndarray, 1,
"psiD", 0))) __PYX_ERR(0, 8160, __pyx_L1_error)
47834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ns), __pyx_ptype_5numpy_ndarray, 1,
"ns", 0))) __PYX_ERR(0, 8161, __pyx_L1_error)
47835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nk), __pyx_ptype_5numpy_ndarray, 1,
"nk", 0))) __PYX_ERR(0, 8162, __pyx_L1_error)
47836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_wirr), __pyx_ptype_5numpy_ndarray, 1,
"S_wirr", 0))) __PYX_ERR(0, 8163, __pyx_L1_error)
47837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_S_nwr), __pyx_ptype_5numpy_ndarray, 1,
"S_nwr", 0))) __PYX_ERR(0, 8164, __pyx_L1_error)
47838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0x), __pyx_ptype_5numpy_ndarray, 1,
"kr0x", 0))) __PYX_ERR(0, 8165, __pyx_L1_error)
47839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0y), __pyx_ptype_5numpy_ndarray, 1,
"kr0y", 0))) __PYX_ERR(0, 8166, __pyx_L1_error)
47840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kr0z), __pyx_ptype_5numpy_ndarray, 1,
"kr0z", 0))) __PYX_ERR(0, 8167, __pyx_L1_error)
47841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8168, __pyx_L1_error)
47842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mass), __pyx_ptype_5numpy_ndarray, 1,
"mass", 0))) __PYX_ERR(0, 8169, __pyx_L1_error)
47843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmass), __pyx_ptype_5numpy_ndarray, 1,
"dmass", 0))) __PYX_ERR(0, 8170, __pyx_L1_error)
47844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 8171, __pyx_L1_error)
47845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 8172, __pyx_L1_error)
47846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 8173, __pyx_L1_error)
47847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 8174, __pyx_L1_error)
47848 __pyx_r = __pyx_pf_22ctransportCoefficients_260conservativeHeadRichardsJLeverettAniEvaluate(__pyx_self, __pyx_v_materialTypes, __pyx_v_rho, __pyx_v_beta, __pyx_v_gravity, __pyx_v_phi, __pyx_v_psiD, __pyx_v_ns, __pyx_v_nk, __pyx_v_S_wirr, __pyx_v_S_nwr, __pyx_v_kr0x, __pyx_v_kr0y, __pyx_v_kr0z, __pyx_v_u, __pyx_v_mass, __pyx_v_dmass, __pyx_v_f, __pyx_v_df, __pyx_v_a, __pyx_v_da);
47855 __Pyx_RefNannyFinishContext();
47859 static PyObject *__pyx_pf_22ctransportCoefficients_260conservativeHeadRichardsJLeverettAniEvaluate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_materialTypes,
double __pyx_v_rho,
double __pyx_v_beta, PyArrayObject *__pyx_v_gravity, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_psiD, PyArrayObject *__pyx_v_ns, PyArrayObject *__pyx_v_nk, PyArrayObject *__pyx_v_S_wirr, PyArrayObject *__pyx_v_S_nwr, PyArrayObject *__pyx_v_kr0x, PyArrayObject *__pyx_v_kr0y, PyArrayObject *__pyx_v_kr0z, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_mass, PyArrayObject *__pyx_v_dmass, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
47860 PyObject *__pyx_r = NULL;
47861 __Pyx_RefNannyDeclarations
47862 PyObject *__pyx_t_1 = NULL;
47863 PyObject *__pyx_t_2 = NULL;
47864 PyObject *__pyx_t_3 = NULL;
47866 int __pyx_lineno = 0;
47867 const char *__pyx_filename = NULL;
47868 int __pyx_clineno = 0;
47869 __Pyx_RefNannySetupContext(
"conservativeHeadRichardsJLeverettAniEvaluate", 0);
47878 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8175, __pyx_L1_error)
47879 __Pyx_GOTREF(__pyx_t_1);
47880 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8175, __pyx_L1_error)
47881 __Pyx_GOTREF(__pyx_t_2);
47882 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8175, __pyx_L1_error)
47883 __Pyx_GOTREF(__pyx_t_3);
47884 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47885 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47886 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8175, __pyx_L1_error)
47887 __Pyx_GOTREF(__pyx_t_2);
47888 __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_3, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8175, __pyx_L1_error)
47889 __Pyx_GOTREF(__pyx_t_1);
47890 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47891 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
47892 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8175, __pyx_L1_error)
47893 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47902 conservativeHeadRichardsJLeverettAni(__pyx_t_4, (__pyx_v_f->dimensions[(__pyx_v_f->nd - 2)]), (__pyx_v_f->dimensions[(__pyx_v_f->nd - 1)]), ((
int *)__pyx_v_materialTypes->data), __pyx_v_rho, __pyx_v_beta, ((
double *)__pyx_v_gravity->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_psiD->data), ((
double *)__pyx_v_ns->data), ((
double *)__pyx_v_nk->data), ((
double *)__pyx_v_S_wirr->data), ((
double *)__pyx_v_S_nwr->data), ((
double *)__pyx_v_kr0x->data), ((
double *)__pyx_v_kr0y->data), ((
double *)__pyx_v_kr0z->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_mass->data), ((
double *)__pyx_v_dmass->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
47913 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47916 __Pyx_XDECREF(__pyx_t_1);
47917 __Pyx_XDECREF(__pyx_t_2);
47918 __Pyx_XDECREF(__pyx_t_3);
47919 __Pyx_AddTraceback(
"ctransportCoefficients.conservativeHeadRichardsJLeverettAniEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
47922 __Pyx_XGIVEREF(__pyx_r);
47923 __Pyx_RefNannyFinishContext();
47936 static PyObject *__pyx_pw_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47937 static PyMethodDef __pyx_mdef_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate = {
"diffusiveWave1DCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
47938 static PyObject *__pyx_pw_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47939 double __pyx_v_alpha;
47940 double __pyx_v_gamma;
47941 double __pyx_v_epsilon;
47942 PyArrayObject *__pyx_v_x = 0;
47943 PyArrayObject *__pyx_v_u = 0;
47944 PyArrayObject *__pyx_v_grad_u = 0;
47945 PyArrayObject *__pyx_v_m = 0;
47946 PyArrayObject *__pyx_v_dm = 0;
47947 PyArrayObject *__pyx_v_a = 0;
47948 PyArrayObject *__pyx_v_da = 0;
47949 int __pyx_lineno = 0;
47950 const char *__pyx_filename = NULL;
47951 int __pyx_clineno = 0;
47952 PyObject *__pyx_r = 0;
47953 __Pyx_RefNannyDeclarations
47954 __Pyx_RefNannySetupContext(
"diffusiveWave1DCoefficientsEvaluate (wrapper)", 0);
47956 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_alpha,&__pyx_n_s_gamma,&__pyx_n_s_epsilon,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_a,&__pyx_n_s_da,0};
47957 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
47958 if (unlikely(__pyx_kwds)) {
47959 Py_ssize_t kw_args;
47960 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47961 switch (pos_args) {
47962 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
47963 CYTHON_FALLTHROUGH;
47964 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
47965 CYTHON_FALLTHROUGH;
47966 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
47967 CYTHON_FALLTHROUGH;
47968 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
47969 CYTHON_FALLTHROUGH;
47970 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
47971 CYTHON_FALLTHROUGH;
47972 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47973 CYTHON_FALLTHROUGH;
47974 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47975 CYTHON_FALLTHROUGH;
47976 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47977 CYTHON_FALLTHROUGH;
47978 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47979 CYTHON_FALLTHROUGH;
47980 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47981 CYTHON_FALLTHROUGH;
47983 default:
goto __pyx_L5_argtuple_error;
47985 kw_args = PyDict_Size(__pyx_kwds);
47986 switch (pos_args) {
47988 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
47989 else goto __pyx_L5_argtuple_error;
47990 CYTHON_FALLTHROUGH;
47992 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gamma)) != 0)) kw_args--;
47994 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 1); __PYX_ERR(0, 8198, __pyx_L3_error)
47996 CYTHON_FALLTHROUGH;
47998 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
48000 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 2); __PYX_ERR(0, 8198, __pyx_L3_error)
48002 CYTHON_FALLTHROUGH;
48004 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
48006 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 3); __PYX_ERR(0, 8198, __pyx_L3_error)
48008 CYTHON_FALLTHROUGH;
48010 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
48012 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 4); __PYX_ERR(0, 8198, __pyx_L3_error)
48014 CYTHON_FALLTHROUGH;
48016 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
48018 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 5); __PYX_ERR(0, 8198, __pyx_L3_error)
48020 CYTHON_FALLTHROUGH;
48022 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
48024 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 6); __PYX_ERR(0, 8198, __pyx_L3_error)
48026 CYTHON_FALLTHROUGH;
48028 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
48030 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 7); __PYX_ERR(0, 8198, __pyx_L3_error)
48032 CYTHON_FALLTHROUGH;
48034 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
48036 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 8); __PYX_ERR(0, 8198, __pyx_L3_error)
48038 CYTHON_FALLTHROUGH;
48040 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
48042 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, 9); __PYX_ERR(0, 8198, __pyx_L3_error)
48045 if (unlikely(kw_args > 0)) {
48046 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"diffusiveWave1DCoefficientsEvaluate") < 0)) __PYX_ERR(0, 8198, __pyx_L3_error)
48048 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
48049 goto __pyx_L5_argtuple_error;
48051 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48052 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48053 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48054 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48055 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48056 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
48057 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
48058 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
48059 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
48060 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
48062 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8198, __pyx_L3_error)
48063 __pyx_v_gamma = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_gamma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8199, __pyx_L3_error)
48064 __pyx_v_epsilon = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_epsilon == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8200, __pyx_L3_error)
48065 __pyx_v_x = ((PyArrayObject *)values[3]);
48066 __pyx_v_u = ((PyArrayObject *)values[4]);
48067 __pyx_v_grad_u = ((PyArrayObject *)values[5]);
48068 __pyx_v_m = ((PyArrayObject *)values[6]);
48069 __pyx_v_dm = ((PyArrayObject *)values[7]);
48070 __pyx_v_a = ((PyArrayObject *)values[8]);
48071 __pyx_v_da = ((PyArrayObject *)values[9]);
48073 goto __pyx_L4_argument_unpacking_done;
48074 __pyx_L5_argtuple_error:;
48075 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave1DCoefficientsEvaluate", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8198, __pyx_L3_error)
48077 __Pyx_AddTraceback(
"ctransportCoefficients.diffusiveWave1DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48078 __Pyx_RefNannyFinishContext();
48080 __pyx_L4_argument_unpacking_done:;
48081 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 8201, __pyx_L1_error)
48082 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8202, __pyx_L1_error)
48083 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 8203, __pyx_L1_error)
48084 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 8204, __pyx_L1_error)
48085 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 8205, __pyx_L1_error)
48086 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 8206, __pyx_L1_error)
48087 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 8207, __pyx_L1_error)
48088 __pyx_r = __pyx_pf_22ctransportCoefficients_262diffusiveWave1DCoefficientsEvaluate(__pyx_self, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, __pyx_v_x, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_a, __pyx_v_da);
48095 __Pyx_RefNannyFinishContext();
48099 static PyObject *__pyx_pf_22ctransportCoefficients_262diffusiveWave1DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_alpha,
double __pyx_v_gamma,
double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
48100 PyObject *__pyx_r = NULL;
48101 __Pyx_RefNannyDeclarations
48102 PyObject *__pyx_t_1 = NULL;
48104 int __pyx_lineno = 0;
48105 const char *__pyx_filename = NULL;
48106 int __pyx_clineno = 0;
48107 __Pyx_RefNannySetupContext(
"diffusiveWave1DCoefficientsEvaluate", 0);
48116 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8208, __pyx_L1_error)
48117 __Pyx_GOTREF(__pyx_t_1);
48118 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8208, __pyx_L1_error)
48119 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48128 diffusiveWave1DEvaluate(__pyx_t_2, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
48139 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48142 __Pyx_XDECREF(__pyx_t_1);
48143 __Pyx_AddTraceback(
"ctransportCoefficients.diffusiveWave1DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48146 __Pyx_XGIVEREF(__pyx_r);
48147 __Pyx_RefNannyFinishContext();
48160 static PyObject *__pyx_pw_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48161 static PyMethodDef __pyx_mdef_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate = {
"diffusiveWave2DCoefficientsEvaluate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate, METH_VARARGS|METH_KEYWORDS, 0};
48162 static PyObject *__pyx_pw_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48164 double __pyx_v_alpha;
48165 double __pyx_v_gamma;
48166 double __pyx_v_epsilon;
48167 PyArrayObject *__pyx_v_x = 0;
48168 PyArrayObject *__pyx_v_u = 0;
48169 PyArrayObject *__pyx_v_grad_u = 0;
48170 PyArrayObject *__pyx_v_m = 0;
48171 PyArrayObject *__pyx_v_dm = 0;
48172 PyArrayObject *__pyx_v_a = 0;
48173 PyArrayObject *__pyx_v_da = 0;
48174 int __pyx_lineno = 0;
48175 const char *__pyx_filename = NULL;
48176 int __pyx_clineno = 0;
48177 PyObject *__pyx_r = 0;
48178 __Pyx_RefNannyDeclarations
48179 __Pyx_RefNannySetupContext(
"diffusiveWave2DCoefficientsEvaluate (wrapper)", 0);
48181 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nd,&__pyx_n_s_alpha,&__pyx_n_s_gamma,&__pyx_n_s_epsilon,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_grad_u,&__pyx_n_s_m,&__pyx_n_s_dm,&__pyx_n_s_a,&__pyx_n_s_da,0};
48182 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
48183 if (unlikely(__pyx_kwds)) {
48184 Py_ssize_t kw_args;
48185 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48186 switch (pos_args) {
48187 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
48188 CYTHON_FALLTHROUGH;
48189 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
48190 CYTHON_FALLTHROUGH;
48191 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
48192 CYTHON_FALLTHROUGH;
48193 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
48194 CYTHON_FALLTHROUGH;
48195 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
48196 CYTHON_FALLTHROUGH;
48197 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
48198 CYTHON_FALLTHROUGH;
48199 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48200 CYTHON_FALLTHROUGH;
48201 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48202 CYTHON_FALLTHROUGH;
48203 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48204 CYTHON_FALLTHROUGH;
48205 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48206 CYTHON_FALLTHROUGH;
48207 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48208 CYTHON_FALLTHROUGH;
48210 default:
goto __pyx_L5_argtuple_error;
48212 kw_args = PyDict_Size(__pyx_kwds);
48213 switch (pos_args) {
48215 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nd)) != 0)) kw_args--;
48216 else goto __pyx_L5_argtuple_error;
48217 CYTHON_FALLTHROUGH;
48219 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
48221 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 1); __PYX_ERR(0, 8219, __pyx_L3_error)
48223 CYTHON_FALLTHROUGH;
48225 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gamma)) != 0)) kw_args--;
48227 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 2); __PYX_ERR(0, 8219, __pyx_L3_error)
48229 CYTHON_FALLTHROUGH;
48231 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsilon)) != 0)) kw_args--;
48233 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 3); __PYX_ERR(0, 8219, __pyx_L3_error)
48235 CYTHON_FALLTHROUGH;
48237 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
48239 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 4); __PYX_ERR(0, 8219, __pyx_L3_error)
48241 CYTHON_FALLTHROUGH;
48243 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
48245 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 5); __PYX_ERR(0, 8219, __pyx_L3_error)
48247 CYTHON_FALLTHROUGH;
48249 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
48251 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 6); __PYX_ERR(0, 8219, __pyx_L3_error)
48253 CYTHON_FALLTHROUGH;
48255 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
48257 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 7); __PYX_ERR(0, 8219, __pyx_L3_error)
48259 CYTHON_FALLTHROUGH;
48261 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
48263 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 8); __PYX_ERR(0, 8219, __pyx_L3_error)
48265 CYTHON_FALLTHROUGH;
48267 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
48269 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 9); __PYX_ERR(0, 8219, __pyx_L3_error)
48271 CYTHON_FALLTHROUGH;
48273 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
48275 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, 10); __PYX_ERR(0, 8219, __pyx_L3_error)
48278 if (unlikely(kw_args > 0)) {
48279 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"diffusiveWave2DCoefficientsEvaluate") < 0)) __PYX_ERR(0, 8219, __pyx_L3_error)
48281 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
48282 goto __pyx_L5_argtuple_error;
48284 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48285 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48286 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48287 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48288 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48289 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
48290 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
48291 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
48292 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
48293 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
48294 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
48296 __pyx_v_nd = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nd == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8219, __pyx_L3_error)
48297 __pyx_v_alpha = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_alpha == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8220, __pyx_L3_error)
48298 __pyx_v_gamma = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_gamma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8221, __pyx_L3_error)
48299 __pyx_v_epsilon = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_epsilon == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8222, __pyx_L3_error)
48300 __pyx_v_x = ((PyArrayObject *)values[4]);
48301 __pyx_v_u = ((PyArrayObject *)values[5]);
48302 __pyx_v_grad_u = ((PyArrayObject *)values[6]);
48303 __pyx_v_m = ((PyArrayObject *)values[7]);
48304 __pyx_v_dm = ((PyArrayObject *)values[8]);
48305 __pyx_v_a = ((PyArrayObject *)values[9]);
48306 __pyx_v_da = ((PyArrayObject *)values[10]);
48308 goto __pyx_L4_argument_unpacking_done;
48309 __pyx_L5_argtuple_error:;
48310 __Pyx_RaiseArgtupleInvalid(
"diffusiveWave2DCoefficientsEvaluate", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8219, __pyx_L3_error)
48312 __Pyx_AddTraceback(
"ctransportCoefficients.diffusiveWave2DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48313 __Pyx_RefNannyFinishContext();
48315 __pyx_L4_argument_unpacking_done:;
48316 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 8223, __pyx_L1_error)
48317 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 8224, __pyx_L1_error)
48318 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 8225, __pyx_L1_error)
48319 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 8226, __pyx_L1_error)
48320 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 8227, __pyx_L1_error)
48321 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 8228, __pyx_L1_error)
48322 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 8229, __pyx_L1_error)
48323 __pyx_r = __pyx_pf_22ctransportCoefficients_264diffusiveWave2DCoefficientsEvaluate(__pyx_self, __pyx_v_nd, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, __pyx_v_x, __pyx_v_u, __pyx_v_grad_u, __pyx_v_m, __pyx_v_dm, __pyx_v_a, __pyx_v_da);
48330 __Pyx_RefNannyFinishContext();
48334 static PyObject *__pyx_pf_22ctransportCoefficients_264diffusiveWave2DCoefficientsEvaluate(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nd,
double __pyx_v_alpha,
double __pyx_v_gamma,
double __pyx_v_epsilon, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da) {
48335 PyObject *__pyx_r = NULL;
48336 __Pyx_RefNannyDeclarations
48337 PyObject *__pyx_t_1 = NULL;
48339 int __pyx_lineno = 0;
48340 const char *__pyx_filename = NULL;
48341 int __pyx_clineno = 0;
48342 __Pyx_RefNannySetupContext(
"diffusiveWave2DCoefficientsEvaluate", 0);
48351 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_u), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8231, __pyx_L1_error)
48352 __Pyx_GOTREF(__pyx_t_1);
48353 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8231, __pyx_L1_error)
48354 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48363 diffusiveWave2DEvaluate(__pyx_v_nd, __pyx_t_2, __pyx_v_alpha, __pyx_v_gamma, __pyx_v_epsilon, ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data));
48374 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48377 __Pyx_XDECREF(__pyx_t_1);
48378 __Pyx_AddTraceback(
"ctransportCoefficients.diffusiveWave2DCoefficientsEvaluate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48381 __Pyx_XGIVEREF(__pyx_r);
48382 __Pyx_RefNannyFinishContext();
48395 static PyObject *__pyx_pw_22ctransportCoefficients_267smoothedHeaviside(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48396 static PyMethodDef __pyx_mdef_22ctransportCoefficients_267smoothedHeaviside = {
"smoothedHeaviside", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_267smoothedHeaviside, METH_VARARGS|METH_KEYWORDS, 0};
48397 static PyObject *__pyx_pw_22ctransportCoefficients_267smoothedHeaviside(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48398 double __pyx_v_eps;
48399 double __pyx_v_phi;
48400 int __pyx_lineno = 0;
48401 const char *__pyx_filename = NULL;
48402 int __pyx_clineno = 0;
48403 PyObject *__pyx_r = 0;
48404 __Pyx_RefNannyDeclarations
48405 __Pyx_RefNannySetupContext(
"smoothedHeaviside (wrapper)", 0);
48407 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_phi,0};
48408 PyObject* values[2] = {0,0};
48409 if (unlikely(__pyx_kwds)) {
48410 Py_ssize_t kw_args;
48411 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48412 switch (pos_args) {
48413 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48414 CYTHON_FALLTHROUGH;
48415 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48416 CYTHON_FALLTHROUGH;
48418 default:
goto __pyx_L5_argtuple_error;
48420 kw_args = PyDict_Size(__pyx_kwds);
48421 switch (pos_args) {
48423 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
48424 else goto __pyx_L5_argtuple_error;
48425 CYTHON_FALLTHROUGH;
48427 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
48429 __Pyx_RaiseArgtupleInvalid(
"smoothedHeaviside", 1, 2, 2, 1); __PYX_ERR(0, 8243, __pyx_L3_error)
48432 if (unlikely(kw_args > 0)) {
48433 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"smoothedHeaviside") < 0)) __PYX_ERR(0, 8243, __pyx_L3_error)
48435 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48436 goto __pyx_L5_argtuple_error;
48438 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48439 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48441 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8243, __pyx_L3_error)
48442 __pyx_v_phi = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_phi == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8243, __pyx_L3_error)
48444 goto __pyx_L4_argument_unpacking_done;
48445 __pyx_L5_argtuple_error:;
48446 __Pyx_RaiseArgtupleInvalid(
"smoothedHeaviside", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8243, __pyx_L3_error)
48448 __Pyx_AddTraceback(
"ctransportCoefficients.smoothedHeaviside", __pyx_clineno, __pyx_lineno, __pyx_filename);
48449 __Pyx_RefNannyFinishContext();
48451 __pyx_L4_argument_unpacking_done:;
48452 __pyx_r = __pyx_pf_22ctransportCoefficients_266smoothedHeaviside(__pyx_self, __pyx_v_eps, __pyx_v_phi);
48455 __Pyx_RefNannyFinishContext();
48459 static PyObject *__pyx_pf_22ctransportCoefficients_266smoothedHeaviside(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_phi) {
48460 PyObject *__pyx_r = NULL;
48461 __Pyx_RefNannyDeclarations
48462 PyObject *__pyx_t_1 = NULL;
48463 int __pyx_lineno = 0;
48464 const char *__pyx_filename = NULL;
48465 int __pyx_clineno = 0;
48466 __Pyx_RefNannySetupContext(
"smoothedHeaviside", 0);
48475 __Pyx_XDECREF(__pyx_r);
48476 __pyx_t_1 = PyFloat_FromDouble(
smoothedHeaviside(__pyx_v_eps, __pyx_v_phi));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8244, __pyx_L1_error)
48477 __Pyx_GOTREF(__pyx_t_1);
48478 __pyx_r = __pyx_t_1;
48492 __Pyx_XDECREF(__pyx_t_1);
48493 __Pyx_AddTraceback(
"ctransportCoefficients.smoothedHeaviside", __pyx_clineno, __pyx_lineno, __pyx_filename);
48496 __Pyx_XGIVEREF(__pyx_r);
48497 __Pyx_RefNannyFinishContext();
48510 static PyObject *__pyx_pw_22ctransportCoefficients_269smoothedHeaviside_integral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48511 static PyMethodDef __pyx_mdef_22ctransportCoefficients_269smoothedHeaviside_integral = {
"smoothedHeaviside_integral", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_269smoothedHeaviside_integral, METH_VARARGS|METH_KEYWORDS, 0};
48512 static PyObject *__pyx_pw_22ctransportCoefficients_269smoothedHeaviside_integral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48513 double __pyx_v_eps;
48514 double __pyx_v_phi;
48515 int __pyx_lineno = 0;
48516 const char *__pyx_filename = NULL;
48517 int __pyx_clineno = 0;
48518 PyObject *__pyx_r = 0;
48519 __Pyx_RefNannyDeclarations
48520 __Pyx_RefNannySetupContext(
"smoothedHeaviside_integral (wrapper)", 0);
48522 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_phi,0};
48523 PyObject* values[2] = {0,0};
48524 if (unlikely(__pyx_kwds)) {
48525 Py_ssize_t kw_args;
48526 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48527 switch (pos_args) {
48528 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48529 CYTHON_FALLTHROUGH;
48530 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48531 CYTHON_FALLTHROUGH;
48533 default:
goto __pyx_L5_argtuple_error;
48535 kw_args = PyDict_Size(__pyx_kwds);
48536 switch (pos_args) {
48538 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
48539 else goto __pyx_L5_argtuple_error;
48540 CYTHON_FALLTHROUGH;
48542 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
48544 __Pyx_RaiseArgtupleInvalid(
"smoothedHeaviside_integral", 1, 2, 2, 1); __PYX_ERR(0, 8245, __pyx_L3_error)
48547 if (unlikely(kw_args > 0)) {
48548 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"smoothedHeaviside_integral") < 0)) __PYX_ERR(0, 8245, __pyx_L3_error)
48550 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48551 goto __pyx_L5_argtuple_error;
48553 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48554 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48556 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8245, __pyx_L3_error)
48557 __pyx_v_phi = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_phi == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8245, __pyx_L3_error)
48559 goto __pyx_L4_argument_unpacking_done;
48560 __pyx_L5_argtuple_error:;
48561 __Pyx_RaiseArgtupleInvalid(
"smoothedHeaviside_integral", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8245, __pyx_L3_error)
48563 __Pyx_AddTraceback(
"ctransportCoefficients.smoothedHeaviside_integral", __pyx_clineno, __pyx_lineno, __pyx_filename);
48564 __Pyx_RefNannyFinishContext();
48566 __pyx_L4_argument_unpacking_done:;
48567 __pyx_r = __pyx_pf_22ctransportCoefficients_268smoothedHeaviside_integral(__pyx_self, __pyx_v_eps, __pyx_v_phi);
48570 __Pyx_RefNannyFinishContext();
48574 static PyObject *__pyx_pf_22ctransportCoefficients_268smoothedHeaviside_integral(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_phi) {
48575 PyObject *__pyx_r = NULL;
48576 __Pyx_RefNannyDeclarations
48577 PyObject *__pyx_t_1 = NULL;
48578 int __pyx_lineno = 0;
48579 const char *__pyx_filename = NULL;
48580 int __pyx_clineno = 0;
48581 __Pyx_RefNannySetupContext(
"smoothedHeaviside_integral", 0);
48590 __Pyx_XDECREF(__pyx_r);
48591 __pyx_t_1 = PyFloat_FromDouble(
smoothedHeaviside_integral(__pyx_v_eps, __pyx_v_phi));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8246, __pyx_L1_error)
48592 __Pyx_GOTREF(__pyx_t_1);
48593 __pyx_r = __pyx_t_1;
48607 __Pyx_XDECREF(__pyx_t_1);
48608 __Pyx_AddTraceback(
"ctransportCoefficients.smoothedHeaviside_integral", __pyx_clineno, __pyx_lineno, __pyx_filename);
48611 __Pyx_XGIVEREF(__pyx_r);
48612 __Pyx_RefNannyFinishContext();
48625 static PyObject *__pyx_pw_22ctransportCoefficients_271smoothedDirac(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48626 static PyMethodDef __pyx_mdef_22ctransportCoefficients_271smoothedDirac = {
"smoothedDirac", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_22ctransportCoefficients_271smoothedDirac, METH_VARARGS|METH_KEYWORDS, 0};
48627 static PyObject *__pyx_pw_22ctransportCoefficients_271smoothedDirac(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48628 double __pyx_v_eps;
48629 double __pyx_v_phi;
48630 int __pyx_lineno = 0;
48631 const char *__pyx_filename = NULL;
48632 int __pyx_clineno = 0;
48633 PyObject *__pyx_r = 0;
48634 __Pyx_RefNannyDeclarations
48635 __Pyx_RefNannySetupContext(
"smoothedDirac (wrapper)", 0);
48637 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eps,&__pyx_n_s_phi,0};
48638 PyObject* values[2] = {0,0};
48639 if (unlikely(__pyx_kwds)) {
48640 Py_ssize_t kw_args;
48641 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48642 switch (pos_args) {
48643 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48644 CYTHON_FALLTHROUGH;
48645 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48646 CYTHON_FALLTHROUGH;
48648 default:
goto __pyx_L5_argtuple_error;
48650 kw_args = PyDict_Size(__pyx_kwds);
48651 switch (pos_args) {
48653 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps)) != 0)) kw_args--;
48654 else goto __pyx_L5_argtuple_error;
48655 CYTHON_FALLTHROUGH;
48657 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
48659 __Pyx_RaiseArgtupleInvalid(
"smoothedDirac", 1, 2, 2, 1); __PYX_ERR(0, 8247, __pyx_L3_error)
48662 if (unlikely(kw_args > 0)) {
48663 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"smoothedDirac") < 0)) __PYX_ERR(0, 8247, __pyx_L3_error)
48665 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48666 goto __pyx_L5_argtuple_error;
48668 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48669 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48671 __pyx_v_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8247, __pyx_L3_error)
48672 __pyx_v_phi = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_phi == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 8247, __pyx_L3_error)
48674 goto __pyx_L4_argument_unpacking_done;
48675 __pyx_L5_argtuple_error:;
48676 __Pyx_RaiseArgtupleInvalid(
"smoothedDirac", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8247, __pyx_L3_error)
48678 __Pyx_AddTraceback(
"ctransportCoefficients.smoothedDirac", __pyx_clineno, __pyx_lineno, __pyx_filename);
48679 __Pyx_RefNannyFinishContext();
48681 __pyx_L4_argument_unpacking_done:;
48682 __pyx_r = __pyx_pf_22ctransportCoefficients_270smoothedDirac(__pyx_self, __pyx_v_eps, __pyx_v_phi);
48685 __Pyx_RefNannyFinishContext();
48689 static PyObject *__pyx_pf_22ctransportCoefficients_270smoothedDirac(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_eps,
double __pyx_v_phi) {
48690 PyObject *__pyx_r = NULL;
48691 __Pyx_RefNannyDeclarations
48692 PyObject *__pyx_t_1 = NULL;
48693 int __pyx_lineno = 0;
48694 const char *__pyx_filename = NULL;
48695 int __pyx_clineno = 0;
48696 __Pyx_RefNannySetupContext(
"smoothedDirac", 0);
48705 __Pyx_XDECREF(__pyx_r);
48706 __pyx_t_1 = PyFloat_FromDouble(
smoothedDirac(__pyx_v_eps, __pyx_v_phi));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8248, __pyx_L1_error)
48707 __Pyx_GOTREF(__pyx_t_1);
48708 __pyx_r = __pyx_t_1;
48722 __Pyx_XDECREF(__pyx_t_1);
48723 __Pyx_AddTraceback(
"ctransportCoefficients.smoothedDirac", __pyx_clineno, __pyx_lineno, __pyx_filename);
48726 __Pyx_XGIVEREF(__pyx_r);
48727 __Pyx_RefNannyFinishContext();
48739 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
48740 PyObject *__pyx_r = NULL;
48741 __Pyx_RefNannyDeclarations
48742 PyObject *__pyx_t_1 = NULL;
48743 int __pyx_lineno = 0;
48744 const char *__pyx_filename = NULL;
48745 int __pyx_clineno = 0;
48746 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew1", 0);
48755 __Pyx_XDECREF(__pyx_r);
48756 __pyx_t_1 = PyArray_MultiIterNew(1, ((
void *)__pyx_v_a));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 736, __pyx_L1_error)
48757 __Pyx_GOTREF(__pyx_t_1);
48758 __pyx_r = __pyx_t_1;
48772 __Pyx_XDECREF(__pyx_t_1);
48773 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
48776 __Pyx_XGIVEREF(__pyx_r);
48777 __Pyx_RefNannyFinishContext();
48789 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
48790 PyObject *__pyx_r = NULL;
48791 __Pyx_RefNannyDeclarations
48792 PyObject *__pyx_t_1 = NULL;
48793 int __pyx_lineno = 0;
48794 const char *__pyx_filename = NULL;
48795 int __pyx_clineno = 0;
48796 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew2", 0);
48805 __Pyx_XDECREF(__pyx_r);
48806 __pyx_t_1 = PyArray_MultiIterNew(2, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 739, __pyx_L1_error)
48807 __Pyx_GOTREF(__pyx_t_1);
48808 __pyx_r = __pyx_t_1;
48822 __Pyx_XDECREF(__pyx_t_1);
48823 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
48826 __Pyx_XGIVEREF(__pyx_r);
48827 __Pyx_RefNannyFinishContext();
48839 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
48840 PyObject *__pyx_r = NULL;
48841 __Pyx_RefNannyDeclarations
48842 PyObject *__pyx_t_1 = NULL;
48843 int __pyx_lineno = 0;
48844 const char *__pyx_filename = NULL;
48845 int __pyx_clineno = 0;
48846 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew3", 0);
48855 __Pyx_XDECREF(__pyx_r);
48856 __pyx_t_1 = PyArray_MultiIterNew(3, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 742, __pyx_L1_error)
48857 __Pyx_GOTREF(__pyx_t_1);
48858 __pyx_r = __pyx_t_1;
48872 __Pyx_XDECREF(__pyx_t_1);
48873 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
48876 __Pyx_XGIVEREF(__pyx_r);
48877 __Pyx_RefNannyFinishContext();
48889 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
48890 PyObject *__pyx_r = NULL;
48891 __Pyx_RefNannyDeclarations
48892 PyObject *__pyx_t_1 = NULL;
48893 int __pyx_lineno = 0;
48894 const char *__pyx_filename = NULL;
48895 int __pyx_clineno = 0;
48896 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew4", 0);
48905 __Pyx_XDECREF(__pyx_r);
48906 __pyx_t_1 = PyArray_MultiIterNew(4, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 745, __pyx_L1_error)
48907 __Pyx_GOTREF(__pyx_t_1);
48908 __pyx_r = __pyx_t_1;
48922 __Pyx_XDECREF(__pyx_t_1);
48923 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
48926 __Pyx_XGIVEREF(__pyx_r);
48927 __Pyx_RefNannyFinishContext();
48939 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
48940 PyObject *__pyx_r = NULL;
48941 __Pyx_RefNannyDeclarations
48942 PyObject *__pyx_t_1 = NULL;
48943 int __pyx_lineno = 0;
48944 const char *__pyx_filename = NULL;
48945 int __pyx_clineno = 0;
48946 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew5", 0);
48955 __Pyx_XDECREF(__pyx_r);
48956 __pyx_t_1 = PyArray_MultiIterNew(5, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d), ((
void *)__pyx_v_e));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 748, __pyx_L1_error)
48957 __Pyx_GOTREF(__pyx_t_1);
48958 __pyx_r = __pyx_t_1;
48972 __Pyx_XDECREF(__pyx_t_1);
48973 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
48976 __Pyx_XGIVEREF(__pyx_r);
48977 __Pyx_RefNannyFinishContext();
48989 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
48990 PyObject *__pyx_r = NULL;
48991 __Pyx_RefNannyDeclarations
48993 __Pyx_RefNannySetupContext(
"PyDataType_SHAPE", 0);
49002 __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
49012 __Pyx_XDECREF(__pyx_r);
49013 __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
49014 __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
49034 __Pyx_XDECREF(__pyx_r);
49035 __Pyx_INCREF(__pyx_empty_tuple);
49036 __pyx_r = __pyx_empty_tuple;
49050 __Pyx_XGIVEREF(__pyx_r);
49051 __Pyx_RefNannyFinishContext();
49063 static CYTHON_INLINE
void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
49064 __Pyx_RefNannyDeclarations
49065 __Pyx_RefNannySetupContext(
"set_array_base", 0);
49074 Py_INCREF(__pyx_v_base);
49083 (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
49094 __Pyx_RefNannyFinishContext();
49105 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
49106 PyObject *__pyx_v_base;
49107 PyObject *__pyx_r = NULL;
49108 __Pyx_RefNannyDeclarations
49110 __Pyx_RefNannySetupContext(
"get_array_base", 0);
49119 __pyx_v_base = PyArray_BASE(__pyx_v_arr);
49128 __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
49138 __Pyx_XDECREF(__pyx_r);
49139 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
49158 __Pyx_XDECREF(__pyx_r);
49159 __Pyx_INCREF(((PyObject *)__pyx_v_base));
49160 __pyx_r = ((PyObject *)__pyx_v_base);
49173 __Pyx_XGIVEREF(__pyx_r);
49174 __Pyx_RefNannyFinishContext();
49186 static CYTHON_INLINE
int __pyx_f_5numpy_import_array(
void) {
49188 __Pyx_RefNannyDeclarations
49189 PyObject *__pyx_t_1 = NULL;
49190 PyObject *__pyx_t_2 = NULL;
49191 PyObject *__pyx_t_3 = NULL;
49193 PyObject *__pyx_t_5 = NULL;
49194 PyObject *__pyx_t_6 = NULL;
49195 PyObject *__pyx_t_7 = NULL;
49196 PyObject *__pyx_t_8 = NULL;
49197 int __pyx_lineno = 0;
49198 const char *__pyx_filename = NULL;
49199 int __pyx_clineno = 0;
49200 __Pyx_RefNannySetupContext(
"import_array", 0);
49210 __Pyx_PyThreadState_declare
49211 __Pyx_PyThreadState_assign
49212 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
49213 __Pyx_XGOTREF(__pyx_t_1);
49214 __Pyx_XGOTREF(__pyx_t_2);
49215 __Pyx_XGOTREF(__pyx_t_3);
49225 __pyx_t_4 = _import_array();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 943, __pyx_L3_error)
49235 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
49236 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
49237 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
49238 goto __pyx_L8_try_end;
49248 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
49250 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
49251 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 944, __pyx_L5_except_error)
49252 __Pyx_GOTREF(__pyx_t_5);
49253 __Pyx_GOTREF(__pyx_t_6);
49254 __Pyx_GOTREF(__pyx_t_7);
49263 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple_, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 945, __pyx_L5_except_error)
49264 __Pyx_GOTREF(__pyx_t_8);
49265 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
49266 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
49267 __PYX_ERR(1, 945, __pyx_L5_except_error)
49269 goto __pyx_L5_except_error;
49270 __pyx_L5_except_error:;
49279 __Pyx_XGIVEREF(__pyx_t_1);
49280 __Pyx_XGIVEREF(__pyx_t_2);
49281 __Pyx_XGIVEREF(__pyx_t_3);
49282 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
49283 goto __pyx_L1_error;
49299 __Pyx_XDECREF(__pyx_t_5);
49300 __Pyx_XDECREF(__pyx_t_6);
49301 __Pyx_XDECREF(__pyx_t_7);
49302 __Pyx_XDECREF(__pyx_t_8);
49303 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
49306 __Pyx_RefNannyFinishContext();
49318 static CYTHON_INLINE
int __pyx_f_5numpy_import_umath(
void) {
49320 __Pyx_RefNannyDeclarations
49321 PyObject *__pyx_t_1 = NULL;
49322 PyObject *__pyx_t_2 = NULL;
49323 PyObject *__pyx_t_3 = NULL;
49325 PyObject *__pyx_t_5 = NULL;
49326 PyObject *__pyx_t_6 = NULL;
49327 PyObject *__pyx_t_7 = NULL;
49328 PyObject *__pyx_t_8 = NULL;
49329 int __pyx_lineno = 0;
49330 const char *__pyx_filename = NULL;
49331 int __pyx_clineno = 0;
49332 __Pyx_RefNannySetupContext(
"import_umath", 0);
49342 __Pyx_PyThreadState_declare
49343 __Pyx_PyThreadState_assign
49344 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
49345 __Pyx_XGOTREF(__pyx_t_1);
49346 __Pyx_XGOTREF(__pyx_t_2);
49347 __Pyx_XGOTREF(__pyx_t_3);
49357 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 949, __pyx_L3_error)
49367 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
49368 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
49369 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
49370 goto __pyx_L8_try_end;
49380 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
49382 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
49383 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 950, __pyx_L5_except_error)
49384 __Pyx_GOTREF(__pyx_t_5);
49385 __Pyx_GOTREF(__pyx_t_6);
49386 __Pyx_GOTREF(__pyx_t_7);
49395 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 951, __pyx_L5_except_error)
49396 __Pyx_GOTREF(__pyx_t_8);
49397 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
49398 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
49399 __PYX_ERR(1, 951, __pyx_L5_except_error)
49401 goto __pyx_L5_except_error;
49402 __pyx_L5_except_error:;
49411 __Pyx_XGIVEREF(__pyx_t_1);
49412 __Pyx_XGIVEREF(__pyx_t_2);
49413 __Pyx_XGIVEREF(__pyx_t_3);
49414 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
49415 goto __pyx_L1_error;
49431 __Pyx_XDECREF(__pyx_t_5);
49432 __Pyx_XDECREF(__pyx_t_6);
49433 __Pyx_XDECREF(__pyx_t_7);
49434 __Pyx_XDECREF(__pyx_t_8);
49435 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
49438 __Pyx_RefNannyFinishContext();
49450 static CYTHON_INLINE
int __pyx_f_5numpy_import_ufunc(
void) {
49452 __Pyx_RefNannyDeclarations
49453 PyObject *__pyx_t_1 = NULL;
49454 PyObject *__pyx_t_2 = NULL;
49455 PyObject *__pyx_t_3 = NULL;
49457 PyObject *__pyx_t_5 = NULL;
49458 PyObject *__pyx_t_6 = NULL;
49459 PyObject *__pyx_t_7 = NULL;
49460 PyObject *__pyx_t_8 = NULL;
49461 int __pyx_lineno = 0;
49462 const char *__pyx_filename = NULL;
49463 int __pyx_clineno = 0;
49464 __Pyx_RefNannySetupContext(
"import_ufunc", 0);
49474 __Pyx_PyThreadState_declare
49475 __Pyx_PyThreadState_assign
49476 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
49477 __Pyx_XGOTREF(__pyx_t_1);
49478 __Pyx_XGOTREF(__pyx_t_2);
49479 __Pyx_XGOTREF(__pyx_t_3);
49489 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 955, __pyx_L3_error)
49499 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
49500 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
49501 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
49502 goto __pyx_L8_try_end;
49512 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
49514 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
49515 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 956, __pyx_L5_except_error)
49516 __Pyx_GOTREF(__pyx_t_5);
49517 __Pyx_GOTREF(__pyx_t_6);
49518 __Pyx_GOTREF(__pyx_t_7);
49527 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 957, __pyx_L5_except_error)
49528 __Pyx_GOTREF(__pyx_t_8);
49529 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
49530 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
49531 __PYX_ERR(1, 957, __pyx_L5_except_error)
49533 goto __pyx_L5_except_error;
49534 __pyx_L5_except_error:;
49543 __Pyx_XGIVEREF(__pyx_t_1);
49544 __Pyx_XGIVEREF(__pyx_t_2);
49545 __Pyx_XGIVEREF(__pyx_t_3);
49546 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
49547 goto __pyx_L1_error;
49563 __Pyx_XDECREF(__pyx_t_5);
49564 __Pyx_XDECREF(__pyx_t_6);
49565 __Pyx_XDECREF(__pyx_t_7);
49566 __Pyx_XDECREF(__pyx_t_8);
49567 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
49570 __Pyx_RefNannyFinishContext();
49582 static CYTHON_INLINE
int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
49584 __Pyx_RefNannyDeclarations
49585 __Pyx_RefNannySetupContext(
"is_timedelta64_object", 0);
49594 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
49607 __Pyx_RefNannyFinishContext();
49619 static CYTHON_INLINE
int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
49621 __Pyx_RefNannyDeclarations
49622 __Pyx_RefNannySetupContext(
"is_datetime64_object", 0);
49631 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
49644 __Pyx_RefNannyFinishContext();
49656 static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
49657 npy_datetime __pyx_r;
49666 __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
49690 static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
49691 npy_timedelta __pyx_r;
49700 __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
49724 static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
49725 NPY_DATETIMEUNIT __pyx_r;
49732 __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
49748 static PyMethodDef __pyx_methods[] = {
49752 #if PY_MAJOR_VERSION >= 3
49753 #if CYTHON_PEP489_MULTI_PHASE_INIT
49754 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
49755 static int __pyx_pymod_exec_ctransportCoefficients(PyObject* module);
49756 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
49757 {Py_mod_create, (
void*)__pyx_pymod_create},
49758 {Py_mod_exec, (
void*)__pyx_pymod_exec_ctransportCoefficients},
49763 static struct PyModuleDef __pyx_moduledef = {
49764 PyModuleDef_HEAD_INIT,
49765 "ctransportCoefficients",
49767 #if CYTHON_PEP489_MULTI_PHASE_INIT
49773 #if CYTHON_PEP489_MULTI_PHASE_INIT
49774 __pyx_moduledef_slots,
49783 #ifndef CYTHON_SMALL_CODE
49784 #if defined(__clang__)
49785 #define CYTHON_SMALL_CODE
49786 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
49787 #define CYTHON_SMALL_CODE __attribute__((cold))
49789 #define CYTHON_SMALL_CODE
49793 static __Pyx_StringTabEntry __pyx_string_tab[] = {
49794 {&__pyx_n_s_A, __pyx_k_A,
sizeof(__pyx_k_A), 0, 0, 1, 1},
49795 {&__pyx_n_s_A1, __pyx_k_A1,
sizeof(__pyx_k_A1), 0, 0, 1, 1},
49796 {&__pyx_n_s_A2, __pyx_k_A2,
sizeof(__pyx_k_A2), 0, 0, 1, 1},
49797 {&__pyx_n_s_B, __pyx_k_B,
sizeof(__pyx_k_B), 0, 0, 1, 1},
49798 {&__pyx_n_s_B1, __pyx_k_B1,
sizeof(__pyx_k_B1), 0, 0, 1, 1},
49799 {&__pyx_n_s_B2, __pyx_k_B2,
sizeof(__pyx_k_B2), 0, 0, 1, 1},
49800 {&__pyx_n_s_Bcon, __pyx_k_Bcon,
sizeof(__pyx_k_Bcon), 0, 0, 1, 1},
49801 {&__pyx_n_s_Bcon1, __pyx_k_Bcon1,
sizeof(__pyx_k_Bcon1), 0, 0, 1, 1},
49802 {&__pyx_n_s_Bcon2, __pyx_k_Bcon2,
sizeof(__pyx_k_Bcon2), 0, 0, 1, 1},
49803 {&__pyx_n_s_C, __pyx_k_C,
sizeof(__pyx_k_C), 0, 0, 1, 1},
49804 {&__pyx_n_s_C1, __pyx_k_C1,
sizeof(__pyx_k_C1), 0, 0, 1, 1},
49805 {&__pyx_n_s_C2, __pyx_k_C2,
sizeof(__pyx_k_C2), 0, 0, 1, 1},
49806 {&__pyx_n_s_E, __pyx_k_E,
sizeof(__pyx_k_E), 0, 0, 1, 1},
49807 {&__pyx_n_s_E0, __pyx_k_E0,
sizeof(__pyx_k_E0), 0, 0, 1, 1},
49808 {&__pyx_n_s_H, __pyx_k_H,
sizeof(__pyx_k_H), 0, 0, 1, 1},
49809 {&__pyx_n_s_HJBurgersEvaluate, __pyx_k_HJBurgersEvaluate,
sizeof(__pyx_k_HJBurgersEvaluate), 0, 0, 1, 1},
49810 {&__pyx_n_s_H_vof, __pyx_k_H_vof,
sizeof(__pyx_k_H_vof), 0, 0, 1, 1},
49811 {&__pyx_n_s_ImportError, __pyx_k_ImportError,
sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
49812 {&__pyx_n_s_KWs, __pyx_k_KWs,
sizeof(__pyx_k_KWs), 0, 0, 1, 1},
49813 {&__pyx_n_s_K_h, __pyx_k_K_h,
sizeof(__pyx_k_K_h), 0, 0, 1, 1},
49814 {&__pyx_n_s_K_m, __pyx_k_K_m,
sizeof(__pyx_k_K_m), 0, 0, 1, 1},
49815 {&__pyx_n_s_K_w, __pyx_k_K_w,
sizeof(__pyx_k_K_w), 0, 0, 1, 1},
49816 {&__pyx_n_s_Km, __pyx_k_Km,
sizeof(__pyx_k_Km), 0, 0, 1, 1},
49817 {&__pyx_n_s_Kox_C, __pyx_k_Kox_C,
sizeof(__pyx_k_Kox_C), 0, 0, 1, 1},
49818 {&__pyx_n_s_Kox_E, __pyx_k_Kox_E,
sizeof(__pyx_k_Kox_E), 0, 0, 1, 1},
49819 {&__pyx_n_s_Kox_X, __pyx_k_Kox_X,
sizeof(__pyx_k_Kox_X), 0, 0, 1, 1},
49820 {&__pyx_n_s_Kox_max, __pyx_k_Kox_max,
sizeof(__pyx_k_Kox_max), 0, 0, 1, 1},
49821 {&__pyx_n_s_Kp, __pyx_k_Kp,
sizeof(__pyx_k_Kp), 0, 0, 1, 1},
49822 {&__pyx_n_s_L2projectEvaluate, __pyx_k_L2projectEvaluate,
sizeof(__pyx_k_L2projectEvaluate), 0, 0, 1, 1},
49823 {&__pyx_n_s_Lambda, __pyx_k_Lambda,
sizeof(__pyx_k_Lambda), 0, 0, 1, 1},
49824 {&__pyx_n_s_Lambda_aniso_types, __pyx_k_Lambda_aniso_types,
sizeof(__pyx_k_Lambda_aniso_types), 0, 0, 1, 1},
49825 {&__pyx_n_s_Lambda_dry_types, __pyx_k_Lambda_dry_types,
sizeof(__pyx_k_Lambda_dry_types), 0, 0, 1, 1},
49826 {&__pyx_n_s_Lambda_penalty, __pyx_k_Lambda_penalty,
sizeof(__pyx_k_Lambda_penalty), 0, 0, 1, 1},
49827 {&__pyx_n_s_Lambda_sat_types, __pyx_k_Lambda_sat_types,
sizeof(__pyx_k_Lambda_sat_types), 0, 0, 1, 1},
49828 {&__pyx_n_s_Laplace_2D_Evaluate, __pyx_k_Laplace_2D_Evaluate,
sizeof(__pyx_k_Laplace_2D_Evaluate), 0, 0, 1, 1},
49829 {&__pyx_n_s_Laplace_3D_Evaluate, __pyx_k_Laplace_3D_Evaluate,
sizeof(__pyx_k_Laplace_3D_Evaluate), 0, 0, 1, 1},
49830 {&__pyx_n_s_LinearElasticity_1D_Evaluate, __pyx_k_LinearElasticity_1D_Evaluate,
sizeof(__pyx_k_LinearElasticity_1D_Evaluate), 0, 0, 1, 1},
49831 {&__pyx_n_s_LinearElasticity_2D_Evaluate, __pyx_k_LinearElasticity_2D_Evaluate,
sizeof(__pyx_k_LinearElasticity_2D_Evaluate), 0, 0, 1, 1},
49832 {&__pyx_n_s_LinearElasticity_3D_Evaluate, __pyx_k_LinearElasticity_3D_Evaluate,
sizeof(__pyx_k_LinearElasticity_3D_Evaluate), 0, 0, 1, 1},
49833 {&__pyx_n_s_M, __pyx_k_M,
sizeof(__pyx_k_M), 0, 0, 1, 1},
49834 {&__pyx_n_s_M1, __pyx_k_M1,
sizeof(__pyx_k_M1), 0, 0, 1, 1},
49835 {&__pyx_n_s_M2, __pyx_k_M2,
sizeof(__pyx_k_M2), 0, 0, 1, 1},
49836 {&__pyx_n_s_Mass_2D_Evaluate, __pyx_k_Mass_2D_Evaluate,
sizeof(__pyx_k_Mass_2D_Evaluate), 0, 0, 1, 1},
49837 {&__pyx_n_s_Mass_3D_Evaluate, __pyx_k_Mass_3D_Evaluate,
sizeof(__pyx_k_Mass_3D_Evaluate), 0, 0, 1, 1},
49838 {&__pyx_n_s_MovingMesh_1D_Evaluate, __pyx_k_MovingMesh_1D_Evaluate,
sizeof(__pyx_k_MovingMesh_1D_Evaluate), 0, 0, 1, 1},
49839 {&__pyx_n_s_MovingMesh_2D_Evaluate, __pyx_k_MovingMesh_2D_Evaluate,
sizeof(__pyx_k_MovingMesh_2D_Evaluate), 0, 0, 1, 1},
49840 {&__pyx_n_s_MovingMesh_3D_Evaluate, __pyx_k_MovingMesh_3D_Evaluate,
sizeof(__pyx_k_MovingMesh_3D_Evaluate), 0, 0, 1, 1},
49841 {&__pyx_n_s_NavierStokes_2D_Evaluate, __pyx_k_NavierStokes_2D_Evaluate,
sizeof(__pyx_k_NavierStokes_2D_Evaluate), 0, 0, 1, 1},
49842 {&__pyx_n_s_NavierStokes_3D_Evaluate, __pyx_k_NavierStokes_3D_Evaluate,
sizeof(__pyx_k_NavierStokes_3D_Evaluate), 0, 0, 1, 1},
49843 {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp, __pyx_k_ReynoldsAveragedNavierStokes_kEp,
sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp), 0, 0, 1, 1},
49844 {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2, __pyx_k_ReynoldsAveragedNavierStokes_kEp_2,
sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp_2), 0, 0, 1, 1},
49845 {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3, __pyx_k_ReynoldsAveragedNavierStokes_kEp_3,
sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp_3), 0, 0, 1, 1},
49846 {&__pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4, __pyx_k_ReynoldsAveragedNavierStokes_kEp_4,
sizeof(__pyx_k_ReynoldsAveragedNavierStokes_kEp_4), 0, 0, 1, 1},
49847 {&__pyx_n_s_S, __pyx_k_S,
sizeof(__pyx_k_S), 0, 0, 1, 1},
49848 {&__pyx_n_s_S_nwr, __pyx_k_S_nwr,
sizeof(__pyx_k_S_nwr), 0, 0, 1, 1},
49849 {&__pyx_n_s_S_wirr, __pyx_k_S_wirr,
sizeof(__pyx_k_S_wirr), 0, 0, 1, 1},
49850 {&__pyx_n_s_StokesP_2D_Evaluate, __pyx_k_StokesP_2D_Evaluate,
sizeof(__pyx_k_StokesP_2D_Evaluate), 0, 0, 1, 1},
49851 {&__pyx_n_s_StokesP_3D_Evaluate, __pyx_k_StokesP_3D_Evaluate,
sizeof(__pyx_k_StokesP_3D_Evaluate), 0, 0, 1, 1},
49852 {&__pyx_n_s_Stokes_2D_Evaluate, __pyx_k_Stokes_2D_Evaluate,
sizeof(__pyx_k_Stokes_2D_Evaluate), 0, 0, 1, 1},
49853 {&__pyx_n_s_Stokes_3D_Evaluate, __pyx_k_Stokes_3D_Evaluate,
sizeof(__pyx_k_Stokes_3D_Evaluate), 0, 0, 1, 1},
49854 {&__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO, __pyx_k_ThreephaseNavierStokes_ST_LS_SO,
sizeof(__pyx_k_ThreephaseNavierStokes_ST_LS_SO), 0, 0, 1, 1},
49855 {&__pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2, __pyx_k_ThreephaseNavierStokes_ST_LS_SO_2,
sizeof(__pyx_k_ThreephaseNavierStokes_ST_LS_SO_2), 0, 0, 1, 1},
49856 {&__pyx_n_s_TwoPhaseAdvection_2D_Evaluate, __pyx_k_TwoPhaseAdvection_2D_Evaluate,
sizeof(__pyx_k_TwoPhaseAdvection_2D_Evaluate), 0, 0, 1, 1},
49857 {&__pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev, __pyx_k_TwophaseNavierStokes_LS_SO_2D_Ev,
sizeof(__pyx_k_TwophaseNavierStokes_LS_SO_2D_Ev), 0, 0, 1, 1},
49858 {&__pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev, __pyx_k_TwophaseNavierStokes_LS_SO_3D_Ev,
sizeof(__pyx_k_TwophaseNavierStokes_LS_SO_3D_Ev), 0, 0, 1, 1},
49859 {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D, __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D,
sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_2D), 0, 0, 1, 1},
49860 {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2, __pyx_k_TwophaseNavierStokes_ST_LS_SO_2D_2,
sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_2D_2), 0, 0, 1, 1},
49861 {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D, __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D,
sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_3D), 0, 0, 1, 1},
49862 {&__pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2, __pyx_k_TwophaseNavierStokes_ST_LS_SO_3D_2,
sizeof(__pyx_k_TwophaseNavierStokes_ST_LS_SO_3D_2), 0, 0, 1, 1},
49863 {&__pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E, __pyx_k_TwophaseNavierStokes_VOF_SO_2D_E,
sizeof(__pyx_k_TwophaseNavierStokes_VOF_SO_2D_E), 0, 0, 1, 1},
49864 {&__pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E, __pyx_k_TwophaseNavierStokes_VOF_SO_3D_E,
sizeof(__pyx_k_TwophaseNavierStokes_VOF_SO_3D_E), 0, 0, 1, 1},
49865 {&__pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate, __pyx_k_TwophaseStokes_LS_SO_2D_Evaluate,
sizeof(__pyx_k_TwophaseStokes_LS_SO_2D_Evaluate), 0, 0, 1, 1},
49866 {&__pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate, __pyx_k_TwophaseStokes_LS_SO_3D_Evaluate,
sizeof(__pyx_k_TwophaseStokes_LS_SO_3D_Evaluate), 0, 0, 1, 1},
49867 {&__pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat, __pyx_k_TwophaseStokes_VOF_SO_2D_Evaluat,
sizeof(__pyx_k_TwophaseStokes_VOF_SO_2D_Evaluat), 0, 0, 1, 1},
49868 {&__pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat, __pyx_k_TwophaseStokes_VOF_SO_3D_Evaluat,
sizeof(__pyx_k_TwophaseStokes_VOF_SO_3D_Evaluat), 0, 0, 1, 1},
49869 {&__pyx_n_s_VOFCoefficientsEvaluate, __pyx_k_VOFCoefficientsEvaluate,
sizeof(__pyx_k_VOFCoefficientsEvaluate), 0, 0, 1, 1},
49870 {&__pyx_n_s_VolumeAveragedNavierStokesFullDe, __pyx_k_VolumeAveragedNavierStokesFullDe,
sizeof(__pyx_k_VolumeAveragedNavierStokesFullDe), 0, 0, 1, 1},
49871 {&__pyx_n_s_VolumeAveragedNavierStokesFullDe_2, __pyx_k_VolumeAveragedNavierStokesFullDe_2,
sizeof(__pyx_k_VolumeAveragedNavierStokesFullDe_2), 0, 0, 1, 1},
49872 {&__pyx_n_s_VolumeAveragedTwophaseNavierStok, __pyx_k_VolumeAveragedTwophaseNavierStok,
sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok), 0, 0, 1, 1},
49873 {&__pyx_n_s_VolumeAveragedTwophaseNavierStok_2, __pyx_k_VolumeAveragedTwophaseNavierStok_2,
sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok_2), 0, 0, 1, 1},
49874 {&__pyx_n_s_VolumeAveragedTwophaseNavierStok_3, __pyx_k_VolumeAveragedTwophaseNavierStok_3,
sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok_3), 0, 0, 1, 1},
49875 {&__pyx_n_s_VolumeAveragedTwophaseNavierStok_4, __pyx_k_VolumeAveragedTwophaseNavierStok_4,
sizeof(__pyx_k_VolumeAveragedTwophaseNavierStok_4), 0, 0, 1, 1},
49876 {&__pyx_n_s_VolumeAveragedVOFCoefficientsEva, __pyx_k_VolumeAveragedVOFCoefficientsEva,
sizeof(__pyx_k_VolumeAveragedVOFCoefficientsEva), 0, 0, 1, 1},
49877 {&__pyx_n_s_Yield, __pyx_k_Yield,
sizeof(__pyx_k_Yield), 0, 0, 1, 1},
49878 {&__pyx_n_s_Z_tot, __pyx_k_Z_tot,
sizeof(__pyx_k_Z_tot), 0, 0, 1, 1},
49879 {&__pyx_n_s_a, __pyx_k_a,
sizeof(__pyx_k_a), 0, 0, 1, 1},
49880 {&__pyx_n_s_a_avg, __pyx_k_a_avg,
sizeof(__pyx_k_a_avg), 0, 0, 1, 1},
49881 {&__pyx_n_s_a_c, __pyx_k_a_c,
sizeof(__pyx_k_a_c), 0, 0, 1, 1},
49882 {&__pyx_n_s_a_e, __pyx_k_a_e,
sizeof(__pyx_k_a_e), 0, 0, 1, 1},
49883 {&__pyx_n_s_a_h, __pyx_k_a_h,
sizeof(__pyx_k_a_h), 0, 0, 1, 1},
49884 {&__pyx_n_s_a_k, __pyx_k_a_k,
sizeof(__pyx_k_a_k), 0, 0, 1, 1},
49885 {&__pyx_n_s_a_m, __pyx_k_a_m,
sizeof(__pyx_k_a_m), 0, 0, 1, 1},
49886 {&__pyx_n_s_advectiveFlux, __pyx_k_advectiveFlux,
sizeof(__pyx_k_advectiveFlux), 0, 0, 1, 1},
49887 {&__pyx_n_s_alpha, __pyx_k_alpha,
sizeof(__pyx_k_alpha), 0, 0, 1, 1},
49888 {&__pyx_n_s_alpha_L, __pyx_k_alpha_L,
sizeof(__pyx_k_alpha_L), 0, 0, 1, 1},
49889 {&__pyx_n_s_alpha_L_types, __pyx_k_alpha_L_types,
sizeof(__pyx_k_alpha_L_types), 0, 0, 1, 1},
49890 {&__pyx_n_s_alpha_T, __pyx_k_alpha_T,
sizeof(__pyx_k_alpha_T), 0, 0, 1, 1},
49891 {&__pyx_n_s_alpha_T_types, __pyx_k_alpha_T_types,
sizeof(__pyx_k_alpha_T_types), 0, 0, 1, 1},
49892 {&__pyx_n_s_applyContactLineSlip, __pyx_k_applyContactLineSlip,
sizeof(__pyx_k_applyContactLineSlip), 0, 0, 1, 1},
49893 {&__pyx_n_s_applyContactLineSlipJacobian, __pyx_k_applyContactLineSlipJacobian,
sizeof(__pyx_k_applyContactLineSlipJacobian), 0, 0, 1, 1},
49894 {&__pyx_n_s_b, __pyx_k_b,
sizeof(__pyx_k_b), 0, 0, 1, 1},
49895 {&__pyx_n_s_bedFrictionCoefficient, __pyx_k_bedFrictionCoefficient,
sizeof(__pyx_k_bedFrictionCoefficient), 0, 0, 1, 1},
49896 {&__pyx_n_s_bedFrictionPower, __pyx_k_bedFrictionPower,
sizeof(__pyx_k_bedFrictionPower), 0, 0, 1, 1},
49897 {&__pyx_n_s_beta, __pyx_k_beta,
sizeof(__pyx_k_beta), 0, 0, 1, 1},
49898 {&__pyx_n_s_boundaryPenaltyCoef, __pyx_k_boundaryPenaltyCoef,
sizeof(__pyx_k_boundaryPenaltyCoef), 0, 0, 1, 1},
49899 {&__pyx_n_s_burgersDiagonalVelEvaluate, __pyx_k_burgersDiagonalVelEvaluate,
sizeof(__pyx_k_burgersDiagonalVelEvaluate), 0, 0, 1, 1},
49900 {&__pyx_n_s_burgersDiagonalVelHJEvaluate, __pyx_k_burgersDiagonalVelHJEvaluate,
sizeof(__pyx_k_burgersDiagonalVelHJEvaluate), 0, 0, 1, 1},
49901 {&__pyx_n_s_cLevelSetCoefficientsEvaluate, __pyx_k_cLevelSetCoefficientsEvaluate,
sizeof(__pyx_k_cLevelSetCoefficientsEvaluate), 0, 0, 1, 1},
49902 {&__pyx_n_s_c_1, __pyx_k_c_1,
sizeof(__pyx_k_c_1), 0, 0, 1, 1},
49903 {&__pyx_n_s_c_2, __pyx_k_c_2,
sizeof(__pyx_k_c_2), 0, 0, 1, 1},
49904 {&__pyx_n_s_c_c, __pyx_k_c_c,
sizeof(__pyx_k_c_c), 0, 0, 1, 1},
49905 {&__pyx_n_s_c_e, __pyx_k_c_e,
sizeof(__pyx_k_c_e), 0, 0, 1, 1},
49906 {&__pyx_n_s_c_h, __pyx_k_c_h,
sizeof(__pyx_k_c_h), 0, 0, 1, 1},
49907 {&__pyx_n_s_c_m, __pyx_k_c_m,
sizeof(__pyx_k_c_m), 0, 0, 1, 1},
49908 {&__pyx_n_s_c_mu, __pyx_k_c_mu,
sizeof(__pyx_k_c_mu), 0, 0, 1, 1},
49909 {&__pyx_n_s_c_x, __pyx_k_c_x,
sizeof(__pyx_k_c_x), 0, 0, 1, 1},
49910 {&__pyx_n_s_calculateEddyViscosity_Smagorins, __pyx_k_calculateEddyViscosity_Smagorins,
sizeof(__pyx_k_calculateEddyViscosity_Smagorins), 0, 0, 1, 1},
49911 {&__pyx_n_s_calculateEddyViscosity_Smagorins_2, __pyx_k_calculateEddyViscosity_Smagorins_2,
sizeof(__pyx_k_calculateEddyViscosity_Smagorins_2), 0, 0, 1, 1},
49912 {&__pyx_n_s_calculateEddyViscosity_Smagorins_3, __pyx_k_calculateEddyViscosity_Smagorins_3,
sizeof(__pyx_k_calculateEddyViscosity_Smagorins_3), 0, 0, 1, 1},
49913 {&__pyx_n_s_calculateEddyViscosity_Smagorins_4, __pyx_k_calculateEddyViscosity_Smagorins_4,
sizeof(__pyx_k_calculateEddyViscosity_Smagorins_4), 0, 0, 1, 1},
49914 {&__pyx_n_s_calculateWaveFunction3d_ref, __pyx_k_calculateWaveFunction3d_ref,
sizeof(__pyx_k_calculateWaveFunction3d_ref), 0, 0, 1, 1},
49915 {&__pyx_n_s_centers, __pyx_k_centers,
sizeof(__pyx_k_centers), 0, 0, 1, 1},
49916 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
49917 {&__pyx_n_s_colind, __pyx_k_colind,
sizeof(__pyx_k_colind), 0, 0, 1, 1},
49918 {&__pyx_n_s_computeAverages, __pyx_k_computeAverages,
sizeof(__pyx_k_computeAverages), 0, 0, 1, 1},
49919 {&__pyx_n_s_conservativeHeadRichardsBCBfromM, __pyx_k_conservativeHeadRichardsBCBfromM,
sizeof(__pyx_k_conservativeHeadRichardsBCBfromM), 0, 0, 1, 1},
49920 {&__pyx_n_s_conservativeHeadRichardsBrooksCo, __pyx_k_conservativeHeadRichardsBrooksCo,
sizeof(__pyx_k_conservativeHeadRichardsBrooksCo), 0, 0, 1, 1},
49921 {&__pyx_n_s_conservativeHeadRichardsBrooksCo_2, __pyx_k_conservativeHeadRichardsBrooksCo_2,
sizeof(__pyx_k_conservativeHeadRichardsBrooksCo_2), 0, 0, 1, 1},
49922 {&__pyx_n_s_conservativeHeadRichardsJLeveret, __pyx_k_conservativeHeadRichardsJLeveret,
sizeof(__pyx_k_conservativeHeadRichardsJLeveret), 0, 0, 1, 1},
49923 {&__pyx_n_s_conservativeHeadRichardsJLeveret_2, __pyx_k_conservativeHeadRichardsJLeveret_2,
sizeof(__pyx_k_conservativeHeadRichardsJLeveret_2), 0, 0, 1, 1},
49924 {&__pyx_n_s_conservativeHeadRichardsL2projBn, __pyx_k_conservativeHeadRichardsL2projBn,
sizeof(__pyx_k_conservativeHeadRichardsL2projBn), 0, 0, 1, 1},
49925 {&__pyx_n_s_conservativeHeadRichardsL2projMu, __pyx_k_conservativeHeadRichardsL2projMu,
sizeof(__pyx_k_conservativeHeadRichardsL2projMu), 0, 0, 1, 1},
49926 {&__pyx_n_s_conservativeHeadRichardsL2projMu_2, __pyx_k_conservativeHeadRichardsL2projMu_2,
sizeof(__pyx_k_conservativeHeadRichardsL2projMu_2), 0, 0, 1, 1},
49927 {&__pyx_n_s_conservativeHeadRichardsMualemVa, __pyx_k_conservativeHeadRichardsMualemVa,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa), 0, 0, 1, 1},
49928 {&__pyx_n_s_conservativeHeadRichardsMualemVa_2, __pyx_k_conservativeHeadRichardsMualemVa_2,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa_2), 0, 0, 1, 1},
49929 {&__pyx_n_s_conservativeHeadRichardsMualemVa_3, __pyx_k_conservativeHeadRichardsMualemVa_3,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa_3), 0, 0, 1, 1},
49930 {&__pyx_n_s_conservativeHeadRichardsMualemVa_4, __pyx_k_conservativeHeadRichardsMualemVa_4,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa_4), 0, 0, 1, 1},
49931 {&__pyx_n_s_conservativeHeadRichardsMualemVa_5, __pyx_k_conservativeHeadRichardsMualemVa_5,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa_5), 0, 0, 1, 1},
49932 {&__pyx_n_s_conservativeHeadRichardsMualemVa_6, __pyx_k_conservativeHeadRichardsMualemVa_6,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa_6), 0, 0, 1, 1},
49933 {&__pyx_n_s_conservativeHeadRichardsMualemVa_7, __pyx_k_conservativeHeadRichardsMualemVa_7,
sizeof(__pyx_k_conservativeHeadRichardsMualemVa_7), 0, 0, 1, 1},
49934 {&__pyx_n_s_conservativeSatRichardsBrooksCor, __pyx_k_conservativeSatRichardsBrooksCor,
sizeof(__pyx_k_conservativeSatRichardsBrooksCor), 0, 0, 1, 1},
49935 {&__pyx_n_s_conservativeSatRichardsMualemVan, __pyx_k_conservativeSatRichardsMualemVan,
sizeof(__pyx_k_conservativeSatRichardsMualemVan), 0, 0, 1, 1},
49936 {&__pyx_n_s_conservativeTotalHeadRichardsMua, __pyx_k_conservativeTotalHeadRichardsMua,
sizeof(__pyx_k_conservativeTotalHeadRichardsMua), 0, 0, 1, 1},
49937 {&__pyx_n_s_constantNormalVelocityLevelSetEv, __pyx_k_constantNormalVelocityLevelSetEv,
sizeof(__pyx_k_constantNormalVelocityLevelSetEv), 0, 0, 1, 1},
49938 {&__pyx_n_s_constantVelocityLevelSetEvaluate, __pyx_k_constantVelocityLevelSetEvaluate,
sizeof(__pyx_k_constantVelocityLevelSetEvaluate), 0, 0, 1, 1},
49939 {&__pyx_n_s_ctransportCoefficients, __pyx_k_ctransportCoefficients,
sizeof(__pyx_k_ctransportCoefficients), 0, 0, 1, 1},
49940 {&__pyx_n_s_d, __pyx_k_d,
sizeof(__pyx_k_d), 0, 0, 1, 1},
49941 {&__pyx_n_s_dH, __pyx_k_dH,
sizeof(__pyx_k_dH), 0, 0, 1, 1},
49942 {&__pyx_n_s_dV, __pyx_k_dV,
sizeof(__pyx_k_dV), 0, 0, 1, 1},
49943 {&__pyx_n_s_d_c, __pyx_k_d_c,
sizeof(__pyx_k_d_c), 0, 0, 1, 1},
49944 {&__pyx_n_s_d_e, __pyx_k_d_e,
sizeof(__pyx_k_d_e), 0, 0, 1, 1},
49945 {&__pyx_n_s_d_h, __pyx_k_d_h,
sizeof(__pyx_k_d_h), 0, 0, 1, 1},
49946 {&__pyx_n_s_d_m, __pyx_k_d_m,
sizeof(__pyx_k_d_m), 0, 0, 1, 1},
49947 {&__pyx_n_s_da, __pyx_k_da,
sizeof(__pyx_k_da), 0, 0, 1, 1},
49948 {&__pyx_n_s_da_avg, __pyx_k_da_avg,
sizeof(__pyx_k_da_avg), 0, 0, 1, 1},
49949 {&__pyx_n_s_da_e_de, __pyx_k_da_e_de,
sizeof(__pyx_k_da_e_de), 0, 0, 1, 1},
49950 {&__pyx_n_s_da_e_dk, __pyx_k_da_e_dk,
sizeof(__pyx_k_da_e_dk), 0, 0, 1, 1},
49951 {&__pyx_n_s_da_k_de, __pyx_k_da_k_de,
sizeof(__pyx_k_da_k_de), 0, 0, 1, 1},
49952 {&__pyx_n_s_da_k_dk, __pyx_k_da_k_dk,
sizeof(__pyx_k_da_k_dk), 0, 0, 1, 1},
49953 {&__pyx_n_s_darcySharpInterfaceFlowEvaluate, __pyx_k_darcySharpInterfaceFlowEvaluate,
sizeof(__pyx_k_darcySharpInterfaceFlowEvaluate), 0, 0, 1, 1},
49954 {&__pyx_n_s_darcySharpInterfaceFlowImEvaluat, __pyx_k_darcySharpInterfaceFlowImEvaluat,
sizeof(__pyx_k_darcySharpInterfaceFlowImEvaluat), 0, 0, 1, 1},
49955 {&__pyx_n_s_db_dx, __pyx_k_db_dx,
sizeof(__pyx_k_db_dx), 0, 0, 1, 1},
49956 {&__pyx_n_s_det_J, __pyx_k_det_J,
sizeof(__pyx_k_det_J), 0, 0, 1, 1},
49957 {&__pyx_n_s_df, __pyx_k_df,
sizeof(__pyx_k_df), 0, 0, 1, 1},
49958 {&__pyx_n_s_df_avg, __pyx_k_df_avg,
sizeof(__pyx_k_df_avg), 0, 0, 1, 1},
49959 {&__pyx_n_s_df_c, __pyx_k_df_c,
sizeof(__pyx_k_df_c), 0, 0, 1, 1},
49960 {&__pyx_n_s_df_e, __pyx_k_df_e,
sizeof(__pyx_k_df_e), 0, 0, 1, 1},
49961 {&__pyx_n_s_df_h, __pyx_k_df_h,
sizeof(__pyx_k_df_h), 0, 0, 1, 1},
49962 {&__pyx_n_s_df_k, __pyx_k_df_k,
sizeof(__pyx_k_df_k), 0, 0, 1, 1},
49963 {&__pyx_n_s_df_m, __pyx_k_df_m,
sizeof(__pyx_k_df_m), 0, 0, 1, 1},
49964 {&__pyx_n_s_dh, __pyx_k_dh,
sizeof(__pyx_k_dh), 0, 0, 1, 1},
49965 {&__pyx_n_s_diffusiveFlux, __pyx_k_diffusiveFlux,
sizeof(__pyx_k_diffusiveFlux), 0, 0, 1, 1},
49966 {&__pyx_n_s_diffusiveWave1DCoefficientsEvalu, __pyx_k_diffusiveWave1DCoefficientsEvalu,
sizeof(__pyx_k_diffusiveWave1DCoefficientsEvalu), 0, 0, 1, 1},
49967 {&__pyx_n_s_diffusiveWave2DCoefficientsEvalu, __pyx_k_diffusiveWave2DCoefficientsEvalu,
sizeof(__pyx_k_diffusiveWave2DCoefficientsEvalu), 0, 0, 1, 1},
49968 {&__pyx_n_s_disRotatingPulseVelEvaluate, __pyx_k_disRotatingPulseVelEvaluate,
sizeof(__pyx_k_disRotatingPulseVelEvaluate), 0, 0, 1, 1},
49969 {&__pyx_n_s_disVelEvaluate, __pyx_k_disVelEvaluate,
sizeof(__pyx_k_disVelEvaluate), 0, 0, 1, 1},
49970 {&__pyx_n_s_dm, __pyx_k_dm,
sizeof(__pyx_k_dm), 0, 0, 1, 1},
49971 {&__pyx_n_s_dm_c, __pyx_k_dm_c,
sizeof(__pyx_k_dm_c), 0, 0, 1, 1},
49972 {&__pyx_n_s_dm_e, __pyx_k_dm_e,
sizeof(__pyx_k_dm_e), 0, 0, 1, 1},
49973 {&__pyx_n_s_dm_h_h, __pyx_k_dm_h_h,
sizeof(__pyx_k_dm_h_h), 0, 0, 1, 1},
49974 {&__pyx_n_s_dm_h_m, __pyx_k_dm_h_m,
sizeof(__pyx_k_dm_h_m), 0, 0, 1, 1},
49975 {&__pyx_n_s_dm_k, __pyx_k_dm_k,
sizeof(__pyx_k_dm_k), 0, 0, 1, 1},
49976 {&__pyx_n_s_dm_m_h, __pyx_k_dm_m_h,
sizeof(__pyx_k_dm_m_h), 0, 0, 1, 1},
49977 {&__pyx_n_s_dm_m_m, __pyx_k_dm_m_m,
sizeof(__pyx_k_dm_m_m), 0, 0, 1, 1},
49978 {&__pyx_n_s_dm_x, __pyx_k_dm_x,
sizeof(__pyx_k_dm_x), 0, 0, 1, 1},
49979 {&__pyx_n_s_dmass, __pyx_k_dmass,
sizeof(__pyx_k_dmass), 0, 0, 1, 1},
49980 {&__pyx_n_s_dmass_acc_dh, __pyx_k_dmass_acc_dh,
sizeof(__pyx_k_dmass_acc_dh), 0, 0, 1, 1},
49981 {&__pyx_n_s_dmass_adv_dhu, __pyx_k_dmass_adv_dhu,
sizeof(__pyx_k_dmass_adv_dhu), 0, 0, 1, 1},
49982 {&__pyx_n_s_dmass_adv_dhv, __pyx_k_dmass_adv_dhv,
sizeof(__pyx_k_dmass_adv_dhv), 0, 0, 1, 1},
49983 {&__pyx_n_s_dmass_adv_p, __pyx_k_dmass_adv_p,
sizeof(__pyx_k_dmass_adv_p), 0, 0, 1, 1},
49984 {&__pyx_n_s_dmass_adv_u, __pyx_k_dmass_adv_u,
sizeof(__pyx_k_dmass_adv_u), 0, 0, 1, 1},
49985 {&__pyx_n_s_dmass_adv_v, __pyx_k_dmass_adv_v,
sizeof(__pyx_k_dmass_adv_v), 0, 0, 1, 1},
49986 {&__pyx_n_s_dmass_adv_w, __pyx_k_dmass_adv_w,
sizeof(__pyx_k_dmass_adv_w), 0, 0, 1, 1},
49987 {&__pyx_n_s_dmom_acc_dhu, __pyx_k_dmom_acc_dhu,
sizeof(__pyx_k_dmom_acc_dhu), 0, 0, 1, 1},
49988 {&__pyx_n_s_dmom_adv_dh, __pyx_k_dmom_adv_dh,
sizeof(__pyx_k_dmom_adv_dh), 0, 0, 1, 1},
49989 {&__pyx_n_s_dmom_adv_dhu, __pyx_k_dmom_adv_dhu,
sizeof(__pyx_k_dmom_adv_dhu), 0, 0, 1, 1},
49990 {&__pyx_n_s_dmom_p_acc_p, __pyx_k_dmom_p_acc_p,
sizeof(__pyx_k_dmom_p_acc_p), 0, 0, 1, 1},
49991 {&__pyx_n_s_dmom_source_dh, __pyx_k_dmom_source_dh,
sizeof(__pyx_k_dmom_source_dh), 0, 0, 1, 1},
49992 {&__pyx_n_s_dmom_source_dhu, __pyx_k_dmom_source_dhu,
sizeof(__pyx_k_dmom_source_dhu), 0, 0, 1, 1},
49993 {&__pyx_n_s_dmom_u_acc_dhu, __pyx_k_dmom_u_acc_dhu,
sizeof(__pyx_k_dmom_u_acc_dhu), 0, 0, 1, 1},
49994 {&__pyx_n_s_dmom_u_acc_u, __pyx_k_dmom_u_acc_u,
sizeof(__pyx_k_dmom_u_acc_u), 0, 0, 1, 1},
49995 {&__pyx_n_s_dmom_u_adv_dh, __pyx_k_dmom_u_adv_dh,
sizeof(__pyx_k_dmom_u_adv_dh), 0, 0, 1, 1},
49996 {&__pyx_n_s_dmom_u_adv_dhu, __pyx_k_dmom_u_adv_dhu,
sizeof(__pyx_k_dmom_u_adv_dhu), 0, 0, 1, 1},
49997 {&__pyx_n_s_dmom_u_adv_dhv, __pyx_k_dmom_u_adv_dhv,
sizeof(__pyx_k_dmom_u_adv_dhv), 0, 0, 1, 1},
49998 {&__pyx_n_s_dmom_u_adv_p, __pyx_k_dmom_u_adv_p,
sizeof(__pyx_k_dmom_u_adv_p), 0, 0, 1, 1},
49999 {&__pyx_n_s_dmom_u_adv_u, __pyx_k_dmom_u_adv_u,
sizeof(__pyx_k_dmom_u_adv_u), 0, 0, 1, 1},
50000 {&__pyx_n_s_dmom_u_adv_v, __pyx_k_dmom_u_adv_v,
sizeof(__pyx_k_dmom_u_adv_v), 0, 0, 1, 1},
50001 {&__pyx_n_s_dmom_u_adv_w, __pyx_k_dmom_u_adv_w,
sizeof(__pyx_k_dmom_u_adv_w), 0, 0, 1, 1},
50002 {&__pyx_n_s_dmom_u_ham_grad_p, __pyx_k_dmom_u_ham_grad_p,
sizeof(__pyx_k_dmom_u_ham_grad_p), 0, 0, 1, 1},
50003 {&__pyx_n_s_dmom_u_source_dh, __pyx_k_dmom_u_source_dh,
sizeof(__pyx_k_dmom_u_source_dh), 0, 0, 1, 1},
50004 {&__pyx_n_s_dmom_u_source_dhu, __pyx_k_dmom_u_source_dhu,
sizeof(__pyx_k_dmom_u_source_dhu), 0, 0, 1, 1},
50005 {&__pyx_n_s_dmom_u_source_dhv, __pyx_k_dmom_u_source_dhv,
sizeof(__pyx_k_dmom_u_source_dhv), 0, 0, 1, 1},
50006 {&__pyx_n_s_dmom_u_source_u, __pyx_k_dmom_u_source_u,
sizeof(__pyx_k_dmom_u_source_u), 0, 0, 1, 1},
50007 {&__pyx_n_s_dmom_u_source_v, __pyx_k_dmom_u_source_v,
sizeof(__pyx_k_dmom_u_source_v), 0, 0, 1, 1},
50008 {&__pyx_n_s_dmom_u_source_w, __pyx_k_dmom_u_source_w,
sizeof(__pyx_k_dmom_u_source_w), 0, 0, 1, 1},
50009 {&__pyx_n_s_dmom_v_acc_dhv, __pyx_k_dmom_v_acc_dhv,
sizeof(__pyx_k_dmom_v_acc_dhv), 0, 0, 1, 1},
50010 {&__pyx_n_s_dmom_v_acc_v, __pyx_k_dmom_v_acc_v,
sizeof(__pyx_k_dmom_v_acc_v), 0, 0, 1, 1},
50011 {&__pyx_n_s_dmom_v_adv_dh, __pyx_k_dmom_v_adv_dh,
sizeof(__pyx_k_dmom_v_adv_dh), 0, 0, 1, 1},
50012 {&__pyx_n_s_dmom_v_adv_dhu, __pyx_k_dmom_v_adv_dhu,
sizeof(__pyx_k_dmom_v_adv_dhu), 0, 0, 1, 1},
50013 {&__pyx_n_s_dmom_v_adv_dhv, __pyx_k_dmom_v_adv_dhv,
sizeof(__pyx_k_dmom_v_adv_dhv), 0, 0, 1, 1},
50014 {&__pyx_n_s_dmom_v_adv_p, __pyx_k_dmom_v_adv_p,
sizeof(__pyx_k_dmom_v_adv_p), 0, 0, 1, 1},
50015 {&__pyx_n_s_dmom_v_adv_u, __pyx_k_dmom_v_adv_u,
sizeof(__pyx_k_dmom_v_adv_u), 0, 0, 1, 1},
50016 {&__pyx_n_s_dmom_v_adv_v, __pyx_k_dmom_v_adv_v,
sizeof(__pyx_k_dmom_v_adv_v), 0, 0, 1, 1},
50017 {&__pyx_n_s_dmom_v_adv_w, __pyx_k_dmom_v_adv_w,
sizeof(__pyx_k_dmom_v_adv_w), 0, 0, 1, 1},
50018 {&__pyx_n_s_dmom_v_ham_grad_p, __pyx_k_dmom_v_ham_grad_p,
sizeof(__pyx_k_dmom_v_ham_grad_p), 0, 0, 1, 1},
50019 {&__pyx_n_s_dmom_v_source_dh, __pyx_k_dmom_v_source_dh,
sizeof(__pyx_k_dmom_v_source_dh), 0, 0, 1, 1},
50020 {&__pyx_n_s_dmom_v_source_dhu, __pyx_k_dmom_v_source_dhu,
sizeof(__pyx_k_dmom_v_source_dhu), 0, 0, 1, 1},
50021 {&__pyx_n_s_dmom_v_source_dhv, __pyx_k_dmom_v_source_dhv,
sizeof(__pyx_k_dmom_v_source_dhv), 0, 0, 1, 1},
50022 {&__pyx_n_s_dmom_v_source_u, __pyx_k_dmom_v_source_u,
sizeof(__pyx_k_dmom_v_source_u), 0, 0, 1, 1},
50023 {&__pyx_n_s_dmom_v_source_v, __pyx_k_dmom_v_source_v,
sizeof(__pyx_k_dmom_v_source_v), 0, 0, 1, 1},
50024 {&__pyx_n_s_dmom_v_source_w, __pyx_k_dmom_v_source_w,
sizeof(__pyx_k_dmom_v_source_w), 0, 0, 1, 1},
50025 {&__pyx_n_s_dmom_w_acc_w, __pyx_k_dmom_w_acc_w,
sizeof(__pyx_k_dmom_w_acc_w), 0, 0, 1, 1},
50026 {&__pyx_n_s_dmom_w_adv_p, __pyx_k_dmom_w_adv_p,
sizeof(__pyx_k_dmom_w_adv_p), 0, 0, 1, 1},
50027 {&__pyx_n_s_dmom_w_adv_u, __pyx_k_dmom_w_adv_u,
sizeof(__pyx_k_dmom_w_adv_u), 0, 0, 1, 1},
50028 {&__pyx_n_s_dmom_w_adv_v, __pyx_k_dmom_w_adv_v,
sizeof(__pyx_k_dmom_w_adv_v), 0, 0, 1, 1},
50029 {&__pyx_n_s_dmom_w_adv_w, __pyx_k_dmom_w_adv_w,
sizeof(__pyx_k_dmom_w_adv_w), 0, 0, 1, 1},
50030 {&__pyx_n_s_dmom_w_ham_grad_p, __pyx_k_dmom_w_ham_grad_p,
sizeof(__pyx_k_dmom_w_ham_grad_p), 0, 0, 1, 1},
50031 {&__pyx_n_s_dmom_w_source_u, __pyx_k_dmom_w_source_u,
sizeof(__pyx_k_dmom_w_source_u), 0, 0, 1, 1},
50032 {&__pyx_n_s_dmom_w_source_v, __pyx_k_dmom_w_source_v,
sizeof(__pyx_k_dmom_w_source_v), 0, 0, 1, 1},
50033 {&__pyx_n_s_dmom_w_source_w, __pyx_k_dmom_w_source_w,
sizeof(__pyx_k_dmom_w_source_w), 0, 0, 1, 1},
50034 {&__pyx_n_s_dphi, __pyx_k_dphi,
sizeof(__pyx_k_dphi), 0, 0, 1, 1},
50035 {&__pyx_n_s_dphi_e, __pyx_k_dphi_e,
sizeof(__pyx_k_dphi_e), 0, 0, 1, 1},
50036 {&__pyx_n_s_dphi_h, __pyx_k_dphi_h,
sizeof(__pyx_k_dphi_h), 0, 0, 1, 1},
50037 {&__pyx_n_s_dphi_k, __pyx_k_dphi_k,
sizeof(__pyx_k_dphi_k), 0, 0, 1, 1},
50038 {&__pyx_n_s_dphi_pot, __pyx_k_dphi_pot,
sizeof(__pyx_k_dphi_pot), 0, 0, 1, 1},
50039 {&__pyx_n_s_dr, __pyx_k_dr,
sizeof(__pyx_k_dr), 0, 0, 1, 1},
50040 {&__pyx_n_s_dr_c_dc, __pyx_k_dr_c_dc,
sizeof(__pyx_k_dr_c_dc), 0, 0, 1, 1},
50041 {&__pyx_n_s_dr_c_de, __pyx_k_dr_c_de,
sizeof(__pyx_k_dr_c_de), 0, 0, 1, 1},
50042 {&__pyx_n_s_dr_c_dx, __pyx_k_dr_c_dx,
sizeof(__pyx_k_dr_c_dx), 0, 0, 1, 1},
50043 {&__pyx_n_s_dr_e_dc, __pyx_k_dr_e_dc,
sizeof(__pyx_k_dr_e_dc), 0, 0, 1, 1},
50044 {&__pyx_n_s_dr_e_de, __pyx_k_dr_e_de,
sizeof(__pyx_k_dr_e_de), 0, 0, 1, 1},
50045 {&__pyx_n_s_dr_e_dk, __pyx_k_dr_e_dk,
sizeof(__pyx_k_dr_e_dk), 0, 0, 1, 1},
50046 {&__pyx_n_s_dr_e_dx, __pyx_k_dr_e_dx,
sizeof(__pyx_k_dr_e_dx), 0, 0, 1, 1},
50047 {&__pyx_n_s_dr_h_dh, __pyx_k_dr_h_dh,
sizeof(__pyx_k_dr_h_dh), 0, 0, 1, 1},
50048 {&__pyx_n_s_dr_h_dm, __pyx_k_dr_h_dm,
sizeof(__pyx_k_dr_h_dm), 0, 0, 1, 1},
50049 {&__pyx_n_s_dr_k_de, __pyx_k_dr_k_de,
sizeof(__pyx_k_dr_k_de), 0, 0, 1, 1},
50050 {&__pyx_n_s_dr_k_dk, __pyx_k_dr_k_dk,
sizeof(__pyx_k_dr_k_dk), 0, 0, 1, 1},
50051 {&__pyx_n_s_dr_m_dh, __pyx_k_dr_m_dh,
sizeof(__pyx_k_dr_m_dh), 0, 0, 1, 1},
50052 {&__pyx_n_s_dr_m_dm, __pyx_k_dr_m_dm,
sizeof(__pyx_k_dr_m_dm), 0, 0, 1, 1},
50053 {&__pyx_n_s_dr_x_dc, __pyx_k_dr_x_dc,
sizeof(__pyx_k_dr_x_dc), 0, 0, 1, 1},
50054 {&__pyx_n_s_dr_x_de, __pyx_k_dr_x_de,
sizeof(__pyx_k_dr_x_de), 0, 0, 1, 1},
50055 {&__pyx_n_s_dr_x_dx, __pyx_k_dr_x_dx,
sizeof(__pyx_k_dr_x_dx), 0, 0, 1, 1},
50056 {&__pyx_n_s_eddyViscosity, __pyx_k_eddyViscosity,
sizeof(__pyx_k_eddyViscosity), 0, 0, 1, 1},
50057 {&__pyx_n_s_eddyViscosity_2D_Update, __pyx_k_eddyViscosity_2D_Update,
sizeof(__pyx_k_eddyViscosity_2D_Update), 0, 0, 1, 1},
50058 {&__pyx_n_s_eddyViscosity_2D_Update_sd, __pyx_k_eddyViscosity_2D_Update_sd,
sizeof(__pyx_k_eddyViscosity_2D_Update_sd), 0, 0, 1, 1},
50059 {&__pyx_n_s_eddyViscosity_3D_Update, __pyx_k_eddyViscosity_3D_Update,
sizeof(__pyx_k_eddyViscosity_3D_Update), 0, 0, 1, 1},
50060 {&__pyx_n_s_eddyViscosity_3D_Update_sd, __pyx_k_eddyViscosity_3D_Update_sd,
sizeof(__pyx_k_eddyViscosity_3D_Update_sd), 0, 0, 1, 1},
50061 {&__pyx_n_s_eikonalEquationEvaluate, __pyx_k_eikonalEquationEvaluate,
sizeof(__pyx_k_eikonalEquationEvaluate), 0, 0, 1, 1},
50062 {&__pyx_n_s_elementBoundaryElementsArray, __pyx_k_elementBoundaryElementsArray,
sizeof(__pyx_k_elementBoundaryElementsArray), 0, 0, 1, 1},
50063 {&__pyx_n_s_elementDiameter, __pyx_k_elementDiameter,
sizeof(__pyx_k_elementDiameter), 0, 0, 1, 1},
50064 {&__pyx_n_s_elementDiametersArray, __pyx_k_elementDiametersArray,
sizeof(__pyx_k_elementDiametersArray), 0, 0, 1, 1},
50065 {&__pyx_n_s_eps, __pyx_k_eps,
sizeof(__pyx_k_eps), 0, 0, 1, 1},
50066 {&__pyx_n_s_epsDiffusion, __pyx_k_epsDiffusion,
sizeof(__pyx_k_epsDiffusion), 0, 0, 1, 1},
50067 {&__pyx_n_s_epsDirac, __pyx_k_epsDirac,
sizeof(__pyx_k_epsDirac), 0, 0, 1, 1},
50068 {&__pyx_n_s_epsFact, __pyx_k_epsFact,
sizeof(__pyx_k_epsFact), 0, 0, 1, 1},
50069 {&__pyx_n_s_epsHeaviside, __pyx_k_epsHeaviside,
sizeof(__pyx_k_epsHeaviside), 0, 0, 1, 1},
50070 {&__pyx_n_s_eps_mu, __pyx_k_eps_mu,
sizeof(__pyx_k_eps_mu), 0, 0, 1, 1},
50071 {&__pyx_n_s_eps_rho, __pyx_k_eps_rho,
sizeof(__pyx_k_eps_rho), 0, 0, 1, 1},
50072 {&__pyx_n_s_epsilon, __pyx_k_epsilon,
sizeof(__pyx_k_epsilon), 0, 0, 1, 1},
50073 {&__pyx_n_s_epsilon_freeze_factor, __pyx_k_epsilon_freeze_factor,
sizeof(__pyx_k_epsilon_freeze_factor), 0, 0, 1, 1},
50074 {&__pyx_n_s_evaluateBuckleyLeverettLiuExampl, __pyx_k_evaluateBuckleyLeverettLiuExampl,
sizeof(__pyx_k_evaluateBuckleyLeverettLiuExampl), 0, 0, 1, 1},
50075 {&__pyx_n_s_f, __pyx_k_f,
sizeof(__pyx_k_f), 0, 0, 1, 1},
50076 {&__pyx_n_s_f_avg, __pyx_k_f_avg,
sizeof(__pyx_k_f_avg), 0, 0, 1, 1},
50077 {&__pyx_n_s_f_c, __pyx_k_f_c,
sizeof(__pyx_k_f_c), 0, 0, 1, 1},
50078 {&__pyx_n_s_f_e, __pyx_k_f_e,
sizeof(__pyx_k_f_e), 0, 0, 1, 1},
50079 {&__pyx_n_s_f_h, __pyx_k_f_h,
sizeof(__pyx_k_f_h), 0, 0, 1, 1},
50080 {&__pyx_n_s_f_k, __pyx_k_f_k,
sizeof(__pyx_k_f_k), 0, 0, 1, 1},
50081 {&__pyx_n_s_f_m, __pyx_k_f_m,
sizeof(__pyx_k_f_m), 0, 0, 1, 1},
50082 {&__pyx_n_s_fluxJacobian, __pyx_k_fluxJacobian,
sizeof(__pyx_k_fluxJacobian), 0, 0, 1, 1},
50083 {&__pyx_n_s_freeze_nodes_tmp, __pyx_k_freeze_nodes_tmp,
sizeof(__pyx_k_freeze_nodes_tmp), 0, 0, 1, 1},
50084 {&__pyx_n_s_g, __pyx_k_g,
sizeof(__pyx_k_g), 0, 0, 1, 1},
50085 {&__pyx_n_s_gamma, __pyx_k_gamma,
sizeof(__pyx_k_gamma), 0, 0, 1, 1},
50086 {&__pyx_n_s_grad_b, __pyx_k_grad_b,
sizeof(__pyx_k_grad_b), 0, 0, 1, 1},
50087 {&__pyx_n_s_grad_k, __pyx_k_grad_k,
sizeof(__pyx_k_grad_k), 0, 0, 1, 1},
50088 {&__pyx_n_s_grad_p, __pyx_k_grad_p,
sizeof(__pyx_k_grad_p), 0, 0, 1, 1},
50089 {&__pyx_n_s_grad_phi, __pyx_k_grad_phi,
sizeof(__pyx_k_grad_phi), 0, 0, 1, 1},
50090 {&__pyx_n_s_grad_u, __pyx_k_grad_u,
sizeof(__pyx_k_grad_u), 0, 0, 1, 1},
50091 {&__pyx_n_s_grad_v, __pyx_k_grad_v,
sizeof(__pyx_k_grad_v), 0, 0, 1, 1},
50092 {&__pyx_n_s_grad_w, __pyx_k_grad_w,
sizeof(__pyx_k_grad_w), 0, 0, 1, 1},
50093 {&__pyx_n_s_gradu, __pyx_k_gradu,
sizeof(__pyx_k_gradu), 0, 0, 1, 1},
50094 {&__pyx_n_s_gradv, __pyx_k_gradv,
sizeof(__pyx_k_gradv), 0, 0, 1, 1},
50095 {&__pyx_n_s_gradw, __pyx_k_gradw,
sizeof(__pyx_k_gradw), 0, 0, 1, 1},
50096 {&__pyx_n_s_gravity, __pyx_k_gravity,
sizeof(__pyx_k_gravity), 0, 0, 1, 1},
50097 {&__pyx_n_s_gravity_u, __pyx_k_gravity_u,
sizeof(__pyx_k_gravity_u), 0, 0, 1, 1},
50098 {&__pyx_n_s_groundwaterBiodegradation01Evalu, __pyx_k_groundwaterBiodegradation01Evalu,
sizeof(__pyx_k_groundwaterBiodegradation01Evalu), 0, 0, 1, 1},
50099 {&__pyx_n_s_groundwaterBryantDawsonIonExEval, __pyx_k_groundwaterBryantDawsonIonExEval,
sizeof(__pyx_k_groundwaterBryantDawsonIonExEval), 0, 0, 1, 1},
50100 {&__pyx_n_s_groundwaterTransportCoefficients, __pyx_k_groundwaterTransportCoefficients,
sizeof(__pyx_k_groundwaterTransportCoefficients), 0, 0, 1, 1},
50101 {&__pyx_n_s_groundwaterTransportCoefficients_2, __pyx_k_groundwaterTransportCoefficients_2,
sizeof(__pyx_k_groundwaterTransportCoefficients_2), 0, 0, 1, 1},
50102 {&__pyx_n_s_h, __pyx_k_h,
sizeof(__pyx_k_h), 0, 0, 1, 1},
50103 {&__pyx_n_s_h_e, __pyx_k_h_e,
sizeof(__pyx_k_h_e), 0, 0, 1, 1},
50104 {&__pyx_n_s_h_eps, __pyx_k_h_eps,
sizeof(__pyx_k_h_eps), 0, 0, 1, 1},
50105 {&__pyx_n_s_hu, __pyx_k_hu,
sizeof(__pyx_k_hu), 0, 0, 1, 1},
50106 {&__pyx_n_s_hv, __pyx_k_hv,
sizeof(__pyx_k_hv), 0, 0, 1, 1},
50107 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
50108 {&__pyx_n_s_isDOFBoundary, __pyx_k_isDOFBoundary,
sizeof(__pyx_k_isDOFBoundary), 0, 0, 1, 1},
50109 {&__pyx_n_s_k, __pyx_k_k,
sizeof(__pyx_k_k), 0, 0, 1, 1},
50110 {&__pyx_n_s_kEpsilon_2D_Evaluate, __pyx_k_kEpsilon_2D_Evaluate,
sizeof(__pyx_k_kEpsilon_2D_Evaluate), 0, 0, 1, 1},
50111 {&__pyx_n_s_kEpsilon_2D_Evaluate_sd, __pyx_k_kEpsilon_2D_Evaluate_sd,
sizeof(__pyx_k_kEpsilon_2D_Evaluate_sd), 0, 0, 1, 1},
50112 {&__pyx_n_s_kEpsilon_3D_Evaluate, __pyx_k_kEpsilon_3D_Evaluate,
sizeof(__pyx_k_kEpsilon_3D_Evaluate), 0, 0, 1, 1},
50113 {&__pyx_n_s_kEpsilon_3D_Evaluate_sd, __pyx_k_kEpsilon_3D_Evaluate_sd,
sizeof(__pyx_k_kEpsilon_3D_Evaluate_sd), 0, 0, 1, 1},
50114 {&__pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd, __pyx_k_kEpsilon_epsilon_2D_Evaluate_sd,
sizeof(__pyx_k_kEpsilon_epsilon_2D_Evaluate_sd), 0, 0, 1, 1},
50115 {&__pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd, __pyx_k_kEpsilon_epsilon_3D_Evaluate_sd,
sizeof(__pyx_k_kEpsilon_epsilon_3D_Evaluate_sd), 0, 0, 1, 1},
50116 {&__pyx_n_s_kEpsilon_k_2D_Evaluate_sd, __pyx_k_kEpsilon_k_2D_Evaluate_sd,
sizeof(__pyx_k_kEpsilon_k_2D_Evaluate_sd), 0, 0, 1, 1},
50117 {&__pyx_n_s_kEpsilon_k_3D_Evaluate_sd, __pyx_k_kEpsilon_k_3D_Evaluate_sd,
sizeof(__pyx_k_kEpsilon_k_3D_Evaluate_sd), 0, 0, 1, 1},
50118 {&__pyx_n_s_k_d, __pyx_k_k_d,
sizeof(__pyx_k_k_d), 0, 0, 1, 1},
50119 {&__pyx_n_s_kappa, __pyx_k_kappa,
sizeof(__pyx_k_kappa), 0, 0, 1, 1},
50120 {&__pyx_n_s_killNonlinearDrag, __pyx_k_killNonlinearDrag,
sizeof(__pyx_k_killNonlinearDrag), 0, 0, 1, 1},
50121 {&__pyx_n_s_kr0, __pyx_k_kr0,
sizeof(__pyx_k_kr0), 0, 0, 1, 1},
50122 {&__pyx_n_s_kr0x, __pyx_k_kr0x,
sizeof(__pyx_k_kr0x), 0, 0, 1, 1},
50123 {&__pyx_n_s_kr0y, __pyx_k_kr0y,
sizeof(__pyx_k_kr0y), 0, 0, 1, 1},
50124 {&__pyx_n_s_kr0z, __pyx_k_kr0z,
sizeof(__pyx_k_kr0z), 0, 0, 1, 1},
50125 {&__pyx_n_s_l2project2Tensor, __pyx_k_l2project2Tensor,
sizeof(__pyx_k_l2project2Tensor), 0, 0, 1, 1},
50126 {&__pyx_n_s_l2projectScalar, __pyx_k_l2projectScalar,
sizeof(__pyx_k_l2projectScalar), 0, 0, 1, 1},
50127 {&__pyx_n_s_l2projectVector, __pyx_k_l2projectVector,
sizeof(__pyx_k_l2projectVector), 0, 0, 1, 1},
50128 {&__pyx_n_s_levelSetConservationCoefficients, __pyx_k_levelSetConservationCoefficients,
sizeof(__pyx_k_levelSetConservationCoefficients), 0, 0, 1, 1},
50129 {&__pyx_n_s_levelSetConservationCoefficients_2, __pyx_k_levelSetConservationCoefficients_2,
sizeof(__pyx_k_levelSetConservationCoefficients_2), 0, 0, 1, 1},
50130 {&__pyx_n_s_levelSetCurvatureCoefficientsEva, __pyx_k_levelSetCurvatureCoefficientsEva,
sizeof(__pyx_k_levelSetCurvatureCoefficientsEva), 0, 0, 1, 1},
50131 {&__pyx_n_s_linearADR_ConstantCoefficientsEv, __pyx_k_linearADR_ConstantCoefficientsEv,
sizeof(__pyx_k_linearADR_ConstantCoefficientsEv), 0, 0, 1, 1},
50132 {&__pyx_n_s_linearize_at_zero, __pyx_k_linearize_at_zero,
sizeof(__pyx_k_linearize_at_zero), 0, 0, 1, 1},
50133 {&__pyx_n_s_m, __pyx_k_m,
sizeof(__pyx_k_m), 0, 0, 1, 1},
50134 {&__pyx_n_s_m_c, __pyx_k_m_c,
sizeof(__pyx_k_m_c), 0, 0, 1, 1},
50135 {&__pyx_n_s_m_e, __pyx_k_m_e,
sizeof(__pyx_k_m_e), 0, 0, 1, 1},
50136 {&__pyx_n_s_m_h, __pyx_k_m_h,
sizeof(__pyx_k_m_h), 0, 0, 1, 1},
50137 {&__pyx_n_s_m_k, __pyx_k_m_k,
sizeof(__pyx_k_m_k), 0, 0, 1, 1},
50138 {&__pyx_n_s_m_m, __pyx_k_m_m,
sizeof(__pyx_k_m_m), 0, 0, 1, 1},
50139 {&__pyx_n_s_m_x, __pyx_k_m_x,
sizeof(__pyx_k_m_x), 0, 0, 1, 1},
50140 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
50141 {&__pyx_n_s_mass, __pyx_k_mass,
sizeof(__pyx_k_mass), 0, 0, 1, 1},
50142 {&__pyx_n_s_mass_acc, __pyx_k_mass_acc,
sizeof(__pyx_k_mass_acc), 0, 0, 1, 1},
50143 {&__pyx_n_s_mass_adv, __pyx_k_mass_adv,
sizeof(__pyx_k_mass_adv), 0, 0, 1, 1},
50144 {&__pyx_n_s_materialTypes, __pyx_k_materialTypes,
sizeof(__pyx_k_materialTypes), 0, 0, 1, 1},
50145 {&__pyx_n_s_meanGrainSize, __pyx_k_meanGrainSize,
sizeof(__pyx_k_meanGrainSize), 0, 0, 1, 1},
50146 {&__pyx_n_s_mesh_dof, __pyx_k_mesh_dof,
sizeof(__pyx_k_mesh_dof), 0, 0, 1, 1},
50147 {&__pyx_n_s_mesh_l2g, __pyx_k_mesh_l2g,
sizeof(__pyx_k_mesh_l2g), 0, 0, 1, 1},
50148 {&__pyx_n_s_mesh_trial_ref, __pyx_k_mesh_trial_ref,
sizeof(__pyx_k_mesh_trial_ref), 0, 0, 1, 1},
50149 {&__pyx_n_s_mom_acc, __pyx_k_mom_acc,
sizeof(__pyx_k_mom_acc), 0, 0, 1, 1},
50150 {&__pyx_n_s_mom_adv, __pyx_k_mom_adv,
sizeof(__pyx_k_mom_adv), 0, 0, 1, 1},
50151 {&__pyx_n_s_mom_diff, __pyx_k_mom_diff,
sizeof(__pyx_k_mom_diff), 0, 0, 1, 1},
50152 {&__pyx_n_s_mom_p_acc, __pyx_k_mom_p_acc,
sizeof(__pyx_k_mom_p_acc), 0, 0, 1, 1},
50153 {&__pyx_n_s_mom_p_diff_ten, __pyx_k_mom_p_diff_ten,
sizeof(__pyx_k_mom_p_diff_ten), 0, 0, 1, 1},
50154 {&__pyx_n_s_mom_source, __pyx_k_mom_source,
sizeof(__pyx_k_mom_source), 0, 0, 1, 1},
50155 {&__pyx_n_s_mom_u_acc, __pyx_k_mom_u_acc,
sizeof(__pyx_k_mom_u_acc), 0, 0, 1, 1},
50156 {&__pyx_n_s_mom_u_adv, __pyx_k_mom_u_adv,
sizeof(__pyx_k_mom_u_adv), 0, 0, 1, 1},
50157 {&__pyx_n_s_mom_u_diff, __pyx_k_mom_u_diff,
sizeof(__pyx_k_mom_u_diff), 0, 0, 1, 1},
50158 {&__pyx_n_s_mom_u_diff_ten, __pyx_k_mom_u_diff_ten,
sizeof(__pyx_k_mom_u_diff_ten), 0, 0, 1, 1},
50159 {&__pyx_n_s_mom_u_ham, __pyx_k_mom_u_ham,
sizeof(__pyx_k_mom_u_ham), 0, 0, 1, 1},
50160 {&__pyx_n_s_mom_u_source, __pyx_k_mom_u_source,
sizeof(__pyx_k_mom_u_source), 0, 0, 1, 1},
50161 {&__pyx_n_s_mom_uv_diff_ten, __pyx_k_mom_uv_diff_ten,
sizeof(__pyx_k_mom_uv_diff_ten), 0, 0, 1, 1},
50162 {&__pyx_n_s_mom_uw_diff_ten, __pyx_k_mom_uw_diff_ten,
sizeof(__pyx_k_mom_uw_diff_ten), 0, 0, 1, 1},
50163 {&__pyx_n_s_mom_v_acc, __pyx_k_mom_v_acc,
sizeof(__pyx_k_mom_v_acc), 0, 0, 1, 1},
50164 {&__pyx_n_s_mom_v_adv, __pyx_k_mom_v_adv,
sizeof(__pyx_k_mom_v_adv), 0, 0, 1, 1},
50165 {&__pyx_n_s_mom_v_diff, __pyx_k_mom_v_diff,
sizeof(__pyx_k_mom_v_diff), 0, 0, 1, 1},
50166 {&__pyx_n_s_mom_v_diff_ten, __pyx_k_mom_v_diff_ten,
sizeof(__pyx_k_mom_v_diff_ten), 0, 0, 1, 1},
50167 {&__pyx_n_s_mom_v_ham, __pyx_k_mom_v_ham,
sizeof(__pyx_k_mom_v_ham), 0, 0, 1, 1},
50168 {&__pyx_n_s_mom_v_source, __pyx_k_mom_v_source,
sizeof(__pyx_k_mom_v_source), 0, 0, 1, 1},
50169 {&__pyx_n_s_mom_vu_diff_ten, __pyx_k_mom_vu_diff_ten,
sizeof(__pyx_k_mom_vu_diff_ten), 0, 0, 1, 1},
50170 {&__pyx_n_s_mom_vw_diff_ten, __pyx_k_mom_vw_diff_ten,
sizeof(__pyx_k_mom_vw_diff_ten), 0, 0, 1, 1},
50171 {&__pyx_n_s_mom_w_acc, __pyx_k_mom_w_acc,
sizeof(__pyx_k_mom_w_acc), 0, 0, 1, 1},
50172 {&__pyx_n_s_mom_w_adv, __pyx_k_mom_w_adv,
sizeof(__pyx_k_mom_w_adv), 0, 0, 1, 1},
50173 {&__pyx_n_s_mom_w_diff_ten, __pyx_k_mom_w_diff_ten,
sizeof(__pyx_k_mom_w_diff_ten), 0, 0, 1, 1},
50174 {&__pyx_n_s_mom_w_ham, __pyx_k_mom_w_ham,
sizeof(__pyx_k_mom_w_ham), 0, 0, 1, 1},
50175 {&__pyx_n_s_mom_w_source, __pyx_k_mom_w_source,
sizeof(__pyx_k_mom_w_source), 0, 0, 1, 1},
50176 {&__pyx_n_s_mom_wu_diff_ten, __pyx_k_mom_wu_diff_ten,
sizeof(__pyx_k_mom_wu_diff_ten), 0, 0, 1, 1},
50177 {&__pyx_n_s_mom_wv_diff_ten, __pyx_k_mom_wv_diff_ten,
sizeof(__pyx_k_mom_wv_diff_ten), 0, 0, 1, 1},
50178 {&__pyx_n_s_mu, __pyx_k_mu,
sizeof(__pyx_k_mu), 0, 0, 1, 1},
50179 {&__pyx_n_s_n, __pyx_k_n,
sizeof(__pyx_k_n), 0, 0, 1, 1},
50180 {&__pyx_n_s_nDOF_trial_element, __pyx_k_nDOF_trial_element,
sizeof(__pyx_k_nDOF_trial_element), 0, 0, 1, 1},
50181 {&__pyx_n_s_nElements_global, __pyx_k_nElements_global,
sizeof(__pyx_k_nElements_global), 0, 0, 1, 1},
50182 {&__pyx_n_s_nPoints, __pyx_k_nPoints,
sizeof(__pyx_k_nPoints), 0, 0, 1, 1},
50183 {&__pyx_n_s_nPointsPerSimplex, __pyx_k_nPointsPerSimplex,
sizeof(__pyx_k_nPointsPerSimplex), 0, 0, 1, 1},
50184 {&__pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_k_nQuadraturePoints_elementBoundar,
sizeof(__pyx_k_nQuadraturePoints_elementBoundar), 0, 0, 1, 1},
50185 {&__pyx_n_s_nSimplex, __pyx_k_nSimplex,
sizeof(__pyx_k_nSimplex), 0, 0, 1, 1},
50186 {&__pyx_n_s_nSimplices, __pyx_k_nSimplices,
sizeof(__pyx_k_nSimplices), 0, 0, 1, 1},
50187 {&__pyx_n_s_nSpace, __pyx_k_nSpace,
sizeof(__pyx_k_nSpace), 0, 0, 1, 1},
50188 {&__pyx_n_s_n_global, __pyx_k_n_global,
sizeof(__pyx_k_n_global), 0, 0, 1, 1},
50189 {&__pyx_n_s_n_s, __pyx_k_n_s,
sizeof(__pyx_k_n_s), 0, 0, 1, 1},
50190 {&__pyx_n_s_n_vg, __pyx_k_n_vg,
sizeof(__pyx_k_n_vg), 0, 0, 1, 1},
50191 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
50192 {&__pyx_n_s_ncLevelSetCoefficientsEvaluate, __pyx_k_ncLevelSetCoefficientsEvaluate,
sizeof(__pyx_k_ncLevelSetCoefficientsEvaluate), 0, 0, 1, 1},
50193 {&__pyx_n_s_nd, __pyx_k_nd,
sizeof(__pyx_k_nd), 0, 0, 1, 1},
50194 {&__pyx_n_s_nk, __pyx_k_nk,
sizeof(__pyx_k_nk), 0, 0, 1, 1},
50195 {&__pyx_n_s_nonlinearADR_pqrstDualEvaluate, __pyx_k_nonlinearADR_pqrstDualEvaluate,
sizeof(__pyx_k_nonlinearADR_pqrstDualEvaluate), 0, 0, 1, 1},
50196 {&__pyx_n_s_nonlinearADR_pqrstEvaluate, __pyx_k_nonlinearADR_pqrstEvaluate,
sizeof(__pyx_k_nonlinearADR_pqrstEvaluate), 0, 0, 1, 1},
50197 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
50198 {&__pyx_n_s_ns, __pyx_k_ns,
sizeof(__pyx_k_ns), 0, 0, 1, 1},
50199 {&__pyx_n_s_nu, __pyx_k_nu,
sizeof(__pyx_k_nu), 0, 0, 1, 1},
50200 {&__pyx_n_s_nu_0, __pyx_k_nu_0,
sizeof(__pyx_k_nu_0), 0, 0, 1, 1},
50201 {&__pyx_n_s_nu_1, __pyx_k_nu_1,
sizeof(__pyx_k_nu_1), 0, 0, 1, 1},
50202 {&__pyx_n_s_nu_s, __pyx_k_nu_s,
sizeof(__pyx_k_nu_s), 0, 0, 1, 1},
50203 {&__pyx_n_s_nu_t, __pyx_k_nu_t,
sizeof(__pyx_k_nu_t), 0, 0, 1, 1},
50204 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
50205 {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to,
sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0},
50206 {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor,
sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0},
50207 {&__pyx_n_s_offset, __pyx_k_offset,
sizeof(__pyx_k_offset), 0, 0, 1, 1},
50208 {&__pyx_n_s_omega, __pyx_k_omega,
sizeof(__pyx_k_omega), 0, 0, 1, 1},
50209 {&__pyx_n_s_omega_s_x, __pyx_k_omega_s_x,
sizeof(__pyx_k_omega_s_x), 0, 0, 1, 1},
50210 {&__pyx_n_s_omega_s_y, __pyx_k_omega_s_y,
sizeof(__pyx_k_omega_s_y), 0, 0, 1, 1},
50211 {&__pyx_n_s_omega_s_z, __pyx_k_omega_s_z,
sizeof(__pyx_k_omega_s_z), 0, 0, 1, 1},
50212 {&__pyx_n_s_omega_types, __pyx_k_omega_types,
sizeof(__pyx_k_omega_types), 0, 0, 1, 1},
50213 {&__pyx_n_s_p, __pyx_k_p,
sizeof(__pyx_k_p), 0, 0, 1, 1},
50214 {&__pyx_n_s_p1, __pyx_k_p1,
sizeof(__pyx_k_p1), 0, 0, 1, 1},
50215 {&__pyx_n_s_p2, __pyx_k_p2,
sizeof(__pyx_k_p2), 0, 0, 1, 1},
50216 {&__pyx_n_s_p_pow, __pyx_k_p_pow,
sizeof(__pyx_k_p_pow), 0, 0, 1, 1},
50217 {&__pyx_n_s_pc_eps, __pyx_k_pc_eps,
sizeof(__pyx_k_pc_eps), 0, 0, 1, 1},
50218 {&__pyx_n_s_pd, __pyx_k_pd,
sizeof(__pyx_k_pd), 0, 0, 1, 1},
50219 {&__pyx_n_s_phi, __pyx_k_phi,
sizeof(__pyx_k_phi), 0, 0, 1, 1},
50220 {&__pyx_n_s_phi_e, __pyx_k_phi_e,
sizeof(__pyx_k_phi_e), 0, 0, 1, 1},
50221 {&__pyx_n_s_phi_h, __pyx_k_phi_h,
sizeof(__pyx_k_phi_h), 0, 0, 1, 1},
50222 {&__pyx_n_s_phi_k, __pyx_k_phi_k,
sizeof(__pyx_k_phi_k), 0, 0, 1, 1},
50223 {&__pyx_n_s_phi_ls, __pyx_k_phi_ls,
sizeof(__pyx_k_phi_ls), 0, 0, 1, 1},
50224 {&__pyx_n_s_phi_pot, __pyx_k_phi_pot,
sizeof(__pyx_k_phi_pot), 0, 0, 1, 1},
50225 {&__pyx_n_s_phi_s, __pyx_k_phi_s,
sizeof(__pyx_k_phi_s), 0, 0, 1, 1},
50226 {&__pyx_n_s_porosity, __pyx_k_porosity,
sizeof(__pyx_k_porosity), 0, 0, 1, 1},
50227 {&__pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_k_proteus_ctransportCoefficients_p,
sizeof(__pyx_k_proteus_ctransportCoefficients_p), 0, 0, 1, 0},
50228 {&__pyx_n_s_psiD, __pyx_k_psiD,
sizeof(__pyx_k_psiD), 0, 0, 1, 1},
50229 {&__pyx_n_s_q1, __pyx_k_q1,
sizeof(__pyx_k_q1), 0, 0, 1, 1},
50230 {&__pyx_n_s_q2, __pyx_k_q2,
sizeof(__pyx_k_q2), 0, 0, 1, 1},
50231 {&__pyx_n_s_q_pow, __pyx_k_q_pow,
sizeof(__pyx_k_q_pow), 0, 0, 1, 1},
50232 {&__pyx_n_s_quadraturePointToElementBoundary, __pyx_k_quadraturePointToElementBoundary,
sizeof(__pyx_k_quadraturePointToElementBoundary), 0, 0, 1, 1},
50233 {&__pyx_n_s_r, __pyx_k_r,
sizeof(__pyx_k_r), 0, 0, 1, 1},
50234 {&__pyx_n_s_r1, __pyx_k_r1,
sizeof(__pyx_k_r1), 0, 0, 1, 1},
50235 {&__pyx_n_s_r2, __pyx_k_r2,
sizeof(__pyx_k_r2), 0, 0, 1, 1},
50236 {&__pyx_n_s_r_c, __pyx_k_r_c,
sizeof(__pyx_k_r_c), 0, 0, 1, 1},
50237 {&__pyx_n_s_r_e, __pyx_k_r_e,
sizeof(__pyx_k_r_e), 0, 0, 1, 1},
50238 {&__pyx_n_s_r_h, __pyx_k_r_h,
sizeof(__pyx_k_r_h), 0, 0, 1, 1},
50239 {&__pyx_n_s_r_k, __pyx_k_r_k,
sizeof(__pyx_k_r_k), 0, 0, 1, 1},
50240 {&__pyx_n_s_r_m, __pyx_k_r_m,
sizeof(__pyx_k_r_m), 0, 0, 1, 1},
50241 {&__pyx_n_s_r_pow, __pyx_k_r_pow,
sizeof(__pyx_k_r_pow), 0, 0, 1, 1},
50242 {&__pyx_n_s_r_x, __pyx_k_r_x,
sizeof(__pyx_k_r_x), 0, 0, 1, 1},
50243 {&__pyx_n_s_radii, __pyx_k_radii,
sizeof(__pyx_k_radii), 0, 0, 1, 1},
50244 {&__pyx_n_s_rank, __pyx_k_rank,
sizeof(__pyx_k_rank), 0, 0, 1, 1},
50245 {&__pyx_n_s_redistanceLevelSetCoefficientsEv, __pyx_k_redistanceLevelSetCoefficientsEv,
sizeof(__pyx_k_redistanceLevelSetCoefficientsEv), 0, 0, 1, 1},
50246 {&__pyx_n_s_redistanceLevelSetCoefficientsWi, __pyx_k_redistanceLevelSetCoefficientsWi,
sizeof(__pyx_k_redistanceLevelSetCoefficientsWi), 0, 0, 1, 1},
50247 {&__pyx_n_s_redistanceLevelSetSandFCoefficie, __pyx_k_redistanceLevelSetSandFCoefficie,
sizeof(__pyx_k_redistanceLevelSetSandFCoefficie), 0, 0, 1, 1},
50248 {&__pyx_n_s_rh, __pyx_k_rh,
sizeof(__pyx_k_rh), 0, 0, 1, 1},
50249 {&__pyx_n_s_rho, __pyx_k_rho,
sizeof(__pyx_k_rho), 0, 0, 1, 1},
50250 {&__pyx_n_s_rhoM, __pyx_k_rhoM,
sizeof(__pyx_k_rhoM), 0, 0, 1, 1},
50251 {&__pyx_n_s_rhoP, __pyx_k_rhoP,
sizeof(__pyx_k_rhoP), 0, 0, 1, 1},
50252 {&__pyx_n_s_rho_0, __pyx_k_rho_0,
sizeof(__pyx_k_rho_0), 0, 0, 1, 1},
50253 {&__pyx_n_s_rho_1, __pyx_k_rho_1,
sizeof(__pyx_k_rho_1), 0, 0, 1, 1},
50254 {&__pyx_n_s_rho_n, __pyx_k_rho_n,
sizeof(__pyx_k_rho_n), 0, 0, 1, 1},
50255 {&__pyx_n_s_rho_s, __pyx_k_rho_s,
sizeof(__pyx_k_rho_s), 0, 0, 1, 1},
50256 {&__pyx_n_s_rho_s_types, __pyx_k_rho_s_types,
sizeof(__pyx_k_rho_s_types), 0, 0, 1, 1},
50257 {&__pyx_n_s_rho_w, __pyx_k_rho_w,
sizeof(__pyx_k_rho_w), 0, 0, 1, 1},
50258 {&__pyx_n_s_rhs, __pyx_k_rhs,
sizeof(__pyx_k_rhs), 0, 0, 1, 1},
50259 {&__pyx_n_s_rotatingPulseVelEvaluate, __pyx_k_rotatingPulseVelEvaluate,
sizeof(__pyx_k_rotatingPulseVelEvaluate), 0, 0, 1, 1},
50260 {&__pyx_n_s_rowptr, __pyx_k_rowptr,
sizeof(__pyx_k_rowptr), 0, 0, 1, 1},
50261 {&__pyx_n_s_s1, __pyx_k_s1,
sizeof(__pyx_k_s1), 0, 0, 1, 1},
50262 {&__pyx_n_s_s2, __pyx_k_s2,
sizeof(__pyx_k_s2), 0, 0, 1, 1},
50263 {&__pyx_n_s_s_pow, __pyx_k_s_pow,
sizeof(__pyx_k_s_pow), 0, 0, 1, 1},
50264 {&__pyx_n_s_scriptedSphereMotionSignedDistan, __pyx_k_scriptedSphereMotionSignedDistan,
sizeof(__pyx_k_scriptedSphereMotionSignedDistan), 0, 0, 1, 1},
50265 {&__pyx_n_s_seepageBrezis, __pyx_k_seepageBrezis,
sizeof(__pyx_k_seepageBrezis), 0, 0, 1, 1},
50266 {&__pyx_n_s_self_a, __pyx_k_self_a,
sizeof(__pyx_k_self_a), 0, 0, 1, 1},
50267 {&__pyx_n_s_self_v, __pyx_k_self_v,
sizeof(__pyx_k_self_v), 0, 0, 1, 1},
50268 {&__pyx_n_s_setSimpleWeakDirichletConditions, __pyx_k_setSimpleWeakDirichletConditions,
sizeof(__pyx_k_setSimpleWeakDirichletConditions), 0, 0, 1, 1},
50269 {&__pyx_n_s_setWeakDirichletConditionsForLev, __pyx_k_setWeakDirichletConditionsForLev,
sizeof(__pyx_k_setWeakDirichletConditionsForLev), 0, 0, 1, 1},
50270 {&__pyx_n_s_shallowWater_1D_Evaluate, __pyx_k_shallowWater_1D_Evaluate,
sizeof(__pyx_k_shallowWater_1D_Evaluate), 0, 0, 1, 1},
50271 {&__pyx_n_s_shallowWater_2D_Evaluate, __pyx_k_shallowWater_2D_Evaluate,
sizeof(__pyx_k_shallowWater_2D_Evaluate), 0, 0, 1, 1},
50272 {&__pyx_n_s_sigma, __pyx_k_sigma,
sizeof(__pyx_k_sigma), 0, 0, 1, 1},
50273 {&__pyx_n_s_sigma_e, __pyx_k_sigma_e,
sizeof(__pyx_k_sigma_e), 0, 0, 1, 1},
50274 {&__pyx_n_s_sigma_k, __pyx_k_sigma_k,
sizeof(__pyx_k_sigma_k), 0, 0, 1, 1},
50275 {&__pyx_n_s_size, __pyx_k_size,
sizeof(__pyx_k_size), 0, 0, 1, 1},
50276 {&__pyx_n_s_smagorinskyConstant, __pyx_k_smagorinskyConstant,
sizeof(__pyx_k_smagorinskyConstant), 0, 0, 1, 1},
50277 {&__pyx_n_s_smagorinskyConstant_0, __pyx_k_smagorinskyConstant_0,
sizeof(__pyx_k_smagorinskyConstant_0), 0, 0, 1, 1},
50278 {&__pyx_n_s_smagorinskyConstant_1, __pyx_k_smagorinskyConstant_1,
sizeof(__pyx_k_smagorinskyConstant_1), 0, 0, 1, 1},
50279 {&__pyx_n_s_smoothedDirac, __pyx_k_smoothedDirac,
sizeof(__pyx_k_smoothedDirac), 0, 0, 1, 1},
50280 {&__pyx_n_s_smoothedHeaviside, __pyx_k_smoothedHeaviside,
sizeof(__pyx_k_smoothedHeaviside), 0, 0, 1, 1},
50281 {&__pyx_n_s_smoothedHeaviside_integral, __pyx_k_smoothedHeaviside_integral,
sizeof(__pyx_k_smoothedHeaviside_integral), 0, 0, 1, 1},
50282 {&__pyx_n_s_source, __pyx_k_source,
sizeof(__pyx_k_source), 0, 0, 1, 1},
50283 {&__pyx_n_s_specificHeat_n, __pyx_k_specificHeat_n,
sizeof(__pyx_k_specificHeat_n), 0, 0, 1, 1},
50284 {&__pyx_n_s_specificHeat_s_types, __pyx_k_specificHeat_s_types,
sizeof(__pyx_k_specificHeat_s_types), 0, 0, 1, 1},
50285 {&__pyx_n_s_specificHeat_w, __pyx_k_specificHeat_w,
sizeof(__pyx_k_specificHeat_w), 0, 0, 1, 1},
50286 {&__pyx_n_s_t, __pyx_k_t,
sizeof(__pyx_k_t), 0, 0, 1, 1},
50287 {&__pyx_n_s_t1, __pyx_k_t1,
sizeof(__pyx_k_t1), 0, 0, 1, 1},
50288 {&__pyx_n_s_t2, __pyx_k_t2,
sizeof(__pyx_k_t2), 0, 0, 1, 1},
50289 {&__pyx_n_s_t_pow, __pyx_k_t_pow,
sizeof(__pyx_k_t_pow), 0, 0, 1, 1},
50290 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
50291 {&__pyx_n_s_theta, __pyx_k_theta,
sizeof(__pyx_k_theta), 0, 0, 1, 1},
50292 {&__pyx_n_s_thetaR, __pyx_k_thetaR,
sizeof(__pyx_k_thetaR), 0, 0, 1, 1},
50293 {&__pyx_n_s_thetaS, __pyx_k_thetaS,
sizeof(__pyx_k_thetaS), 0, 0, 1, 1},
50294 {&__pyx_n_s_thetaSR, __pyx_k_thetaSR,
sizeof(__pyx_k_thetaSR), 0, 0, 1, 1},
50295 {&__pyx_n_s_thetaS_types, __pyx_k_thetaS_types,
sizeof(__pyx_k_thetaS_types), 0, 0, 1, 1},
50296 {&__pyx_n_s_twophaseLevelSetCoefficientsEval, __pyx_k_twophaseLevelSetCoefficientsEval,
sizeof(__pyx_k_twophaseLevelSetCoefficientsEval), 0, 0, 1, 1},
50297 {&__pyx_n_s_twophaseLevelSetCoefficientsEval_2, __pyx_k_twophaseLevelSetCoefficientsEval_2,
sizeof(__pyx_k_twophaseLevelSetCoefficientsEval_2), 0, 0, 1, 1},
50298 {&__pyx_n_s_twophaseLevelSetCoefficientsUpda, __pyx_k_twophaseLevelSetCoefficientsUpda,
sizeof(__pyx_k_twophaseLevelSetCoefficientsUpda), 0, 0, 1, 1},
50299 {&__pyx_n_s_twophasePotentialFlowEvaluate, __pyx_k_twophasePotentialFlowEvaluate,
sizeof(__pyx_k_twophasePotentialFlowEvaluate), 0, 0, 1, 1},
50300 {&__pyx_n_s_twophasePotentialFlowUpdateFreeS, __pyx_k_twophasePotentialFlowUpdateFreeS,
sizeof(__pyx_k_twophasePotentialFlowUpdateFreeS), 0, 0, 1, 1},
50301 {&__pyx_n_s_twophaseSignedDistanceCoefficien, __pyx_k_twophaseSignedDistanceCoefficien,
sizeof(__pyx_k_twophaseSignedDistanceCoefficien), 0, 0, 1, 1},
50302 {&__pyx_n_s_twophaseSignedDistanceUpdateSign, __pyx_k_twophaseSignedDistanceUpdateSign,
sizeof(__pyx_k_twophaseSignedDistanceUpdateSign), 0, 0, 1, 1},
50303 {&__pyx_n_s_u, __pyx_k_u,
sizeof(__pyx_k_u), 0, 0, 1, 1},
50304 {&__pyx_n_s_u_dof, __pyx_k_u_dof,
sizeof(__pyx_k_u_dof), 0, 0, 1, 1},
50305 {&__pyx_n_s_u_force, __pyx_k_u_force,
sizeof(__pyx_k_u_force), 0, 0, 1, 1},
50306 {&__pyx_n_s_u_l2g, __pyx_k_u_l2g,
sizeof(__pyx_k_u_l2g), 0, 0, 1, 1},
50307 {&__pyx_n_s_u_levelSet, __pyx_k_u_levelSet,
sizeof(__pyx_k_u_levelSet), 0, 0, 1, 1},
50308 {&__pyx_n_s_u_ls, __pyx_k_u_ls,
sizeof(__pyx_k_u_ls), 0, 0, 1, 1},
50309 {&__pyx_n_s_unitCubeRotationEvaluate, __pyx_k_unitCubeRotationEvaluate,
sizeof(__pyx_k_unitCubeRotationEvaluate), 0, 0, 1, 1},
50310 {&__pyx_n_s_unitSquareRotationEvaluate, __pyx_k_unitSquareRotationEvaluate,
sizeof(__pyx_k_unitSquareRotationEvaluate), 0, 0, 1, 1},
50311 {&__pyx_n_s_unitSquareRotationLevelSetEvalua, __pyx_k_unitSquareRotationLevelSetEvalua,
sizeof(__pyx_k_unitSquareRotationLevelSetEvalua), 0, 0, 1, 1},
50312 {&__pyx_n_s_unitSquareVortexEvaluate, __pyx_k_unitSquareVortexEvaluate,
sizeof(__pyx_k_unitSquareVortexEvaluate), 0, 0, 1, 1},
50313 {&__pyx_n_s_unitSquareVortexLevelSetEvaluate, __pyx_k_unitSquareVortexLevelSetEvaluate,
sizeof(__pyx_k_unitSquareVortexLevelSetEvaluate), 0, 0, 1, 1},
50314 {&__pyx_n_s_upwindFlag, __pyx_k_upwindFlag,
sizeof(__pyx_k_upwindFlag), 0, 0, 1, 1},
50315 {&__pyx_n_s_uu_diff_ten, __pyx_k_uu_diff_ten,
sizeof(__pyx_k_uu_diff_ten), 0, 0, 1, 1},
50316 {&__pyx_n_s_uv_diff_ten, __pyx_k_uv_diff_ten,
sizeof(__pyx_k_uv_diff_ten), 0, 0, 1, 1},
50317 {&__pyx_n_s_uw_diff_ten, __pyx_k_uw_diff_ten,
sizeof(__pyx_k_uw_diff_ten), 0, 0, 1, 1},
50318 {&__pyx_n_s_v, __pyx_k_v,
sizeof(__pyx_k_v), 0, 0, 1, 1},
50319 {&__pyx_n_s_vIn, __pyx_k_vIn,
sizeof(__pyx_k_vIn), 0, 0, 1, 1},
50320 {&__pyx_n_s_vOut, __pyx_k_vOut,
sizeof(__pyx_k_vOut), 0, 0, 1, 1},
50321 {&__pyx_n_s_v_force, __pyx_k_v_force,
sizeof(__pyx_k_v_force), 0, 0, 1, 1},
50322 {&__pyx_n_s_v_scale, __pyx_k_v_scale,
sizeof(__pyx_k_v_scale), 0, 0, 1, 1},
50323 {&__pyx_n_s_variablySaturatedGroundwaterEner, __pyx_k_variablySaturatedGroundwaterEner,
sizeof(__pyx_k_variablySaturatedGroundwaterEner), 0, 0, 1, 1},
50324 {&__pyx_n_s_variablySaturatedGroundwaterTran, __pyx_k_variablySaturatedGroundwaterTran,
sizeof(__pyx_k_variablySaturatedGroundwaterTran), 0, 0, 1, 1},
50325 {&__pyx_n_s_velocity, __pyx_k_velocity,
sizeof(__pyx_k_velocity), 0, 0, 1, 1},
50326 {&__pyx_n_s_vof, __pyx_k_vof,
sizeof(__pyx_k_vof), 0, 0, 1, 1},
50327 {&__pyx_n_s_vol_frac, __pyx_k_vol_frac,
sizeof(__pyx_k_vol_frac), 0, 0, 1, 1},
50328 {&__pyx_n_s_volumePenaltyCoef, __pyx_k_volumePenaltyCoef,
sizeof(__pyx_k_volumePenaltyCoef), 0, 0, 1, 1},
50329 {&__pyx_n_s_vu_diff_ten, __pyx_k_vu_diff_ten,
sizeof(__pyx_k_vu_diff_ten), 0, 0, 1, 1},
50330 {&__pyx_n_s_vv_diff_ten, __pyx_k_vv_diff_ten,
sizeof(__pyx_k_vv_diff_ten), 0, 0, 1, 1},
50331 {&__pyx_n_s_vw_diff_ten, __pyx_k_vw_diff_ten,
sizeof(__pyx_k_vw_diff_ten), 0, 0, 1, 1},
50332 {&__pyx_n_s_w, __pyx_k_w,
sizeof(__pyx_k_w), 0, 0, 1, 1},
50333 {&__pyx_n_s_w_force, __pyx_k_w_force,
sizeof(__pyx_k_w_force), 0, 0, 1, 1},
50334 {&__pyx_n_s_waterDepth, __pyx_k_waterDepth,
sizeof(__pyx_k_waterDepth), 0, 0, 1, 1},
50335 {&__pyx_n_s_waveCelerity, __pyx_k_waveCelerity,
sizeof(__pyx_k_waveCelerity), 0, 0, 1, 1},
50336 {&__pyx_n_s_waveFlag, __pyx_k_waveFlag,
sizeof(__pyx_k_waveFlag), 0, 0, 1, 1},
50337 {&__pyx_n_s_waveFrequency, __pyx_k_waveFrequency,
sizeof(__pyx_k_waveFrequency), 0, 0, 1, 1},
50338 {&__pyx_n_s_waveHeight, __pyx_k_waveHeight,
sizeof(__pyx_k_waveHeight), 0, 0, 1, 1},
50339 {&__pyx_n_s_waveNumber, __pyx_k_waveNumber,
sizeof(__pyx_k_waveNumber), 0, 0, 1, 1},
50340 {&__pyx_n_s_weakDirichletConditionFlags, __pyx_k_weakDirichletConditionFlags,
sizeof(__pyx_k_weakDirichletConditionFlags), 0, 0, 1, 1},
50341 {&__pyx_n_s_wu_diff_ten, __pyx_k_wu_diff_ten,
sizeof(__pyx_k_wu_diff_ten), 0, 0, 1, 1},
50342 {&__pyx_n_s_wv_diff_ten, __pyx_k_wv_diff_ten,
sizeof(__pyx_k_wv_diff_ten), 0, 0, 1, 1},
50343 {&__pyx_n_s_ww_diff_ten, __pyx_k_ww_diff_ten,
sizeof(__pyx_k_ww_diff_ten), 0, 0, 1, 1},
50344 {&__pyx_n_s_x, __pyx_k_x,
sizeof(__pyx_k_x), 0, 0, 1, 1},
50345 {0, 0, 0, 0, 0, 0, 0}
50347 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
50348 __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError);
if (!__pyx_builtin_ImportError) __PYX_ERR(1, 945, __pyx_L1_error)
50354 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
50355 __Pyx_RefNannyDeclarations
50356 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
50365 __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to);
if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 945, __pyx_L1_error)
50366 __Pyx_GOTREF(__pyx_tuple_);
50367 __Pyx_GIVEREF(__pyx_tuple_);
50376 __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor);
if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 951, __pyx_L1_error)
50377 __Pyx_GOTREF(__pyx_tuple__2);
50378 __Pyx_GIVEREF(__pyx_tuple__2);
50387 __pyx_tuple__3 = PyTuple_Pack(14, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_C, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 2816, __pyx_L1_error)
50388 __Pyx_GOTREF(__pyx_tuple__3);
50389 __Pyx_GIVEREF(__pyx_tuple__3);
50390 __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_linearADR_ConstantCoefficientsEv, 2816, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 2816, __pyx_L1_error)
50399 __pyx_tuple__5 = PyTuple_Pack(11, __pyx_n_s_omega, __pyx_n_s_d, __pyx_n_s_alpha_L, __pyx_n_s_alpha_T, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a);
if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 2846, __pyx_L1_error)
50400 __Pyx_GOTREF(__pyx_tuple__5);
50401 __Pyx_GIVEREF(__pyx_tuple__5);
50402 __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__5, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterTransportCoefficients, 2846, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 2846, __pyx_L1_error)
50411 __pyx_tuple__7 = PyTuple_Pack(39, __pyx_n_s_omega, __pyx_n_s_d_c, __pyx_n_s_d_e, __pyx_n_s_alpha_L, __pyx_n_s_alpha_T, __pyx_n_s_Kox_max, __pyx_n_s_Kox_C, __pyx_n_s_Kox_E, __pyx_n_s_Kox_X, __pyx_n_s_Yield, __pyx_n_s_k_d, __pyx_n_s_v, __pyx_n_s_c_c, __pyx_n_s_c_e, __pyx_n_s_c_x, __pyx_n_s_m_c, __pyx_n_s_dm_c, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_m_x, __pyx_n_s_dm_x, __pyx_n_s_f_c, __pyx_n_s_df_c, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_c, __pyx_n_s_a_e, __pyx_n_s_r_c, __pyx_n_s_dr_c_dc, __pyx_n_s_dr_c_de, __pyx_n_s_dr_c_dx, __pyx_n_s_r_e, __pyx_n_s_dr_e_dc, __pyx_n_s_dr_e_de, __pyx_n_s_dr_e_dx, __pyx_n_s_r_x, __pyx_n_s_dr_x_dc, __pyx_n_s_dr_x_de, __pyx_n_s_dr_x_dx);
if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 2870, __pyx_L1_error)
50412 __Pyx_GOTREF(__pyx_tuple__7);
50413 __Pyx_GIVEREF(__pyx_tuple__7);
50414 __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(39, 0, 39, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterBiodegradation01Evalu, 2870, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 2870, __pyx_L1_error)
50423 __pyx_tuple__9 = PyTuple_Pack(32, __pyx_n_s_omega, __pyx_n_s_d_m, __pyx_n_s_d_h, __pyx_n_s_alpha_L, __pyx_n_s_alpha_T, __pyx_n_s_K_m, __pyx_n_s_K_h, __pyx_n_s_K_w, __pyx_n_s_Z_tot, __pyx_n_s_v, __pyx_n_s_c_m, __pyx_n_s_c_h, __pyx_n_s_m_m, __pyx_n_s_dm_m_m, __pyx_n_s_dm_m_h, __pyx_n_s_m_h, __pyx_n_s_dm_h_m, __pyx_n_s_dm_h_h, __pyx_n_s_f_m, __pyx_n_s_df_m, __pyx_n_s_f_h, __pyx_n_s_df_h, __pyx_n_s_a_m, __pyx_n_s_a_h, __pyx_n_s_phi_h, __pyx_n_s_dphi_h, __pyx_n_s_r_m, __pyx_n_s_dr_m_dm, __pyx_n_s_dr_m_dh, __pyx_n_s_r_h, __pyx_n_s_dr_h_dm, __pyx_n_s_dr_h_dh);
if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 2950, __pyx_L1_error)
50424 __Pyx_GOTREF(__pyx_tuple__9);
50425 __Pyx_GIVEREF(__pyx_tuple__9);
50426 __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterBryantDawsonIonExEval, 2950, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 2950, __pyx_L1_error)
50435 __pyx_tuple__11 = PyTuple_Pack(12, __pyx_n_s_d, __pyx_n_s_materialTypes, __pyx_n_s_omega_types, __pyx_n_s_alpha_L_types, __pyx_n_s_alpha_T_types, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a);
if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 3016, __pyx_L1_error)
50436 __Pyx_GOTREF(__pyx_tuple__11);
50437 __Pyx_GIVEREF(__pyx_tuple__11);
50438 __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_groundwaterTransportCoefficients_2, 3016, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 3016, __pyx_L1_error)
50447 __pyx_tuple__13 = PyTuple_Pack(14, __pyx_n_s_d, __pyx_n_s_materialTypes, __pyx_n_s_theta, __pyx_n_s_alpha_L_types, __pyx_n_s_alpha_T_types, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_nSimplex, __pyx_n_s_nPointsPerSimplex);
if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 3045, __pyx_L1_error)
50448 __Pyx_GOTREF(__pyx_tuple__13);
50449 __Pyx_GIVEREF(__pyx_tuple__13);
50450 __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(12, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_variablySaturatedGroundwaterTran, 3045, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 3045, __pyx_L1_error)
50459 __pyx_tuple__15 = PyTuple_Pack(23, __pyx_n_s_rho_w, __pyx_n_s_rho_n, __pyx_n_s_specificHeat_w, __pyx_n_s_specificHeat_n, __pyx_n_s_materialTypes, __pyx_n_s_theta, __pyx_n_s_thetaS_types, __pyx_n_s_alpha_L_types, __pyx_n_s_alpha_T_types, __pyx_n_s_rho_s_types, __pyx_n_s_specificHeat_s_types, __pyx_n_s_Lambda_sat_types, __pyx_n_s_Lambda_dry_types, __pyx_n_s_Lambda_aniso_types, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_nSimplex, __pyx_n_s_nPointsPerSimplex);
if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 3081, __pyx_L1_error)
50460 __Pyx_GOTREF(__pyx_tuple__15);
50461 __Pyx_GIVEREF(__pyx_tuple__15);
50462 __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(21, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_variablySaturatedGroundwaterEner, 3081, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 3081, __pyx_L1_error)
50471 __pyx_tuple__17 = PyTuple_Pack(22, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_C, __pyx_n_s_p_pow, __pyx_n_s_q_pow, __pyx_n_s_r_pow, __pyx_n_s_s_pow, __pyx_n_s_t_pow, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 3135, __pyx_L1_error)
50472 __Pyx_GOTREF(__pyx_tuple__17);
50473 __Pyx_GIVEREF(__pyx_tuple__17);
50474 __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_nonlinearADR_pqrstEvaluate, 3135, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 3135, __pyx_L1_error)
50483 __pyx_tuple__19 = PyTuple_Pack(29, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_C, __pyx_n_s_p1, __pyx_n_s_q1, __pyx_n_s_r1, __pyx_n_s_s1, __pyx_n_s_t1, __pyx_n_s_p2, __pyx_n_s_q2, __pyx_n_s_r2, __pyx_n_s_s2, __pyx_n_s_t2, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 3181, __pyx_L1_error)
50484 __Pyx_GOTREF(__pyx_tuple__19);
50485 __Pyx_GIVEREF(__pyx_tuple__19);
50486 __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(29, 0, 29, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_nonlinearADR_pqrstDualEvaluate, 3181, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 3181, __pyx_L1_error)
50495 __pyx_tuple__21 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df);
if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 3239, __pyx_L1_error)
50496 __Pyx_GOTREF(__pyx_tuple__21);
50497 __Pyx_GIVEREF(__pyx_tuple__21);
50498 __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareRotationEvaluate, 3239, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 3239, __pyx_L1_error)
50507 __pyx_tuple__23 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df);
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 3253, __pyx_L1_error)
50508 __Pyx_GOTREF(__pyx_tuple__23);
50509 __Pyx_GIVEREF(__pyx_tuple__23);
50510 __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitCubeRotationEvaluate, 3253, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 3253, __pyx_L1_error)
50519 __pyx_tuple__25 = PyTuple_Pack(13, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_self_a, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 3267, __pyx_L1_error)
50520 __Pyx_GOTREF(__pyx_tuple__25);
50521 __Pyx_GIVEREF(__pyx_tuple__25);
50522 __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_rotatingPulseVelEvaluate, 3267, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 3267, __pyx_L1_error)
50531 __pyx_tuple__27 = PyTuple_Pack(13, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_self_a, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 3293, __pyx_L1_error)
50532 __Pyx_GOTREF(__pyx_tuple__27);
50533 __Pyx_GIVEREF(__pyx_tuple__27);
50534 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_disRotatingPulseVelEvaluate, 3293, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 3293, __pyx_L1_error)
50543 __pyx_tuple__29 = PyTuple_Pack(13, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_self_a, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 3319, __pyx_L1_error)
50544 __Pyx_GOTREF(__pyx_tuple__29);
50545 __Pyx_GIVEREF(__pyx_tuple__29);
50546 __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_disVelEvaluate, 3319, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 3319, __pyx_L1_error)
50555 __pyx_tuple__31 = PyTuple_Pack(10, __pyx_n_s_self_a, __pyx_n_s_self_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 3345, __pyx_L1_error)
50556 __Pyx_GOTREF(__pyx_tuple__31);
50557 __Pyx_GIVEREF(__pyx_tuple__31);
50558 __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_burgersDiagonalVelEvaluate, 3345, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 3345, __pyx_L1_error)
50567 __pyx_tuple__33 = PyTuple_Pack(11, __pyx_n_s_self_a, __pyx_n_s_self_v, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_a, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 3367, __pyx_L1_error)
50568 __Pyx_GOTREF(__pyx_tuple__33);
50569 __Pyx_GIVEREF(__pyx_tuple__33);
50570 __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_burgersDiagonalVelHJEvaluate, 3367, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 3367, __pyx_L1_error)
50579 __pyx_tuple__35 = PyTuple_Pack(20, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_M, __pyx_n_s_A, __pyx_n_s_B, __pyx_n_s_Bcon, __pyx_n_s_C, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 3391, __pyx_L1_error)
50580 __Pyx_GOTREF(__pyx_tuple__35);
50581 __Pyx_GIVEREF(__pyx_tuple__35);
50582 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophasePotentialFlowEvaluate, 3391, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 3391, __pyx_L1_error)
50591 __pyx_tuple__37 = PyTuple_Pack(19, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_M1, __pyx_n_s_M2, __pyx_n_s_M, __pyx_n_s_A1, __pyx_n_s_A2, __pyx_n_s_A, __pyx_n_s_B1, __pyx_n_s_B2, __pyx_n_s_B, __pyx_n_s_Bcon1, __pyx_n_s_Bcon2, __pyx_n_s_Bcon, __pyx_n_s_C1, __pyx_n_s_C2, __pyx_n_s_C);
if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 3431, __pyx_L1_error)
50592 __Pyx_GOTREF(__pyx_tuple__37);
50593 __Pyx_GIVEREF(__pyx_tuple__37);
50594 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophasePotentialFlowUpdateFreeS, 3431, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 3431, __pyx_L1_error)
50603 __pyx_tuple__39 = PyTuple_Pack(5, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_v_scale, __pyx_n_s_vIn, __pyx_n_s_vOut);
if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 3469, __pyx_L1_error)
50604 __Pyx_GOTREF(__pyx_tuple__39);
50605 __Pyx_GIVEREF(__pyx_tuple__39);
50606 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseLevelSetCoefficientsUpda, 3469, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 3469, __pyx_L1_error)
50615 __pyx_tuple__41 = PyTuple_Pack(12, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_B, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_h, __pyx_n_s_dh, __pyx_n_s_rh);
if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 3479, __pyx_L1_error)
50616 __Pyx_GOTREF(__pyx_tuple__41);
50617 __Pyx_GIVEREF(__pyx_tuple__41);
50618 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseLevelSetCoefficientsEval, 3479, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 3479, __pyx_L1_error)
50627 __pyx_tuple__43 = PyTuple_Pack(16, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_B, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 3503, __pyx_L1_error)
50628 __Pyx_GOTREF(__pyx_tuple__43);
50629 __Pyx_GIVEREF(__pyx_tuple__43);
50630 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseLevelSetCoefficientsEval_2, 3503, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 3503, __pyx_L1_error)
50639 __pyx_tuple__45 = PyTuple_Pack(7, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH);
if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 3535, __pyx_L1_error)
50640 __Pyx_GOTREF(__pyx_tuple__45);
50641 __Pyx_GIVEREF(__pyx_tuple__45);
50642 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ncLevelSetCoefficientsEvaluate, 3535, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 3535, __pyx_L1_error)
50651 __pyx_tuple__47 = PyTuple_Pack(6, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df);
if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 3551, __pyx_L1_error)
50652 __Pyx_GOTREF(__pyx_tuple__47);
50653 __Pyx_GIVEREF(__pyx_tuple__47);
50654 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_cLevelSetCoefficientsEvaluate, 3551, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 3551, __pyx_L1_error)
50663 __pyx_tuple__49 = PyTuple_Pack(8, __pyx_n_s_eps, __pyx_n_s_v, __pyx_n_s_phi, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df);
if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 3565, __pyx_L1_error)
50664 __Pyx_GOTREF(__pyx_tuple__49);
50665 __Pyx_GIVEREF(__pyx_tuple__49);
50666 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VOFCoefficientsEvaluate, 3565, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 3565, __pyx_L1_error)
50675 __pyx_tuple__51 = PyTuple_Pack(5, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 3583, __pyx_L1_error)
50676 __Pyx_GOTREF(__pyx_tuple__51);
50677 __Pyx_GIVEREF(__pyx_tuple__51);
50678 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_levelSetCurvatureCoefficientsEva, 3583, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 3583, __pyx_L1_error)
50687 __pyx_tuple__53 = PyTuple_Pack(10, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_S, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_h, __pyx_n_s_dh, __pyx_n_s_rh);
if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 3595, __pyx_L1_error)
50688 __Pyx_GOTREF(__pyx_tuple__53);
50689 __Pyx_GIVEREF(__pyx_tuple__53);
50690 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseSignedDistanceCoefficien, 3595, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 3595, __pyx_L1_error)
50699 __pyx_tuple__55 = PyTuple_Pack(8, __pyx_n_s_rhs, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r);
if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 3615, __pyx_L1_error)
50700 __Pyx_GOTREF(__pyx_tuple__55);
50701 __Pyx_GIVEREF(__pyx_tuple__55);
50702 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__55, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_eikonalEquationEvaluate, 3615, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 3615, __pyx_L1_error)
50711 __pyx_tuple__57 = PyTuple_Pack(9, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r);
if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 3633, __pyx_L1_error)
50712 __Pyx_GOTREF(__pyx_tuple__57);
50713 __Pyx_GIVEREF(__pyx_tuple__57);
50714 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_redistanceLevelSetCoefficientsEv, 3633, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 3633, __pyx_L1_error)
50723 __pyx_tuple__59 = PyTuple_Pack(11, __pyx_n_s_eps, __pyx_n_s_Lambda_penalty, __pyx_n_s_u_levelSet, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 3653, __pyx_L1_error)
50724 __Pyx_GOTREF(__pyx_tuple__59);
50725 __Pyx_GIVEREF(__pyx_tuple__59);
50726 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_redistanceLevelSetCoefficientsWi, 3653, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 3653, __pyx_L1_error)
50735 __pyx_tuple__61 = PyTuple_Pack(12, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_r, __pyx_n_s_nSimplex, __pyx_n_s_nPointsPerSimplex);
if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 3677, __pyx_L1_error)
50736 __Pyx_GOTREF(__pyx_tuple__61);
50737 __Pyx_GIVEREF(__pyx_tuple__61);
50738 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(10, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_redistanceLevelSetSandFCoefficie, 3677, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 3677, __pyx_L1_error)
50747 __pyx_tuple__63 = PyTuple_Pack(8, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_trial_element, __pyx_n_s_epsilon_freeze_factor, __pyx_n_s_elementDiameter, __pyx_n_s_u_l2g, __pyx_n_s_u_dof, __pyx_n_s_freeze_nodes_tmp, __pyx_n_s_weakDirichletConditionFlags);
if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 3709, __pyx_L1_error)
50748 __Pyx_GOTREF(__pyx_tuple__63);
50749 __Pyx_GIVEREF(__pyx_tuple__63);
50750 __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_setWeakDirichletConditionsForLev, 3709, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 3709, __pyx_L1_error)
50759 __pyx_tuple__65 = PyTuple_Pack(8, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_trial_element, __pyx_n_s_epsilon_freeze_factor, __pyx_n_s_elementDiameter, __pyx_n_s_u_l2g, __pyx_n_s_u_dof, __pyx_n_s_freeze_nodes_tmp, __pyx_n_s_weakDirichletConditionFlags);
if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 3725, __pyx_L1_error)
50760 __Pyx_GOTREF(__pyx_tuple__65);
50761 __Pyx_GIVEREF(__pyx_tuple__65);
50762 __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__65, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_setSimpleWeakDirichletConditions, 3725, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 3725, __pyx_L1_error)
50771 __pyx_tuple__67 = PyTuple_Pack(19, __pyx_n_s_Km, __pyx_n_s_rhoM, __pyx_n_s_Kp, __pyx_n_s_rhoP, __pyx_n_s_eps, __pyx_n_s_gravity_u, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_u_levelSet, __pyx_n_s_phi_pot, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_m, __pyx_n_s_dphi_pot, __pyx_n_s_da, __pyx_n_s_df, __pyx_n_s_dr, __pyx_n_s_dm);
if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 3741, __pyx_L1_error)
50772 __Pyx_GOTREF(__pyx_tuple__67);
50773 __Pyx_GIVEREF(__pyx_tuple__67);
50774 __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_darcySharpInterfaceFlowEvaluate, 3741, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 3741, __pyx_L1_error)
50783 __pyx_tuple__69 = PyTuple_Pack(19, __pyx_n_s_Km, __pyx_n_s_rhoM, __pyx_n_s_Kp, __pyx_n_s_rhoP, __pyx_n_s_eps, __pyx_n_s_gravity_u, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_u_levelSet, __pyx_n_s_phi_pot, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_m, __pyx_n_s_dphi_pot, __pyx_n_s_da, __pyx_n_s_df, __pyx_n_s_dr, __pyx_n_s_dm);
if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 3781, __pyx_L1_error)
50784 __Pyx_GOTREF(__pyx_tuple__69);
50785 __Pyx_GIVEREF(__pyx_tuple__69);
50786 __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_darcySharpInterfaceFlowImEvaluat, 3781, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 3781, __pyx_L1_error)
50795 __pyx_tuple__71 = PyTuple_Pack(28, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 3819, __pyx_L1_error)
50796 __Pyx_GOTREF(__pyx_tuple__71);
50797 __Pyx_GIVEREF(__pyx_tuple__71);
50798 __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_NavierStokes_2D_Evaluate, 3819, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 3819, __pyx_L1_error)
50807 __pyx_tuple__73 = PyTuple_Pack(42, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 3876, __pyx_L1_error)
50808 __Pyx_GOTREF(__pyx_tuple__73);
50809 __Pyx_GIVEREF(__pyx_tuple__73);
50810 __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(42, 0, 42, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_NavierStokes_3D_Evaluate, 3876, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 3876, __pyx_L1_error)
50819 __pyx_tuple__75 = PyTuple_Pack(22, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 3961, __pyx_L1_error)
50820 __Pyx_GOTREF(__pyx_tuple__75);
50821 __Pyx_GIVEREF(__pyx_tuple__75);
50822 __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Stokes_2D_Evaluate, 3961, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 3961, __pyx_L1_error)
50831 __pyx_tuple__77 = PyTuple_Pack(21, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_p, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_p, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source);
if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 4006, __pyx_L1_error)
50832 __Pyx_GOTREF(__pyx_tuple__77);
50833 __Pyx_GIVEREF(__pyx_tuple__77);
50834 __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_StokesP_2D_Evaluate, 4006, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 4006, __pyx_L1_error)
50843 __pyx_tuple__79 = PyTuple_Pack(30, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 4049, __pyx_L1_error)
50844 __Pyx_GOTREF(__pyx_tuple__79);
50845 __Pyx_GIVEREF(__pyx_tuple__79);
50846 __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Stokes_3D_Evaluate, 4049, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 4049, __pyx_L1_error)
50855 __pyx_tuple__81 = PyTuple_Pack(30, __pyx_n_s_nPoints, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_p, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_p, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_p, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source);
if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 4110, __pyx_L1_error)
50856 __Pyx_GOTREF(__pyx_tuple__81);
50857 __Pyx_GIVEREF(__pyx_tuple__81);
50858 __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_StokesP_3D_Evaluate, 4110, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 4110, __pyx_L1_error)
50867 __pyx_tuple__83 = PyTuple_Pack(32, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 4170, __pyx_L1_error)
50868 __Pyx_GOTREF(__pyx_tuple__83);
50869 __Pyx_GIVEREF(__pyx_tuple__83);
50870 __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev, 4170, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 4170, __pyx_L1_error)
50879 __pyx_tuple__85 = PyTuple_Pack(38, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 4235, __pyx_L1_error)
50880 __Pyx_GOTREF(__pyx_tuple__85);
50881 __Pyx_GIVEREF(__pyx_tuple__85);
50882 __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D, 4235, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 4235, __pyx_L1_error)
50891 __pyx_tuple__87 = PyTuple_Pack(38, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 4312, __pyx_L1_error)
50892 __Pyx_GOTREF(__pyx_tuple__87);
50893 __Pyx_GIVEREF(__pyx_tuple__87);
50894 __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2, 4312, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 4312, __pyx_L1_error)
50903 __pyx_tuple__89 = PyTuple_Pack(48, __pyx_n_s_boundaryPenaltyCoef, __pyx_n_s_volumePenaltyCoef, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_rho_s, __pyx_n_s_nu_s, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_phi_s, __pyx_n_s_n_s, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 4389, __pyx_L1_error)
50904 __Pyx_GOTREF(__pyx_tuple__89);
50905 __Pyx_GIVEREF(__pyx_tuple__89);
50906 __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(48, 0, 48, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO, 4389, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 4389, __pyx_L1_error)
50915 __pyx_tuple__91 = PyTuple_Pack(56, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 4486, __pyx_L1_error)
50916 __Pyx_GOTREF(__pyx_tuple__91);
50917 __Pyx_GIVEREF(__pyx_tuple__91);
50918 __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(56, 0, 56, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D, 4486, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 4486, __pyx_L1_error)
50927 __pyx_tuple__93 = PyTuple_Pack(56, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 4599, __pyx_L1_error)
50928 __Pyx_GOTREF(__pyx_tuple__93);
50929 __Pyx_GIVEREF(__pyx_tuple__93);
50930 __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(56, 0, 56, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2, 4599, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 4599, __pyx_L1_error)
50939 __pyx_tuple__95 = PyTuple_Pack(71, __pyx_n_s_boundaryPenaltyCoef, __pyx_n_s_volumePenaltyCoef, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_rho_s, __pyx_n_s_nu_s, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_phi_s, __pyx_n_s_n_s, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 4712, __pyx_L1_error)
50940 __Pyx_GOTREF(__pyx_tuple__95);
50941 __Pyx_GIVEREF(__pyx_tuple__95);
50942 __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(71, 0, 71, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2, 4712, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 4712, __pyx_L1_error)
50951 __pyx_tuple__97 = PyTuple_Pack(46, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 4855, __pyx_L1_error)
50952 __Pyx_GOTREF(__pyx_tuple__97);
50953 __Pyx_GIVEREF(__pyx_tuple__97);
50954 __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(46, 0, 46, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev, 4855, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 4855, __pyx_L1_error)
50963 __pyx_tuple__99 = PyTuple_Pack(26, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 4948, __pyx_L1_error)
50964 __Pyx_GOTREF(__pyx_tuple__99);
50965 __Pyx_GIVEREF(__pyx_tuple__99);
50966 __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate, 4948, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 4948, __pyx_L1_error)
50975 __pyx_tuple__101 = PyTuple_Pack(34, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 5001, __pyx_L1_error)
50976 __Pyx_GOTREF(__pyx_tuple__101);
50977 __Pyx_GIVEREF(__pyx_tuple__101);
50978 __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate, 5001, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 5001, __pyx_L1_error)
50987 __pyx_tuple__103 = PyTuple_Pack(32, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 5070, __pyx_L1_error)
50988 __Pyx_GOTREF(__pyx_tuple__103);
50989 __Pyx_GIVEREF(__pyx_tuple__103);
50990 __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E, 5070, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 5070, __pyx_L1_error)
50999 __pyx_tuple__105 = PyTuple_Pack(46, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 5135, __pyx_L1_error)
51000 __Pyx_GOTREF(__pyx_tuple__105);
51001 __Pyx_GIVEREF(__pyx_tuple__105);
51002 __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(46, 0, 46, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E, 5135, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 5135, __pyx_L1_error)
51011 __pyx_tuple__107 = PyTuple_Pack(26, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 5228, __pyx_L1_error)
51012 __Pyx_GOTREF(__pyx_tuple__107);
51013 __Pyx_GIVEREF(__pyx_tuple__107);
51014 __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat, 5228, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 5228, __pyx_L1_error)
51023 __pyx_tuple__109 = PyTuple_Pack(34, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_g, __pyx_n_s_vof, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 5281, __pyx_L1_error)
51024 __Pyx_GOTREF(__pyx_tuple__109);
51025 __Pyx_GIVEREF(__pyx_tuple__109);
51026 __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat, 5281, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 5281, __pyx_L1_error)
51035 __pyx_tuple__111 = PyTuple_Pack(7, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df);
if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 5350, __pyx_L1_error)
51036 __Pyx_GOTREF(__pyx_tuple__111);
51037 __Pyx_GIVEREF(__pyx_tuple__111);
51038 __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareVortexEvaluate, 5350, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 5350, __pyx_L1_error)
51047 __pyx_tuple__113 = PyTuple_Pack(10, __pyx_n_s_b, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH);
if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 5366, __pyx_L1_error)
51048 __Pyx_GOTREF(__pyx_tuple__113);
51049 __Pyx_GIVEREF(__pyx_tuple__113);
51050 __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_constantVelocityLevelSetEvaluate, 5366, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 5366, __pyx_L1_error)
51059 __pyx_tuple__115 = PyTuple_Pack(10, __pyx_n_s_b, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH);
if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 5388, __pyx_L1_error)
51060 __Pyx_GOTREF(__pyx_tuple__115);
51061 __Pyx_GIVEREF(__pyx_tuple__115);
51062 __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_constantNormalVelocityLevelSetEv, 5388, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 5388, __pyx_L1_error)
51071 __pyx_tuple__117 = PyTuple_Pack(10, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH);
if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 5410, __pyx_L1_error)
51072 __Pyx_GOTREF(__pyx_tuple__117);
51073 __Pyx_GIVEREF(__pyx_tuple__117);
51074 __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareVortexLevelSetEvaluate, 5410, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(0, 5410, __pyx_L1_error)
51083 __pyx_tuple__119 = PyTuple_Pack(10, __pyx_n_s_t, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_H, __pyx_n_s_dH);
if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 5432, __pyx_L1_error)
51084 __Pyx_GOTREF(__pyx_tuple__119);
51085 __Pyx_GIVEREF(__pyx_tuple__119);
51086 __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_unitSquareRotationLevelSetEvalua, 5432, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 5432, __pyx_L1_error)
51095 __pyx_tuple__121 = PyTuple_Pack(7, __pyx_n_s_offset, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_H, __pyx_n_s_dH);
if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 5454, __pyx_L1_error)
51096 __Pyx_GOTREF(__pyx_tuple__121);
51097 __Pyx_GIVEREF(__pyx_tuple__121);
51098 __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_HJBurgersEvaluate, 5454, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 5454, __pyx_L1_error)
51107 __pyx_tuple__123 = PyTuple_Pack(19, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_x, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 5470, __pyx_L1_error)
51108 __Pyx_GOTREF(__pyx_tuple__123);
51109 __Pyx_GIVEREF(__pyx_tuple__123);
51110 __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa, 5470, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 5470, __pyx_L1_error)
51119 __pyx_tuple__125 = PyTuple_Pack(16, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 5510, __pyx_L1_error)
51120 __Pyx_GOTREF(__pyx_tuple__125);
51121 __Pyx_GIVEREF(__pyx_tuple__125);
51122 __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsL2projMu, 5510, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 5510, __pyx_L1_error)
51131 __pyx_tuple__127 = PyTuple_Pack(16, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 5546, __pyx_L1_error)
51132 __Pyx_GOTREF(__pyx_tuple__127);
51133 __Pyx_GIVEREF(__pyx_tuple__127);
51134 __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsL2projBn, 5546, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 5546, __pyx_L1_error)
51143 __pyx_tuple__129 = PyTuple_Pack(15, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_dV, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 5583, __pyx_L1_error)
51144 __Pyx_GOTREF(__pyx_tuple__129);
51145 __Pyx_GIVEREF(__pyx_tuple__129);
51146 __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsL2projMu_2, 5583, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(0, 5583, __pyx_L1_error)
51155 __pyx_tuple__131 = PyTuple_Pack(18, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_x, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 5616, __pyx_L1_error)
51156 __Pyx_GOTREF(__pyx_tuple__131);
51157 __Pyx_GIVEREF(__pyx_tuple__131);
51158 __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeTotalHeadRichardsMua, 5616, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(0, 5616, __pyx_L1_error)
51167 __pyx_tuple__133 = PyTuple_Pack(21, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_vol_frac, __pyx_n_s_linearize_at_zero, __pyx_n_s_pc_eps);
if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 5654, __pyx_L1_error)
51168 __Pyx_GOTREF(__pyx_tuple__133);
51169 __Pyx_GIVEREF(__pyx_tuple__133);
51170 __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_2, 5654, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 5654, __pyx_L1_error)
51179 __pyx_tuple__135 = PyTuple_Pack(16, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 5723, __pyx_L1_error)
51180 __Pyx_GOTREF(__pyx_tuple__135);
51181 __Pyx_GIVEREF(__pyx_tuple__135);
51182 __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_3, 5723, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 5723, __pyx_L1_error)
51191 __pyx_tuple__137 = PyTuple_Pack(18, __pyx_n_s_materialTypes, __pyx_n_s_epsFact, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_elementDiameter, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 5758, __pyx_L1_error)
51192 __Pyx_GOTREF(__pyx_tuple__137);
51193 __Pyx_GIVEREF(__pyx_tuple__137);
51194 __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_seepageBrezis, 5758, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(0, 5758, __pyx_L1_error)
51203 __pyx_tuple__139 = PyTuple_Pack(14, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 5797, __pyx_L1_error)
51204 __Pyx_GOTREF(__pyx_tuple__139);
51205 __Pyx_GIVEREF(__pyx_tuple__139);
51206 __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_4, 5797, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 5797, __pyx_L1_error)
51215 __pyx_tuple__141 = PyTuple_Pack(18, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_x, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 5827, __pyx_L1_error)
51216 __Pyx_GOTREF(__pyx_tuple__141);
51217 __Pyx_GIVEREF(__pyx_tuple__141);
51218 __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeSatRichardsMualemVan, 5827, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(0, 5827, __pyx_L1_error)
51227 __pyx_tuple__143 = PyTuple_Pack(14, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_Lambda, __pyx_n_s_pd, __pyx_n_s_thetaR, __pyx_n_s_thetaS, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 5865, __pyx_L1_error)
51228 __Pyx_GOTREF(__pyx_tuple__143);
51229 __Pyx_GIVEREF(__pyx_tuple__143);
51230 __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsBrooksCo, 5865, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 5865, __pyx_L1_error)
51239 __pyx_tuple__145 = PyTuple_Pack(15, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_Lambda, __pyx_n_s_pd, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 5895, __pyx_L1_error)
51240 __Pyx_GOTREF(__pyx_tuple__145);
51241 __Pyx_GIVEREF(__pyx_tuple__145);
51242 __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsBrooksCo_2, 5895, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 5895, __pyx_L1_error)
51251 __pyx_tuple__147 = PyTuple_Pack(18, __pyx_n_s_nPoints, __pyx_n_s_nSpace, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_Lambda, __pyx_n_s_pd, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_phi, __pyx_n_s_dphi);
if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 5927, __pyx_L1_error)
51252 __Pyx_GOTREF(__pyx_tuple__147);
51253 __Pyx_GIVEREF(__pyx_tuple__147);
51254 __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeSatRichardsBrooksCor, 5927, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 5927, __pyx_L1_error)
51263 __pyx_tuple__149 = PyTuple_Pack(15, __pyx_n_s_rho, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n, __pyx_n_s_m, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 5963, __pyx_L1_error)
51264 __Pyx_GOTREF(__pyx_tuple__149);
51265 __Pyx_GIVEREF(__pyx_tuple__149);
51266 __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsBCBfromM, 5963, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(0, 5963, __pyx_L1_error)
51275 __pyx_tuple__151 = PyTuple_Pack(6, __pyx_n_s_E, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_u, __pyx_n_s_uu_diff_ten, __pyx_n_s_u_force);
if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 5995, __pyx_L1_error)
51276 __Pyx_GOTREF(__pyx_tuple__151);
51277 __Pyx_GIVEREF(__pyx_tuple__151);
51278 __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_LinearElasticity_1D_Evaluate, 5995, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 5995, __pyx_L1_error)
51287 __pyx_tuple__153 = PyTuple_Pack(11, __pyx_n_s_E, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force);
if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 6008, __pyx_L1_error)
51288 __Pyx_GOTREF(__pyx_tuple__153);
51289 __Pyx_GIVEREF(__pyx_tuple__153);
51290 __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_LinearElasticity_2D_Evaluate, 6008, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(0, 6008, __pyx_L1_error)
51299 __pyx_tuple__155 = PyTuple_Pack(18, __pyx_n_s_E, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_uw_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_vw_diff_ten, __pyx_n_s_wu_diff_ten, __pyx_n_s_wv_diff_ten, __pyx_n_s_ww_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force, __pyx_n_s_w_force);
if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 6031, __pyx_L1_error)
51300 __Pyx_GOTREF(__pyx_tuple__155);
51301 __Pyx_GIVEREF(__pyx_tuple__155);
51302 __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_LinearElasticity_3D_Evaluate, 6031, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 6031, __pyx_L1_error)
51311 __pyx_tuple__157 = PyTuple_Pack(12, __pyx_n_s_E0, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_det_J, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force);
if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 6068, __pyx_L1_error)
51312 __Pyx_GOTREF(__pyx_tuple__157);
51313 __Pyx_GIVEREF(__pyx_tuple__157);
51314 __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_MovingMesh_2D_Evaluate, 6068, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 6068, __pyx_L1_error)
51323 __pyx_tuple__159 = PyTuple_Pack(19, __pyx_n_s_E0, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_det_J, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_uu_diff_ten, __pyx_n_s_uv_diff_ten, __pyx_n_s_uw_diff_ten, __pyx_n_s_vu_diff_ten, __pyx_n_s_vv_diff_ten, __pyx_n_s_vw_diff_ten, __pyx_n_s_wu_diff_ten, __pyx_n_s_wv_diff_ten, __pyx_n_s_ww_diff_ten, __pyx_n_s_u_force, __pyx_n_s_v_force, __pyx_n_s_w_force);
if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 6093, __pyx_L1_error)
51324 __Pyx_GOTREF(__pyx_tuple__159);
51325 __Pyx_GIVEREF(__pyx_tuple__159);
51326 __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_MovingMesh_3D_Evaluate, 6093, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(0, 6093, __pyx_L1_error)
51335 __pyx_tuple__161 = PyTuple_Pack(7, __pyx_n_s_E0, __pyx_n_s_nu, __pyx_n_s_g, __pyx_n_s_det_J, __pyx_n_s_u, __pyx_n_s_uu_diff_ten, __pyx_n_s_u_force);
if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 6132, __pyx_L1_error)
51336 __Pyx_GOTREF(__pyx_tuple__161);
51337 __Pyx_GIVEREF(__pyx_tuple__161);
51338 __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_MovingMesh_1D_Evaluate, 6132, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(0, 6132, __pyx_L1_error)
51347 __pyx_tuple__163 = PyTuple_Pack(9, __pyx_n_s_epsHeaviside, __pyx_n_s_epsDirac, __pyx_n_s_epsDiffusion, __pyx_n_s_u_ls, __pyx_n_s_H_vof, __pyx_n_s_u, __pyx_n_s_r, __pyx_n_s_dr, __pyx_n_s_a);
if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 6147, __pyx_L1_error)
51348 __Pyx_GOTREF(__pyx_tuple__163);
51349 __Pyx_GIVEREF(__pyx_tuple__163);
51350 __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_levelSetConservationCoefficients, 6147, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(0, 6147, __pyx_L1_error)
51359 __pyx_tuple__165 = PyTuple_Pack(7, __pyx_n_s_epsHeaviside, __pyx_n_s_epsDirac, __pyx_n_s_u_ls, __pyx_n_s_H_vof, __pyx_n_s_u, __pyx_n_s_r, __pyx_n_s_dr);
if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 6167, __pyx_L1_error)
51360 __Pyx_GOTREF(__pyx_tuple__165);
51361 __Pyx_GIVEREF(__pyx_tuple__165);
51362 __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_levelSetConservationCoefficients_2, 6167, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(0, 6167, __pyx_L1_error)
51371 __pyx_tuple__167 = PyTuple_Pack(7, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a);
if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 6182, __pyx_L1_error)
51372 __Pyx_GOTREF(__pyx_tuple__167);
51373 __Pyx_GIVEREF(__pyx_tuple__167);
51374 __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_evaluateBuckleyLeverettLiuExampl, 6182, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 6182, __pyx_L1_error)
51383 __pyx_tuple__169 = PyTuple_Pack(36, __pyx_n_s_rho, __pyx_n_s_mu, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 6198, __pyx_L1_error)
51384 __Pyx_GOTREF(__pyx_tuple__169);
51385 __Pyx_GIVEREF(__pyx_tuple__169);
51386 __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedNavierStokesFullDe, 6198, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(0, 6198, __pyx_L1_error)
51395 __pyx_tuple__171 = PyTuple_Pack(59, __pyx_n_s_rho, __pyx_n_s_mu, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 6271, __pyx_L1_error)
51396 __Pyx_GOTREF(__pyx_tuple__171);
51397 __Pyx_GIVEREF(__pyx_tuple__171);
51398 __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(59, 0, 59, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedNavierStokesFullDe_2, 6271, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(0, 6271, __pyx_L1_error)
51407 __pyx_tuple__173 = PyTuple_Pack(45, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 6390, __pyx_L1_error)
51408 __Pyx_GOTREF(__pyx_tuple__173);
51409 __Pyx_GIVEREF(__pyx_tuple__173);
51410 __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(45, 0, 45, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok, 6390, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 6390, __pyx_L1_error)
51419 __pyx_tuple__175 = PyTuple_Pack(45, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p);
if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 6481, __pyx_L1_error)
51420 __Pyx_GOTREF(__pyx_tuple__175);
51421 __Pyx_GIVEREF(__pyx_tuple__175);
51422 __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(45, 0, 45, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok_2, 6481, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 6481, __pyx_L1_error)
51431 __pyx_tuple__177 = PyTuple_Pack(68, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 6572, __pyx_L1_error)
51432 __Pyx_GOTREF(__pyx_tuple__177);
51433 __Pyx_GIVEREF(__pyx_tuple__177);
51434 __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(68, 0, 68, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok_3, 6572, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 6572, __pyx_L1_error)
51443 __pyx_tuple__179 = PyTuple_Pack(68, __pyx_n_s_killNonlinearDrag, __pyx_n_s_eps_rho, __pyx_n_s_eps_mu, __pyx_n_s_sigma, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_meanGrainSize, __pyx_n_s_g, __pyx_n_s_phi, __pyx_n_s_n, __pyx_n_s_kappa, __pyx_n_s_p, __pyx_n_s_grad_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_porosity, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_w_acc_w, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_dmass_adv_w, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_dmom_u_adv_w, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v, __pyx_n_s_dmom_v_adv_w, __pyx_n_s_mom_w_adv, __pyx_n_s_dmom_w_adv_u, __pyx_n_s_dmom_w_adv_v, __pyx_n_s_dmom_w_adv_w, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source, __pyx_n_s_dmom_u_source_u, __pyx_n_s_dmom_u_source_v, __pyx_n_s_dmom_u_source_w, __pyx_n_s_dmom_v_source_u, __pyx_n_s_dmom_v_source_v, __pyx_n_s_dmom_v_source_w, __pyx_n_s_dmom_w_source_u, __pyx_n_s_dmom_w_source_v, __pyx_n_s_dmom_w_source_w, __pyx_n_s_mom_u_ham, __pyx_n_s_dmom_u_ham_grad_p, __pyx_n_s_mom_v_ham, __pyx_n_s_dmom_v_ham_grad_p, __pyx_n_s_mom_w_ham, __pyx_n_s_dmom_w_ham_grad_p);
if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 6709, __pyx_L1_error)
51444 __Pyx_GOTREF(__pyx_tuple__179);
51445 __Pyx_GIVEREF(__pyx_tuple__179);
51446 __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(68, 0, 68, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedTwophaseNavierStok_4, 6709, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 6709, __pyx_L1_error)
51455 __pyx_tuple__181 = PyTuple_Pack(9, __pyx_n_s_eps, __pyx_n_s_v, __pyx_n_s_phi, __pyx_n_s_porosity, __pyx_n_s_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_f, __pyx_n_s_df);
if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 6846, __pyx_L1_error)
51456 __Pyx_GOTREF(__pyx_tuple__181);
51457 __Pyx_GIVEREF(__pyx_tuple__181);
51458 __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_VolumeAveragedVOFCoefficientsEva, 6846, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 6846, __pyx_L1_error)
51467 __pyx_tuple__183 = PyTuple_Pack(36, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de);
if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 6866, __pyx_L1_error)
51468 __Pyx_GOTREF(__pyx_tuple__183);
51469 __Pyx_GIVEREF(__pyx_tuple__183);
51470 __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_2D_Evaluate, 6866, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 6866, __pyx_L1_error)
51479 __pyx_tuple__185 = PyTuple_Pack(36, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de);
if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 6940, __pyx_L1_error)
51480 __Pyx_GOTREF(__pyx_tuple__185);
51481 __Pyx_GIVEREF(__pyx_tuple__185);
51482 __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_2D_Evaluate_sd, 6940, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 6940, __pyx_L1_error)
51491 __pyx_tuple__187 = PyTuple_Pack(37, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de);
if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 7014, __pyx_L1_error)
51492 __Pyx_GOTREF(__pyx_tuple__187);
51493 __Pyx_GIVEREF(__pyx_tuple__187);
51494 __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(37, 0, 37, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_3D_Evaluate_sd, 7014, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 7014, __pyx_L1_error)
51503 __pyx_tuple__189 = PyTuple_Pack(37, __pyx_n_s_sigma_k, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_da_k_de, __pyx_n_s_a_e, __pyx_n_s_da_e_dk, __pyx_n_s_da_e_de, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk, __pyx_n_s_dr_k_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_dk, __pyx_n_s_dr_e_de);
if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 7090, __pyx_L1_error)
51504 __Pyx_GOTREF(__pyx_tuple__189);
51505 __Pyx_GIVEREF(__pyx_tuple__189);
51506 __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(37, 0, 37, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_3D_Evaluate, 7090, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 7090, __pyx_L1_error)
51515 __pyx_tuple__191 = PyTuple_Pack(18, __pyx_n_s_sigma_k, __pyx_n_s_c_mu, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk);
if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 7166, __pyx_L1_error)
51516 __Pyx_GOTREF(__pyx_tuple__191);
51517 __Pyx_GIVEREF(__pyx_tuple__191);
51518 __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_k_2D_Evaluate_sd, 7166, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 7166, __pyx_L1_error)
51527 __pyx_tuple__193 = PyTuple_Pack(21, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_e, __pyx_n_s_da_e_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_de);
if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 7204, __pyx_L1_error)
51528 __Pyx_GOTREF(__pyx_tuple__193);
51529 __Pyx_GIVEREF(__pyx_tuple__193);
51530 __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd, 7204, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 7204, __pyx_L1_error)
51539 __pyx_tuple__195 = PyTuple_Pack(19, __pyx_n_s_sigma_k, __pyx_n_s_c_mu, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_k, __pyx_n_s_dm_k, __pyx_n_s_phi_k, __pyx_n_s_dphi_k, __pyx_n_s_f_k, __pyx_n_s_df_k, __pyx_n_s_a_k, __pyx_n_s_da_k_dk, __pyx_n_s_r_k, __pyx_n_s_dr_k_dk);
if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 7248, __pyx_L1_error)
51540 __Pyx_GOTREF(__pyx_tuple__195);
51541 __Pyx_GIVEREF(__pyx_tuple__195);
51542 __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_k_3D_Evaluate_sd, 7248, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 7248, __pyx_L1_error)
51551 __pyx_tuple__197 = PyTuple_Pack(22, __pyx_n_s_sigma_e, __pyx_n_s_c_1, __pyx_n_s_c_2, __pyx_n_s_c_mu, __pyx_n_s_c_e, __pyx_n_s_nu, __pyx_n_s_velocity, __pyx_n_s_gradu, __pyx_n_s_gradv, __pyx_n_s_gradw, __pyx_n_s_k, __pyx_n_s_epsilon, __pyx_n_s_m_e, __pyx_n_s_dm_e, __pyx_n_s_phi_e, __pyx_n_s_dphi_e, __pyx_n_s_f_e, __pyx_n_s_df_e, __pyx_n_s_a_e, __pyx_n_s_da_e_de, __pyx_n_s_r_e, __pyx_n_s_dr_e_de);
if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 7288, __pyx_L1_error)
51552 __Pyx_GOTREF(__pyx_tuple__197);
51553 __Pyx_GIVEREF(__pyx_tuple__197);
51554 __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd, 7288, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 7288, __pyx_L1_error)
51563 __pyx_tuple__199 = PyTuple_Pack(11, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source);
if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 7334, __pyx_L1_error)
51564 __Pyx_GOTREF(__pyx_tuple__199);
51565 __Pyx_GIVEREF(__pyx_tuple__199);
51566 __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp, 7334, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 7334, __pyx_L1_error)
51575 __pyx_tuple__201 = PyTuple_Pack(12, __pyx_n_s_rho, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source);
if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 7357, __pyx_L1_error)
51576 __Pyx_GOTREF(__pyx_tuple__201);
51577 __Pyx_GIVEREF(__pyx_tuple__201);
51578 __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2, 7357, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 7357, __pyx_L1_error)
51587 __pyx_tuple__203 = PyTuple_Pack(17, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source);
if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 7382, __pyx_L1_error)
51588 __Pyx_GOTREF(__pyx_tuple__203);
51589 __Pyx_GIVEREF(__pyx_tuple__203);
51590 __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3, 7382, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 7382, __pyx_L1_error)
51599 __pyx_tuple__205 = PyTuple_Pack(17, __pyx_n_s_nu, __pyx_n_s_c_mu, __pyx_n_s_k, __pyx_n_s_grad_k, __pyx_n_s_epsilon, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten, __pyx_n_s_mom_u_source, __pyx_n_s_mom_v_source, __pyx_n_s_mom_w_source);
if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 7417, __pyx_L1_error)
51600 __Pyx_GOTREF(__pyx_tuple__205);
51601 __Pyx_GIVEREF(__pyx_tuple__205);
51602 __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4, 7417, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 7417, __pyx_L1_error)
51611 __pyx_tuple__207 = PyTuple_Pack(6, __pyx_n_s_t, __pyx_n_s_radii, __pyx_n_s_centers, __pyx_n_s_x, __pyx_n_s_phi, __pyx_n_s_n);
if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 7452, __pyx_L1_error)
51612 __Pyx_GOTREF(__pyx_tuple__207);
51613 __Pyx_GIVEREF(__pyx_tuple__207);
51614 __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_scriptedSphereMotionSignedDistan, 7452, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 7452, __pyx_L1_error)
51623 __pyx_tuple__209 = PyTuple_Pack(23, __pyx_n_s_h_eps, __pyx_n_s_g, __pyx_n_s_bedFrictionCoefficient, __pyx_n_s_bedFrictionPower, __pyx_n_s_eddyViscosity, __pyx_n_s_x, __pyx_n_s_db_dx, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_H, __pyx_n_s_mass_acc, __pyx_n_s_dmass_acc_dh, __pyx_n_s_mom_acc, __pyx_n_s_dmom_acc_dhu, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_dhu, __pyx_n_s_mom_adv, __pyx_n_s_dmom_adv_dh, __pyx_n_s_dmom_adv_dhu, __pyx_n_s_mom_source, __pyx_n_s_dmom_source_dh, __pyx_n_s_dmom_source_dhu, __pyx_n_s_mom_diff);
if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 7467, __pyx_L1_error)
51624 __Pyx_GOTREF(__pyx_tuple__209);
51625 __Pyx_GIVEREF(__pyx_tuple__209);
51626 __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(23, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_shallowWater_1D_Evaluate, 7467, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 7467, __pyx_L1_error)
51635 __pyx_tuple__211 = PyTuple_Pack(38, __pyx_n_s_h_eps, __pyx_n_s_g, __pyx_n_s_bedFrictionCoefficient, __pyx_n_s_bedFrictionPower, __pyx_n_s_eddyViscosity, __pyx_n_s_x, __pyx_n_s_grad_b, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_hv, __pyx_n_s_H, __pyx_n_s_mass_acc, __pyx_n_s_dmass_acc_dh, __pyx_n_s_mom_u_acc, __pyx_n_s_dmom_u_acc_dhu, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_v_acc_dhv, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_dhu, __pyx_n_s_dmass_adv_dhv, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_dh, __pyx_n_s_dmom_u_adv_dhu, __pyx_n_s_dmom_u_adv_dhv, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_dh, __pyx_n_s_dmom_v_adv_dhu, __pyx_n_s_dmom_v_adv_dhv, __pyx_n_s_mom_u_diff, __pyx_n_s_mom_v_diff, __pyx_n_s_mom_u_source, __pyx_n_s_dmom_u_source_dh, __pyx_n_s_dmom_u_source_dhu, __pyx_n_s_dmom_u_source_dhv, __pyx_n_s_mom_v_source, __pyx_n_s_dmom_v_source_dh, __pyx_n_s_dmom_v_source_dhu, __pyx_n_s_dmom_v_source_dhv);
if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 7514, __pyx_L1_error)
51636 __Pyx_GOTREF(__pyx_tuple__211);
51637 __Pyx_GIVEREF(__pyx_tuple__211);
51638 __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__211, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_shallowWater_2D_Evaluate, 7514, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 7514, __pyx_L1_error)
51647 __pyx_tuple__213 = PyTuple_Pack(28, __pyx_n_s_upwindFlag, __pyx_n_s_computeAverages, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_quadraturePointToElementBoundary, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n_vg, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_n_global, __pyx_n_s_dV, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f_avg, __pyx_n_s_df_avg, __pyx_n_s_a_avg, __pyx_n_s_da_avg, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 7591, __pyx_L1_error)
51648 __Pyx_GOTREF(__pyx_tuple__213);
51649 __Pyx_GIVEREF(__pyx_tuple__213);
51650 __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__213, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_5, 7591, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(0, 7591, __pyx_L1_error)
51659 __pyx_tuple__215 = PyTuple_Pack(28, __pyx_n_s_upwindFlag, __pyx_n_s_computeAverages, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_quadraturePointToElementBoundary, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n_vg, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_n_global, __pyx_n_s_dV, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f_avg, __pyx_n_s_df_avg, __pyx_n_s_a_avg, __pyx_n_s_da_avg, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 7650, __pyx_L1_error)
51660 __Pyx_GOTREF(__pyx_tuple__215);
51661 __Pyx_GIVEREF(__pyx_tuple__215);
51662 __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__215, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_6, 7650, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(0, 7650, __pyx_L1_error)
51671 __pyx_tuple__217 = PyTuple_Pack(30, __pyx_n_s_upwindFlag, __pyx_n_s_computeAverages, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_quadraturePointToElementBoundary, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_alpha, __pyx_n_s_n_vg, __pyx_n_s_thetaR, __pyx_n_s_thetaSR, __pyx_n_s_KWs, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_n_global, __pyx_n_s_dV, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f_avg, __pyx_n_s_df_avg, __pyx_n_s_a_avg, __pyx_n_s_da_avg, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 7709, __pyx_L1_error)
51672 __Pyx_GOTREF(__pyx_tuple__217);
51673 __Pyx_GIVEREF(__pyx_tuple__217);
51674 __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__217, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsMualemVa_7, 7709, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 7709, __pyx_L1_error)
51683 __pyx_tuple__219 = PyTuple_Pack(5, __pyx_n_s_eps, __pyx_n_s_isDOFBoundary, __pyx_n_s_phi, __pyx_n_s_advectiveFlux, __pyx_n_s_diffusiveFlux);
if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 7772, __pyx_L1_error)
51684 __Pyx_GOTREF(__pyx_tuple__219);
51685 __Pyx_GIVEREF(__pyx_tuple__219);
51686 __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_applyContactLineSlip, 7772, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(0, 7772, __pyx_L1_error)
51695 __pyx_tuple__221 = PyTuple_Pack(4, __pyx_n_s_eps, __pyx_n_s_isDOFBoundary, __pyx_n_s_phi, __pyx_n_s_fluxJacobian);
if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 7784, __pyx_L1_error)
51696 __Pyx_GOTREF(__pyx_tuple__221);
51697 __Pyx_GIVEREF(__pyx_tuple__221);
51698 __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__221, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_applyContactLineSlipJacobian, 7784, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(0, 7784, __pyx_L1_error)
51707 __pyx_tuple__223 = PyTuple_Pack(5, __pyx_n_s_smagorinskyConstant, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_nu_t);
if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 7795, __pyx_L1_error)
51708 __Pyx_GOTREF(__pyx_tuple__223);
51709 __Pyx_GIVEREF(__pyx_tuple__223);
51710 __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__223, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins, 7795, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 7795, __pyx_L1_error)
51719 __pyx_tuple__225 = PyTuple_Pack(6, __pyx_n_s_smagorinskyConstant, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_grad_w, __pyx_n_s_nu_t);
if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 7807, __pyx_L1_error)
51720 __Pyx_GOTREF(__pyx_tuple__225);
51721 __Pyx_GIVEREF(__pyx_tuple__225);
51722 __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__225, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins_2, 7807, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(0, 7807, __pyx_L1_error)
51731 __pyx_tuple__227 = PyTuple_Pack(8, __pyx_n_s_smagorinskyConstant_0, __pyx_n_s_smagorinskyConstant_1, __pyx_n_s_eps, __pyx_n_s_phi_ls, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_nu_t);
if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 7821, __pyx_L1_error)
51732 __Pyx_GOTREF(__pyx_tuple__227);
51733 __Pyx_GIVEREF(__pyx_tuple__227);
51734 __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__227, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins_3, 7821, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(0, 7821, __pyx_L1_error)
51743 __pyx_tuple__229 = PyTuple_Pack(9, __pyx_n_s_smagorinskyConstant_0, __pyx_n_s_smagorinskyConstant_1, __pyx_n_s_eps, __pyx_n_s_phi_ls, __pyx_n_s_h_e, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_grad_w, __pyx_n_s_nu_t);
if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 7839, __pyx_L1_error)
51744 __Pyx_GOTREF(__pyx_tuple__229);
51745 __Pyx_GIVEREF(__pyx_tuple__229);
51746 __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__229, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_calculateEddyViscosity_Smagorins_4, 7839, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 7839, __pyx_L1_error)
51755 __pyx_tuple__231 = PyTuple_Pack(5, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten);
if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 7859, __pyx_L1_error)
51756 __Pyx_GOTREF(__pyx_tuple__231);
51757 __Pyx_GIVEREF(__pyx_tuple__231);
51758 __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__231, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_2D_Update, 7859, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(0, 7859, __pyx_L1_error)
51767 __pyx_tuple__233 = PyTuple_Pack(5, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_vu_diff_ten);
if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 7870, __pyx_L1_error)
51768 __Pyx_GOTREF(__pyx_tuple__233);
51769 __Pyx_GIVEREF(__pyx_tuple__233);
51770 __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_2D_Update_sd, 7870, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(0, 7870, __pyx_L1_error)
51779 __pyx_tuple__235 = PyTuple_Pack(10, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten);
if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 7881, __pyx_L1_error)
51780 __Pyx_GOTREF(__pyx_tuple__235);
51781 __Pyx_GIVEREF(__pyx_tuple__235);
51782 __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__235, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_3D_Update, 7881, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 7881, __pyx_L1_error)
51791 __pyx_tuple__237 = PyTuple_Pack(10, __pyx_n_s_nu_t, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten, __pyx_n_s_mom_uv_diff_ten, __pyx_n_s_mom_uw_diff_ten, __pyx_n_s_mom_vu_diff_ten, __pyx_n_s_mom_vw_diff_ten, __pyx_n_s_mom_wu_diff_ten, __pyx_n_s_mom_wv_diff_ten);
if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 7902, __pyx_L1_error)
51792 __Pyx_GOTREF(__pyx_tuple__237);
51793 __Pyx_GIVEREF(__pyx_tuple__237);
51794 __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__237, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_eddyViscosity_3D_Update_sd, 7902, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(0, 7902, __pyx_L1_error)
51803 __pyx_tuple__239 = PyTuple_Pack(16, __pyx_n_s_mesh_trial_ref, __pyx_n_s_mesh_dof, __pyx_n_s_mesh_l2g, __pyx_n_s_elementDiametersArray, __pyx_n_s_omega_s_x, __pyx_n_s_omega_s_y, __pyx_n_s_omega_s_z, __pyx_n_s_t, __pyx_n_s_waveFlag, __pyx_n_s_epsFact, __pyx_n_s_waveHeight, __pyx_n_s_waveCelerity, __pyx_n_s_waveFrequency, __pyx_n_s_waveNumber, __pyx_n_s_waterDepth, __pyx_n_s_source);
if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 7923, __pyx_L1_error)
51804 __Pyx_GOTREF(__pyx_tuple__239);
51805 __Pyx_GIVEREF(__pyx_tuple__239);
51806 __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__239, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_calculateWaveFunction3d_ref, 7923, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(0, 7923, __pyx_L1_error)
51815 __pyx_tuple__241 = PyTuple_Pack(10, __pyx_n_s_rho, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mom_p_acc, __pyx_n_s_mom_u_acc, __pyx_n_s_mom_v_acc, __pyx_n_s_dmom_p_acc_p, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_dmom_v_acc_v);
if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 7958, __pyx_L1_error)
51816 __Pyx_GOTREF(__pyx_tuple__241);
51817 __Pyx_GIVEREF(__pyx_tuple__241);
51818 __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__241, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Mass_2D_Evaluate, 7958, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 7958, __pyx_L1_error)
51827 __pyx_tuple__243 = PyTuple_Pack(13, __pyx_n_s_rho, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_p_acc, __pyx_n_s_mom_u_acc, __pyx_n_s_mom_v_acc, __pyx_n_s_mom_w_acc, __pyx_n_s_dmom_p_acc_p, __pyx_n_s_dmom_u_acc_u, __pyx_n_s_dmom_v_acc_v, __pyx_n_s_dmom_w_acc_w);
if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 7979, __pyx_L1_error)
51828 __Pyx_GOTREF(__pyx_tuple__243);
51829 __Pyx_GIVEREF(__pyx_tuple__243);
51830 __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Mass_3D_Evaluate, 7979, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(0, 7979, __pyx_L1_error)
51839 __pyx_tuple__245 = PyTuple_Pack(19, __pyx_n_s_eps, __pyx_n_s_rho_0, __pyx_n_s_nu_0, __pyx_n_s_rho_1, __pyx_n_s_nu_1, __pyx_n_s_phi, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_mass_adv, __pyx_n_s_dmass_adv_p, __pyx_n_s_dmass_adv_u, __pyx_n_s_dmass_adv_v, __pyx_n_s_mom_u_adv, __pyx_n_s_dmom_u_adv_u, __pyx_n_s_dmom_u_adv_v, __pyx_n_s_mom_v_adv, __pyx_n_s_dmom_v_adv_u, __pyx_n_s_dmom_v_adv_v);
if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 8006, __pyx_L1_error)
51840 __Pyx_GOTREF(__pyx_tuple__245);
51841 __Pyx_GIVEREF(__pyx_tuple__245);
51842 __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__245, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_TwoPhaseAdvection_2D_Evaluate, 8006, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(0, 8006, __pyx_L1_error)
51851 __pyx_tuple__247 = PyTuple_Pack(4, __pyx_n_s_nPoints, __pyx_n_s_eps, __pyx_n_s_u_levelSet, __pyx_n_s_S);
if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 8045, __pyx_L1_error)
51852 __Pyx_GOTREF(__pyx_tuple__247);
51853 __Pyx_GIVEREF(__pyx_tuple__247);
51854 __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__247, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_twophaseSignedDistanceUpdateSign, 8045, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 8045, __pyx_L1_error)
51863 __pyx_tuple__249 = PyTuple_Pack(7, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_p_diff_ten, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten);
if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 8053, __pyx_L1_error)
51864 __Pyx_GOTREF(__pyx_tuple__249);
51865 __Pyx_GIVEREF(__pyx_tuple__249);
51866 __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__249, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Laplace_2D_Evaluate, 8053, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(0, 8053, __pyx_L1_error)
51875 __pyx_tuple__251 = PyTuple_Pack(8, __pyx_n_s_p, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_mom_p_diff_ten, __pyx_n_s_mom_u_diff_ten, __pyx_n_s_mom_v_diff_ten, __pyx_n_s_mom_w_diff_ten);
if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 8064, __pyx_L1_error)
51876 __Pyx_GOTREF(__pyx_tuple__251);
51877 __Pyx_GIVEREF(__pyx_tuple__251);
51878 __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_Laplace_3D_Evaluate, 8064, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(0, 8064, __pyx_L1_error)
51887 __pyx_tuple__253 = PyTuple_Pack(4, __pyx_n_s_nSimplices, __pyx_n_s_nPointsPerSimplex, __pyx_n_s_dV, __pyx_n_s_r);
if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 8077, __pyx_L1_error)
51888 __Pyx_GOTREF(__pyx_tuple__253);
51889 __Pyx_GIVEREF(__pyx_tuple__253);
51890 __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__253, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_l2projectScalar, 8077, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(0, 8077, __pyx_L1_error)
51899 __pyx_tuple__255 = PyTuple_Pack(5, __pyx_n_s_nSimplices, __pyx_n_s_nPointsPerSimplex, __pyx_n_s_nSpace, __pyx_n_s_dV, __pyx_n_s_r);
if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 8085, __pyx_L1_error)
51900 __Pyx_GOTREF(__pyx_tuple__255);
51901 __Pyx_GIVEREF(__pyx_tuple__255);
51902 __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__255, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_l2projectVector, 8085, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(0, 8085, __pyx_L1_error)
51911 __pyx_tuple__257 = PyTuple_Pack(5, __pyx_n_s_nSimplices, __pyx_n_s_nPointsPerSimplex, __pyx_n_s_nSpace, __pyx_n_s_dV, __pyx_n_s_r);
if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 8095, __pyx_L1_error)
51912 __Pyx_GOTREF(__pyx_tuple__257);
51913 __Pyx_GIVEREF(__pyx_tuple__257);
51914 __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__257, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_l2project2Tensor, 8095, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(0, 8095, __pyx_L1_error)
51923 __pyx_tuple__259 = PyTuple_Pack(3, __pyx_n_s_rank, __pyx_n_s_dV, __pyx_n_s_r);
if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 8105, __pyx_L1_error)
51924 __Pyx_GOTREF(__pyx_tuple__259);
51925 __Pyx_GIVEREF(__pyx_tuple__259);
51926 __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__259, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_L2projectEvaluate, 8105, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(0, 8105, __pyx_L1_error)
51935 __pyx_tuple__261 = PyTuple_Pack(18, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_phi, __pyx_n_s_psiD, __pyx_n_s_ns, __pyx_n_s_nk, __pyx_n_s_S_wirr, __pyx_n_s_S_nwr, __pyx_n_s_kr0, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 8116, __pyx_L1_error)
51936 __Pyx_GOTREF(__pyx_tuple__261);
51937 __Pyx_GIVEREF(__pyx_tuple__261);
51938 __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__261, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsJLeveret, 8116, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(0, 8116, __pyx_L1_error)
51947 __pyx_tuple__263 = PyTuple_Pack(20, __pyx_n_s_materialTypes, __pyx_n_s_rho, __pyx_n_s_beta, __pyx_n_s_gravity, __pyx_n_s_phi, __pyx_n_s_psiD, __pyx_n_s_ns, __pyx_n_s_nk, __pyx_n_s_S_wirr, __pyx_n_s_S_nwr, __pyx_n_s_kr0x, __pyx_n_s_kr0y, __pyx_n_s_kr0z, __pyx_n_s_u, __pyx_n_s_mass, __pyx_n_s_dmass, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 8155, __pyx_L1_error)
51948 __Pyx_GOTREF(__pyx_tuple__263);
51949 __Pyx_GIVEREF(__pyx_tuple__263);
51950 __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__263, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_conservativeHeadRichardsJLeveret_2, 8155, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(0, 8155, __pyx_L1_error)
51959 __pyx_tuple__265 = PyTuple_Pack(10, __pyx_n_s_alpha, __pyx_n_s_gamma, __pyx_n_s_epsilon, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 8198, __pyx_L1_error)
51960 __Pyx_GOTREF(__pyx_tuple__265);
51961 __Pyx_GIVEREF(__pyx_tuple__265);
51962 __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__265, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_diffusiveWave1DCoefficientsEvalu, 8198, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(0, 8198, __pyx_L1_error)
51971 __pyx_tuple__267 = PyTuple_Pack(11, __pyx_n_s_nd, __pyx_n_s_alpha, __pyx_n_s_gamma, __pyx_n_s_epsilon, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_grad_u, __pyx_n_s_m, __pyx_n_s_dm, __pyx_n_s_a, __pyx_n_s_da);
if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 8219, __pyx_L1_error)
51972 __Pyx_GOTREF(__pyx_tuple__267);
51973 __Pyx_GIVEREF(__pyx_tuple__267);
51974 __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__267, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_diffusiveWave2DCoefficientsEvalu, 8219, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(0, 8219, __pyx_L1_error)
51983 __pyx_tuple__269 = PyTuple_Pack(2, __pyx_n_s_eps, __pyx_n_s_phi);
if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 8243, __pyx_L1_error)
51984 __Pyx_GOTREF(__pyx_tuple__269);
51985 __Pyx_GIVEREF(__pyx_tuple__269);
51986 __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__269, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_smoothedHeaviside, 8243, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(0, 8243, __pyx_L1_error)
51995 __pyx_tuple__271 = PyTuple_Pack(2, __pyx_n_s_eps, __pyx_n_s_phi);
if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 8245, __pyx_L1_error)
51996 __Pyx_GOTREF(__pyx_tuple__271);
51997 __Pyx_GIVEREF(__pyx_tuple__271);
51998 __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__271, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_smoothedHeaviside_integral, 8245, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 8245, __pyx_L1_error)
52007 __pyx_tuple__273 = PyTuple_Pack(2, __pyx_n_s_eps, __pyx_n_s_phi);
if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 8247, __pyx_L1_error)
52008 __Pyx_GOTREF(__pyx_tuple__273);
52009 __Pyx_GIVEREF(__pyx_tuple__273);
52010 __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__273, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_ctransportCoefficients_p, __pyx_n_s_smoothedDirac, 8247, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(0, 8247, __pyx_L1_error)
52011 __Pyx_RefNannyFinishContext();
52014 __Pyx_RefNannyFinishContext();
52018 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
52019 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
52025 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
52026 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
52027 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
52028 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
52029 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
52030 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
52031 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
52033 static int __Pyx_modinit_global_init_code(
void) {
52034 __Pyx_RefNannyDeclarations
52035 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
52037 __Pyx_RefNannyFinishContext();
52041 static int __Pyx_modinit_variable_export_code(
void) {
52042 __Pyx_RefNannyDeclarations
52043 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
52045 __Pyx_RefNannyFinishContext();
52049 static int __Pyx_modinit_function_export_code(
void) {
52050 __Pyx_RefNannyDeclarations
52051 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
52053 __Pyx_RefNannyFinishContext();
52057 static int __Pyx_modinit_type_init_code(
void) {
52058 __Pyx_RefNannyDeclarations
52059 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
52061 __Pyx_RefNannyFinishContext();
52065 static int __Pyx_modinit_type_import_code(
void) {
52066 __Pyx_RefNannyDeclarations
52067 PyObject *__pyx_t_1 = NULL;
52068 int __pyx_lineno = 0;
52069 const char *__pyx_filename = NULL;
52070 int __pyx_clineno = 0;
52071 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
52073 __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
52074 __Pyx_GOTREF(__pyx_t_1);
52075 __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME,
"type",
52076 #
if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
52077 sizeof(PyTypeObject),
52079 sizeof(PyHeapTypeObject),
52081 __Pyx_ImportType_CheckSize_Warn);
52082 if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
52083 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52084 __pyx_t_1 = PyImport_ImportModule(
"numpy");
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 200, __pyx_L1_error)
52085 __Pyx_GOTREF(__pyx_t_1);
52086 __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1,
"numpy",
"dtype",
sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
52087 if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(1, 200, __pyx_L1_error)
52088 __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flatiter",
sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
52089 if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(1, 223, __pyx_L1_error)
52090 __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1,
"numpy",
"broadcast",
sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
52091 if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(1, 227, __pyx_L1_error)
52092 __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ndarray",
sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
52093 if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(1, 239, __pyx_L1_error)
52094 __pyx_ptype_5numpy_generic = __Pyx_ImportType(__pyx_t_1,
"numpy",
"generic",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52095 if (!__pyx_ptype_5numpy_generic) __PYX_ERR(1, 771, __pyx_L1_error)
52096 __pyx_ptype_5numpy_number = __Pyx_ImportType(__pyx_t_1,
"numpy",
"number",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52097 if (!__pyx_ptype_5numpy_number) __PYX_ERR(1, 773, __pyx_L1_error)
52098 __pyx_ptype_5numpy_integer = __Pyx_ImportType(__pyx_t_1,
"numpy",
"integer",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52099 if (!__pyx_ptype_5numpy_integer) __PYX_ERR(1, 775, __pyx_L1_error)
52100 __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"signedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52101 if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(1, 777, __pyx_L1_error)
52102 __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"unsignedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52103 if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(1, 779, __pyx_L1_error)
52104 __pyx_ptype_5numpy_inexact = __Pyx_ImportType(__pyx_t_1,
"numpy",
"inexact",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52105 if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(1, 781, __pyx_L1_error)
52106 __pyx_ptype_5numpy_floating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"floating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52107 if (!__pyx_ptype_5numpy_floating) __PYX_ERR(1, 783, __pyx_L1_error)
52108 __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"complexfloating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52109 if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(1, 785, __pyx_L1_error)
52110 __pyx_ptype_5numpy_flexible = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flexible",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52111 if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(1, 787, __pyx_L1_error)
52112 __pyx_ptype_5numpy_character = __Pyx_ImportType(__pyx_t_1,
"numpy",
"character",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
52113 if (!__pyx_ptype_5numpy_character) __PYX_ERR(1, 789, __pyx_L1_error)
52114 __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ufunc",
sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
52115 if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(1, 827, __pyx_L1_error)
52116 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52117 __Pyx_RefNannyFinishContext();
52120 __Pyx_XDECREF(__pyx_t_1);
52121 __Pyx_RefNannyFinishContext();
52125 static int __Pyx_modinit_variable_import_code(
void) {
52126 __Pyx_RefNannyDeclarations
52127 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
52129 __Pyx_RefNannyFinishContext();
52133 static int __Pyx_modinit_function_import_code(
void) {
52134 __Pyx_RefNannyDeclarations
52135 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
52137 __Pyx_RefNannyFinishContext();
52142 #ifndef CYTHON_NO_PYINIT_EXPORT
52143 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
52144 #elif PY_MAJOR_VERSION < 3
52146 #define __Pyx_PyMODINIT_FUNC extern "C" void
52148 #define __Pyx_PyMODINIT_FUNC void
52152 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
52154 #define __Pyx_PyMODINIT_FUNC PyObject *
52159 #if PY_MAJOR_VERSION < 3
52160 __Pyx_PyMODINIT_FUNC initctransportCoefficients(
void) CYTHON_SMALL_CODE;
52161 __Pyx_PyMODINIT_FUNC initctransportCoefficients(
void)
52163 __Pyx_PyMODINIT_FUNC PyInit_ctransportCoefficients(
void) CYTHON_SMALL_CODE;
52164 __Pyx_PyMODINIT_FUNC PyInit_ctransportCoefficients(
void)
52165 #if CYTHON_PEP489_MULTI_PHASE_INIT
52167 return PyModuleDef_Init(&__pyx_moduledef);
52169 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
52170 #if PY_VERSION_HEX >= 0x030700A1
52171 static PY_INT64_T main_interpreter_id = -1;
52172 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
52173 if (main_interpreter_id == -1) {
52174 main_interpreter_id = current_id;
52175 return (unlikely(current_id == -1)) ? -1 : 0;
52176 }
else if (unlikely(main_interpreter_id != current_id))
52178 static PyInterpreterState *main_interpreter = NULL;
52179 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
52180 if (!main_interpreter) {
52181 main_interpreter = current_interpreter;
52182 }
else if (unlikely(main_interpreter != current_interpreter))
52187 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
52192 static CYTHON_SMALL_CODE
int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict,
const char* from_name,
const char* to_name,
int allow_none) {
52193 PyObject *value = PyObject_GetAttrString(spec, from_name);
52195 if (likely(value)) {
52196 if (allow_none || value != Py_None) {
52197 result = PyDict_SetItemString(moddict, to_name, value);
52200 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
52207 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
52208 PyObject *module = NULL, *moddict, *modname;
52209 if (__Pyx_check_single_interpreter())
52212 return __Pyx_NewRef(__pyx_m);
52213 modname = PyObject_GetAttrString(spec,
"name");
52214 if (unlikely(!modname))
goto bad;
52215 module = PyModule_NewObject(modname);
52216 Py_DECREF(modname);
52217 if (unlikely(!module))
goto bad;
52218 moddict = PyModule_GetDict(module);
52219 if (unlikely(!moddict))
goto bad;
52220 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
52221 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
52222 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
52223 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
52226 Py_XDECREF(module);
52231 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_ctransportCoefficients(PyObject *__pyx_pyinit_module)
52235 PyObject *__pyx_t_1 = NULL;
52236 int __pyx_lineno = 0;
52237 const char *__pyx_filename = NULL;
52238 int __pyx_clineno = 0;
52239 __Pyx_RefNannyDeclarations
52240 #if CYTHON_PEP489_MULTI_PHASE_INIT
52242 if (__pyx_m == __pyx_pyinit_module)
return 0;
52243 PyErr_SetString(PyExc_RuntimeError,
"Module 'ctransportCoefficients' has already been imported. Re-initialisation is not supported.");
52246 #elif PY_MAJOR_VERSION >= 3
52247 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
52249 #if CYTHON_REFNANNY
52250 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
52251 if (!__Pyx_RefNanny) {
52253 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
52254 if (!__Pyx_RefNanny)
52255 Py_FatalError(
"failed to import 'refnanny' module");
52258 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_ctransportCoefficients(void)", 0);
52259 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52260 #ifdef __Pxy_PyFrame_Initialize_Offsets
52261 __Pxy_PyFrame_Initialize_Offsets();
52263 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
52264 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
52265 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
52266 #ifdef __Pyx_CyFunction_USED
52267 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52269 #ifdef __Pyx_FusedFunction_USED
52270 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52272 #ifdef __Pyx_Coroutine_USED
52273 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52275 #ifdef __Pyx_Generator_USED
52276 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52278 #ifdef __Pyx_AsyncGen_USED
52279 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52281 #ifdef __Pyx_StopAsyncIteration_USED
52282 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52286 #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
52287 PyEval_InitThreads();
52290 #if CYTHON_PEP489_MULTI_PHASE_INIT
52291 __pyx_m = __pyx_pyinit_module;
52292 Py_INCREF(__pyx_m);
52294 #if PY_MAJOR_VERSION < 3
52295 __pyx_m = Py_InitModule4(
"ctransportCoefficients", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
52297 __pyx_m = PyModule_Create(&__pyx_moduledef);
52299 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
52301 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
52302 Py_INCREF(__pyx_d);
52303 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
52304 Py_INCREF(__pyx_b);
52305 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
52306 Py_INCREF(__pyx_cython_runtime);
52307 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
52309 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52310 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
52311 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52313 if (__pyx_module_is_main_ctransportCoefficients) {
52314 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52316 #if PY_MAJOR_VERSION >= 3
52318 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
52319 if (!PyDict_GetItemString(modules,
"ctransportCoefficients")) {
52320 if (unlikely(PyDict_SetItemString(modules,
"ctransportCoefficients", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
52325 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52327 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52329 (void)__Pyx_modinit_global_init_code();
52330 (void)__Pyx_modinit_variable_export_code();
52331 (void)__Pyx_modinit_function_export_code();
52332 (void)__Pyx_modinit_type_init_code();
52333 if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
52334 (void)__Pyx_modinit_variable_import_code();
52335 (void)__Pyx_modinit_function_import_code();
52337 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
52338 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
52347 __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
52348 __Pyx_GOTREF(__pyx_t_1);
52349 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
52350 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52359 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_1linearADR_ConstantCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2816, __pyx_L1_error)
52360 __Pyx_GOTREF(__pyx_t_1);
52361 if (PyDict_SetItem(__pyx_d, __pyx_n_s_linearADR_ConstantCoefficientsEv, __pyx_t_1) < 0) __PYX_ERR(0, 2816, __pyx_L1_error)
52362 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52371 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_3groundwaterTransportCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2846, __pyx_L1_error)
52372 __Pyx_GOTREF(__pyx_t_1);
52373 if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterTransportCoefficients, __pyx_t_1) < 0) __PYX_ERR(0, 2846, __pyx_L1_error)
52374 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52383 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_5groundwaterBiodegradation01EvaluateFC, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2870, __pyx_L1_error)
52384 __Pyx_GOTREF(__pyx_t_1);
52385 if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterBiodegradation01Evalu, __pyx_t_1) < 0) __PYX_ERR(0, 2870, __pyx_L1_error)
52386 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52395 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_7groundwaterBryantDawsonIonExEvaluateFC, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2950, __pyx_L1_error)
52396 __Pyx_GOTREF(__pyx_t_1);
52397 if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterBryantDawsonIonExEval, __pyx_t_1) < 0) __PYX_ERR(0, 2950, __pyx_L1_error)
52398 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52407 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_9groundwaterTransportCoefficientsEvaluate_hetMat, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3016, __pyx_L1_error)
52408 __Pyx_GOTREF(__pyx_t_1);
52409 if (PyDict_SetItem(__pyx_d, __pyx_n_s_groundwaterTransportCoefficients_2, __pyx_t_1) < 0) __PYX_ERR(0, 3016, __pyx_L1_error)
52410 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52419 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_11variablySaturatedGroundwaterTransportCoefficientsEvaluate_hetMat, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3045, __pyx_L1_error)
52420 __Pyx_GOTREF(__pyx_t_1);
52421 if (PyDict_SetItem(__pyx_d, __pyx_n_s_variablySaturatedGroundwaterTran, __pyx_t_1) < 0) __PYX_ERR(0, 3045, __pyx_L1_error)
52422 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52431 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_13variablySaturatedGroundwaterEnergyTransportCoefficientsEvaluate_hetMat, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3081, __pyx_L1_error)
52432 __Pyx_GOTREF(__pyx_t_1);
52433 if (PyDict_SetItem(__pyx_d, __pyx_n_s_variablySaturatedGroundwaterEner, __pyx_t_1) < 0) __PYX_ERR(0, 3081, __pyx_L1_error)
52434 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52443 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_15nonlinearADR_pqrstEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3135, __pyx_L1_error)
52444 __Pyx_GOTREF(__pyx_t_1);
52445 if (PyDict_SetItem(__pyx_d, __pyx_n_s_nonlinearADR_pqrstEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3135, __pyx_L1_error)
52446 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52455 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_17nonlinearADR_pqrstDualEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3181, __pyx_L1_error)
52456 __Pyx_GOTREF(__pyx_t_1);
52457 if (PyDict_SetItem(__pyx_d, __pyx_n_s_nonlinearADR_pqrstDualEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3181, __pyx_L1_error)
52458 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52467 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_19unitSquareRotationEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3239, __pyx_L1_error)
52468 __Pyx_GOTREF(__pyx_t_1);
52469 if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareRotationEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
52470 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52479 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_21unitCubeRotationEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3253, __pyx_L1_error)
52480 __Pyx_GOTREF(__pyx_t_1);
52481 if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitCubeRotationEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3253, __pyx_L1_error)
52482 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52491 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_23rotatingPulseVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3267, __pyx_L1_error)
52492 __Pyx_GOTREF(__pyx_t_1);
52493 if (PyDict_SetItem(__pyx_d, __pyx_n_s_rotatingPulseVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3267, __pyx_L1_error)
52494 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52503 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_25disRotatingPulseVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3293, __pyx_L1_error)
52504 __Pyx_GOTREF(__pyx_t_1);
52505 if (PyDict_SetItem(__pyx_d, __pyx_n_s_disRotatingPulseVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3293, __pyx_L1_error)
52506 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52515 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_27disVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3319, __pyx_L1_error)
52516 __Pyx_GOTREF(__pyx_t_1);
52517 if (PyDict_SetItem(__pyx_d, __pyx_n_s_disVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3319, __pyx_L1_error)
52518 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52527 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_29burgersDiagonalVelEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3345, __pyx_L1_error)
52528 __Pyx_GOTREF(__pyx_t_1);
52529 if (PyDict_SetItem(__pyx_d, __pyx_n_s_burgersDiagonalVelEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3345, __pyx_L1_error)
52530 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52539 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_31burgersDiagonalVelHJEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3367, __pyx_L1_error)
52540 __Pyx_GOTREF(__pyx_t_1);
52541 if (PyDict_SetItem(__pyx_d, __pyx_n_s_burgersDiagonalVelHJEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3367, __pyx_L1_error)
52542 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52551 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_33twophasePotentialFlowEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3391, __pyx_L1_error)
52552 __Pyx_GOTREF(__pyx_t_1);
52553 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophasePotentialFlowEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3391, __pyx_L1_error)
52554 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52563 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_35twophasePotentialFlowUpdateFreeSurface, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3431, __pyx_L1_error)
52564 __Pyx_GOTREF(__pyx_t_1);
52565 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophasePotentialFlowUpdateFreeS, __pyx_t_1) < 0) __PYX_ERR(0, 3431, __pyx_L1_error)
52566 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52575 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_37twophaseLevelSetCoefficientsUpdateVelocity, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3469, __pyx_L1_error)
52576 __Pyx_GOTREF(__pyx_t_1);
52577 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseLevelSetCoefficientsUpda, __pyx_t_1) < 0) __PYX_ERR(0, 3469, __pyx_L1_error)
52578 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52587 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_39twophaseLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3479, __pyx_L1_error)
52588 __Pyx_GOTREF(__pyx_t_1);
52589 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseLevelSetCoefficientsEval, __pyx_t_1) < 0) __PYX_ERR(0, 3479, __pyx_L1_error)
52590 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52599 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_41twophaseLevelSetCoefficientsEvaluateCI, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3503, __pyx_L1_error)
52600 __Pyx_GOTREF(__pyx_t_1);
52601 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseLevelSetCoefficientsEval_2, __pyx_t_1) < 0) __PYX_ERR(0, 3503, __pyx_L1_error)
52602 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52611 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_43ncLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3535, __pyx_L1_error)
52612 __Pyx_GOTREF(__pyx_t_1);
52613 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ncLevelSetCoefficientsEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3535, __pyx_L1_error)
52614 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52623 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_45cLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3551, __pyx_L1_error)
52624 __Pyx_GOTREF(__pyx_t_1);
52625 if (PyDict_SetItem(__pyx_d, __pyx_n_s_cLevelSetCoefficientsEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3551, __pyx_L1_error)
52626 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52635 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_47VOFCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3565, __pyx_L1_error)
52636 __Pyx_GOTREF(__pyx_t_1);
52637 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VOFCoefficientsEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3565, __pyx_L1_error)
52638 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52647 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_49levelSetCurvatureCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3583, __pyx_L1_error)
52648 __Pyx_GOTREF(__pyx_t_1);
52649 if (PyDict_SetItem(__pyx_d, __pyx_n_s_levelSetCurvatureCoefficientsEva, __pyx_t_1) < 0) __PYX_ERR(0, 3583, __pyx_L1_error)
52650 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52659 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_51twophaseSignedDistanceCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3595, __pyx_L1_error)
52660 __Pyx_GOTREF(__pyx_t_1);
52661 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseSignedDistanceCoefficien, __pyx_t_1) < 0) __PYX_ERR(0, 3595, __pyx_L1_error)
52662 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52671 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_53eikonalEquationEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3615, __pyx_L1_error)
52672 __Pyx_GOTREF(__pyx_t_1);
52673 if (PyDict_SetItem(__pyx_d, __pyx_n_s_eikonalEquationEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3615, __pyx_L1_error)
52674 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52683 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_55redistanceLevelSetCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3633, __pyx_L1_error)
52684 __Pyx_GOTREF(__pyx_t_1);
52685 if (PyDict_SetItem(__pyx_d, __pyx_n_s_redistanceLevelSetCoefficientsEv, __pyx_t_1) < 0) __PYX_ERR(0, 3633, __pyx_L1_error)
52686 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52695 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_57redistanceLevelSetCoefficientsWithWeakPenaltyEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
52696 __Pyx_GOTREF(__pyx_t_1);
52697 if (PyDict_SetItem(__pyx_d, __pyx_n_s_redistanceLevelSetCoefficientsWi, __pyx_t_1) < 0) __PYX_ERR(0, 3653, __pyx_L1_error)
52698 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52707 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_59redistanceLevelSetSandFCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3677, __pyx_L1_error)
52708 __Pyx_GOTREF(__pyx_t_1);
52709 if (PyDict_SetItem(__pyx_d, __pyx_n_s_redistanceLevelSetSandFCoefficie, __pyx_t_1) < 0) __PYX_ERR(0, 3677, __pyx_L1_error)
52710 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52719 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_61setWeakDirichletConditionsForLevelSet, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3709, __pyx_L1_error)
52720 __Pyx_GOTREF(__pyx_t_1);
52721 if (PyDict_SetItem(__pyx_d, __pyx_n_s_setWeakDirichletConditionsForLev, __pyx_t_1) < 0) __PYX_ERR(0, 3709, __pyx_L1_error)
52722 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52731 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_63setSimpleWeakDirichletConditionsForLevelSet, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3725, __pyx_L1_error)
52732 __Pyx_GOTREF(__pyx_t_1);
52733 if (PyDict_SetItem(__pyx_d, __pyx_n_s_setSimpleWeakDirichletConditions, __pyx_t_1) < 0) __PYX_ERR(0, 3725, __pyx_L1_error)
52734 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52743 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_65darcySharpInterfaceFlowEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3741, __pyx_L1_error)
52744 __Pyx_GOTREF(__pyx_t_1);
52745 if (PyDict_SetItem(__pyx_d, __pyx_n_s_darcySharpInterfaceFlowEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3741, __pyx_L1_error)
52746 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52755 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_67darcySharpInterfaceFlowImEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3781, __pyx_L1_error)
52756 __Pyx_GOTREF(__pyx_t_1);
52757 if (PyDict_SetItem(__pyx_d, __pyx_n_s_darcySharpInterfaceFlowImEvaluat, __pyx_t_1) < 0) __PYX_ERR(0, 3781, __pyx_L1_error)
52758 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52767 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_69NavierStokes_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3819, __pyx_L1_error)
52768 __Pyx_GOTREF(__pyx_t_1);
52769 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NavierStokes_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3819, __pyx_L1_error)
52770 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52779 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_71NavierStokes_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3876, __pyx_L1_error)
52780 __Pyx_GOTREF(__pyx_t_1);
52781 if (PyDict_SetItem(__pyx_d, __pyx_n_s_NavierStokes_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3876, __pyx_L1_error)
52782 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52791 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_73Stokes_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3961, __pyx_L1_error)
52792 __Pyx_GOTREF(__pyx_t_1);
52793 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Stokes_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 3961, __pyx_L1_error)
52794 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52803 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_75StokesP_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4006, __pyx_L1_error)
52804 __Pyx_GOTREF(__pyx_t_1);
52805 if (PyDict_SetItem(__pyx_d, __pyx_n_s_StokesP_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4006, __pyx_L1_error)
52806 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52815 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_77Stokes_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4049, __pyx_L1_error)
52816 __Pyx_GOTREF(__pyx_t_1);
52817 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Stokes_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4049, __pyx_L1_error)
52818 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52827 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_79StokesP_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4110, __pyx_L1_error)
52828 __Pyx_GOTREF(__pyx_t_1);
52829 if (PyDict_SetItem(__pyx_d, __pyx_n_s_StokesP_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4110, __pyx_L1_error)
52830 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52839 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_81TwophaseNavierStokes_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4170, __pyx_L1_error)
52840 __Pyx_GOTREF(__pyx_t_1);
52841 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_LS_SO_2D_Ev, __pyx_t_1) < 0) __PYX_ERR(0, 4170, __pyx_L1_error)
52842 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52851 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_83TwophaseNavierStokes_ST_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4235, __pyx_L1_error)
52852 __Pyx_GOTREF(__pyx_t_1);
52853 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D, __pyx_t_1) < 0) __PYX_ERR(0, 4235, __pyx_L1_error)
52854 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52863 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_85TwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4312, __pyx_L1_error)
52864 __Pyx_GOTREF(__pyx_t_1);
52865 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_2D_2, __pyx_t_1) < 0) __PYX_ERR(0, 4312, __pyx_L1_error)
52866 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52875 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_87ThreephaseNavierStokes_ST_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4389, __pyx_L1_error)
52876 __Pyx_GOTREF(__pyx_t_1);
52877 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO, __pyx_t_1) < 0) __PYX_ERR(0, 4389, __pyx_L1_error)
52878 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52887 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_89TwophaseNavierStokes_ST_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4486, __pyx_L1_error)
52888 __Pyx_GOTREF(__pyx_t_1);
52889 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D, __pyx_t_1) < 0) __PYX_ERR(0, 4486, __pyx_L1_error)
52890 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52899 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_91TwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4599, __pyx_L1_error)
52900 __Pyx_GOTREF(__pyx_t_1);
52901 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_ST_LS_SO_3D_2, __pyx_t_1) < 0) __PYX_ERR(0, 4599, __pyx_L1_error)
52902 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52911 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_93ThreephaseNavierStokes_ST_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4712, __pyx_L1_error)
52912 __Pyx_GOTREF(__pyx_t_1);
52913 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ThreephaseNavierStokes_ST_LS_SO_2, __pyx_t_1) < 0) __PYX_ERR(0, 4712, __pyx_L1_error)
52914 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52923 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_95TwophaseNavierStokes_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4855, __pyx_L1_error)
52924 __Pyx_GOTREF(__pyx_t_1);
52925 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_LS_SO_3D_Ev, __pyx_t_1) < 0) __PYX_ERR(0, 4855, __pyx_L1_error)
52926 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52935 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_97TwophaseStokes_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4948, __pyx_L1_error)
52936 __Pyx_GOTREF(__pyx_t_1);
52937 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_LS_SO_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 4948, __pyx_L1_error)
52938 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52947 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_99TwophaseStokes_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5001, __pyx_L1_error)
52948 __Pyx_GOTREF(__pyx_t_1);
52949 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_LS_SO_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5001, __pyx_L1_error)
52950 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52959 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_101TwophaseNavierStokes_VOF_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5070, __pyx_L1_error)
52960 __Pyx_GOTREF(__pyx_t_1);
52961 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_VOF_SO_2D_E, __pyx_t_1) < 0) __PYX_ERR(0, 5070, __pyx_L1_error)
52962 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52971 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_103TwophaseNavierStokes_VOF_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5135, __pyx_L1_error)
52972 __Pyx_GOTREF(__pyx_t_1);
52973 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseNavierStokes_VOF_SO_3D_E, __pyx_t_1) < 0) __PYX_ERR(0, 5135, __pyx_L1_error)
52974 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52983 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_105TwophaseStokes_VOF_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5228, __pyx_L1_error)
52984 __Pyx_GOTREF(__pyx_t_1);
52985 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_VOF_SO_2D_Evaluat, __pyx_t_1) < 0) __PYX_ERR(0, 5228, __pyx_L1_error)
52986 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52995 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_107TwophaseStokes_VOF_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5281, __pyx_L1_error)
52996 __Pyx_GOTREF(__pyx_t_1);
52997 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwophaseStokes_VOF_SO_3D_Evaluat, __pyx_t_1) < 0) __PYX_ERR(0, 5281, __pyx_L1_error)
52998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53007 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_109unitSquareVortexEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5350, __pyx_L1_error)
53008 __Pyx_GOTREF(__pyx_t_1);
53009 if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareVortexEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5350, __pyx_L1_error)
53010 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53019 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_111constantVelocityLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5366, __pyx_L1_error)
53020 __Pyx_GOTREF(__pyx_t_1);
53021 if (PyDict_SetItem(__pyx_d, __pyx_n_s_constantVelocityLevelSetEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5366, __pyx_L1_error)
53022 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53031 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_113constantNormalVelocityLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5388, __pyx_L1_error)
53032 __Pyx_GOTREF(__pyx_t_1);
53033 if (PyDict_SetItem(__pyx_d, __pyx_n_s_constantNormalVelocityLevelSetEv, __pyx_t_1) < 0) __PYX_ERR(0, 5388, __pyx_L1_error)
53034 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53043 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_115unitSquareVortexLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5410, __pyx_L1_error)
53044 __Pyx_GOTREF(__pyx_t_1);
53045 if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareVortexLevelSetEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5410, __pyx_L1_error)
53046 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53055 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_117unitSquareRotationLevelSetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5432, __pyx_L1_error)
53056 __Pyx_GOTREF(__pyx_t_1);
53057 if (PyDict_SetItem(__pyx_d, __pyx_n_s_unitSquareRotationLevelSetEvalua, __pyx_t_1) < 0) __PYX_ERR(0, 5432, __pyx_L1_error)
53058 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53067 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_119HJBurgersEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5454, __pyx_L1_error)
53068 __Pyx_GOTREF(__pyx_t_1);
53069 if (PyDict_SetItem(__pyx_d, __pyx_n_s_HJBurgersEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5454, __pyx_L1_error)
53070 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53079 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_121conservativeHeadRichardsMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5470, __pyx_L1_error)
53080 __Pyx_GOTREF(__pyx_t_1);
53081 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa, __pyx_t_1) < 0) __PYX_ERR(0, 5470, __pyx_L1_error)
53082 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53091 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_123conservativeHeadRichardsL2projMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5510, __pyx_L1_error)
53092 __Pyx_GOTREF(__pyx_t_1);
53093 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsL2projMu, __pyx_t_1) < 0) __PYX_ERR(0, 5510, __pyx_L1_error)
53094 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53103 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_125conservativeHeadRichardsL2projBndMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5546, __pyx_L1_error)
53104 __Pyx_GOTREF(__pyx_t_1);
53105 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsL2projBn, __pyx_t_1) < 0) __PYX_ERR(0, 5546, __pyx_L1_error)
53106 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53115 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_127conservativeHeadRichardsL2projMualemVanGenuchtenHetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5583, __pyx_L1_error)
53116 __Pyx_GOTREF(__pyx_t_1);
53117 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsL2projMu_2, __pyx_t_1) < 0) __PYX_ERR(0, 5583, __pyx_L1_error)
53118 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53127 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_129conservativeTotalHeadRichardsMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5616, __pyx_L1_error)
53128 __Pyx_GOTREF(__pyx_t_1);
53129 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeTotalHeadRichardsMua, __pyx_t_1) < 0) __PYX_ERR(0, 5616, __pyx_L1_error)
53130 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53139 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_131conservativeHeadRichardsMualemVanGenuchten_sd_het, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5654, __pyx_L1_error)
53140 __Pyx_GOTREF(__pyx_t_1);
53141 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_2, __pyx_t_1) < 0) __PYX_ERR(0, 5654, __pyx_L1_error)
53142 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53151 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_133conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5723, __pyx_L1_error)
53152 __Pyx_GOTREF(__pyx_t_1);
53153 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_3, __pyx_t_1) < 0) __PYX_ERR(0, 5723, __pyx_L1_error)
53154 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53163 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_135seepageBrezis, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5758, __pyx_L1_error)
53164 __Pyx_GOTREF(__pyx_t_1);
53165 if (PyDict_SetItem(__pyx_d, __pyx_n_s_seepageBrezis, __pyx_t_1) < 0) __PYX_ERR(0, 5758, __pyx_L1_error)
53166 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53175 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_137conservativeHeadRichardsMualemVanGenuchtenHetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5797, __pyx_L1_error)
53176 __Pyx_GOTREF(__pyx_t_1);
53177 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_4, __pyx_t_1) < 0) __PYX_ERR(0, 5797, __pyx_L1_error)
53178 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53187 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_139conservativeSatRichardsMualemVanGenuchtenHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5827, __pyx_L1_error)
53188 __Pyx_GOTREF(__pyx_t_1);
53189 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeSatRichardsMualemVan, __pyx_t_1) < 0) __PYX_ERR(0, 5827, __pyx_L1_error)
53190 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53199 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_141conservativeHeadRichardsBrooksCoreyBurdineHetEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5865, __pyx_L1_error)
53200 __Pyx_GOTREF(__pyx_t_1);
53201 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsBrooksCo, __pyx_t_1) < 0) __PYX_ERR(0, 5865, __pyx_L1_error)
53202 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53211 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_143conservativeHeadRichardsBrooksCoreyBurdineHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5895, __pyx_L1_error)
53212 __Pyx_GOTREF(__pyx_t_1);
53213 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsBrooksCo_2, __pyx_t_1) < 0) __PYX_ERR(0, 5895, __pyx_L1_error)
53214 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53223 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_145conservativeSatRichardsBrooksCoreyBurdineHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5927, __pyx_L1_error)
53224 __Pyx_GOTREF(__pyx_t_1);
53225 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeSatRichardsBrooksCor, __pyx_t_1) < 0) __PYX_ERR(0, 5927, __pyx_L1_error)
53226 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53235 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_147conservativeHeadRichardsBCBfromMVGHomEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5963, __pyx_L1_error)
53236 __Pyx_GOTREF(__pyx_t_1);
53237 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsBCBfromM, __pyx_t_1) < 0) __PYX_ERR(0, 5963, __pyx_L1_error)
53238 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53247 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_149LinearElasticity_1D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5995, __pyx_L1_error)
53248 __Pyx_GOTREF(__pyx_t_1);
53249 if (PyDict_SetItem(__pyx_d, __pyx_n_s_LinearElasticity_1D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 5995, __pyx_L1_error)
53250 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53259 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_151LinearElasticity_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6008, __pyx_L1_error)
53260 __Pyx_GOTREF(__pyx_t_1);
53261 if (PyDict_SetItem(__pyx_d, __pyx_n_s_LinearElasticity_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6008, __pyx_L1_error)
53262 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53271 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_153LinearElasticity_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6031, __pyx_L1_error)
53272 __Pyx_GOTREF(__pyx_t_1);
53273 if (PyDict_SetItem(__pyx_d, __pyx_n_s_LinearElasticity_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6031, __pyx_L1_error)
53274 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53283 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_155MovingMesh_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6068, __pyx_L1_error)
53284 __Pyx_GOTREF(__pyx_t_1);
53285 if (PyDict_SetItem(__pyx_d, __pyx_n_s_MovingMesh_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6068, __pyx_L1_error)
53286 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53295 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_157MovingMesh_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6093, __pyx_L1_error)
53296 __Pyx_GOTREF(__pyx_t_1);
53297 if (PyDict_SetItem(__pyx_d, __pyx_n_s_MovingMesh_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6093, __pyx_L1_error)
53298 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53307 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_159MovingMesh_1D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6132, __pyx_L1_error)
53308 __Pyx_GOTREF(__pyx_t_1);
53309 if (PyDict_SetItem(__pyx_d, __pyx_n_s_MovingMesh_1D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6132, __pyx_L1_error)
53310 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53319 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_161levelSetConservationCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6147, __pyx_L1_error)
53320 __Pyx_GOTREF(__pyx_t_1);
53321 if (PyDict_SetItem(__pyx_d, __pyx_n_s_levelSetConservationCoefficients, __pyx_t_1) < 0) __PYX_ERR(0, 6147, __pyx_L1_error)
53322 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53331 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_163levelSetConservationCoefficientsEvaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6167, __pyx_L1_error)
53332 __Pyx_GOTREF(__pyx_t_1);
53333 if (PyDict_SetItem(__pyx_d, __pyx_n_s_levelSetConservationCoefficients_2, __pyx_t_1) < 0) __PYX_ERR(0, 6167, __pyx_L1_error)
53334 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53343 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_165evaluateBuckleyLeverettLiuExample, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6182, __pyx_L1_error)
53344 __Pyx_GOTREF(__pyx_t_1);
53345 if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluateBuckleyLeverettLiuExampl, __pyx_t_1) < 0) __PYX_ERR(0, 6182, __pyx_L1_error)
53346 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53355 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_167VolumeAveragedNavierStokesFullDevStress_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6198, __pyx_L1_error)
53356 __Pyx_GOTREF(__pyx_t_1);
53357 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedNavierStokesFullDe, __pyx_t_1) < 0) __PYX_ERR(0, 6198, __pyx_L1_error)
53358 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53367 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_169VolumeAveragedNavierStokesFullDevStress_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6271, __pyx_L1_error)
53368 __Pyx_GOTREF(__pyx_t_1);
53369 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedNavierStokesFullDe_2, __pyx_t_1) < 0) __PYX_ERR(0, 6271, __pyx_L1_error)
53370 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53379 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_171VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6390, __pyx_L1_error)
53380 __Pyx_GOTREF(__pyx_t_1);
53381 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok, __pyx_t_1) < 0) __PYX_ERR(0, 6390, __pyx_L1_error)
53382 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53391 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_173VolumeAveragedTwophaseNavierStokes_ST_LS_SO_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6481, __pyx_L1_error)
53392 __Pyx_GOTREF(__pyx_t_1);
53393 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok_2, __pyx_t_1) < 0) __PYX_ERR(0, 6481, __pyx_L1_error)
53394 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53403 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_175VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6572, __pyx_L1_error)
53404 __Pyx_GOTREF(__pyx_t_1);
53405 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok_3, __pyx_t_1) < 0) __PYX_ERR(0, 6572, __pyx_L1_error)
53406 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53415 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_177VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6709, __pyx_L1_error)
53416 __Pyx_GOTREF(__pyx_t_1);
53417 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedTwophaseNavierStok_4, __pyx_t_1) < 0) __PYX_ERR(0, 6709, __pyx_L1_error)
53418 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53427 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_179VolumeAveragedVOFCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6846, __pyx_L1_error)
53428 __Pyx_GOTREF(__pyx_t_1);
53429 if (PyDict_SetItem(__pyx_d, __pyx_n_s_VolumeAveragedVOFCoefficientsEva, __pyx_t_1) < 0) __PYX_ERR(0, 6846, __pyx_L1_error)
53430 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53439 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_181kEpsilon_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6866, __pyx_L1_error)
53440 __Pyx_GOTREF(__pyx_t_1);
53441 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 6866, __pyx_L1_error)
53442 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53451 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_183kEpsilon_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6940, __pyx_L1_error)
53452 __Pyx_GOTREF(__pyx_t_1);
53453 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_2D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 6940, __pyx_L1_error)
53454 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53463 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_185kEpsilon_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7014, __pyx_L1_error)
53464 __Pyx_GOTREF(__pyx_t_1);
53465 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_3D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7014, __pyx_L1_error)
53466 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53475 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_187kEpsilon_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7090, __pyx_L1_error)
53476 __Pyx_GOTREF(__pyx_t_1);
53477 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7090, __pyx_L1_error)
53478 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53487 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_189kEpsilon_k_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7166, __pyx_L1_error)
53488 __Pyx_GOTREF(__pyx_t_1);
53489 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_k_2D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7166, __pyx_L1_error)
53490 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53499 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_191kEpsilon_epsilon_2D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7204, __pyx_L1_error)
53500 __Pyx_GOTREF(__pyx_t_1);
53501 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_epsilon_2D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7204, __pyx_L1_error)
53502 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53511 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_193kEpsilon_k_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7248, __pyx_L1_error)
53512 __Pyx_GOTREF(__pyx_t_1);
53513 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_k_3D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7248, __pyx_L1_error)
53514 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53523 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_195kEpsilon_epsilon_3D_Evaluate_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7288, __pyx_L1_error)
53524 __Pyx_GOTREF(__pyx_t_1);
53525 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kEpsilon_epsilon_3D_Evaluate_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7288, __pyx_L1_error)
53526 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53535 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_197ReynoldsAveragedNavierStokes_kEpsilon_2D_Update, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7334, __pyx_L1_error)
53536 __Pyx_GOTREF(__pyx_t_1);
53537 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp, __pyx_t_1) < 0) __PYX_ERR(0, 7334, __pyx_L1_error)
53538 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53547 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_199ReynoldsAveragedNavierStokes_kEpsilon_2D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7357, __pyx_L1_error)
53548 __Pyx_GOTREF(__pyx_t_1);
53549 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_2, __pyx_t_1) < 0) __PYX_ERR(0, 7357, __pyx_L1_error)
53550 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53559 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_201ReynoldsAveragedNavierStokes_kEpsilon_3D_Update, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7382, __pyx_L1_error)
53560 __Pyx_GOTREF(__pyx_t_1);
53561 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_3, __pyx_t_1) < 0) __PYX_ERR(0, 7382, __pyx_L1_error)
53562 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53571 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_203ReynoldsAveragedNavierStokes_kEpsilon_3D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7417, __pyx_L1_error)
53572 __Pyx_GOTREF(__pyx_t_1);
53573 if (PyDict_SetItem(__pyx_d, __pyx_n_s_ReynoldsAveragedNavierStokes_kEp_4, __pyx_t_1) < 0) __PYX_ERR(0, 7417, __pyx_L1_error)
53574 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53583 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_205scriptedSphereMotionSignedDistance, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7452, __pyx_L1_error)
53584 __Pyx_GOTREF(__pyx_t_1);
53585 if (PyDict_SetItem(__pyx_d, __pyx_n_s_scriptedSphereMotionSignedDistan, __pyx_t_1) < 0) __PYX_ERR(0, 7452, __pyx_L1_error)
53586 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53595 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_207shallowWater_1D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7467, __pyx_L1_error)
53596 __Pyx_GOTREF(__pyx_t_1);
53597 if (PyDict_SetItem(__pyx_d, __pyx_n_s_shallowWater_1D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7467, __pyx_L1_error)
53598 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53607 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_209shallowWater_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7514, __pyx_L1_error)
53608 __Pyx_GOTREF(__pyx_t_1);
53609 if (PyDict_SetItem(__pyx_d, __pyx_n_s_shallowWater_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7514, __pyx_L1_error)
53610 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53619 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_211conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwind, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7591, __pyx_L1_error)
53620 __Pyx_GOTREF(__pyx_t_1);
53621 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_5, __pyx_t_1) < 0) __PYX_ERR(0, 7591, __pyx_L1_error)
53622 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53631 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_213conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7650, __pyx_L1_error)
53632 __Pyx_GOTREF(__pyx_t_1);
53633 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_6, __pyx_t_1) < 0) __PYX_ERR(0, 7650, __pyx_L1_error)
53634 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53643 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_215conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7709, __pyx_L1_error)
53644 __Pyx_GOTREF(__pyx_t_1);
53645 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsMualemVa_7, __pyx_t_1) < 0) __PYX_ERR(0, 7709, __pyx_L1_error)
53646 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53655 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_217applyContactLineSlip, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7772, __pyx_L1_error)
53656 __Pyx_GOTREF(__pyx_t_1);
53657 if (PyDict_SetItem(__pyx_d, __pyx_n_s_applyContactLineSlip, __pyx_t_1) < 0) __PYX_ERR(0, 7772, __pyx_L1_error)
53658 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53667 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_219applyContactLineSlipJacobian, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7784, __pyx_L1_error)
53668 __Pyx_GOTREF(__pyx_t_1);
53669 if (PyDict_SetItem(__pyx_d, __pyx_n_s_applyContactLineSlipJacobian, __pyx_t_1) < 0) __PYX_ERR(0, 7784, __pyx_L1_error)
53670 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53679 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_221calculateEddyViscosity_Smagorinsky_2D, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7795, __pyx_L1_error)
53680 __Pyx_GOTREF(__pyx_t_1);
53681 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins, __pyx_t_1) < 0) __PYX_ERR(0, 7795, __pyx_L1_error)
53682 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53691 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_223calculateEddyViscosity_Smagorinsky_3D, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7807, __pyx_L1_error)
53692 __Pyx_GOTREF(__pyx_t_1);
53693 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins_2, __pyx_t_1) < 0) __PYX_ERR(0, 7807, __pyx_L1_error)
53694 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53703 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_225calculateEddyViscosity_Smagorinsky2P_2D, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7821, __pyx_L1_error)
53704 __Pyx_GOTREF(__pyx_t_1);
53705 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins_3, __pyx_t_1) < 0) __PYX_ERR(0, 7821, __pyx_L1_error)
53706 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53715 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_227calculateEddyViscosity_Smagorinsky2P_3D, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7839, __pyx_L1_error)
53716 __Pyx_GOTREF(__pyx_t_1);
53717 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateEddyViscosity_Smagorins_4, __pyx_t_1) < 0) __PYX_ERR(0, 7839, __pyx_L1_error)
53718 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53727 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_229eddyViscosity_2D_Update, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7859, __pyx_L1_error)
53728 __Pyx_GOTREF(__pyx_t_1);
53729 if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_2D_Update, __pyx_t_1) < 0) __PYX_ERR(0, 7859, __pyx_L1_error)
53730 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53739 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_231eddyViscosity_2D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7870, __pyx_L1_error)
53740 __Pyx_GOTREF(__pyx_t_1);
53741 if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_2D_Update_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7870, __pyx_L1_error)
53742 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53751 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_233eddyViscosity_3D_Update, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7881, __pyx_L1_error)
53752 __Pyx_GOTREF(__pyx_t_1);
53753 if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_3D_Update, __pyx_t_1) < 0) __PYX_ERR(0, 7881, __pyx_L1_error)
53754 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53763 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_235eddyViscosity_3D_Update_sd, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7902, __pyx_L1_error)
53764 __Pyx_GOTREF(__pyx_t_1);
53765 if (PyDict_SetItem(__pyx_d, __pyx_n_s_eddyViscosity_3D_Update_sd, __pyx_t_1) < 0) __PYX_ERR(0, 7902, __pyx_L1_error)
53766 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53775 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_237calculateWaveFunction3d_ref, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7923, __pyx_L1_error)
53776 __Pyx_GOTREF(__pyx_t_1);
53777 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWaveFunction3d_ref, __pyx_t_1) < 0) __PYX_ERR(0, 7923, __pyx_L1_error)
53778 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53787 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_239Mass_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7958, __pyx_L1_error)
53788 __Pyx_GOTREF(__pyx_t_1);
53789 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Mass_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7958, __pyx_L1_error)
53790 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53799 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_241Mass_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7979, __pyx_L1_error)
53800 __Pyx_GOTREF(__pyx_t_1);
53801 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Mass_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 7979, __pyx_L1_error)
53802 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53811 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_243TwoPhaseAdvection_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8006, __pyx_L1_error)
53812 __Pyx_GOTREF(__pyx_t_1);
53813 if (PyDict_SetItem(__pyx_d, __pyx_n_s_TwoPhaseAdvection_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8006, __pyx_L1_error)
53814 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53823 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_245twophaseSignedDistanceUpdateSignFunction, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8045, __pyx_L1_error)
53824 __Pyx_GOTREF(__pyx_t_1);
53825 if (PyDict_SetItem(__pyx_d, __pyx_n_s_twophaseSignedDistanceUpdateSign, __pyx_t_1) < 0) __PYX_ERR(0, 8045, __pyx_L1_error)
53826 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53835 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_247Laplace_2D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8053, __pyx_L1_error)
53836 __Pyx_GOTREF(__pyx_t_1);
53837 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Laplace_2D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8053, __pyx_L1_error)
53838 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53847 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_249Laplace_3D_Evaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8064, __pyx_L1_error)
53848 __Pyx_GOTREF(__pyx_t_1);
53849 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Laplace_3D_Evaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8064, __pyx_L1_error)
53850 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53859 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_251l2projectScalar, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8077, __pyx_L1_error)
53860 __Pyx_GOTREF(__pyx_t_1);
53861 if (PyDict_SetItem(__pyx_d, __pyx_n_s_l2projectScalar, __pyx_t_1) < 0) __PYX_ERR(0, 8077, __pyx_L1_error)
53862 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53871 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_253l2projectVector, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8085, __pyx_L1_error)
53872 __Pyx_GOTREF(__pyx_t_1);
53873 if (PyDict_SetItem(__pyx_d, __pyx_n_s_l2projectVector, __pyx_t_1) < 0) __PYX_ERR(0, 8085, __pyx_L1_error)
53874 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53883 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_255l2project2Tensor, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8095, __pyx_L1_error)
53884 __Pyx_GOTREF(__pyx_t_1);
53885 if (PyDict_SetItem(__pyx_d, __pyx_n_s_l2project2Tensor, __pyx_t_1) < 0) __PYX_ERR(0, 8095, __pyx_L1_error)
53886 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53895 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_257L2projectEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8105, __pyx_L1_error)
53896 __Pyx_GOTREF(__pyx_t_1);
53897 if (PyDict_SetItem(__pyx_d, __pyx_n_s_L2projectEvaluate, __pyx_t_1) < 0) __PYX_ERR(0, 8105, __pyx_L1_error)
53898 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53907 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_259conservativeHeadRichardsJLeverettEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8116, __pyx_L1_error)
53908 __Pyx_GOTREF(__pyx_t_1);
53909 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsJLeveret, __pyx_t_1) < 0) __PYX_ERR(0, 8116, __pyx_L1_error)
53910 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53919 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_261conservativeHeadRichardsJLeverettAniEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8155, __pyx_L1_error)
53920 __Pyx_GOTREF(__pyx_t_1);
53921 if (PyDict_SetItem(__pyx_d, __pyx_n_s_conservativeHeadRichardsJLeveret_2, __pyx_t_1) < 0) __PYX_ERR(0, 8155, __pyx_L1_error)
53922 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53931 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_263diffusiveWave1DCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8198, __pyx_L1_error)
53932 __Pyx_GOTREF(__pyx_t_1);
53933 if (PyDict_SetItem(__pyx_d, __pyx_n_s_diffusiveWave1DCoefficientsEvalu, __pyx_t_1) < 0) __PYX_ERR(0, 8198, __pyx_L1_error)
53934 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53943 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_265diffusiveWave2DCoefficientsEvaluate, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8219, __pyx_L1_error)
53944 __Pyx_GOTREF(__pyx_t_1);
53945 if (PyDict_SetItem(__pyx_d, __pyx_n_s_diffusiveWave2DCoefficientsEvalu, __pyx_t_1) < 0) __PYX_ERR(0, 8219, __pyx_L1_error)
53946 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53955 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_267smoothedHeaviside, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8243, __pyx_L1_error)
53956 __Pyx_GOTREF(__pyx_t_1);
53957 if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedHeaviside, __pyx_t_1) < 0) __PYX_ERR(0, 8243, __pyx_L1_error)
53958 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53967 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_269smoothedHeaviside_integral, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8245, __pyx_L1_error)
53968 __Pyx_GOTREF(__pyx_t_1);
53969 if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedHeaviside_integral, __pyx_t_1) < 0) __PYX_ERR(0, 8245, __pyx_L1_error)
53970 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53979 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_22ctransportCoefficients_271smoothedDirac, NULL, __pyx_n_s_ctransportCoefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8247, __pyx_L1_error)
53980 __Pyx_GOTREF(__pyx_t_1);
53981 if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedDirac, __pyx_t_1) < 0) __PYX_ERR(0, 8247, __pyx_L1_error)
53982 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
53989 __pyx_t_1 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
53990 __Pyx_GOTREF(__pyx_t_1);
53991 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
53992 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
54006 __Pyx_XDECREF(__pyx_t_1);
54009 __Pyx_AddTraceback(
"init ctransportCoefficients", __pyx_clineno, __pyx_lineno, __pyx_filename);
54012 }
else if (!PyErr_Occurred()) {
54013 PyErr_SetString(PyExc_ImportError,
"init ctransportCoefficients");
54016 __Pyx_RefNannyFinishContext();
54017 #if CYTHON_PEP489_MULTI_PHASE_INIT
54018 return (__pyx_m != NULL) ? 0 : -1;
54019 #elif PY_MAJOR_VERSION >= 3
54028 #if CYTHON_REFNANNY
54029 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
54030 PyObject *m = NULL, *p = NULL;
54032 m = PyImport_ImportModule(modname);
54034 p = PyObject_GetAttrString(m,
"RefNannyAPI");
54036 r = PyLong_AsVoidPtr(p);
54040 return (__Pyx_RefNannyAPIStruct *)
r;
54045 static void __Pyx_RaiseArgtupleInvalid(
54046 const char* func_name,
54048 Py_ssize_t num_min,
54049 Py_ssize_t num_max,
54050 Py_ssize_t num_found)
54052 Py_ssize_t num_expected;
54053 const char *more_or_less;
54054 if (num_found < num_min) {
54055 num_expected = num_min;
54056 more_or_less =
"at least";
54058 num_expected = num_max;
54059 more_or_less =
"at most";
54062 more_or_less =
"exactly";
54064 PyErr_Format(PyExc_TypeError,
54065 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
54066 func_name, more_or_less, num_expected,
54067 (num_expected == 1) ?
"" :
"s", num_found);
54071 static void __Pyx_RaiseDoubleKeywordsError(
54072 const char* func_name,
54075 PyErr_Format(PyExc_TypeError,
54076 #
if PY_MAJOR_VERSION >= 3
54077 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
54079 "%s() got multiple values for keyword argument '%s'", func_name,
54080 PyString_AsString(kw_name));
54085 static int __Pyx_ParseOptionalKeywords(
54087 PyObject **argnames[],
54089 PyObject *values[],
54090 Py_ssize_t num_pos_args,
54091 const char* function_name)
54093 PyObject *key = 0, *value = 0;
54094 Py_ssize_t
pos = 0;
54096 PyObject*** first_kw_arg = argnames + num_pos_args;
54097 while (PyDict_Next(kwds, &
pos, &key, &value)) {
54098 name = first_kw_arg;
54099 while (*name && (**name != key)) name++;
54101 values[name-argnames] = value;
54104 name = first_kw_arg;
54105 #if PY_MAJOR_VERSION < 3
54106 if (likely(PyString_Check(key))) {
54108 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
54109 && _PyString_Eq(**name, key)) {
54110 values[name-argnames] = value;
54115 if (*name)
continue;
54117 PyObject*** argname = argnames;
54118 while (argname != first_kw_arg) {
54119 if ((**argname == key) || (
54120 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
54121 && _PyString_Eq(**argname, key))) {
54122 goto arg_passed_twice;
54129 if (likely(PyUnicode_Check(key))) {
54131 int cmp = (**name == key) ? 0 :
54132 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
54133 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
54135 PyUnicode_Compare(**name, key);
54136 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
54138 values[name-argnames] = value;
54143 if (*name)
continue;
54145 PyObject*** argname = argnames;
54146 while (argname != first_kw_arg) {
54147 int cmp = (**argname == key) ? 0 :
54148 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
54149 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
54151 PyUnicode_Compare(**argname, key);
54152 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
54153 if (cmp == 0)
goto arg_passed_twice;
54158 goto invalid_keyword_type;
54160 if (unlikely(PyDict_SetItem(kwds2, key, value)))
goto bad;
54162 goto invalid_keyword;
54167 __Pyx_RaiseDoubleKeywordsError(function_name, key);
54169 invalid_keyword_type:
54170 PyErr_Format(PyExc_TypeError,
54171 "%.200s() keywords must be strings", function_name);
54174 PyErr_Format(PyExc_TypeError,
54175 #
if PY_MAJOR_VERSION < 3
54176 "%.200s() got an unexpected keyword argument '%.200s'",
54177 function_name, PyString_AsString(key));
54179 "%s() got an unexpected keyword argument '%U'",
54180 function_name, key);
54187 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact)
54189 if (unlikely(!type)) {
54190 PyErr_SetString(PyExc_SystemError,
"Missing type object");
54194 #if PY_MAJOR_VERSION == 2
54195 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj)))
return 1;
54199 if (likely(__Pyx_TypeCheck(obj, type)))
return 1;
54201 PyErr_Format(PyExc_TypeError,
54202 "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
54203 name, type->tp_name, Py_TYPE(obj)->tp_name);
54208 #if CYTHON_USE_TYPE_SLOTS
54209 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
54210 PyTypeObject* tp = Py_TYPE(obj);
54211 if (likely(tp->tp_getattro))
54212 return tp->tp_getattro(obj, attr_name);
54213 #if PY_MAJOR_VERSION < 3
54214 if (likely(tp->tp_getattr))
54215 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
54217 return PyObject_GetAttr(obj, attr_name);
54222 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
54224 if (!j)
return NULL;
54225 r = PyObject_GetItem(o, j);
54229 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
54230 CYTHON_NCP_UNUSED
int wraparound,
54231 CYTHON_NCP_UNUSED
int boundscheck) {
54232 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
54233 Py_ssize_t wrapped_i = i;
54234 if (wraparound & unlikely(i < 0)) {
54235 wrapped_i += PyList_GET_SIZE(o);
54237 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
54238 PyObject *
r = PyList_GET_ITEM(o, wrapped_i);
54242 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
54244 return PySequence_GetItem(o, i);
54247 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
54248 CYTHON_NCP_UNUSED
int wraparound,
54249 CYTHON_NCP_UNUSED
int boundscheck) {
54250 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
54251 Py_ssize_t wrapped_i = i;
54252 if (wraparound & unlikely(i < 0)) {
54253 wrapped_i += PyTuple_GET_SIZE(o);
54255 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
54256 PyObject *
r = PyTuple_GET_ITEM(o, wrapped_i);
54260 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
54262 return PySequence_GetItem(o, i);
54265 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
int is_list,
54266 CYTHON_NCP_UNUSED
int wraparound,
54267 CYTHON_NCP_UNUSED
int boundscheck) {
54268 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
54269 if (is_list || PyList_CheckExact(o)) {
54270 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
54271 if ((!boundscheck) || (likely(__Pyx_is_valid_index(
n, PyList_GET_SIZE(o))))) {
54272 PyObject *
r = PyList_GET_ITEM(o,
n);
54277 else if (PyTuple_CheckExact(o)) {
54278 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
54279 if ((!boundscheck) || likely(__Pyx_is_valid_index(
n, PyTuple_GET_SIZE(o)))) {
54280 PyObject *
r = PyTuple_GET_ITEM(o,
n);
54285 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
54286 if (likely(m && m->sq_item)) {
54287 if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
54288 Py_ssize_t l = m->sq_length(o);
54289 if (likely(l >= 0)) {
54292 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
54297 return m->sq_item(o, i);
54301 if (is_list || PySequence_Check(o)) {
54302 return PySequence_GetItem(o, i);
54305 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
54309 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
54310 PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
54311 if (unlikely(!result)) {
54312 PyErr_Format(PyExc_NameError,
54313 #
if PY_MAJOR_VERSION >= 3
54314 "name '%U' is not defined", name);
54316 "name '%.200s' is not defined", PyString_AS_STRING(name));
54323 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
54324 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
54325 PyObject *dict = Py_TYPE(obj)->tp_dict;
54326 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
54328 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
54329 PyObject **dictptr = NULL;
54330 Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
54332 #if CYTHON_COMPILING_IN_CPYTHON
54333 dictptr = (likely(offset > 0)) ? (PyObject **) ((
char *)obj + offset) : _PyObject_GetDictPtr(obj);
54335 dictptr = _PyObject_GetDictPtr(obj);
54338 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
54340 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
54341 PyObject *dict = Py_TYPE(obj)->tp_dict;
54342 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
54344 return obj_dict_version == __Pyx_get_object_dict_version(obj);
54349 #if CYTHON_USE_DICT_VERSIONS
54350 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
54352 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
54356 #if !CYTHON_AVOID_BORROWED_REFS
54357 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
54358 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
54359 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
54360 if (likely(result)) {
54361 return __Pyx_NewRef(result);
54362 }
else if (unlikely(PyErr_Occurred())) {
54366 result = PyDict_GetItem(__pyx_d, name);
54367 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
54368 if (likely(result)) {
54369 return __Pyx_NewRef(result);
54373 result = PyObject_GetItem(__pyx_d, name);
54374 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
54375 if (likely(result)) {
54376 return __Pyx_NewRef(result);
54380 return __Pyx_GetBuiltinName(name);
54384 #if CYTHON_FAST_PYCALL
54385 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
54386 PyObject *globals) {
54388 PyThreadState *tstate = __Pyx_PyThreadState_Current;
54389 PyObject **fastlocals;
54392 assert(globals != NULL);
54397 assert(tstate != NULL);
54398 f = PyFrame_New(tstate, co, globals, NULL);
54402 fastlocals = __Pyx_PyFrame_GetLocalsplus(
f);
54403 for (i = 0; i < na; i++) {
54405 fastlocals[i] = *args++;
54407 result = PyEval_EvalFrameEx(
f,0);
54408 ++tstate->recursion_depth;
54410 --tstate->recursion_depth;
54413 #if 1 || PY_VERSION_HEX < 0x030600B1
54414 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
54415 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
54416 PyObject *globals = PyFunction_GET_GLOBALS(func);
54417 PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
54419 #if PY_MAJOR_VERSION >= 3
54422 PyObject *kwtuple, **k;
54427 assert(kwargs == NULL || PyDict_Check(kwargs));
54428 nk = kwargs ? PyDict_Size(kwargs) : 0;
54429 if (Py_EnterRecursiveCall((
char*)
" while calling a Python object")) {
54433 #
if PY_MAJOR_VERSION >= 3
54434 co->co_kwonlyargcount == 0 &&
54436 likely(kwargs == NULL || nk == 0) &&
54437 co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
54438 if (argdefs == NULL && co->co_argcount == nargs) {
54439 result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
54442 else if (nargs == 0 && argdefs != NULL
54443 && co->co_argcount == Py_SIZE(argdefs)) {
54446 args = &PyTuple_GET_ITEM(argdefs, 0);
54447 result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
54451 if (kwargs != NULL) {
54453 kwtuple = PyTuple_New(2 * nk);
54454 if (kwtuple == NULL) {
54458 k = &PyTuple_GET_ITEM(kwtuple, 0);
54460 while (PyDict_Next(kwargs, &
pos, &k[i], &k[i+1])) {
54471 closure = PyFunction_GET_CLOSURE(func);
54472 #if PY_MAJOR_VERSION >= 3
54473 kwdefs = PyFunction_GET_KW_DEFAULTS(func);
54475 if (argdefs != NULL) {
54476 d = &PyTuple_GET_ITEM(argdefs, 0);
54477 nd = Py_SIZE(argdefs);
54483 #if PY_MAJOR_VERSION >= 3
54484 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
54487 d, (
int)nd, kwdefs, closure);
54489 result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
54492 d, (
int)nd, closure);
54494 Py_XDECREF(kwtuple);
54496 Py_LeaveRecursiveCall();
54503 #if CYTHON_FAST_PYCCALL
54504 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
54505 PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
54506 PyCFunction meth = PyCFunction_GET_FUNCTION(func);
54507 PyObject *
self = PyCFunction_GET_SELF(func);
54508 int flags = PyCFunction_GET_FLAGS(func);
54509 assert(PyCFunction_Check(func));
54510 assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
54511 assert(nargs >= 0);
54512 assert(nargs == 0 || args != NULL);
54516 assert(!PyErr_Occurred());
54517 if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
54518 return (*((__Pyx_PyCFunctionFastWithKeywords)(
void*)meth)) (
self, args, nargs, NULL);
54520 return (*((__Pyx_PyCFunctionFast)(
void*)meth)) (
self, args, nargs);
54526 #if CYTHON_COMPILING_IN_CPYTHON
54527 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
54529 ternaryfunc call = Py_TYPE(func)->tp_call;
54530 if (unlikely(!call))
54531 return PyObject_Call(func, arg, kw);
54532 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
54534 result = (*call)(func, arg, kw);
54535 Py_LeaveRecursiveCall();
54536 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
54539 "NULL result without error in PyObject_Call");
54546 #if CYTHON_USE_EXC_INFO_STACK
54547 static _PyErr_StackItem *
54548 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
54550 _PyErr_StackItem *exc_info = tstate->exc_info;
54551 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
54552 exc_info->previous_item != NULL)
54554 exc_info = exc_info->previous_item;
54561 #if CYTHON_FAST_THREAD_STATE
54562 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
54563 #if CYTHON_USE_EXC_INFO_STACK
54564 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
54565 *type = exc_info->exc_type;
54566 *value = exc_info->exc_value;
54567 *tb = exc_info->exc_traceback;
54569 *type = tstate->exc_type;
54570 *value = tstate->exc_value;
54571 *tb = tstate->exc_traceback;
54574 Py_XINCREF(*value);
54577 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
54578 PyObject *tmp_type, *tmp_value, *tmp_tb;
54579 #if CYTHON_USE_EXC_INFO_STACK
54580 _PyErr_StackItem *exc_info = tstate->exc_info;
54581 tmp_type = exc_info->exc_type;
54582 tmp_value = exc_info->exc_value;
54583 tmp_tb = exc_info->exc_traceback;
54584 exc_info->exc_type = type;
54585 exc_info->exc_value = value;
54586 exc_info->exc_traceback = tb;
54588 tmp_type = tstate->exc_type;
54589 tmp_value = tstate->exc_value;
54590 tmp_tb = tstate->exc_traceback;
54591 tstate->exc_type = type;
54592 tstate->exc_value = value;
54593 tstate->exc_traceback = tb;
54595 Py_XDECREF(tmp_type);
54596 Py_XDECREF(tmp_value);
54597 Py_XDECREF(tmp_tb);
54602 #if CYTHON_FAST_THREAD_STATE
54603 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
54605 n = PyTuple_GET_SIZE(tuple);
54606 #if PY_MAJOR_VERSION >= 3
54607 for (i=0; i<
n; i++) {
54608 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
54611 for (i=0; i<
n; i++) {
54612 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)))
return 1;
54616 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
54617 PyObject *exc_type = tstate->curexc_type;
54618 if (exc_type == err)
return 1;
54619 if (unlikely(!exc_type))
return 0;
54620 if (unlikely(PyTuple_Check(err)))
54621 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
54622 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
54627 #if CYTHON_FAST_THREAD_STATE
54628 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
54630 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
54633 PyObject *local_type, *local_value, *local_tb;
54634 #if CYTHON_FAST_THREAD_STATE
54635 PyObject *tmp_type, *tmp_value, *tmp_tb;
54636 local_type = tstate->curexc_type;
54637 local_value = tstate->curexc_value;
54638 local_tb = tstate->curexc_traceback;
54639 tstate->curexc_type = 0;
54640 tstate->curexc_value = 0;
54641 tstate->curexc_traceback = 0;
54643 PyErr_Fetch(&local_type, &local_value, &local_tb);
54645 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
54646 #if CYTHON_FAST_THREAD_STATE
54647 if (unlikely(tstate->curexc_type))
54649 if (unlikely(PyErr_Occurred()))
54652 #if PY_MAJOR_VERSION >= 3
54654 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
54658 Py_XINCREF(local_tb);
54659 Py_XINCREF(local_type);
54660 Py_XINCREF(local_value);
54661 *type = local_type;
54662 *value = local_value;
54664 #if CYTHON_FAST_THREAD_STATE
54665 #if CYTHON_USE_EXC_INFO_STACK
54667 _PyErr_StackItem *exc_info = tstate->exc_info;
54668 tmp_type = exc_info->exc_type;
54669 tmp_value = exc_info->exc_value;
54670 tmp_tb = exc_info->exc_traceback;
54671 exc_info->exc_type = local_type;
54672 exc_info->exc_value = local_value;
54673 exc_info->exc_traceback = local_tb;
54676 tmp_type = tstate->exc_type;
54677 tmp_value = tstate->exc_value;
54678 tmp_tb = tstate->exc_traceback;
54679 tstate->exc_type = local_type;
54680 tstate->exc_value = local_value;
54681 tstate->exc_traceback = local_tb;
54683 Py_XDECREF(tmp_type);
54684 Py_XDECREF(tmp_value);
54685 Py_XDECREF(tmp_tb);
54687 PyErr_SetExcInfo(local_type, local_value, local_tb);
54694 Py_XDECREF(local_type);
54695 Py_XDECREF(local_value);
54696 Py_XDECREF(local_tb);
54701 #if CYTHON_FAST_THREAD_STATE
54702 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
54703 PyObject *tmp_type, *tmp_value, *tmp_tb;
54704 tmp_type = tstate->curexc_type;
54705 tmp_value = tstate->curexc_value;
54706 tmp_tb = tstate->curexc_traceback;
54707 tstate->curexc_type = type;
54708 tstate->curexc_value = value;
54709 tstate->curexc_traceback = tb;
54710 Py_XDECREF(tmp_type);
54711 Py_XDECREF(tmp_value);
54712 Py_XDECREF(tmp_tb);
54714 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
54715 *type = tstate->curexc_type;
54716 *value = tstate->curexc_value;
54717 *tb = tstate->curexc_traceback;
54718 tstate->curexc_type = 0;
54719 tstate->curexc_value = 0;
54720 tstate->curexc_traceback = 0;
54725 #if PY_MAJOR_VERSION < 3
54726 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
54727 CYTHON_UNUSED PyObject *cause) {
54728 __Pyx_PyThreadState_declare
54730 if (!value || value == Py_None)
54734 if (!tb || tb == Py_None)
54738 if (!PyTraceBack_Check(tb)) {
54739 PyErr_SetString(PyExc_TypeError,
54740 "raise: arg 3 must be a traceback or None");
54744 if (PyType_Check(type)) {
54745 #if CYTHON_COMPILING_IN_PYPY
54747 Py_INCREF(Py_None);
54751 PyErr_NormalizeException(&type, &value, &tb);
54754 PyErr_SetString(PyExc_TypeError,
54755 "instance exception may not have a separate value");
54759 type = (PyObject*) Py_TYPE(type);
54761 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
54762 PyErr_SetString(PyExc_TypeError,
54763 "raise: exception class must be a subclass of BaseException");
54767 __Pyx_PyThreadState_assign
54768 __Pyx_ErrRestore(type, value, tb);
54777 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
54778 PyObject* owned_instance = NULL;
54779 if (tb == Py_None) {
54781 }
else if (tb && !PyTraceBack_Check(tb)) {
54782 PyErr_SetString(PyExc_TypeError,
54783 "raise: arg 3 must be a traceback or None");
54786 if (value == Py_None)
54788 if (PyExceptionInstance_Check(type)) {
54790 PyErr_SetString(PyExc_TypeError,
54791 "instance exception may not have a separate value");
54795 type = (PyObject*) Py_TYPE(value);
54796 }
else if (PyExceptionClass_Check(type)) {
54797 PyObject *instance_class = NULL;
54798 if (value && PyExceptionInstance_Check(value)) {
54799 instance_class = (PyObject*) Py_TYPE(value);
54800 if (instance_class != type) {
54801 int is_subclass = PyObject_IsSubclass(instance_class, type);
54802 if (!is_subclass) {
54803 instance_class = NULL;
54804 }
else if (unlikely(is_subclass == -1)) {
54807 type = instance_class;
54811 if (!instance_class) {
54814 args = PyTuple_New(0);
54815 else if (PyTuple_Check(value)) {
54819 args = PyTuple_Pack(1, value);
54822 owned_instance = PyObject_Call(type, args, NULL);
54824 if (!owned_instance)
54826 value = owned_instance;
54827 if (!PyExceptionInstance_Check(value)) {
54828 PyErr_Format(PyExc_TypeError,
54829 "calling %R should have returned an instance of "
54830 "BaseException, not %R",
54831 type, Py_TYPE(value));
54836 PyErr_SetString(PyExc_TypeError,
54837 "raise: exception class must be a subclass of BaseException");
54841 PyObject *fixed_cause;
54842 if (cause == Py_None) {
54843 fixed_cause = NULL;
54844 }
else if (PyExceptionClass_Check(cause)) {
54845 fixed_cause = PyObject_CallObject(cause, NULL);
54846 if (fixed_cause == NULL)
54848 }
else if (PyExceptionInstance_Check(cause)) {
54849 fixed_cause = cause;
54850 Py_INCREF(fixed_cause);
54852 PyErr_SetString(PyExc_TypeError,
54853 "exception causes must derive from "
54857 PyException_SetCause(value, fixed_cause);
54859 PyErr_SetObject(type, value);
54861 #if CYTHON_COMPILING_IN_PYPY
54862 PyObject *tmp_type, *tmp_value, *tmp_tb;
54863 PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
54865 PyErr_Restore(tmp_type, tmp_value, tb);
54866 Py_XDECREF(tmp_tb);
54868 PyThreadState *tstate = __Pyx_PyThreadState_Current;
54869 PyObject* tmp_tb = tstate->curexc_traceback;
54870 if (tb != tmp_tb) {
54872 tstate->curexc_traceback = tb;
54873 Py_XDECREF(tmp_tb);
54878 Py_XDECREF(owned_instance);
54884 #ifndef __PYX_HAVE_RT_ImportType
54885 #define __PYX_HAVE_RT_ImportType
54886 static PyTypeObject *__Pyx_ImportType(PyObject *module,
const char *module_name,
const char *class_name,
54887 size_t size,
enum __Pyx_ImportType_CheckSize check_size)
54889 PyObject *result = 0;
54891 Py_ssize_t basicsize;
54892 #ifdef Py_LIMITED_API
54893 PyObject *py_basicsize;
54895 result = PyObject_GetAttrString(module, class_name);
54898 if (!PyType_Check(result)) {
54899 PyErr_Format(PyExc_TypeError,
54900 "%.200s.%.200s is not a type object",
54901 module_name, class_name);
54904 #ifndef Py_LIMITED_API
54905 basicsize = ((PyTypeObject *)result)->tp_basicsize;
54907 py_basicsize = PyObject_GetAttrString(result,
"__basicsize__");
54910 basicsize = PyLong_AsSsize_t(py_basicsize);
54911 Py_DECREF(py_basicsize);
54913 if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
54916 if ((
size_t)basicsize < size) {
54917 PyErr_Format(PyExc_ValueError,
54918 "%.200s.%.200s size changed, may indicate binary incompatibility. "
54919 "Expected %zd from C header, got %zd from PyObject",
54920 module_name, class_name, size, basicsize);
54923 if (check_size == __Pyx_ImportType_CheckSize_Error && (
size_t)basicsize != size) {
54924 PyErr_Format(PyExc_ValueError,
54925 "%.200s.%.200s size changed, may indicate binary incompatibility. "
54926 "Expected %zd from C header, got %zd from PyObject",
54927 module_name, class_name, size, basicsize);
54930 else if (check_size == __Pyx_ImportType_CheckSize_Warn && (
size_t)basicsize > size) {
54931 PyOS_snprintf(warning,
sizeof(warning),
54932 "%s.%s size changed, may indicate binary incompatibility. "
54933 "Expected %zd from C header, got %zd from PyObject",
54934 module_name, class_name, size, basicsize);
54935 if (PyErr_WarnEx(NULL, warning, 0) < 0)
goto bad;
54937 return (PyTypeObject *)result;
54939 Py_XDECREF(result);
54945 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level) {
54946 PyObject *empty_list = 0;
54947 PyObject *module = 0;
54948 PyObject *global_dict = 0;
54949 PyObject *empty_dict = 0;
54951 #if PY_MAJOR_VERSION < 3
54952 PyObject *py_import;
54953 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
54960 empty_list = PyList_New(0);
54965 global_dict = PyModule_GetDict(__pyx_m);
54968 empty_dict = PyDict_New();
54972 #if PY_MAJOR_VERSION >= 3
54974 if ((1) && (strchr(__Pyx_MODULE_NAME,
'.'))) {
54975 module = PyImport_ImportModuleLevelObject(
54976 name, global_dict, empty_dict, list, 1);
54978 if (!PyErr_ExceptionMatches(PyExc_ImportError))
54987 #if PY_MAJOR_VERSION < 3
54988 PyObject *py_level = PyInt_FromLong(level);
54991 module = PyObject_CallFunctionObjArgs(py_import,
54992 name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
54993 Py_DECREF(py_level);
54995 module = PyImport_ImportModuleLevelObject(
54996 name, global_dict, empty_dict, list, level);
55001 #if PY_MAJOR_VERSION < 3
55002 Py_XDECREF(py_import);
55004 Py_XDECREF(empty_list);
55005 Py_XDECREF(empty_dict);
55010 #ifndef CYTHON_CLINE_IN_TRACEBACK
55011 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate,
int c_line) {
55012 PyObject *use_cline;
55013 PyObject *ptype, *pvalue, *ptraceback;
55014 #if CYTHON_COMPILING_IN_CPYTHON
55015 PyObject **cython_runtime_dict;
55017 if (unlikely(!__pyx_cython_runtime)) {
55020 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
55021 #if CYTHON_COMPILING_IN_CPYTHON
55022 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
55023 if (likely(cython_runtime_dict)) {
55024 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
55025 use_cline, *cython_runtime_dict,
55026 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
55030 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
55031 if (use_cline_obj) {
55032 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
55033 Py_DECREF(use_cline_obj);
55041 (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
55043 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
55046 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
55052 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
55053 int start = 0, mid = 0, end = count - 1;
55054 if (end >= 0 && code_line > entries[end].code_line) {
55057 while (start < end) {
55058 mid = start + (end - start) / 2;
55059 if (code_line < entries[mid].code_line) {
55061 }
else if (code_line > entries[mid].code_line) {
55067 if (code_line <= entries[mid].code_line) {
55073 static PyCodeObject *__pyx_find_code_object(
int code_line) {
55074 PyCodeObject* code_object;
55076 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
55079 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
55080 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
55083 code_object = __pyx_code_cache.entries[
pos].code_object;
55084 Py_INCREF(code_object);
55085 return code_object;
55087 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
55089 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
55090 if (unlikely(!code_line)) {
55093 if (unlikely(!entries)) {
55094 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
55095 if (likely(entries)) {
55096 __pyx_code_cache.entries = entries;
55097 __pyx_code_cache.max_count = 64;
55098 __pyx_code_cache.count = 1;
55099 entries[0].code_line = code_line;
55100 entries[0].code_object = code_object;
55101 Py_INCREF(code_object);
55105 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
55106 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
55107 PyCodeObject* tmp = entries[
pos].code_object;
55108 entries[
pos].code_object = code_object;
55112 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
55113 int new_max = __pyx_code_cache.max_count + 64;
55114 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
55115 __pyx_code_cache.entries, ((
size_t)new_max) *
sizeof(__Pyx_CodeObjectCacheEntry));
55116 if (unlikely(!entries)) {
55119 __pyx_code_cache.entries = entries;
55120 __pyx_code_cache.max_count = new_max;
55122 for (i=__pyx_code_cache.count; i>
pos; i--) {
55123 entries[i] = entries[i-1];
55125 entries[
pos].code_line = code_line;
55126 entries[
pos].code_object = code_object;
55127 __pyx_code_cache.count++;
55128 Py_INCREF(code_object);
55132 #include "compile.h"
55133 #include "frameobject.h"
55134 #include "traceback.h"
55135 #if PY_VERSION_HEX >= 0x030b00a6
55136 #ifndef Py_BUILD_CORE
55137 #define Py_BUILD_CORE 1
55139 #include "internal/pycore_frame.h"
55141 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
55142 const char *funcname,
int c_line,
55143 int py_line,
const char *filename) {
55144 PyCodeObject *py_code = NULL;
55145 PyObject *py_funcname = NULL;
55146 #if PY_MAJOR_VERSION < 3
55147 PyObject *py_srcfile = NULL;
55148 py_srcfile = PyString_FromString(filename);
55149 if (!py_srcfile)
goto bad;
55152 #if PY_MAJOR_VERSION < 3
55153 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
55154 if (!py_funcname)
goto bad;
55156 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
55157 if (!py_funcname)
goto bad;
55158 funcname = PyUnicode_AsUTF8(py_funcname);
55159 if (!funcname)
goto bad;
55163 #if PY_MAJOR_VERSION < 3
55164 py_funcname = PyString_FromString(funcname);
55165 if (!py_funcname)
goto bad;
55168 #if PY_MAJOR_VERSION < 3
55169 py_code = __Pyx_PyCode_New(
55186 Py_DECREF(py_srcfile);
55188 py_code = PyCode_NewEmpty(filename, funcname, py_line);
55190 Py_XDECREF(py_funcname);
55193 Py_XDECREF(py_funcname);
55194 #if PY_MAJOR_VERSION < 3
55195 Py_XDECREF(py_srcfile);
55199 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
55200 int py_line,
const char *filename) {
55201 PyCodeObject *py_code = 0;
55202 PyFrameObject *py_frame = 0;
55203 PyThreadState *tstate = __Pyx_PyThreadState_Current;
55204 PyObject *ptype, *pvalue, *ptraceback;
55206 c_line = __Pyx_CLineForTraceback(tstate, c_line);
55208 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
55210 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
55211 py_code = __Pyx_CreateCodeObjectForTraceback(
55212 funcname, c_line, py_line, filename);
55217 Py_XDECREF(pvalue);
55218 Py_XDECREF(ptraceback);
55221 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
55222 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
55224 py_frame = PyFrame_New(
55230 if (!py_frame)
goto bad;
55231 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
55232 PyTraceBack_Here(py_frame);
55234 Py_XDECREF(py_code);
55235 Py_XDECREF(py_frame);
55239 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
55240 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
55241 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
55242 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
55243 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
55245 func_type value = func_value;\
55246 if (sizeof(target_type) < sizeof(func_type)) {\
55247 if (unlikely(value != (func_type) (target_type) value)) {\
55248 func_type zero = 0;\
55249 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
55250 return (target_type) -1;\
55251 if (is_unsigned && unlikely(value < zero))\
55252 goto raise_neg_overflow;\
55254 goto raise_overflow;\
55257 return (target_type) value;\
55261 #if CYTHON_CCOMPLEX
55263 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
55264 return ::std::complex< float >(x, y);
55267 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
55268 return x + y*(__pyx_t_float_complex)_Complex_I;
55272 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
55273 __pyx_t_float_complex
z;
55281 #if CYTHON_CCOMPLEX
55283 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55284 return (a.real == b.real) && (a.imag == b.imag);
55286 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55287 __pyx_t_float_complex
z;
55288 z.real = a.real + b.real;
55289 z.imag = a.imag + b.imag;
55292 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55293 __pyx_t_float_complex
z;
55294 z.real = a.real - b.real;
55295 z.imag = a.imag - b.imag;
55298 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55299 __pyx_t_float_complex
z;
55300 z.real = a.real * b.real - a.imag * b.imag;
55301 z.imag = a.real * b.imag + a.imag * b.real;
55305 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55307 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
55308 }
else if (fabsf(b.real) >= fabsf(b.imag)) {
55309 if (b.real == 0 && b.imag == 0) {
55310 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
55312 float r = b.imag / b.real;
55313 float s = (float)(1.0) / (b.real + b.imag *
r);
55314 return __pyx_t_float_complex_from_parts(
55315 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
55318 float r = b.real / b.imag;
55319 float s = (float)(1.0) / (b.imag + b.real *
r);
55320 return __pyx_t_float_complex_from_parts(
55321 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
55325 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55327 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
55329 float denom = b.real * b.real + b.imag * b.imag;
55330 return __pyx_t_float_complex_from_parts(
55331 (a.real * b.real + a.imag * b.imag) / denom,
55332 (a.imag * b.real - a.real * b.imag) / denom);
55336 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
55337 __pyx_t_float_complex
z;
55342 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
55343 return (a.real == 0) && (a.imag == 0);
55345 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
55346 __pyx_t_float_complex
z;
55352 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex
z) {
55353 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
55354 return sqrtf(
z.real*
z.real +
z.imag*
z.imag);
55356 return hypotf(
z.real,
z.imag);
55359 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
55360 __pyx_t_float_complex
z;
55361 float r, lnr, theta, z_r, z_theta;
55362 if (b.imag == 0 && b.real == (
int)b.real) {
55364 float denom = a.real * a.real + a.imag * a.imag;
55365 a.real = a.real / denom;
55366 a.imag = -a.imag / denom;
55369 switch ((
int)b.real) {
55377 return __Pyx_c_prod_float(a, a);
55379 z = __Pyx_c_prod_float(a, a);
55380 return __Pyx_c_prod_float(
z, a);
55382 z = __Pyx_c_prod_float(a, a);
55383 return __Pyx_c_prod_float(
z,
z);
55389 }
else if (b.imag == 0) {
55390 z.real = powf(a.real, b.real);
55393 }
else if (a.real > 0) {
55398 theta = atan2f(0.0, -1.0);
55401 r = __Pyx_c_abs_float(a);
55402 theta = atan2f(a.imag, a.real);
55405 z_r = expf(lnr * b.real - theta * b.imag);
55406 z_theta = theta * b.real + lnr * b.imag;
55407 z.real = z_r * cosf(z_theta);
55408 z.imag = z_r * sinf(z_theta);
55415 #if CYTHON_CCOMPLEX
55417 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
55418 return ::std::complex< double >(x, y);
55421 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
55422 return x + y*(__pyx_t_double_complex)_Complex_I;
55426 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
55427 __pyx_t_double_complex
z;
55435 #if CYTHON_CCOMPLEX
55437 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55438 return (a.real == b.real) && (a.imag == b.imag);
55440 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55441 __pyx_t_double_complex
z;
55442 z.real = a.real + b.real;
55443 z.imag = a.imag + b.imag;
55446 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55447 __pyx_t_double_complex
z;
55448 z.real = a.real - b.real;
55449 z.imag = a.imag - b.imag;
55452 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55453 __pyx_t_double_complex
z;
55454 z.real = a.real * b.real - a.imag * b.imag;
55455 z.imag = a.real * b.imag + a.imag * b.real;
55459 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55461 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
55462 }
else if (fabs(b.real) >= fabs(b.imag)) {
55463 if (b.real == 0 && b.imag == 0) {
55464 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
55466 double r = b.imag / b.real;
55467 double s = (double)(1.0) / (b.real + b.imag *
r);
55468 return __pyx_t_double_complex_from_parts(
55469 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
55472 double r = b.real / b.imag;
55473 double s = (double)(1.0) / (b.imag + b.real *
r);
55474 return __pyx_t_double_complex_from_parts(
55475 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
55479 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55481 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
55483 double denom = b.real * b.real + b.imag * b.imag;
55484 return __pyx_t_double_complex_from_parts(
55485 (a.real * b.real + a.imag * b.imag) / denom,
55486 (a.imag * b.real - a.real * b.imag) / denom);
55490 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
55491 __pyx_t_double_complex
z;
55496 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
55497 return (a.real == 0) && (a.imag == 0);
55499 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
55500 __pyx_t_double_complex
z;
55506 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex
z) {
55507 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
55508 return sqrt(
z.real*
z.real +
z.imag*
z.imag);
55510 return hypot(
z.real,
z.imag);
55513 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
55514 __pyx_t_double_complex
z;
55515 double r, lnr, theta, z_r, z_theta;
55516 if (b.imag == 0 && b.real == (
int)b.real) {
55518 double denom = a.real * a.real + a.imag * a.imag;
55519 a.real = a.real / denom;
55520 a.imag = -a.imag / denom;
55523 switch ((
int)b.real) {
55531 return __Pyx_c_prod_double(a, a);
55533 z = __Pyx_c_prod_double(a, a);
55534 return __Pyx_c_prod_double(
z, a);
55536 z = __Pyx_c_prod_double(a, a);
55537 return __Pyx_c_prod_double(
z,
z);
55543 }
else if (b.imag == 0) {
55544 z.real = pow(a.real, b.real);
55547 }
else if (a.real > 0) {
55552 theta = atan2(0.0, -1.0);
55555 r = __Pyx_c_abs_double(a);
55556 theta = atan2(a.imag, a.real);
55559 z_r = exp(lnr * b.real - theta * b.imag);
55560 z_theta = theta * b.real + lnr * b.imag;
55561 z.real = z_r * cos(z_theta);
55562 z.imag = z_r * sin(z_theta);
55569 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *x) {
55570 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55571 #pragma GCC diagnostic push
55572 #pragma GCC diagnostic ignored "-Wconversion"
55574 const int neg_one = (int) -1, const_zero = (
int) 0;
55575 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55576 #pragma GCC diagnostic pop
55578 const int is_unsigned = neg_one > const_zero;
55579 #if PY_MAJOR_VERSION < 3
55580 if (likely(PyInt_Check(x))) {
55581 if (
sizeof(
int) <
sizeof(long)) {
55582 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(x))
55584 long val = PyInt_AS_LONG(x);
55585 if (is_unsigned && unlikely(val < 0)) {
55586 goto raise_neg_overflow;
55592 if (likely(PyLong_Check(x))) {
55594 #if CYTHON_USE_PYLONG_INTERNALS
55595 const digit* digits = ((PyLongObject*)x)->ob_digit;
55596 switch (Py_SIZE(x)) {
55597 case 0:
return (
int) 0;
55598 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
55600 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
55601 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
55602 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55603 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
55604 return (
int) (((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
55609 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
55610 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
55611 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55612 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
55613 return (
int) (((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
55618 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
55619 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
55620 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55621 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
55622 return (
int) (((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
55628 #if CYTHON_COMPILING_IN_CPYTHON
55629 if (unlikely(Py_SIZE(x) < 0)) {
55630 goto raise_neg_overflow;
55634 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
55635 if (unlikely(result < 0))
55637 if (unlikely(result == 1))
55638 goto raise_neg_overflow;
55641 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
55642 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(x))
55643 #ifdef HAVE_LONG_LONG
55644 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
55645 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
55649 #if CYTHON_USE_PYLONG_INTERNALS
55650 const digit* digits = ((PyLongObject*)x)->ob_digit;
55651 switch (Py_SIZE(x)) {
55652 case 0:
return (
int) 0;
55653 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
55654 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
55656 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
55657 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
55658 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55659 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
55660 return (
int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
55665 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
55666 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
55667 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55668 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
55669 return (
int) ((((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
55674 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
55675 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
55676 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55677 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
55678 return (
int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55683 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
55684 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
55685 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55686 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
55687 return (
int) ((((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
55692 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
55693 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
55694 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55695 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
55696 return (
int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
55701 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
55702 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
55703 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55704 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
55705 return (
int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
55711 if (
sizeof(
int) <=
sizeof(long)) {
55712 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(x))
55713 #ifdef HAVE_LONG_LONG
55714 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
55715 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(x))
55720 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
55721 PyErr_SetString(PyExc_RuntimeError,
55722 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
55725 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
55726 #if PY_MAJOR_VERSION < 3
55727 if (likely(
v) && !PyLong_Check(
v)) {
55729 v = PyNumber_Long(tmp);
55734 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
55735 unsigned char *bytes = (
unsigned char *)&val;
55736 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
55737 bytes,
sizeof(val),
55738 is_little, !is_unsigned);
55748 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
55749 if (!tmp)
return (
int) -1;
55750 val = __Pyx_PyInt_As_int(tmp);
55755 PyErr_SetString(PyExc_OverflowError,
55756 "value too large to convert to int");
55758 raise_neg_overflow:
55759 PyErr_SetString(PyExc_OverflowError,
55760 "can't convert negative value to int");
55765 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value) {
55766 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55767 #pragma GCC diagnostic push
55768 #pragma GCC diagnostic ignored "-Wconversion"
55770 const Py_intptr_t neg_one = (Py_intptr_t) -1, const_zero = (Py_intptr_t) 0;
55771 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55772 #pragma GCC diagnostic pop
55774 const int is_unsigned = neg_one > const_zero;
55776 if (
sizeof(Py_intptr_t) <
sizeof(long)) {
55777 return PyInt_FromLong((
long) value);
55778 }
else if (
sizeof(Py_intptr_t) <=
sizeof(
unsigned long)) {
55779 return PyLong_FromUnsignedLong((
unsigned long) value);
55780 #ifdef HAVE_LONG_LONG
55781 }
else if (
sizeof(Py_intptr_t) <=
sizeof(
unsigned PY_LONG_LONG)) {
55782 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
55786 if (
sizeof(Py_intptr_t) <=
sizeof(
long)) {
55787 return PyInt_FromLong((
long) value);
55788 #ifdef HAVE_LONG_LONG
55789 }
else if (
sizeof(Py_intptr_t) <=
sizeof(PY_LONG_LONG)) {
55790 return PyLong_FromLongLong((PY_LONG_LONG) value);
55795 int one = 1;
int little = (int)*(
unsigned char *)&one;
55796 unsigned char *bytes = (
unsigned char *)&value;
55797 return _PyLong_FromByteArray(bytes,
sizeof(Py_intptr_t),
55798 little, !is_unsigned);
55803 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
55804 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55805 #pragma GCC diagnostic push
55806 #pragma GCC diagnostic ignored "-Wconversion"
55808 const long neg_one = (long) -1, const_zero = (
long) 0;
55809 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55810 #pragma GCC diagnostic pop
55812 const int is_unsigned = neg_one > const_zero;
55814 if (
sizeof(
long) <
sizeof(long)) {
55815 return PyInt_FromLong((
long) value);
55816 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
55817 return PyLong_FromUnsignedLong((
unsigned long) value);
55818 #ifdef HAVE_LONG_LONG
55819 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
55820 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
55824 if (
sizeof(
long) <=
sizeof(
long)) {
55825 return PyInt_FromLong((
long) value);
55826 #ifdef HAVE_LONG_LONG
55827 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
55828 return PyLong_FromLongLong((PY_LONG_LONG) value);
55833 int one = 1;
int little = (int)*(
unsigned char *)&one;
55834 unsigned char *bytes = (
unsigned char *)&value;
55835 return _PyLong_FromByteArray(bytes,
sizeof(
long),
55836 little, !is_unsigned);
55841 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *x) {
55842 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55843 #pragma GCC diagnostic push
55844 #pragma GCC diagnostic ignored "-Wconversion"
55846 const long neg_one = (long) -1, const_zero = (
long) 0;
55847 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
55848 #pragma GCC diagnostic pop
55850 const int is_unsigned = neg_one > const_zero;
55851 #if PY_MAJOR_VERSION < 3
55852 if (likely(PyInt_Check(x))) {
55853 if (
sizeof(
long) <
sizeof(long)) {
55854 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(x))
55856 long val = PyInt_AS_LONG(x);
55857 if (is_unsigned && unlikely(val < 0)) {
55858 goto raise_neg_overflow;
55864 if (likely(PyLong_Check(x))) {
55866 #if CYTHON_USE_PYLONG_INTERNALS
55867 const digit* digits = ((PyLongObject*)x)->ob_digit;
55868 switch (Py_SIZE(x)) {
55869 case 0:
return (
long) 0;
55870 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
55872 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
55873 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
55874 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55875 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
55876 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
55881 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
55882 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
55883 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55884 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
55885 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
55890 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
55891 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
55892 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55893 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
55894 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
55900 #if CYTHON_COMPILING_IN_CPYTHON
55901 if (unlikely(Py_SIZE(x) < 0)) {
55902 goto raise_neg_overflow;
55906 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
55907 if (unlikely(result < 0))
55909 if (unlikely(result == 1))
55910 goto raise_neg_overflow;
55913 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
55914 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(x))
55915 #ifdef HAVE_LONG_LONG
55916 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
55917 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
55921 #if CYTHON_USE_PYLONG_INTERNALS
55922 const digit* digits = ((PyLongObject*)x)->ob_digit;
55923 switch (Py_SIZE(x)) {
55924 case 0:
return (
long) 0;
55925 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
55926 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
55928 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
55929 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
55930 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55931 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
55932 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
55937 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
55938 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
55939 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55940 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
55941 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
55946 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
55947 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
55948 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55949 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
55950 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55955 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
55956 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
55957 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55958 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
55959 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
55964 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
55965 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
55966 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55967 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
55968 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
55973 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
55974 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
55975 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
55976 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
55977 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
55983 if (
sizeof(
long) <=
sizeof(long)) {
55984 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(x))
55985 #ifdef HAVE_LONG_LONG
55986 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
55987 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(x))
55992 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
55993 PyErr_SetString(PyExc_RuntimeError,
55994 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
55997 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
55998 #if PY_MAJOR_VERSION < 3
55999 if (likely(
v) && !PyLong_Check(
v)) {
56001 v = PyNumber_Long(tmp);
56006 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
56007 unsigned char *bytes = (
unsigned char *)&val;
56008 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
56009 bytes,
sizeof(val),
56010 is_little, !is_unsigned);
56020 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
56021 if (!tmp)
return (
long) -1;
56022 val = __Pyx_PyInt_As_long(tmp);
56027 PyErr_SetString(PyExc_OverflowError,
56028 "value too large to convert to long");
56030 raise_neg_overflow:
56031 PyErr_SetString(PyExc_OverflowError,
56032 "can't convert negative value to long");
56037 #if CYTHON_COMPILING_IN_CPYTHON
56038 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
56044 return b == &PyBaseObject_Type;
56046 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
56048 if (a == b)
return 1;
56052 n = PyTuple_GET_SIZE(mro);
56053 for (i = 0; i <
n; i++) {
56054 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
56059 return __Pyx_InBases(a, b);
56061 #if PY_MAJOR_VERSION == 2
56062 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
56063 PyObject *exception, *value, *tb;
56065 __Pyx_PyThreadState_declare
56066 __Pyx_PyThreadState_assign
56067 __Pyx_ErrFetch(&exception, &value, &tb);
56068 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
56069 if (unlikely(res == -1)) {
56070 PyErr_WriteUnraisable(err);
56074 res = PyObject_IsSubclass(err, exc_type2);
56075 if (unlikely(res == -1)) {
56076 PyErr_WriteUnraisable(err);
56080 __Pyx_ErrRestore(exception, value, tb);
56084 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
56085 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
56087 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
56092 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
56094 assert(PyExceptionClass_Check(exc_type));
56095 n = PyTuple_GET_SIZE(tuple);
56096 #if PY_MAJOR_VERSION >= 3
56097 for (i=0; i<
n; i++) {
56098 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
56101 for (i=0; i<
n; i++) {
56102 PyObject *t = PyTuple_GET_ITEM(tuple, i);
56103 #if PY_MAJOR_VERSION < 3
56104 if (likely(exc_type == t))
return 1;
56106 if (likely(PyExceptionClass_Check(t))) {
56107 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t))
return 1;
56113 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
56114 if (likely(err == exc_type))
return 1;
56115 if (likely(PyExceptionClass_Check(err))) {
56116 if (likely(PyExceptionClass_Check(exc_type))) {
56117 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
56118 }
else if (likely(PyTuple_Check(exc_type))) {
56119 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
56123 return PyErr_GivenExceptionMatches(err, exc_type);
56125 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
56126 assert(PyExceptionClass_Check(exc_type1));
56127 assert(PyExceptionClass_Check(exc_type2));
56128 if (likely(err == exc_type1 || err == exc_type2))
return 1;
56129 if (likely(PyExceptionClass_Check(err))) {
56130 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
56132 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
56137 static int __Pyx_check_binary_version(
void) {
56139 int same=1, i, found_dot;
56140 const char* rt_from_call = Py_GetVersion();
56141 PyOS_snprintf(ctversion, 5,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
56143 for (i = 0; i < 4; i++) {
56144 if (!ctversion[i]) {
56145 same = (rt_from_call[i] <
'0' || rt_from_call[i] >
'9');
56148 if (rt_from_call[i] != ctversion[i]) {
56154 char rtversion[5] = {
'\0'};
56156 for (i=0; i<4; ++i) {
56157 if (rt_from_call[i] ==
'.') {
56158 if (found_dot)
break;
56160 }
else if (rt_from_call[i] <
'0' || rt_from_call[i] >
'9') {
56163 rtversion[i] = rt_from_call[i];
56165 PyOS_snprintf(message,
sizeof(message),
56166 "compiletime version %s of module '%.100s' "
56167 "does not match runtime version %s",
56168 ctversion, __Pyx_MODULE_NAME, rtversion);
56169 return PyErr_WarnEx(NULL, message, 1);
56175 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
56177 #if PY_MAJOR_VERSION < 3
56178 if (t->is_unicode) {
56179 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
56180 }
else if (t->intern) {
56181 *t->p = PyString_InternFromString(t->s);
56183 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
56186 if (t->is_unicode | t->is_str) {
56188 *t->p = PyUnicode_InternFromString(t->s);
56189 }
else if (t->encoding) {
56190 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
56192 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
56195 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
56200 if (PyObject_Hash(*t->p) == -1)
56207 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
56208 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
56210 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
56212 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
56214 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
56215 #if !CYTHON_PEP393_ENABLED
56216 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
56218 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
56219 if (!defenc)
return NULL;
56220 defenc_c = PyBytes_AS_STRING(defenc);
56221 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
56223 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
56225 for (
c = defenc_c;
c < end;
c++) {
56226 if ((
unsigned char) (*
c) >= 128) {
56227 PyUnicode_AsASCIIString(o);
56233 *length = PyBytes_GET_SIZE(defenc);
56237 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
56238 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
56239 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
56240 if (likely(PyUnicode_IS_ASCII(o))) {
56241 *length = PyUnicode_GET_LENGTH(o);
56242 return PyUnicode_AsUTF8(o);
56244 PyUnicode_AsASCIIString(o);
56248 return PyUnicode_AsUTF8AndSize(o, length);
56253 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
56254 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
56256 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
56257 __Pyx_sys_getdefaultencoding_not_ascii &&
56259 PyUnicode_Check(o)) {
56260 return __Pyx_PyUnicode_AsStringAndSize(o, length);
56263 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
56264 if (PyByteArray_Check(o)) {
56265 *length = PyByteArray_GET_SIZE(o);
56266 return PyByteArray_AS_STRING(o);
56271 int r = PyBytes_AsStringAndSize(o, &result, length);
56272 if (unlikely(
r < 0)) {
56279 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject* x) {
56280 int is_true = x == Py_True;
56281 if (is_true | (x == Py_False) | (x == Py_None))
return is_true;
56282 else return PyObject_IsTrue(x);
56284 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
56286 if (unlikely(!x))
return -1;
56287 retval = __Pyx_PyObject_IsTrue(x);
56291 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result,
const char* type_name) {
56292 #if PY_MAJOR_VERSION >= 3
56293 if (PyLong_Check(result)) {
56294 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
56295 "__int__ returned non-int (type %.200s). "
56296 "The ability to return an instance of a strict subclass of int "
56297 "is deprecated, and may be removed in a future version of Python.",
56298 Py_TYPE(result)->tp_name)) {
56305 PyErr_Format(PyExc_TypeError,
56306 "__%.4s__ returned non-%.4s (type %.200s)",
56307 type_name, type_name, Py_TYPE(result)->tp_name);
56311 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
56312 #if CYTHON_USE_TYPE_SLOTS
56313 PyNumberMethods *m;
56315 const char *name = NULL;
56316 PyObject *res = NULL;
56317 #if PY_MAJOR_VERSION < 3
56318 if (likely(PyInt_Check(x) || PyLong_Check(x)))
56320 if (likely(PyLong_Check(x)))
56322 return __Pyx_NewRef(x);
56323 #if CYTHON_USE_TYPE_SLOTS
56324 m = Py_TYPE(x)->tp_as_number;
56325 #if PY_MAJOR_VERSION < 3
56326 if (m && m->nb_int) {
56328 res = m->nb_int(x);
56330 else if (m && m->nb_long) {
56332 res = m->nb_long(x);
56335 if (likely(m && m->nb_int)) {
56337 res = m->nb_int(x);
56341 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
56342 res = PyNumber_Int(x);
56346 #if PY_MAJOR_VERSION < 3
56347 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
56349 if (unlikely(!PyLong_CheckExact(res))) {
56351 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
56354 else if (!PyErr_Occurred()) {
56355 PyErr_SetString(PyExc_TypeError,
56356 "an integer is required");
56360 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
56363 #if PY_MAJOR_VERSION < 3
56364 if (likely(PyInt_CheckExact(b))) {
56365 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
56366 return PyInt_AS_LONG(b);
56368 return PyInt_AsSsize_t(b);
56371 if (likely(PyLong_CheckExact(b))) {
56372 #if CYTHON_USE_PYLONG_INTERNALS
56373 const digit* digits = ((PyLongObject*)b)->ob_digit;
56374 const Py_ssize_t size = Py_SIZE(b);
56375 if (likely(__Pyx_sst_abs(size) <= 1)) {
56376 ival = likely(size) ? digits[0] : 0;
56377 if (size == -1) ival = -ival;
56382 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
56383 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
56387 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
56388 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56392 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
56393 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56397 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
56398 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
56402 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
56403 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
56407 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
56408 return -(Py_ssize_t) (((((((((
size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
56414 return PyLong_AsSsize_t(b);
56416 x = PyNumber_Index(b);
56418 ival = PyInt_AsSsize_t(x);
56422 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
56423 if (
sizeof(Py_hash_t) ==
sizeof(Py_ssize_t)) {
56424 return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
56425 #if PY_MAJOR_VERSION < 3
56426 }
else if (likely(PyInt_CheckExact(o))) {
56427 return PyInt_AS_LONG(o);
56432 x = PyNumber_Index(o);
56434 ival = PyInt_AsLong(x);
56439 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
56440 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
56442 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
56443 return PyInt_FromSize_t(ival);