acn_funk_head.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //headers of all used functions
  2. //num_rec.c
  3. int tqli(float d[], float e[], int n, float **z);
  4. void tred2(float **a, int n, float d[], float e[]);
  5. float pythag(float a, float b);
  6. float ran2(long *idum);
  7. //acn_funk_lb
  8. void zacPriblUF(long seed);
  9. void calcF2Ul(int l, float **f);
  10. void calcFNEW2F();
  11. void fillHl(int l,float (*h)[4]);
  12. void izrSStressL(int l, float (*sigl)[4], float (*qlm)[4], float *ul, float *dx, float *dy, float *dz);
  13. void izrAStressL(int l,float (*tau)[4]);
  14. void izrOdvAStressL(int l,float *divTaul);
  15. void izrFeq(float **feq);
  16. void izrP();
  17. void fillUl2(int l, float* Ul2);
  18. int calcLBlnew(int l, int m);
  19. int calcLBmnew(int m);
  20. int calcLBmnew_noslipZ(int m);
  21. int calcm2mrot(int m, int faktor);
  22. int calcLpbc(int l);
  23. void pbcLB();
  24. void izrCasKorU();
  25. void izrQU();
  26. void compute_stress_tensor();
  27. //acn_funk_op.c
  28. void zacPriblQ(long seed);
  29. void dir2QRP(int l, float dirX, float dirY, float dirZ, float nX, float nY, float nZ, float vX, float vY, float vZ, char lmark, long seed);
  30. void dir2QBulk(int l,long seed);
  31. void izrOdvQ2(int l, float* dxx, float* dyy, float* dzz, float* dx, float* dy, float* dz);
  32. // void izrOdvQ2_fe(int l, float* dxx, float* dyy, float* dzz, float* dxy, float* dxz, float* dyz, float* dx, float* dy, float* dz);
  33. void izrOdvQ2POV(int l, float* dx, float* dy, float* dz);
  34. double calculate_free_energy();
  35. void izrOdvQ2_lb(int l, float* dxx, float* dyy, float* dzz, float* dx, float* dy, float* dz);
  36. void izrOdvU2(int l, float *ux, float *uy, float *uz);
  37. void fillQl2(int l, float* ql);
  38. void fillQlm2(int l, float (*qlm)[4]);
  39. void calcU1(int l,float *u1, float* dxx, float* dyy, float* dzz, float* dx, float* dy, float* dz, float* ql);
  40. void calcU2(float *u2, float *ux, float *uy, float *uz, float (*qlm)[4]);
  41. void calcU3(float *u3, float* dx, float* dy, float* dz, float* ul);
  42. void izrCasKorQ();
  43. void calcQNEW2Q();
  44. //acn_utils.c
  45. int i_vr(int l);
  46. int j_vr(int l);
  47. int k_vr(int l);
  48. void initialiseE();
  49. void AMatrixB(float (*c)[4], float (*a)[4],float (*b)[4]);
  50. //acn_funk_zapis.c
  51. void zapisQ(char *ime);
  52. void zapisTEN(char *ime,float **q, int lmax, int mmax);
  53. void beriDATA(char *ime);
  54. void zapisDATA(char *ime);
  55. void za_profilU(char *ime, int i, int j);
  56. void zapisUraw(char *ime);
  57. void zapisDENraw(char *ime);
  58. void calcQ2dirL(int l,float *dir);
  59. void zapisQ2DIRraw(char *ime);
  60. void zapisQ2OPraw(char *ime);
  61. void zapisPOLJEraw(int t,char *ime);
  62. //acn_funk_pe.c
  63. //acn_funk_kol.c
  64. //active droplet
  65. struct active_droplet{
  66. int num_points; // number of lattice points on sphere
  67. int* association;
  68. double* lattice_thetas;
  69. double* lattice_phis;
  70. double* velocities;
  71. double defect_config[13];
  72. };
  73. typedef struct active_droplet ActiveDroplet;
  74. // //active droplet
  75. // void propagate_trajectories_block(double* variables, double nu, double chi, double xi_rot, double xi_alpha,
  76. // double dt, int num_steps);
  77. // void velocity_field(double* defect_config, int n, double* lattice_thetas, double* lattice_phis,
  78. // double rho, double* velocities);