xref: /honee/problems/taylorgreen.c (revision ae2b091fac884a554e48acc4b4c187524c2a2818)
1*ae2b091fSJames Wright // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors.
2*ae2b091fSJames Wright // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause
3692bc0d9SJames Wright 
4692bc0d9SJames Wright /// @file
5692bc0d9SJames Wright /// Utility functions for setting up Taylor-Green Vortex
6692bc0d9SJames Wright 
7692bc0d9SJames Wright #include "../qfunctions/taylorgreen.h"
8692bc0d9SJames Wright 
9149fb536SJames Wright #include <navierstokes.h>
10692bc0d9SJames Wright 
11991aef52SJames Wright PetscErrorCode NS_TAYLOR_GREEN(ProblemData problem, DM dm, void *ctx, SimpleBC bc) {
12692bc0d9SJames Wright   PetscFunctionBeginUser;
13692bc0d9SJames Wright   PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx, bc));
14692bc0d9SJames Wright 
15692bc0d9SJames Wright   problem->ics.qfunction     = ICsTaylorGreen;
16692bc0d9SJames Wright   problem->ics.qfunction_loc = ICsTaylorGreen_loc;
17692bc0d9SJames Wright   PetscFunctionReturn(PETSC_SUCCESS);
18692bc0d9SJames Wright }
19