1ae2b091fSJames Wright // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2ae2b091fSJames Wright // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 3692bc0d9SJames Wright 4692bc0d9SJames Wright /// @file 5692bc0d9SJames Wright /// Utility functions for setting up Taylor-Green Vortex 6692bc0d9SJames Wright 7692bc0d9SJames Wright #include "../qfunctions/taylorgreen.h" 8692bc0d9SJames Wright 9149fb536SJames Wright #include <navierstokes.h> 10692bc0d9SJames Wright 11991aef52SJames Wright PetscErrorCode NS_TAYLOR_GREEN(ProblemData problem, DM dm, void *ctx, SimpleBC bc) { 12692bc0d9SJames Wright PetscFunctionBeginUser; 13692bc0d9SJames Wright PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx, bc)); 14692bc0d9SJames Wright 15*e07531f7SJames Wright problem->ics.qf_func_ptr = ICsTaylorGreen; 16*e07531f7SJames Wright problem->ics.qf_loc = ICsTaylorGreen_loc; 17692bc0d9SJames Wright PetscFunctionReturn(PETSC_SUCCESS); 18692bc0d9SJames Wright } 19