aotus / test / config.lua

-- Small sample Config File in Lua
width = 200
height = 150

stl_files = { {'filename', 123, 'binary'},
              {'geomfile', 456, fileformat='ascii'} }

coord = { 0.1, 0.0, 0.0 }

--function 'gausspulse'
function gauss_pulse(x, y, z, origin, amplitude, hwidth)
  fact = -0.5/(hwidth*hwidth)
  dist = (x - origin[1])*(x - origin[1]) 
       + (y - origin[2])*(y - origin[2]) 
       + (z - origin[3])*(z - origin[3])
  res = amplitude * math.exp(fact*dist)
  return res
end

--function 'ic_density' 
function ic_density(x, y, z)
  origin = {0.0, 0.0, 0.0}
  amplitude = 1.0
  hwidth = 1.0
  return gauss_pulse(x, y, z, origin, amplitude, hwidth)
end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.