Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download ""

Transcription

1 GLS user s reference

2 libgls int gls value add int float gls value add real double gls value add real gls check add gls button add gls check get status gls scroll add gls scroll update gls separator add libstat scalar1d scalar2d vector2d director2d scalar3d

3 3.6 vector3d

4 1 1.1 GLS X-Window system OpenGL GTK GLS libgls libstat2 libgls libstat2 libstat2 OpenGL libstat2 libgls OpenGL OpenGL 3D XRS D gtk C OpenGL Simulator GLS BSD 3

5 3 3 OpenDX AVS 4

6 2 libgls int gls value add int4 GtkWidget* gls_value_add_int4(const gchar* name, gint32* value); const gchar* name gint32* value float gls value add real4 GtkWidget* gls_value_add_real4(const gchar* name, float* value); const gchar* name float* value double gls value add real8 GtkWidget* gls_value_add_real8(const gchar* name, double* value); const gchar* name double* value gls check add GtkWidget* gls_check_add(const gchar* name, GLS_EVENT_PUSH callback, gpointer p); const gchar* name GLS_EVENT_PUSH callback ( ) void callback(gpointer p); gls_check_add gpointer p 5

7 2.2.2 gls button add GtkWidget* gls_button_add(const gchar* name, GLS_EVENT_PUSH callback, gpointer p); const gchar* name GLS_EVENT_PUSH callback ( ) void callback(gpointer p); gls_button_add gpointer p gls check get status gboolean gls_check_get_status(gtkwidget* w); gls_check_add gls_button_add ON TRUE OFF FALSE gls scroll add GtkWidget* gls_scroll_add(int min, int max, int *val); gls scroll update void gls_scroll_update(gtkwidget *w, int *index_scroll, int min, int max, int step); 2.4 gls separator add void gls_separator_add(); 6

8 3 libstat2 3.1 scalar1d double *s double up, low int NNX NNX NNX void (*draw_add)(void) view void view (const gchar * title, int xsize, int ysize); const gchar *title int xsize int ysize tga void tga (const char *dir, const char *name, int sizex, int sizey, int index); tga const char *dir const char *name.tga int sizex int sizey int index 4 NOINDEX NOINDEX eps void eps (const char *dir, const char *name, int sizex, int sizey, int index); eps const char *dir const char *name.eps int sizex int sizey int index 4 NOINDEX NOINDEX 7

9 read void read (const char *dir, const char *name, int index); double *s const char *dir const char *name int index 4 NOINDEX NOINDEX write void write (const char *dir, const char *name, int index); read const char *dir const char *name int index 4 NOINDEX NOINDEX draw point void draw_point(double x[2], double size, double col[3]) x[0] x[1] size col[3] col[0] col[1] col[2] draw line void draw_line(double x1[2], double x2[2], double col[3]) (x1[0], x1[1]) (x2[0], x2[1]) col[3] col[0] col[1] col[2] psi scalar1d psi(nx, 1, -1); double up, low up=1 low=0 psi.s[i] 8

10 for (i = 1; i <= NX; i++) { } phi.s[i] = i; psi.up psi.low 3.2 scalar2d double **s double SCALE int NNX, NNY NNX*NNY NNX NNY void (*draw_add)(void) view tga eps void eps (const char *dir, const char *name, int index); eps const char *dir const char *name.eps int index 4 NOINDEX NOINDEX read write draw point 9

11 draw line psi scalar2d psi(nx, NY, 1); SCALE SCALE=1 double **s psi.s[i][j] for (i = 1; i <= NX; i++) { for (j = 1; j <= NY; j++) { phi.s[i][j] = 0.01 * (i + j); } } psi.scale 3.3 vector2d double ***v double SCALE SCALE=1 1 int NNX, NNY NNX*NNY NNX NNY void (*draw_add)(void) view tga 10

12 eps void eps (const char *dir, const char *name, int thind_down, int index); eps const char *dir const char *name.eps int thin_down 2 2 int index 4 NOINDEX NOINDEX read write draw point draw line vec vector2d vec(nx, NY, 1); SCALE SCALE=1 double ***v vec.v[0][i][j] vec.v[1][i][j] vec.v[0] x vec.v[1] y for (i = 1; i <= NX; i++) { for (j = 1; j <= NY; j++) { vec.v[0][i][j] -= DT * chemx[i][j]; vec.v[1][i][j] -= DT * chemy[i][j]; } } 11

13 3.4 director2d double ***v double **c double SCALE SCALE=1 1 double CSCALE int NNX, NNY NNX*NNY NNX NNY void (*draw_add)(void) view tga eps vector2d read write draw point draw line 12

