This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Plot refreshing data on screen | |
| set xrange [0:10] | |
| set yrange [0.8e25:3.2e25] | |
| unset autoscale | |
| do for [i=1:4000] { plot sprintf('field_%d0.txt',i) u ($0/100):1 w lp pt 6; pause 0.05; set title sprintf('Time: %.1e',i*1.e-11)} | |
| //Make video file | |
| =====loop.plt===== | |
| j = i*5 //need to make 1,2,3...-like png files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef LASER_FIELD_H | |
| #define LASER_FIELD_H | |
| #include "mytype.h" | |
| #include "reader.h" | |
| #include <cmath> | |
| #include <complex> // std::complex, std::abs | |
| class Laser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _USE_MATH_DEFINES | |
| #include <iostream> | |
| #include <iomanip> | |
| #include <cmath> | |
| #include <stdio.h> | |
| #include <complex> // std::complex, std::abs | |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <string> | |
| #include <sstream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <mpi.h> | |
| #include <cmath> | |
| #include "laser_field.h" | |
| #include "g_index.h" | |
| #include "g_gas.h" | |
| #include "conf.h" | |
| #include "Paralleler/paral_parent.h" | |
| #include "g_mesh.h" | |
| #include "g_flow.h" | |
| #include "g_unsteady.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _USE_MATH_DEFINES | |
| #include <iostream> | |
| #include <iomanip> | |
| #include <cmath> | |
| #include <stdio.h> | |
| #include <complex> // std::complex, std::abs | |
| #include <cstdlib> | |
| #include <ctime> | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| #include <stdio.h> | |
| using namespace std; | |
| int main() | |
| { | |
| FILE * file_n = fopen("file_n.txt","w"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| #include <stdio.h> | |
| using namespace std; | |
| double curtime; | |
| int size; | |
| double eps = 1.0; | |
| double k = 0.001; | |
| double dt = 0.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Linq.Expressions; | |
| using System.Diagnostics; | |
| namespace SquareRoot | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _CRT_SECURE_NO_DEPRECATE | |
| #include "stdio.h" | |
| #include "math.h" | |
| #include <iostream> | |
| using namespace std; | |
| double t = 0.0001; | |
| double h = 0.03; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _CRT_SECURE_NO_DEPRECATE | |
| #include "stdio.h" | |
| #include "math.h" | |
| #include <iostream> | |
| using namespace std; | |
| double t = 0.006; | |
| double h = 0.1; | |
| double a = 0.0; |