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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ptfsf-file-maker.c

?? The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field
?? C
字號:
/*       * 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 frequencyint 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() ----------------------- */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久蜜臀国产一区二区| 欧美日韩另类一区| 日韩电影免费在线看| 一区二区三区在线免费播放| 最新久久zyz资源站| 2022国产精品视频| 国产欧美一区二区在线观看| 国产视频一区二区在线观看| 国产精品久久三| 中文字幕亚洲精品在线观看| 免费在线观看日韩欧美| 久久福利资源站| 成人av电影在线| 91久久国产综合久久| 91.xcao| 久久精品夜色噜噜亚洲a∨| 日韩成人精品在线观看| 欧美日韩免费视频| 久久久91精品国产一区二区精品 | 亚洲免费av观看| 亚洲在线免费播放| 日本视频一区二区| 欧美日韩国产首页| 亚洲国产wwwccc36天堂| 国产在线播放一区| 日本精品裸体写真集在线观看| 国产色产综合产在线视频| 久久国产婷婷国产香蕉| 精品奇米国产一区二区三区| 国产精品伦一区二区三级视频| 亚洲综合小说图片| 91福利视频网站| 亚洲一区二区三区精品在线| 色天天综合久久久久综合片| 久久综合九色欧美综合狠狠| 久久精品国产一区二区三区免费看| 在线电影国产精品| 成人免费在线观看入口| 99精品久久99久久久久| 精品女同一区二区| 久久成人免费网| 久久久亚洲高清| 懂色av中文一区二区三区| 欧美日韩精品二区第二页| 夜夜嗨av一区二区三区中文字幕| av成人动漫在线观看| 欧美成人精精品一区二区频| 国产在线视视频有精品| 欧美一区二区三区公司| 玉米视频成人免费看| 成人性生交大片免费看视频在线| 欧美一区二区三区性视频| 日韩电影一区二区三区四区| 精品乱人伦小说| 成人短视频下载| 亚洲一区免费观看| 精品国产污网站| 免费不卡在线观看| 国产欧美综合色| 91高清视频在线| 蜜臀av性久久久久av蜜臀妖精| 欧美三区在线视频| 精品亚洲成a人在线观看| 日韩欧美黄色影院| 奇米精品一区二区三区在线观看 | 蜜臀av国产精品久久久久 | 欧美一区二区视频网站| 国产裸体歌舞团一区二区| 亚洲精品国产精华液| 日韩欧美中文字幕精品| 日韩av中文字幕一区二区三区| 久久综合色综合88| 在线看不卡av| 天天综合网天天综合色| 欧美日韩卡一卡二| 成人app软件下载大全免费| 午夜精品一区二区三区三上悠亚 | 毛片av一区二区| 亚洲色图一区二区三区| 亚洲精品在线观看网站| 在线精品视频免费播放| 国产一区二区三区四区在线观看| 一区二区三区欧美亚洲| 精品国产自在久精品国产| 欧美午夜片在线观看| 日韩成人av影视| 亚洲青青青在线视频| 国产亚洲精久久久久久| 日韩免费视频线观看| 欧洲国内综合视频| 成人sese在线| 国产专区欧美精品| 日韩—二三区免费观看av| 一区二区三区四区亚洲| 中文字幕一区二区三区在线不卡| 精品国产乱码久久久久久久久| 欧美做爰猛烈大尺度电影无法无天| 国产一区二区三区蝌蚪| 美女精品一区二区| 亚洲一区二区美女| 亚洲精品视频在线看| 国产精品对白交换视频| 国产精品美女一区二区三区| 久久久午夜电影| 久久亚洲综合色一区二区三区 | 在线免费观看日本欧美| 不卡大黄网站免费看| 国产精品2024| 玉足女爽爽91| 一区二区三区四区在线| 亚洲资源中文字幕| 亚洲综合免费观看高清在线观看| 综合色天天鬼久久鬼色| 亚洲天堂中文字幕| 亚洲蜜桃精久久久久久久| 亚洲免费在线观看视频| 综合久久一区二区三区| 综合久久久久综合| 夜夜亚洲天天久久| 亚洲福利视频三区| 日韩精品成人一区二区在线| 国产精品人妖ts系列视频| 日本一区二区高清| 日韩三级伦理片妻子的秘密按摩| 欧美一区二区三区免费在线看 | 秋霞av亚洲一区二区三| 美女视频免费一区| 国产伦理精品不卡| 91网站在线播放| 国内国产精品久久| 国产成a人亚洲| 99re这里都是精品| 欧美色老头old∨ideo| 91精品国产aⅴ一区二区| 2020国产精品| 中文字幕在线免费不卡| 亚洲电影在线播放| 亚洲国产精品精华液ab| 亚洲视频免费在线| 日日夜夜精品视频免费| 国产资源精品在线观看| 91免费在线视频观看| 在线成人高清不卡| 精品国产污污免费网站入口| 国产精品网友自拍| 婷婷国产v国产偷v亚洲高清| 韩国欧美国产1区| 91国在线观看| 精品国产一二三区| 亚洲精品国产成人久久av盗摄 | 亚洲综合av网| 狠狠色2019综合网| 欧美中文一区二区三区| 精品国产伦一区二区三区观看方式 | 亚洲国产视频一区| 国模大尺度一区二区三区| 色哟哟欧美精品| 欧美大度的电影原声| 亚洲视频1区2区| 九九**精品视频免费播放| 91美女在线视频| 久久久久九九视频| 亚洲国产乱码最新视频 | 91在线国产福利| 日韩欧美www| 亚洲国产欧美在线人成| 国产精一区二区三区| 欧美日韩极品在线观看一区| 国产喷白浆一区二区三区| 日韩在线一区二区| 91美女蜜桃在线| 国产精品色哟哟网站| 麻豆国产精品777777在线| 欧洲中文字幕精品| 国产精品不卡在线| 国产高清精品久久久久| 成人av第一页| 久久日一线二线三线suv| 三级欧美在线一区| 91久久精品一区二区三区| 国产精品狼人久久影院观看方式| 老司机精品视频线观看86 | 日韩精品一区二| 亚洲国产成人91porn| 色综合一个色综合| 欧美一二区视频| 亚洲电影一区二区| 在线观看av不卡| 亚洲卡通欧美制服中文| 成人久久视频在线观看| 久久久不卡影院| 国产高清一区日本| 久久久久成人黄色影片| 狠狠色狠狠色综合| 久久久精品国产99久久精品芒果 | 精品国产伦一区二区三区观看方式 | 亚洲欧美视频一区| fc2成人免费人成在线观看播放 | 日韩精品一区二| 精品一区二区在线播放|