亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ptfsf-file-maker.c

?? The tar file contains the following files: ptfsf.c: heart of the perfect TFSF code ptfsf.h: he
?? C
字號(hào):
/*      
 * ptfsf-file-maker: Generate a file which contains the incident
 *    field suitable for use with the "perfect"
 *    total-field/scattered-field code.
 *
 * Copyright (C) 2004 John B. Schneider
 *
 * This code uses the FFTw routines for the Fourier transforms.  See
 * www.fftw.org for that code if you wish to use that code too.
 * Otherwise you will have to replace the calls to the FFTw routines
 * to some other discrete Fourier transform routines.
 *
 * To compile this code, you would use something such as:
 *
 *  gcc -Wall -O2 -c ptfsf.c 
 *  gcc -Wall -O2 ptfsf-file-maker.c -o ptfsf-file-maker ptfsf.o\
 *         -lm -lfftw3 -lfftw3_threads -lpthread 
 *
 * For the GNU C compiler the "-Wall" flag turns on all warnings
 * (always a good idea) and "-O2" gives second-level optimization.
 * You must ensure the included header files are on the search path.
 * If you do not want to use the threaded version of FFTw, you may
 * remove those calls (see the FFTw documentation) and then there is
 * no need to link to the pthread library (which may not be installed
 * on some systems).
 *
 *********************************************************************
 * 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 (FSF) version 2      *
 * of the License.                                                   *
 *                                                                   *
 * 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.  You may also visit the FSF web site at          *
 * www.fsf.org.  The license under which this software is publish    *
 * is available from www.fsf.org/copyleft/gpl.html or                *
 * www.fsf.org/copyleft/gpl.txt.                                     *
 *********************************************************************
 */ 

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "ptfsf.h"

/* Timing stuff. */
#ifdef TIMING
  #include <sys/time.h>
  #include <sys/resource.h>
#endif

/* The tfsf_perfect_init() function is passed a time-series function
 * that takes a single argument (the time step) and returns a double
 * (the incident field at that time step).  I usually use a Ricker
 * wavelet function with three arguments: the time-step, the Courant
 * number, and the points per wavelength at the most energetic
 * frequency.  To use the usual Ricker function, we pass
 * tfsf_perfect_init() a wrapper which only has one argument and then
 * calls the usual Ricker routine with the missing arguments supplied.
 */
double ricker_wrapper(double ntime);
double ricker(double time, double cdtds, double ppw);

/* global variables -- for the sake of getting the wrapper to work. */
double cdtds, // Courant number
  ppw;        // points per wavelength at most energetic frequency


int main()
{
  double phi;       // incident angle [degrees]
  int n_end,        // time at which incident field assumed to go to zero
    x_size, y_size, // upper-right corner of TFSF region
    x_ref, y_ref;   // reference point where incident time series exists
  double eta=376.7303662, // impedance
    scale;          // scale factor for impedance

  /* observation-point stuff  */
  char file_name[80];

  /* timing stuff */
#ifdef TIMING
  int old_seconds, old_useconds;  
  struct rusage tp;
#endif

  /* Get user-settable parameters. */

  printf("Enter horizontal and vertical size of TFSF boundary: ");
  scanf("%d %d",&x_size,&y_size);

  printf("Enter indices for reference point where incident time series\n"
	 "  assumed to be given (should be on or in TFSF boundary).\n"
	 "  Horizontal value should be between 0 and %d, vertical value\n"
	 "  between 0 and %d: ",x_size-1,y_size-1);
  scanf("%d %d",&x_ref,&y_ref);

  printf("Enter time step when the TFSF turns off, i.e., the time step\n"
	 "  at which the incident field is essentially zero over the TFSF\n"
	 "  boundary: ");
  scanf("%d",&n_end);

  printf("Using a Ricker wavelet for source function.  Replace the function\n"
	 "  ricker_wrapper() in the source code and recompile if you wish to\n"
	 "  use a different function.\n"
	 "Enter the points per wavelength at peak of Ricker spectrum: ");
  scanf("%lf",&ppw);

  printf("Enter the incident angle (should be between 0 and 90) [degrees]: ");
  scanf("%lf",&phi);


  printf("Enter the multiplier for the Courant number.  Absolute values of\n"
	 "  negative numbers will scale 1/sqrt(3) and positive values will\n"
	 "  scale 1/sqrt(2), e.g., -0.95 yields Courant number of\n"
	 "  0.95/sqrt(3) while 0.5 would yield 0.5/sqrt(2): ");
  scanf("%lf",&cdtds);
  if (cdtds < 0.0)
    cdtds *= -1.0/sqrt(3.0);
  else
    cdtds *= 1.0/sqrt(2.0);
  printf("Using a Courant number of %g.\n",cdtds);

  printf("Impedance currently %.8g.  Enter scale factor for this: ",eta);
  scanf("%lf",&scale);
  eta *= scale;
  printf("Using an impedance of number of %g.\n",eta);

  printf("Enter the output file name: ");
  scanf("%s",file_name);
      
#ifdef TIMING
  getrusage(0,&tp);
  old_seconds = tp.ru_utime.tv_sec;
  old_useconds = tp.ru_utime.tv_usec;
#endif 

  /* have the ptfsf routines do their stuff and generate an output file */
  ptfsf_generate_file(
       n_end,                // time steps incident field non-zero
       x_size, y_size,       // size of TF region
       x_ref, y_ref,         // indices of "reference" point
       phi,                  // incident angle [degrees]		      
       cdtds,                // Courant number
       eta,                  // characteristic impedance
       ricker_wrapper,       // time-stepping function 
       file_name,            // output file name
       PTFSF_PROGRESS | PTFSF_INFO | PTFSF_ESTIMATE // control flags
      );

#ifdef TIMING
  getrusage(0,&tp);
  printf("Calculation of incident field took %.3f seconds.\n",
	 tp.ru_utime.tv_sec-old_seconds +
	 (tp.ru_utime.tv_usec-old_useconds)/1.e6);
#endif

  return 0;
}
/* ------------------------- end of main() --------------------------*/


