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