⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eta_source.h

📁 波浪数值模拟
💻 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 * *//* eta_source.h   Falk Feddersen */       #ifndef ETA_SOURCE_H#define ETA_SOURCE_H#include "bdefs.h"typedef enum {  MONOCHROMATIC, RANDOM1, RANDOM2   /* R1 = E(f)E(\theta_0),  R2 = E(f,theta) */} wave_t;typedef enum {  RANDOM1_NARROW_BAND,  RANDOM1_FILE} random1_subtype;typedef enum {  RANDOM2_NARROW_BAND,  RANDOM2_FILE_A} random2_subtype;typedef struct {  switch_t  eta_source_flag;  // wave source on or off  wave_t wave_type;           // the type of wave field  random1_subtype subtype1;    // if wave_type==RANDOM1 then this is the subtype (NB, file, etc)    random2_subtype subtype2;    // if wave_type==RANDOM1 then this is the subtype (NB, file, etc)  GString *spectrum_file;     // the name of the input spectrum file if required  double frequency;           // the wave frequenncy  double H;                   // the intended wave height  double theta;               // the wave angle in degrees - what is the sign convention??  int icenter;                // the center of the wave source function in eta i coordintes   double delta;               // the parameter related to the width of the eta source region  /* these are the RANDOM1 things */  double fwidth;  int numfreq;  /* RANDOM 2 things */  double spread;} eta_source_info_t;void  init_eta_source(eta_source_info_t *ES, int nx, int ny, double dt);void  deallocate_eta_source();void  rhs_calc_eta_source_f_add(field2D *ET1);void  eta_source_report();#endif /* ETA_SOURCE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -