Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 14 of 14) sorted by relevance

/petsc/src/ts/tutorials/network/
H A DpipeInterface.c15 PetscErrorCode PipeCreate(MPI_Comm comm, Pipe *pipe) in PipeCreate() argument
18 PetscCall(PetscNew(pipe)); in PipeCreate()
28 PetscErrorCode PipeDestroy(Pipe *pipe) in PipeDestroy() argument
31 if (!*pipe) PetscFunctionReturn(PETSC_SUCCESS); in PipeDestroy()
33 PetscCall(PipeDestroyJacobian(*pipe)); in PipeDestroy()
34 PetscCall(VecDestroy(&(*pipe)->x)); in PipeDestroy()
35 PetscCall(DMDestroy(&(*pipe)->da)); in PipeDestroy()
50 PetscErrorCode PipeSetParameters(Pipe pipe, PetscReal length, PetscReal D, PetscReal a, PetscReal f… in PipeSetParameters() argument
53 pipe->length = length; in PipeSetParameters()
54 pipe->D = D; in PipeSetParameters()
[all …]
H A DpipeImpls.c10 PetscErrorCode PipeComputeSteadyState(Pipe pipe, PetscScalar Q0, PetscScalar H0) in PipeComputeSteadyState() argument
16 PetscScalar *coords, c = pipe->R / (GRAV * pipe->A); in PipeComputeSteadyState()
19 PetscCall(DMGetCoordinateDM(pipe->da, &cda)); in PipeComputeSteadyState()
20 PetscCall(DMGetCoordinatesLocal(pipe->da, &local)); in PipeComputeSteadyState()
21 PetscCall(DMDAVecGetArray(pipe->da, pipe->x, &x)); in PipeComputeSteadyState()
23 PetscCall(DMDAGetCorners(pipe->da, &start, 0, 0, &n, 0, 0)); in PipeComputeSteadyState()
30 PetscCall(DMDAVecRestoreArray(pipe->da, pipe->x, &x)); in PipeComputeSteadyState()
60 …Lax(DMDALocalInfo *info, PetscReal ptime, PipeField *x, PipeField *xdot, PetscScalar *f, Pipe pipe) in PipeIFunctionLocal_Lax() argument
63 PetscReal a = pipe->a, A = pipe->A, R = pipe->R, c = a * a / (GRAV * A); in PipeIFunctionLocal_Lax()
64 PetscReal dx = pipe->length / (info->mx - 1), dt = pipe->dt; in PipeIFunctionLocal_Lax()
[all …]
H A Dpipes.c110 Pipe pipe; in WASHIFunction() local
170 PetscCall(DMNetworkGetComponent(networkdm, e, 0, &type, (void **)&pipe, NULL)); in WASHIFunction()
178 pipe->dt = dt; in WASHIFunction()
179 pipe->xold = (PipeField *)(xoldarr + varoffset); in WASHIFunction()
182 PetscCall(DMDAGetLocalInfo(pipe->da, &info)); in WASHIFunction()
183 PetscCall(PipeIFunctionLocal_Lax(&info, t, pipex, pipexdot, pipef, pipe)); in WASHIFunction()
206 nend = pipe->nnodes - 1; in WASHIFunction()
233 Pipe pipe; in WASHSetInitialSolution() local
247 PetscCall(DMNetworkGetComponent(networkdm, e, 0, &type, (void **)&pipe, NULL)); in WASHSetInitialSolution()
250 PetscCall(PipeComputeSteadyState(pipe, wash->Q0, wash->H0)); in WASHSetInitialSolution()
[all …]
H A Dwash.h64 Pipe pipe; member
/petsc/src/snes/tutorials/network/water/
H A Dwaterreaddata.c133 Pipe *pipe = NULL; in WaterReadData() local
248 pipe = &edge[ne].pipe; in WaterReadData()
249 …= sscanf(line, "%d %d %d %lf %lf %lf %lf %s", &id, &node1, &node2, &v1, &v2, &v3, &v4, pipe->stat); in WaterReadData()
250 pipe->id = id; in WaterReadData()
251 pipe->node1 = node1; in WaterReadData()
252 pipe->node2 = node2; in WaterReadData()
253 pipe->length = (PetscScalar)v1; in WaterReadData()
254 pipe->diam = (PetscScalar)v2; in WaterReadData()
255 pipe->roughness = (PetscScalar)v3; in WaterReadData()
256 pipe->minorloss = (PetscScalar)v4; in WaterReadData()
[all …]
H A Dwaterfunctions.c6 PetscScalar Flow_Pipe(Pipe *pipe, PetscScalar hf, PetscScalar ht) in Flow_Pipe() argument
10 flow_pipe = PetscSign(hf - ht) * PetscPowScalar(PetscAbsScalar(hf - ht) / pipe->k, 1 / pipe->n); in Flow_Pipe()
30 Pipe *pipe; in FormFunction_Water() local
64 pipe = &edge->pipe; in FormFunction_Water()
65 flow = Flow_Pipe(pipe, hf, ht); in FormFunction_Water()
162 Pipe *pipe; in GetListofEdges_Water() local
170 pipe = &water->edge[i].pipe; in GetListofEdges_Water()
171 node1 = pipe->node1; in GetListofEdges_Water()
172 node2 = pipe->node2; in GetListofEdges_Water()
H A Dwater.h90 Pipe pipe; /* pipe data */ member
/petsc/config/BuildSystem/
H A Dscript.py174 pipe = Popen(command, cwd=cwd, env=env, stdin=None, stdout=PIPE, stderr=PIPE,
176 (out, err) = pipe.communicate()
179 ret = pipe.returncode
/petsc/src/dm/partitioner/impls/chaco/
H A Dpartchaco.c107 piperet = pipe(fd_pipe); in PetscPartitionerPartition_Chaco()
/petsc/src/benchmarks/
H A DbenchmarkExample.py61pipe = Popen(command, cwd=cwd, stdin=None, stdout=PIPE, stderr=PIPE, bufsize=-1, shell=True, unive…
62 (out, err) = pipe.communicate()
63 ret = pipe.returncode
/petsc/src/mat/graphops/partition/impls/party/
H A Dparty.c89 PetscCheck(!pipe(fd_pipe), PETSC_COMM_SELF, PETSC_ERR_SYS, "Could not open pipe"); in MatPartitioningApply_Party()
/petsc/src/mat/graphops/partition/impls/chaco/
H A Dchaco.c131 PetscCheck(!pipe(fd_pipe), PETSC_COMM_SELF, PETSC_ERR_SYS, "Could not open pipe"); in MatPartitioningApply_Chaco()
/petsc/doc/developers/
H A Dtesting.md870 `|` operator as a shell pipe. Examples:
/petsc/doc/
H A Dpetsc.bib2234 keywords = {Image sequence, pipe and filters, parallel computing, multicore processors},