Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. vortexSource
  2. {
  3. type swakTopoSources;
  4.  
  5. active true;
  6. timeStart 0;
  7. duration 1e7;
  8. selectionMode cellZone;
  9. cellZone vortexZone;
  10.  
  11. vectorSwakImplicitSourceCoeffs {
  12. switchExplicitImplicit true;
  13. variables (
  14. "xMin=min(pos().x);"
  15. "xMax=max(pos().x);"
  16. "yMin=min(pos().y);"
  17. "yMax=max(pos().y);"
  18. "zMin=min(pos().z);"
  19. "zMax=max(pos().z);"
  20. //Burgers vortex analytical expression 2D
  21. "alpha=1;"
  22. "r=mag(pow(xMax/2,2)+pow(zMax/2,2));"
  23. "vr=-0.5*alpha*r;"
  24. "vz=alpha*r;"
  25.  
  26.  
  27. );
  28.  
  29. expressions {
  30. "vector(vr,vr,vz)*normal()"
  31. }
  32. dimensions [0 1 -1 0 0 0 0];
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement