1*9ba83ac0SJeremy L Thompson // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 214712a6bSJames Wright // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 314712a6bSJames Wright // 414712a6bSJames Wright // SPDX-License-Identifier: BSD-2-Clause 514712a6bSJames Wright // 614712a6bSJames Wright // This file is part of CEED: http://github.com/ceed 714712a6bSJames Wright 814712a6bSJames Wright /// @file 914712a6bSJames Wright /// Utility functions for setting up Taylor-Green Vortex 1014712a6bSJames Wright 1114712a6bSJames Wright #include "../qfunctions/taylorgreen.h" 1214712a6bSJames Wright 1314712a6bSJames Wright #include "../navierstokes.h" 1414712a6bSJames Wright 15731c13d7SJames Wright PetscErrorCode NS_TAYLOR_GREEN(ProblemData problem, DM dm, void *ctx, SimpleBC bc) { 1614712a6bSJames Wright PetscFunctionBeginUser; 1714712a6bSJames Wright PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx, bc)); 1814712a6bSJames Wright 1914712a6bSJames Wright problem->ics.qfunction = ICsTaylorGreen; 2014712a6bSJames Wright problem->ics.qfunction_loc = ICsTaylorGreen_loc; 2114712a6bSJames Wright PetscFunctionReturn(PETSC_SUCCESS); 2214712a6bSJames Wright } 23