📄 sponge.h
字号:
/* * Copyright (c) 2001-2005 Falk Feddersen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *//* sponge.h Falk Feddersen */ #ifndef SPONGE_H#define SPONGE_H#include "bdefs.h"/* Right now the sponge layer only works on the x boundaries */typedef struct { switch_t sponge_layer_flag; // sponge layer either on/off int ix0_width; // width of the sponge layer starting at x=0 (the shore) int ixL_width; ; // width of the sponge layer starting at x=Lx (the far boundary) double cspg1; // factor that goes in front of Wspg1 double cspg2; // factor that goes in front of Wspg1 double cspg3; // factor that goes in front of Wspg1 double frequency; // this is the wave frequency switch_t auto_flag; // if ==ON then figure out cspg1--3 automatically} sponge_layer_info_t;void init_sponge_layer(sponge_layer_info_t *S, int nx, int ny);void deallocate_sponge_layer();void rhs_uvmom_sponge_layer_add(field2D *UT, field2D *VT, const field2D *U, const field2D *V);// const field2D *LAP_U, const field2D *LAP_V);void sponge_layer_stability_report( double dt );#endif /* SPONGE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -