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