Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
solvers:griddatareader [2016/11/10 16:41]
ltavard [Compilation]
solvers:griddatareader [2020/09/17 07:54] (current)
fgillet [General Information]
Line 11: Line 11:
  
 ==== Compilation ==== ==== Compilation ====
-**Update 7a22174** under elmerice branch\\+**Update 37f46d0** under elmerice branch\\
 Now you can automatically build, test & compile the solver with cmake. \\ Now you can automatically build, test & compile the solver with cmake. \\
 +
 +**Update e375a11** under elmerice branch:\\
 +cmake variable //WITH_GridDataReader// no more required. GridDatareader it compiled if netcdf is found.
 +
 +
 KeyWorkds:\\ KeyWorkds:\\
 <code> <code>
Line 25: Line 30:
 This auxiliary solver enables to read in variables from a NetCDF file and interpolates the values to the mesh as variables of the same name. The interpolation is done by using the Finite Element test functions. This auxiliary solver enables to read in variables from a NetCDF file and interpolates the values to the mesh as variables of the same name. The interpolation is done by using the Finite Element test functions.
  
 +By default the code will loop over the mesh nodes and read only the values required for the interpolation at the given node. This might involve a lot of I/O and become a bottle neck. Loading the whole netcdf at the begining requires to allocate more space in the memory but might be more efficient if possible. This possibility is given by setting:
 +//Read full array = Logical True// 
 ==== Known Bugs ==== ==== Known Bugs ====
 None, so far. None, so far.
Line 36: Line 43:
   !---- NOTE: File is case sensitive, String is not!   !---- NOTE: File is case sensitive, String is not!
   Filename = File "../greenland.nc"    Filename = File "../greenland.nc" 
 +  
 +  !----- Load the whole netcdf array instead of inquiring only the values required 
 +  !  for the interpolation at the current mesh node
 +  Read full array = Logical [default: false]
  
   Time Dim Name = String "time"   Time Dim Name = String "time"
Line 46: Line 57:
  
   !--- Interpolation variables tolerances   !--- Interpolation variables tolerances
-  Epsilon X = Real 1.0e-2  +  X Epsilon = Real 1.0e-2  
-  Epsilon Y = Real 1.0e-2  +  Y Epsilon = Real 1.0e-2  
-  Epsilon Time = Real 0.01+  Time Epsilon = Real 0.01
  
   Interpolation Bias = Real 0.0    Interpolation Bias = Real 0.0 
Line 65: Line 76:
  
 ==== Test ==== ==== Test ====
-Located under ''[ELMER_TRUNK]/elmerice/Tests/GridDataReader'' +Located under ''[ELMER_TRUNK]/elmerice/Tests/GridDataReader''  \\ 
 +You can test with 
 +<code> 
 +ctest -L GridDataReader 
 +or  
 +ctest -L netcdf 
 +</code>
  
 ==== Example ==== ==== Example ====
 The directory ''[ELMER_TRUNK]/elmerice/netcdf2'' contains the example above, that should work with the NetCDF file provided by the [[http://websrv.cs.umt.edu/isis/index.php/Present_Day_Greenland#Data_Download|searise]] group. The directory ''[ELMER_TRUNK]/elmerice/netcdf2'' contains the example above, that should work with the NetCDF file provided by the [[http://websrv.cs.umt.edu/isis/index.php/Present_Day_Greenland#Data_Download|searise]] group.
solvers/griddatareader.1478796070.txt.gz · Last modified: 2016/11/10 16:41 by ltavard
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0