# Difference between revisions of "SMS:Create Datasets"

The Create Datasets dialog is obsolete as of SMS 10.1. It has been replaced by the Dataset Toolbox.

## At a glance

• Automatically generate commonly used datasets

The Create Datasets dialog is used to create functions for the entire mesh or active scatter set. The option is in Data | Create Datasets in both the Scatter and Mesh modules.

Each function that is toggled on will be created. All of the available functions can be turned on by pushing All On. All of the functions can be turned off by pushing All Off. The Gravity can be set and is used in several of the function calculations. The functions that can be created include:

• Grid Spacing – Creates a function that gives the average distance between a node and its neighbors.
• Gradient – Creates a function that gives the gradient at each node. The gradient is calculated at each point by averaging the normals of the faces connected to that point. For vertices in a TIN, this includes all the triangles connected to the vertex. For nodes in a mesh, it includes all the elements connected to the node. Currently no adjustment is made to account for the varied area of these faces. The gradient is defined as the run divided by the rise.
• Gradient Angle – Creates a function that gives the direction in degrees of the maximum gradient at each point. (See above for the method used to compute the gradient.)
• Directional Derivative – Creates a vector function that gives the gradient (run/rise) in the x and y directions. (See above for the method used to compute the gradient.)
• Shallow Wavelength/Celerity – Creates two functions that calculate the celerity and wavelength at each node in shallow water. The celerity is calculated as: $Celerity = (Gravity * Nodal Elevation)^{0.5}$. The Wavelength is: $Wavelength = Period * Celerity$.
• Local Wavelength/Celerity – Creates two functions that calculate the celerity and wavelength at each node for any depths.
• Gravity Wave Courant Number – Creates a function that gives the courant number for each node given the Time Step. The equation is: $Courant Number = Time Step * (Gravity * Nodal Elevation)^{0.5} / Nodal Spacing$.
• Gravity Wave Time Steps – Creates a function that calculates the gravity wave time step given the Courant Number. The equation is the same as for the Gravity Wave Courant Number, solved for the Courant Number.

The final three functions can be created when the current numeric model is set to ADCIRC.

• Advective Courant Number – Creates a function that calculates the courant number given the Time Step and a velocity function. The velocity function can be selected by clicking on the Advective Functions&ldots; button. This brings up a Select Dataset dialog that lists the vector functions currently in memory. The courant cumber is calculated as: $Courant Number = Nodal Velocity Magnitude * Time Step / Nodal Spacing$.
This option is disabled if no vector functions exist.
• Advective Time Steps – Creates a function that calculates the time step given the Courant Number and a velocity function. The velocity function can be selected as described above in the description of the Advective Courant Number. The equation is the same as for the Advective Courant Number, solved for the time step. This option is disabled if no vector functions exist.
• Harmonic – Creates a scalar harmonic function and/or a vector harmonic function. Pushing the Options button brings up the Harmonic Options dialog. The name of the function(s) to be created can be set in the Name fields. The frequencies to be used in creating the function can be chosen be double-clicking on a frequency name shown in the Scalar Frequencies window or be clicking on the name and by pushing Select. A frequency can be unselected by double-clicking on the name again or by selecting it and pushing Unselect. The time values that will be used in calculating the time steps can be set in the fields at the bottom of the dialog.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8162653,"math_prob":0.9815219,"size":4913,"snap":"2019-43-2019-47","text_gpt3_token_len":1112,"char_repetition_ratio":0.15053983,"word_repetition_ratio":0.18311533,"special_character_ratio":0.22043557,"punctuation_ratio":0.083333336,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98864555,"pos_list":[0,1,2,3,4,5,6,7,8],"im_url_duplicate_count":[null,2,null,3,null,2,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-20T04:01:14Z\",\"WARC-Record-ID\":\"<urn:uuid:e4d71503-2dbb-4332-8305-da39a1e5415b>\",\"Content-Length\":\"32425\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7f2b2fae-4dfc-4fde-a40e-889cd249e498>\",\"WARC-Concurrent-To\":\"<urn:uuid:8b3adcba-235d-427b-ba1a-effc35630c19>\",\"WARC-IP-Address\":\"23.228.169.60\",\"WARC-Target-URI\":\"https://www.xmswiki.com/index.php?title=SMS:Create_Datasets&diff=140267&oldid=133060\",\"WARC-Payload-Digest\":\"sha1:IWGQ6JK2G4GEBWYB74QIFQJHXVBFZ5QY\",\"WARC-Block-Digest\":\"sha1:YELMUU3SLNRBAYFNLFKVXE4UWIO7LRU4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496670448.67_warc_CC-MAIN-20191120033221-20191120061221-00546.warc.gz\"}"}