xref: /honee/problems/taylorgreen.c (revision 149fb5361f5198e41f87e8815a7e9dbfee84a96a)
1dc936754SJeremy L Thompson // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2692bc0d9SJames Wright // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3692bc0d9SJames Wright //
4692bc0d9SJames Wright // SPDX-License-Identifier: BSD-2-Clause
5692bc0d9SJames Wright //
6692bc0d9SJames Wright // This file is part of CEED:  http://github.com/ceed
7692bc0d9SJames Wright 
8692bc0d9SJames Wright /// @file
9692bc0d9SJames Wright /// Utility functions for setting up Taylor-Green Vortex
10692bc0d9SJames Wright 
11692bc0d9SJames Wright #include "../qfunctions/taylorgreen.h"
12692bc0d9SJames Wright 
13*149fb536SJames Wright #include <navierstokes.h>
14692bc0d9SJames Wright 
15991aef52SJames Wright PetscErrorCode NS_TAYLOR_GREEN(ProblemData problem, DM dm, void *ctx, SimpleBC bc) {
16692bc0d9SJames Wright   PetscFunctionBeginUser;
17692bc0d9SJames Wright   PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx, bc));
18692bc0d9SJames Wright 
19692bc0d9SJames Wright   problem->ics.qfunction     = ICsTaylorGreen;
20692bc0d9SJames Wright   problem->ics.qfunction_loc = ICsTaylorGreen_loc;
21692bc0d9SJames Wright   PetscFunctionReturn(PETSC_SUCCESS);
22692bc0d9SJames Wright }
23