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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ptfsf-demo-file.c

?? The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field
?? C
字號(hào):
/*       * ptfsf-demo-file: a bare-bones 2D code which demonstrates use of the *      ptfsf code when the incident field has been written, a priori, *      to a data file. * *      The field at four observations points is recorded to a file. *      (If the wrtraw package is installed and used, dumps of the *      entire computational domain are made periodically and these *      can be used to make 2D color maps of the field.) * * 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-demo-file.c -o ptfsf-demo-file 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). * * I have written a suite or routines to generate color-mapped images * of fields.  Part of that suite is the wrtraw function.  Since I'm * not including that here (contact me if you want it), there is a * WRTRAW compiler directive which, if unset, removes all the wrtraw * stuff.  So, you can safely ignore that directive. * ********************************************************************* * 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"/* wrtraw stuff */#ifdef WRTRAW#include "wrtraw.h"#endif/* Size of computational domain. */#define LIMX 141#define LIMY 141/* Macros for allocating and accessing arrays */#define Ez(I,J) ez[(I)*(LIMY)+(J)]#define Hx(I,J) hx[(I)*(LIMY-1)+(J)]#define Hy(I,J) hy[(I)*(LIMY)+(J)]#define ALLOC_2D(name,nx,ny,type) { \ name = (type *)calloc((nx)*(ny),sizeof(type)); \ if (!name) { perror("ALLOC_2D"); \              fprintf(stderr,"Allocation failed for " #name "\n"); \              exit(-1); \             }; \ }int main(){  const double eta=376.7303662;  /* Electric and magnetic fields.  The array memory is allocated as a   * large one-dimensional block, but these arrays are treated as   * two-dimensional things via the macros given above.   */  double cdtds;  double *ez, *hx, *hy;  double dteta, doeta; // update equation coefficients  int idum, jdum, // spatial indices (dummy indices)    time_end_total,   // total length of simulation    ntime,        // temporal step    x_ll, y_ll,   // lower-left corner of TFSF region    x_ur, y_ur;   // upper-right corner of TFSF region  /* observation-point stuff  */  char file_name[80];  FILE *obs_point;  /* structure for description of TFSF paramters */  ptfsf_parameters *params;  /* wrtraw stuff */#ifdef WRTRAW  img_sequence *images=NULL;  char *basename = "junk";#endif  /* Allocate and initialize fields arrays. */  ALLOC_2D(ez,LIMX,LIMY,double);  ALLOC_2D(hx,LIMX,LIMY-1,double);  ALLOC_2D(hy,LIMX-1,LIMY,double);#ifdef WRTRAW  images = wrtraw_open2d(0,LIMX-1,1,			 0,LIMY-1,1,			 LIMX,LIMY,			 basename,ez);  images->verbose = WRTRAW_MAX_INFO;#endif  /* Get user-settable parameters. */  printf("Size of computational domain: %d x %d\n",LIMX,LIMY);  printf("Enter indices for lower-left corner of TF/SF region: ");  scanf("%d %d",&x_ll,&y_ll);  printf("Enter number of time steps overall: ");  scanf("%d",&time_end_total);  printf("Enter the output file name: ");  scanf("%s",file_name);  obs_point = fopen(file_name,"w");  if (obs_point == NULL) {    fprintf(stderr,	    "Observation point output file failed to open.  Terminating...\n");    exit(-1);  }	   printf("Enter the file name where incident field stored: ");  scanf("%s",file_name);  /*    * Calculate the needed constants.  Courant number is set here.   */   cdtds  = 1.0/sqrt(3.0);  doeta  = cdtds/eta;  dteta  = cdtds*eta;        /* Initialize perfect total-field/scattered-field code so that it   * will read incident field from a stored data file. */  params = ptfsf_init_file(    x_ll,  y_ll,       // indices of lower-left corner of TF region    LIMX,  LIMY,       // size of computational domain    cdtds,             // Courant number    eta,               // characteristic impedance    ez,  hx,  hy,      // field arrays    file_name,      // name of file where incident field stored    PTFSF_PROGRESS | PTFSF_INFO | PTFSF_ESTIMATE // flags to control behavior    );  ptfsf_parameters_display(params);  x_ur = params->x_ur;  y_ur = params->y_ur;  printf("Electric field will be written for these points: "	 "(%d,%d), (%d,%d), (%d,%d)\n",	 x_ll,y_ll,	 (int)(x_ur+x_ll)/2,(int)(y_ur+y_ll)/2,	 x_ur,y_ur);  printf("Incident field assumed to be non-zero for %d time steps.\n",	 params->time_end);  /* Do the time stepping. */  for (ntime=0; ntime<time_end_total; ntime++) {    if (ntime%10 == 0)      printf("%d...\n",ntime);    /* Calculate electric field. */    for (idum=1; idum<LIMX-1; idum++)      for (jdum=1; jdum<LIMY-1; jdum++)	Ez(idum,jdum) +=	  + dteta*(Hy(idum,jdum)-Hy(idum-1,jdum)                   - (Hx(idum,jdum)-Hx(idum,jdum-1)));    /* Can uncomment the following to throw in a scatterer to make     * sure TFSF really transparent.     */    // idum = LIMX/2;    // for (jdum=y_ll+15; jdum<y_ur-15; jdum++)    //   Ez(idum,jdum) = 0.0;    /* Electric field is correct after this routines is called, i.e.,     * total field in the total-field region and scattered field in     * the scattered-field region.  HOWEVER, the magnetic field is     * not correct until after the magnetic fields have been     * updated.     */    ptfsf_update_file(ntime);    /* printf value at observations point to a file */    fprintf(obs_point,"%i %g %g %g %g\n",ntime,	    Ez(x_ll,y_ll),	    Ez((int)(x_ur+x_ll)/2,(int)(y_ur+y_ll)/2),	    Ez(x_ur,y_ur),	    Ez(x_ur+5,y_ur+5));    /* Calculate Hx. */    for(idum=0; idum<LIMX; idum++)      for(jdum=0; jdum<LIMY-1; jdum++)	Hx(idum,jdum) -= doeta*(Ez(idum,jdum+1)-Ez(idum,jdum));    /* Calculate Hy. */    for(idum=0; idum<LIMX-1; idum++)      for(jdum=0; jdum<LIMY; jdum++)	Hy(idum,jdum) += doeta*(Ez(idum+1,jdum)-Ez(idum,jdum));            /* generate the output image */#ifdef WRTRAW    if (ntime % 10 == 0)      wrtraw(images);#endif      }  return 0;}/* ------------------------- end of main() --------------------------*/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区丝袜| 日本高清成人免费播放| 亚洲另类春色校园小说| 欧美国产日韩亚洲一区| 精品国产麻豆免费人成网站| 欧美久久免费观看| 欧美在线高清视频| 欧美在线免费观看亚洲| 欧美在线观看视频在线| 欧美色网一区二区| 欧美三级电影在线看| 欧美亚洲综合久久| 欧美精品一二三| 91精品国产91综合久久蜜臀| 欧美高清www午色夜在线视频| 欧美午夜精品久久久久久超碰| 欧洲在线/亚洲| 在线成人免费观看| 欧美一区二区黄| 2020国产精品| 日韩美女精品在线| 亚洲午夜精品网| 免费观看日韩电影| 国产精品18久久久久久久网站| 大陆成人av片| 欧美色视频在线观看| 5858s免费视频成人| 精品处破学生在线二十三| 久久精品日韩一区二区三区| 亚洲欧美电影一区二区| 午夜视频在线观看一区| 激情图区综合网| 色综合久久综合| 欧美不卡在线视频| 综合久久久久久久| 日一区二区三区| 国产成人精品三级麻豆| 欧美日韩午夜在线视频| 欧美成人在线直播| 亚洲欧美国产高清| 久久99精品久久久久久动态图| 99精品视频一区| 日韩三级视频在线观看| 亚洲视频免费看| 韩国中文字幕2020精品| 在线亚洲一区二区| 欧美精品一区二区三区蜜桃视频| 综合在线观看色| 国产一区二区精品在线观看| 欧美亚洲综合久久| 国产日韩成人精品| 日韩av一区二区在线影视| av一区二区三区四区| 日韩一区二区精品葵司在线| 亚洲精品久久久蜜桃| 国产麻豆午夜三级精品| 91精品国产91久久久久久一区二区 | 在线亚洲一区观看| 国产亚洲精品久| 美女网站在线免费欧美精品| 在线看国产一区| 中文字幕在线观看一区二区| 国产综合久久久久久久久久久久 | 欧美这里有精品| 国产精品久久久久影院老司| 国产一区视频导航| 日韩欧美国产不卡| 亚洲r级在线视频| 在线观看网站黄不卡| 国产精品久久久久久亚洲伦 | 亚洲人成精品久久久久久| 国产成人在线网站| 亚洲精品在线三区| 麻豆精品一区二区av白丝在线| 欧美群妇大交群中文字幕| 亚洲国产乱码最新视频 | 欧美四级电影网| 一区二区三区高清不卡| 91视视频在线观看入口直接观看www| 国产日韩一级二级三级| 国产精品一区久久久久| 26uuu亚洲婷婷狠狠天堂| 国产综合色在线| 日本一区二区视频在线观看| 国产成人免费高清| 中文一区二区在线观看| av亚洲精华国产精华| 亚洲欧美国产毛片在线| 91国内精品野花午夜精品| 亚洲永久精品国产| 制服丝袜国产精品| 久久精品免费观看| 国产亚洲欧美日韩在线一区| 成人午夜免费视频| 一区二区视频免费在线观看| 欧美影院一区二区| 日韩高清不卡一区| 久久久欧美精品sm网站| 成人av在线播放网站| 一区二区日韩av| 日韩一区二区三区在线观看| 国产精品亚洲综合一区在线观看| 国产精品网曝门| 在线区一区二视频| 麻豆91在线播放| 国产精品日韩精品欧美在线| 欧美亚洲综合久久| 国产原创一区二区| 亚洲女女做受ⅹxx高潮| 欧美一级日韩免费不卡| 成人免费黄色在线| 天天综合天天做天天综合| 日韩精品一区二区三区视频| 99久久久久免费精品国产| 天天色 色综合| 国产欧美综合在线观看第十页| 欧美最新大片在线看| 精品一区中文字幕| 亚洲精品视频在线| 久久综合狠狠综合久久激情| 在线免费视频一区二区| 国模冰冰炮一区二区| 一区二区三区四区蜜桃| 国产女主播在线一区二区| 欧美视频中文字幕| 成人午夜大片免费观看| 蜜桃av一区二区在线观看| 亚洲三级在线观看| 国产肉丝袜一区二区| 欧美一区二区黄色| 91久久久免费一区二区| 国产精品88888| 老司机精品视频在线| 亚洲综合免费观看高清完整版| 国产日韩精品一区二区三区在线| 日韩欧美亚洲国产精品字幕久久久 | 欧美三级午夜理伦三级中视频| 国产成人精品免费在线| 美女一区二区三区在线观看| 亚洲午夜国产一区99re久久| 亚洲天堂免费在线观看视频| 欧美韩国日本不卡| 精品国产免费人成在线观看| 日韩欧美一卡二卡| 678五月天丁香亚洲综合网| 欧美三级日韩在线| av在线不卡电影| 成人免费观看视频| 成人午夜视频在线| 国产成人综合在线播放| 国产高清视频一区| 国产精品正在播放| 国产91精品精华液一区二区三区| 国产一区二区福利| 国产一区久久久| 国产精品一级片| 成人亚洲精品久久久久软件| 国产成人aaa| www.成人在线| 91麻豆免费视频| 欧洲一区二区av| 欧美巨大另类极品videosbest | 久久久www成人免费毛片麻豆| 欧美va亚洲va香蕉在线| 亚洲精品一区二区三区蜜桃下载 | 成人av在线一区二区| 懂色av一区二区三区免费观看| 成人美女在线视频| 91啪亚洲精品| 欧美日韩一区成人| 日韩天堂在线观看| 久久久久久久综合日本| 欧美国产成人精品| 亚洲欧美日韩国产另类专区| 亚洲国产精品一区二区尤物区| 日韩在线一区二区三区| 久久精品噜噜噜成人av农村| 盗摄精品av一区二区三区| 99国产精品久久久久久久久久久| 色婷婷综合激情| 日韩一区二区免费高清| 久久久久亚洲蜜桃| 亚洲人xxxx| 免费欧美高清视频| 成人国产在线观看| 欧美色窝79yyyycom| 2021国产精品久久精品| 亚洲天堂久久久久久久| 蜜臀av亚洲一区中文字幕| 成人app网站| 欧美日韩国产区一| 国产欧美日韩精品一区| 亚洲高清视频中文字幕| 国产一区二区日韩精品| 在线影院国内精品| 久久久久久久久久久久久久久99| 亚洲一区二区三区不卡国产欧美| 国产又粗又猛又爽又黄91精品| 欧美日韩在线播放三区| 国产三级欧美三级日产三级99|