konstante.c 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //Logical markers for the datapoint characterisation
  2. #define LMARK1 2 //bulk
  3. #define LMARKKOL 4 //colloid
  4. #define LMARKPOV 8 //surface node
  5. #define LMARKRP 16 //Marker is a part of boundary conditions
  6. #define LMARK0 32 //There is absolutely nothing to be done in that point
  7. //Numerical parameters
  8. //A time step in the code corresponds to RESP^2/L/GAM*DT, where RESP=resolution, L=elastic constant, GAM is GAMMA viscosity. All can be chosen arbitrarily
  9. #define DT 0.025 //Changing DT does not alter material parameter values (but it affects the Reynolds number)
  10. //relaxation time of the Lb scheme -- sets up the isotropic visosity alpha4. It is important for numerical precision, in particular the slip velocity at the walls.
  11. #define TAUF (2.f*DT)
  12. //Density parameter - vaguely related to the actual density (note that LB is weakly compressible). Sets up the isotropic viscosity eta. The fact that the density is way too largre results in larger Reynolds number compared to experiments. eta=DENSITYINIT*DT*(TAUF/DT-0.5)/3 in units of 1/GAMMA. Lower DENSITYINIT might lead to numerical instabilities.
  13. #define DENSITYINIT (2.75f/DT)
  14. //Material parameters
  15. //Alignment parameter
  16. #define XI 1.f //Tumbling/aligning regime -- transition is at XI=0.857 (at SEQ=0.533)
  17. //Activity
  18. float ZETA;// 0.0f //Activity parameter. To get the actual value (in units of L/RESP^2) multiply by RESP^2/L
  19. //Phase parameters (in the units of L/RESP^2)
  20. #define A (-0.43f)
  21. #define B (-5.3f)
  22. #define C (4.325f)
  23. #define SEQ (0.5*(-B/(3*C)+sqrt(fsqr(B/(3*C))-(8*A)/(3*C))) )
  24. //For the above phase parameters, nematic correlation length KSI=sqrt(L/(A+B*Seq+9/2*C*Seq^2)) equals (0.663e-8) times RESP
  25. // Surface anchoring (in the units of L/RESP)
  26. #define WHOM (0.5f) //homeotropic anchoring strength
  27. // #define WHOM (0.005f) //homeotropic anchoring strength
  28. // Radius of a shell
  29. #define R (30.0f)
  30. //active droplet
  31. #define dt_active0 (1.0E-4) // ACTIVE DROPLET TIME/PASSIVE NEMATIC TIME
  32. #define VELOCITY_SCALING (0.01)
  33. //
  34. // #define nu 5
  35. // #define rho (0.1f)
  36. // #define chi 1.0/log(1.0/rho)
  37. // #define xi_rot 1.0
  38. // #define tau_active xi_rot / (2 * chi)
  39. // #define xi_alpha 1.0
  40. //A possible choice for the material parameters can correspond to the values that Miha Ravnik chose long time ago
  41. // //parameters that define the scale of the system (not really, these are just a suggestion)
  42. // #define RESP (1e-8) //Resolution (in meters)
  43. // //#define KSI (0.663e-8)
  44. // #define L (4.e-11) //Elastic constant -- (in N)
  45. // //Phase parameters
  46. // #define SEQ (0.5*(-B/(3*C)+sqrt(fsqr(B/(3*C))-(8*A)/(3*C))) )
  47. // #define Ape (-0.172e6) // J/m3
  48. // #define Bpe (-2.12e6) // J/m3
  49. // #define Cpe (1.73e6) // J/m3
  50. // #define A (Ape*RESP*RESP/L) // (for T-T*=-10K) A=-0.43
  51. // #define B (Bpe*RESP*RESP/L) // -5.3
  52. // #define C (Cpe*RESP*RESP/L) // 4.325
  53. //Pressure flow driving (typically not needed)
  54. // #define DELTAP 0
  55. // #define DELTAPX (0.001f*DENSITYINIT)
  56. // #define DELTAPY (0.0f*DENSITYINIT)