14 n director2d n(nx, NY, 1, 1); SCALE vector2d SCALE=1 CSCALE=1 3.5 scalar3d double ***s double SCALE GtkWidget *drawmode gls_check_add SCALAR3D_DRAW_MODE mode int NNX, NNY, NNZ NNX*NNY*NNZ NNX NNY NNZ void (*draw_add)(void) view tga eps scalar3d read write 13

15 psi scalar3d psi(nx, NY, NZ, TWO_AUTO, 1); double SCALE scalar2d scalar3d double SCALE double SCALE t t t SCALAR3D_DRAW_MODE mode / / / / / / SCALAR3D_DRAW_MODE mode RED_AUTO BLUE_AUTO TWO_AUTO RED_MANUAL BLUE_MANUAL TWO_MANUAL mode=two_auto SCALE=1 3.6 vector3d double ****v double SCALE int NNX, NNY, NNZ NNX*NNY*NNZ NNX NNY NNZ scalar3d read write 14

16 draw point void draw_point(double x[3], double size, double col[3]) (x[0], x[1], x[2]) size col[3] col[0] col[1] col[2] draw line void draw_line(double x1[3], double x2[3], double col[3]) (x1[0], x1[1], x1[2]) (x2[0], x2[1], x2[2]) col[3] col[0] col[1] col[2] vec vector3d vec(nx, NY, NZ, 1); double SCALE 3 double ****v vec.v[0][i][j][k] vec.v[1][i][j][k] vec.v[2][i][j][k] vec.v[0] x vec.v[1] y vec.v[2] z 15