/* ######################## ricker_wrapper() ####################### */
/* ricker_wrapper: A trivial wrapper to be able to call my usual
 *      ricker() function with a single argument.
 */
double ricker_wrapper(double ntime) {
  return ricker(ntime,cdtds,ppw);
}

/* ############################ ricker() ########################### */
/* ricker: Ricker wavelet. */
double ricker(double time,  // time step 
	      double cdtds, // Courant number
	      double ppw    // points/wavelength at most energetic frequency
	      ) {
  double arg,
    arg_max = 70.0, // arguments beyond this value are assumed to yield zero
                    //         this allows us to avoid calling exponential
                    //         when result will be effectively zero
    delay = 2.0;    // delay = multiple of inverse of most energetic frequency,
                    //         i.e., multiple of period at that frequency

  arg = pow(M_PI*((cdtds*time)/ppw - delay),2);
  if (arg > arg_max) {
    return 0.0;
  } else {
    return (1.0 - 2.0*arg) * exp(-arg);
  }
}
/* ------------------------- end of ricker() ----------------------- */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清不卡在线观看| 欧美一级免费观看| 欧美福利电影网| 国产欧美va欧美不卡在线| 亚洲伊人色欲综合网| 精品一区二区国语对白| 色94色欧美sute亚洲13| 国产欧美va欧美不卡在线| 日本美女一区二区三区| 色综合天天综合网天天狠天天| 欧美mv和日韩mv的网站| 亚洲国产成人av| 91香蕉视频污| 中文字幕佐山爱一区二区免费| 偷窥国产亚洲免费视频| 91日韩在线专区| 国产日韩欧美高清在线| 捆绑调教美女网站视频一区| 欧美性欧美巨大黑白大战| 中文字幕一区二| 成人午夜电影网站| 久久精品日韩一区二区三区| 日本午夜一区二区| 欧美日韩精品电影| 亚洲综合男人的天堂| 99国产精品国产精品毛片| 国产欧美一区二区精品性色超碰| 麻豆高清免费国产一区| 欧美剧情电影在线观看完整版免费励志电影 | 国产精品亚洲一区二区三区在线| 欧美三级中文字| 亚洲最新在线观看| 色婷婷综合激情| 亚洲欧洲制服丝袜| 91免费看视频| 一区二区三区四区视频精品免费 | 欧美一区二区三区性视频| 亚洲综合在线免费观看| 99视频精品全部免费在线| 国产精品萝li| 一本久久a久久精品亚洲| 午夜久久电影网| 制服丝袜激情欧洲亚洲| 美女网站在线免费欧美精品| 日韩欧美一级片| 久久99精品网久久| 国产香蕉久久精品综合网| 丁香六月综合激情| 亚洲精品videosex极品| 欧美欧美欧美欧美首页| 美脚の诱脚舐め脚责91 | 成人app下载| 亚洲卡通欧美制服中文| 欧美日韩成人综合天天影院 | 久久久久久亚洲综合| 国产乱码精品一区二区三区av| 中文字幕免费不卡| 色女孩综合影院| 免费久久99精品国产| 久久精品视频免费观看| 色国产综合视频| 蜜桃一区二区三区在线观看| 26uuu色噜噜精品一区二区| 成人黄页毛片网站| 亚洲国产精品精华液网站| 欧美电影免费观看高清完整版| 国产精品自在欧美一区| 亚洲伦理在线精品| 欧美成人a∨高清免费观看| 成人免费黄色大片| 丝袜美腿亚洲色图| 国产精品污www在线观看| 欧美日韩久久久一区| 国产一区二区美女| 亚洲一区二区在线观看视频| 精品国产乱码久久久久久免费| 97se亚洲国产综合自在线观| 午夜精品福利一区二区三区av | 欧美一区日韩一区| 成人免费视频视频| 免费在线看一区| 亚洲综合在线免费观看| 1区2区3区精品视频| 精品欧美一区二区久久| 91在线观看下载| 免费在线视频一区| 亚洲另类在线制服丝袜| 久久久久高清精品| 欧美一区日本一区韩国一区| 91香蕉视频mp4| 国产精品一区二区91| 日日噜噜夜夜狠狠视频欧美人| **欧美大码日韩| 久久久一区二区| 日韩丝袜美女视频| 欧美在线观看视频在线| 成人18视频在线播放| 国模少妇一区二区三区| 日韩精品电影在线观看| 亚洲一区二区3| 亚洲人成网站色在线观看| 国产欧美精品一区二区色综合朱莉| 日韩一区二区电影网| 欧美猛男男办公室激情| 色88888久久久久久影院野外| 成人av电影在线| 成人av片在线观看| 国产丶欧美丶日本不卡视频| 久久国产综合精品| 青青草97国产精品免费观看无弹窗版| 亚洲一区二区三区爽爽爽爽爽| 18欧美亚洲精品| 亚洲欧美日韩一区| 1024亚洲合集| 亚洲精品日韩一| 一区二区三区欧美在线观看| 亚洲色图.com| 亚洲免费观看高清完整版在线观看| 国产精品热久久久久夜色精品三区| 国产性天天综合网| 国产欧美精品一区二区三区四区| 久久久久久亚洲综合影院红桃| 精品国产第一区二区三区观看体验 | 制服丝袜中文字幕一区| 91精品国产综合久久久久| 91精品午夜视频| 精品久久久久久久久久久久包黑料| 欧美一级爆毛片| 精品国产乱码久久久久久1区2区| 欧美成人三级电影在线| 久久精品一区二区三区不卡牛牛| 久久久久久97三级| 亚洲视频在线一区二区| 亚洲一区二区三区影院| 日本在线不卡视频| 国产一区二区不卡老阿姨| 国产成都精品91一区二区三| 波多野结衣欧美| 在线观看日韩高清av| 91精品国产色综合久久不卡蜜臀| 精品少妇一区二区| 国产精品久久久久aaaa樱花| 亚洲一区二区中文在线| 奇米精品一区二区三区在线观看 | 亚洲成人av电影在线| 免费成人在线观看视频| 国产aⅴ综合色| 欧美性欧美巨大黑白大战| 日韩三级在线观看| 国产精品美女www爽爽爽| 伊人开心综合网| 久久激情五月婷婷| 99久久99久久精品免费看蜜桃| 欧美videos大乳护士334| 日韩欧美国产综合一区| 日韩欧美成人一区| 精品国精品国产| 26uuuu精品一区二区| 久久免费看少妇高潮| 久久精品一区八戒影视| 欧美激情综合网| 国产精品黄色在线观看| 亚洲素人一区二区| 一卡二卡欧美日韩| 亚洲国产另类精品专区| 日韩精品一卡二卡三卡四卡无卡| 丝袜美腿一区二区三区| 裸体在线国模精品偷拍| 国产精品一区二区在线观看不卡| 国产iv一区二区三区| 成人国产精品免费| 色综合视频一区二区三区高清| 日本丶国产丶欧美色综合| 欧美亚洲高清一区| 欧美一区二区精品在线| 久久精品一区二区三区不卡| 综合自拍亚洲综合图不卡区| 亚洲高清三级视频| 美国十次了思思久久精品导航| 国产精品自拍在线| 在线精品观看国产| 欧美一二区视频| 国产日本一区二区| 一区二区在线观看视频 | 成人av在线影院| 日韩精品一区二区在线观看| 亚洲国产精品麻豆| 91论坛在线播放| 亚洲视频一区二区免费在线观看| 国产不卡在线播放| 久久日韩精品一区二区五区| 久久爱www久久做| 日韩视频免费直播| 午夜精品福利一区二区三区av | 欧美日韩另类一区| 亚洲视频一区二区在线| proumb性欧美在线观看| 国产精品美日韩| av动漫一区二区| 亚洲日本一区二区|