1*14712a6bSJames Wright // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2*14712a6bSJames Wright // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3*14712a6bSJames Wright // 4*14712a6bSJames Wright // SPDX-License-Identifier: BSD-2-Clause 5*14712a6bSJames Wright // 6*14712a6bSJames Wright // This file is part of CEED: http://github.com/ceed 7*14712a6bSJames Wright 8*14712a6bSJames Wright /// @file 9*14712a6bSJames Wright /// Utility functions for setting up Taylor-Green Vortex 10*14712a6bSJames Wright 11*14712a6bSJames Wright #include "../qfunctions/taylorgreen.h" 12*14712a6bSJames Wright 13*14712a6bSJames Wright #include "../navierstokes.h" 14*14712a6bSJames Wright 15*14712a6bSJames Wright PetscErrorCode NS_TAYLOR_GREEN(ProblemData *problem, DM dm, void *ctx, SimpleBC bc) { 16*14712a6bSJames Wright PetscFunctionBeginUser; 17*14712a6bSJames Wright PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx, bc)); 18*14712a6bSJames Wright 19*14712a6bSJames Wright problem->ics.qfunction = ICsTaylorGreen; 20*14712a6bSJames Wright problem->ics.qfunction_loc = ICsTaylorGreen_loc; 21*14712a6bSJames Wright 22*14712a6bSJames Wright PetscFunctionReturn(PETSC_SUCCESS); 23*14712a6bSJames Wright } 24