17 for (i = 1; i <= NX; i++) { for (j = 1; j <= NY; j++) { for (k = 1; k <= NZ; k++) { vec.v[0][i][j][k] -= DT * chemx[i][j][k]; vec.v[1][i][j][k] -= DT * chemy[i][j][k]; vec.v[2][i][j][k] -= DT * chemz[i][j][k]; } } 3.7 GtkWidget *check_axis scalar3d xyz gls_check_add GtkWidget *check_vector vector2d scalar2d gls_check_add GtkWidget *check_vector vector2d 20 16

広報さがみはら第1242号

広報さがみはら第1242号 LINE UP 3 1 5 6 1 NO.1242 S A G A M I H A R A 1 1 1 16 16 1 6 1 6 1 6 1 1 1 1 1 11 1 1 1 1 1 1 6 1 6 1 1 1 1 1 1 1 1 11 1 1 16 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 6 1 16 1 16 1 6 1 1 1 1 1 1

More information

Index P02 P03 P05 P07 P09 P11 P12 P22 01 02

Index P02 P03 P05 P07 P09 P11 P12 P22 01 02 www.rakuten-bank.co.jp/home-loan Index P02 P03 P05 P07 P09 P11 P12 P22 01 02 1 2 3 1 2 3 03 04 1 2 3 4 1.365% 1.05% 1 2 2 3 3 0 1 2 5 7 1 3 5 7 10 20 05 06 POINT 1 POINT 2 POINT 3 POINT 1 POINT 2 07 08

More information

立ち読みページ

立ち読みページ Chapter STEP1 74 STEP 75 STEP 91 STEP4 100 105 Chapter 1 P.75 P.79 P.8 4 P.84 5 P.85 6 P.91 7 P.96 8 P.97 9 P.100 10 P.10 11 P.10 1 P.104 1 STEP 1 1 1 4 5 6 7 8 9 74 STEP 1 1 75 STEP UP 1 1 1 4 5 6 7 8

More information

第3章 OpenGL の基礎

第3章 OpenGL の基礎 3 OpenGL April 11, 2017 1 / 28 3.1 ( ) OpenGL OpenGL 2 / 28 3.2 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc. 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 200831012 200810-12 200810-12 200710-12 669 749 700 7.0 % 70 116 99 16.5 % 599 633 600 5.4 % 331 331 312 6.0 % 328 328 308 6.5 % 191 191 171 11.4 % EPS 322 322 283 13.6 % 5,928 5,928 6,048-2.0 % EPS

More information

<B54CB5684E31A4E9C0CBA4E5AA6BC160BEE3B27AA544A5552E706466>

<B54CB5684E31A4E9C0CBA4E5AA6BC160BEE3B27AA544A5552E706466> N1 2 3 1 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 4 2 38 39 40 41 42 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 5 3 62 63 64 65 66 68 69 70 70 72 74 75 76 77 78 80 81 82 83

More information

001 No.3/12 1 1 2 3 4 5 6 4 8 13 27 33 39 001 No.3/12 4 001 No.3/12 5 001 No.3/12 6 001 No.3/12 7 001 8 No.3/12 001 No.3/12 9 001 10 No.3/12 001 No.3/12 11 Index 1 2 3 14 18 21 001 No.3/12 14 001 No.3/12

More information

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61

More information

1 2 3 4 1 2 1 2 3 4 5 6 7 8 9 10 11 27 29 32 33 1 2 3 7 9 11 13 15 17 19 21 23 26 CHECK! 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

More information

..0.._0807...e.qxp

..0.._0807...e.qxp 4 6 0 4 6 0 4 6 8 30 34 36 38 40 4 44 46 8 8 3 3 5 4 6 7 3 4 6 7 5 9 8 3 4 0 3 3 4 3 5 3 4 4 3 4 7 6 3 9 8 Check 3 4 6 5 3 4 0 3 5 3 3 4 4 7 3 3 4 6 9 3 3 4 8 3 3 3 4 30 33 3 Check Check Check Check 35

More information

h01

h01 P03 P05 P10 P13 P18 P21 1 2 Q A Q A Q A Q A Q A 3 1 check 2 1 2-1 2-2 2-3 2-4 2-5 2-5-1 2-6 2-6-1 2-6-2 2-6-3 3 3-1 3-2 3-3 3-4 3 check 4 5 3-5 3-6 3-7 3-8 3-9 4-1 4-1-1 4-2 4-3 4-4 4-5 4-6 5-1 5-2 4

More information

P.01 C Global Value Corp. PAT.P 2008'

P.01 C Global Value Corp. PAT.P 2008' Value Point system *1 2009. 2. 25 2009. 2. 25 C Global Value Corp. PAT.P 2008' P.01 C Global Value Corp. PAT.P 2008' C Global Value Corp. PAT.P 2008' P.03 P.06 C Global Value Corp. PAT.P 2008' C Global

More information

p01.qxd

p01.qxd 2 s 1 1 2 6 2 POINT 23 23 32 15 3 4 s 1 3 2 4 6 2 7003800 1600 1200 45 5 3 11 POINT 2 7003800 7 11 7003800 8 12 9 10 POINT 2003 5 s 45700 3800 5 6 s3 1 POINT POINT 45 2700 3800 7 s 5 8 s3 1 POINT POINT

More information

株主通信:第18期 中間

株主通信:第18期 中間 19 01 02 03 04 290,826 342,459 1,250,678 276,387 601,695 2,128,760 31,096 114,946 193,064 45,455 18,478 10,590 199,810 22,785 2,494 3,400,763 284,979 319,372 1,197,774 422,502 513,081 2,133,357 25,023

More information

1003shinseihin.pdf

1003shinseihin.pdf 1 1 1 2 2 3 4 4 P.14 2 P.5 3 P.620 6 7 8 9 10 11 13 14 18 20 00 P.21 1 1 2 3 4 5 2 6 P7 P14 P13 P11 P14 P13 P11 3 P13 7 8 9 10 Point! Point! 11 12 13 14 Point! Point! 15 16 17 18 19 Point! Point! 20 21

More information

ワタベウェディング株式会社

ワタベウェディング株式会社 1 2 3 4 140,000 100,000 60,000 20,000 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 5 6 71 2 13 14 7 8 9 10 11 12 1 2 2 point 1 point 2 1 1 3 point 3 4 4 5 6 point 4 point 5 point 6 13 14 15 16 point 17

More information

株主通信 第16 期 報告書

株主通信 第16 期 報告書 10 15 01 02 1 2 3 03 04 4 05 06 5 153,476 232,822 6,962 19,799 133,362 276,221 344,360 440,112 412,477 846,445 164,935 422,265 1,433,645 26,694 336,206 935,497 352,675 451,321 1,739,493 30,593 48,894 153,612

More information

untitled

untitled 1 2 3 4 5 6 7 Point 60,000 50,000 40,000 30,000 20,000 10,000 0 29,979 41,972 31,726 45,468 35,837 37,251 24,000 20,000 16,000 12,000 8,000 4,000 0 16,795 22,071 20,378 14 13 12 11 10 0 12.19 12.43 12.40

More information

WebGL References Kageyama (Kobe Univ.) Visualization 2013.05.07 *4 2 / 54

WebGL References Kageyama (Kobe Univ.) Visualization 2013.05.07 *4 2 / 54 WebGL *1 2013.05.07 *2 *1 X021 2013 LR301 *2 05/08: Kageyama (Kobe Univ.) Visualization 2013.05.07 *3 1 / 54 WebGL References Kageyama (Kobe Univ.) Visualization 2013.05.07 *4 2 / 54 Chrome Firefox http://www.khronos.org/webgl/wiki/demo_repository

More information

証券協会_p56

証券協会_p56 INDEX P.02-19 P.20-31 P.32-34 1 STEP1 STEP2 STEP3 STEP4 P.03-06 P.07-10 P.11-12 P.11-14 P.15-16 P.15-18 P.19 202 STEP 1 3 4 5 10 25 200 30 1,000 2,500 20 30 40 50 60 5 1 80.4 356.7 66.3 461.7 452.7 802.7

More information

ZE_Œ{‘‚‡Ì„©Łû

ZE_Œ{‘‚‡Ì„©Łû 87 5 7 1 2002 8 28 1 2 29 e r w 7 5 q Excel 20022000 2000 2002 2000 2002 STEP UP Check 2000 CONTENTS Excel 20022000 2000 5 1 15 1 1 2 5 7 18 ce 20 22 2 2 28 2002 0 2 8 9 10 11 12 1 1 1 2 8 0 2 2002 8 50

More information

Processingをはじめよう

Processingをはじめよう Processing をはじめよう 第 7 章 動きその 2 目次 フレームレート スピードと方向 移動 回転 拡大 縮小 2 点間の移動 乱数 タイマー 円運動 今回はここまで 2 2 点間の移動 Example 7-6 (EX_08_06) 始点 (startx, starty) から終点 (stopx, stopy) まで移動する 座標更新の計算方法は後述 始点と終点を変更しても動作する 変更して確認

More information

STEP1 STEP3 STEP2 STEP4 STEP6 STEP5 STEP7 10,000,000 2,060 38 0 0 0 1978 4 1 2015 9 30 15,000,000 2,060 38 0 0 0 197941 2016930 10,000,000 2,060 38 0 0 0 197941 2016930 3 000 000 0 0 0 600 15

More information

1

1 1 2 3 4 5 6 7 8 9 0 1 2 6 3 1 2 3 4 5 6 7 8 9 0 5 4 STEP 02 STEP 01 STEP 03 STEP 04 1F 1F 2F 2F 2F 1F 1 2 3 4 5 http://smarthouse-center.org/sdk/ http://smarthouse-center.org/inquiries/ http://sh-center.org/

More information

P072-076.indd

P072-076.indd 3 STEP0 STEP1 STEP2 STEP3 STEP4 072 3STEP4 STEP3 STEP2 STEP1 STEP0 073 3 STEP0 STEP1 STEP2 STEP3 STEP4 074 3STEP4 STEP3 STEP2 STEP1 STEP0 075 3 STEP0 STEP1 STEP2 STEP3 STEP4 076 3STEP4 STEP3 STEP2 STEP1

More information

WebGL Safari WebGL WebGL Safari Kageyama (Kobe Univ.) / 5

WebGL Safari WebGL WebGL   Safari Kageyama (Kobe Univ.) / 5 04 1 2015.05.12 Kageyama (Kobe Univ.) 2015.05.12 1 / 55 WebGL Safari WebGL WebGL http://www.khronos.org/webgl/ http://www.khronos.org/webgl/wiki/demo_repository Safari Kageyama (Kobe Univ.) 2015.05.12

More information

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value = Part2-1-3 Java (*) (*).class Java public static final 1 class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value

More information

宿泊産業活性化のための実証実験

宿泊産業活性化のための実証実験 121 32 10 12 12 19 2 15 59 40 33 34 35 36 37 38 3637 20 39 12 19 OFF 2008/12/19 2008/12/25 3 1 1 72,000 2008/12/19 2008/12/26 2 1 1 36,000 2008/12/28 2009/1/5 2 1 1 24,000 2009/1/6 2009/1/16 3 1 1 25,200

More information

1.ppt

1.ppt /* * Program name: hello.c */ #include int main() { printf( hello, world\n ); return 0; /* * Program name: Hello.java */ import java.io.*; class Hello { public static void main(string[] arg)

More information

untitled

untitled 2004/12/21 2/2 (11/16) DT-MRI (11/30) /OpenGL 12/7 12/14 (12/21) 1/11 (1/18) OpenGL ~ ~ OpenGL Silicon Graphics, OpenGL ~ ~ OpenGL OpenGL Utility Library (GLU) OpenGL. OpenGL. OpenGL Utility Toolkit (GLUT)

More information

広報さがみはら第1193号(中央区版)

広報さがみはら第1193号(中央区版) NO.119 S A G A M 1 I H A R A 1 2 3 4 5 LINE UP 6 7 8 9 12 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 6 1 1 1 6 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1

More information

Microsoft Word - SU1204教本(Driver)原稿.docx

Microsoft Word - SU1204教本(Driver)原稿.docx void setup(){ pinmode(13, OUTPUT); //13 void loop(){ digitalwrite(13, HIGH); //13 HIGH delay(500); digitalwrite(13, LOW); //13 LOW delay(500); setup pinmode loop delay C M B void setup(){ pinmode(12,output);

More information

1

1 PalmGauss SC PGSC-5G Instruction Manual PalmGauss SC PGSC-5G Version 1.01 PalmGauss SC PGSC5G 1.... 3 2.... 3 3.... 3 3.1... 3 3.2... 3 3.3 PalmGauss... 4 3.4... 4 3.4.1 (Fig. 4)... 4 3.4.2 (Fig. 5)...

More information