7.1.4. Using a User-Defined Materials Database

In addition to the Fluent Database Materials Dialog Box, you can also use or create a user-defined materials database using the User-Defined Database Materials Dialog Box. You can browse and do the following:

The following sections will address each of these functionalities in detail.

7.1.4.1. Opening a User-Defined Database

In ANSYS Fluent, you can open databases of custom materials saved as .scm files and use them to define the materials in your problem setup. The material data must be prepared in a specific format as shown in the examples that follow.

Examples:

The prescribed format for saving material properties information is shown here for air and aluminum. These files can be created in a text editor and saved with a .scm extension.

  ((air
  fluid
  (chemical-formula . #f)
  (density (constant . 1.225)
  (premixed-combustion 1.225 300))
  (specific-heat (constant . 1006.43))
  (thermal-conductivity (constant . 0.0242))
  (viscosity (constant . 1.7894e-05)
  (sutherland 1.7894e-05 273.11 110.56)
  (power-law 1.7894e-05 273.11 0.666))
  (molecular-weight (constant . 28.966))
  )
 (aluminum
  solid
  (chemical-formula . al)
  (density (constant . 2719))
  (specific-heat (constant . 871))
  (thermal-conductivity (constant . 202.4))
  (formation-entropy (constant . 164448.08))
  )) 

To select a user-defined database, click the User-Defined Database... button in the Create/Edit Materials Dialog Box. This will open the Open Database Dialog Box.

Figure 7.4:  Open Database Dialog Box

Open Database Dialog Box

Click the Browse... button, select the database in The Select File Dialog Box that opens and click OK. Click OK in the Open Database Dialog Box to open the User-Defined Database Materials Dialog Box.

7.1.4.2. Viewing Materials in a User-Defined Database

When an existing user-defined database is opened, the materials present in the database are listed in the User-Defined Database Materials Dialog Box. You can select the material type in the Material Type drop-down list and the corresponding materials will appear in the User-Defined Fluid Materials, User-Defined Solid Materials or other similarly named list. The name of the list will be the same as the material type you selected.

Figure 7.5:  User-Defined Database Materials Dialog Box

User-Defined Database Materials Dialog Box

The properties of the selected material will appear in the Properties section of the dialog box. This dialog box is similar to the Fluent Database Materials Dialog Box in function and operation.

7.1.4.3. Copying Materials from a User-Defined Database

The procedure for copying a material from a custom database is as follows:

  1. In the Create/Edit Materials Dialog Box, click the User-Defined Database... button and open the database from which you want to copy the material.

  2. In the User-Defined Database Materials Dialog Box of the selected database, select the type of material (fluid, solid, and so on) in the Material Type drop-down list.

  3. In the User-Defined Fluid Materials list, User-Defined Solid Materials list, or other similarly named list (the list’s name will be the same as the material type you selected in the previous step), choose the materials you want to copy by clicking on them. The properties are displayed in the Properties area.

  4. If you want to check the material properties, use the scroll bar to the right of the Properties area to scroll through the listed items.

  5. Click the Copy button.

    The selected materials and their properties will be copied from the database into your local list, and your copy of the properties will now be displayed in the Materials Task Page and under the Materials tree branch.

    To copy all the materials from the database in one step, click the button ( ) next to User-Defined Materials title and click Copy.

    If a material with the same name is already defined in the case, ANSYS Fluent will prompt you to enter a new name and formula in the New Material Name Dialog Box. Enter a new name and formula in the respective fields and click OK to make a local copy of the material.

    Figure 7.6:  New Material Name Dialog Box

    New Material Name Dialog Box

  6. Close the User-Defined Database Materials Dialog Box.

After copying a material from the database, you may modify its properties or change its name, as described earlier in Using the Create/Edit Materials Dialog Box. The material in the database will not be affected by any changes you make to your local copy of the material.

7.1.4.4. Copying Materials from the Case to a User-Defined Database

The procedure for copying a material to a custom database is as follows:

  1. In the Create/Edit Materials Dialog Box, click User-Defined Database....

  2. In the Open Database Dialog Box, select the database to which you want to copy the material. If you want to create a new database, enter the name of the new database in the Database Name field and click OK. A Question Dialog Box will ask you to confirm if you want to create a new file. Click Yes to confirm.

  3. In the User-Defined Database Materials Dialog Box, click Copy Materials From Case..... This will open the Copy Case Material Dialog Box.

    Figure 7.7:  Copy Case Material Dialog Box

    Copy Case Material Dialog Box

    1. In the Copy Case Material Dialog Box, select the materials that you want to copy.

      To select all the materials, click the shaded icon to the right of the Case Materials title. Clicking on the unshaded icon will deselect the selections in the list.

    2. Click Copy and close the dialog box.


      Note:  Do not copy materials one by one. This will result in previously copied materials getting overwritten by the new ones. Instead, select all the materials to be copied and click Copy.


7.1.4.5. Modifying Properties of an Existing Material

You can modify the properties of an existing material and use the modified material in the problem setup and save the modified material to the materials database.

  1. In the Create/Edit Materials Dialog Box, click the User-Defined Database... button and open the database that you want to use.

    1. In the User-Defined Database Materials Dialog Box of the selected database, select the type of material (fluid, solid, and so on) in the Material Type drop-down list.

    2. In the User-Defined Fluid Materials list, User-Defined Solid Materials list, or other similarly named list (the name of the list will be the same as the material type you selected in the previous step), select the material to be modified.

    3. Click Edit... to open the Material Properties Dialog Box.

      1. In the Materials Properties list, select the property to be modified and click Edit... to open the Edit Property Methods Dialog Box.

      2. Select the method to be modified in the Material Properties list of the Edit Property Methods Dialog Box and click Edit... under Edit Properties, in order to modify the properties.

      3. Make the changes in the corresponding method dialog box and click OK.

      4. Click Apply in the Material Properties Dialog Box.

    4. To use the modified material in the problem setup, click Copy in the User-Defined Database Materials Dialog Box.

    5. To save the modified material to the database, click Save and close the dialog box.

7.1.4.6. Creating a New Materials Database and Materials

Using the Create/Edit Materials Dialog Box, you can create a new materials database, copy materials to this database, and also create new materials from scratch. The procedure for creating a new database and add new materials to the database is as follows:

  1. In the Materials Task Page, click User-Defined Database....

  2. In the Open Database Dialog Box, enter the name of the database that you are creating and click OK.

  3. A dialog box will appear asking you confirm the creation of a new file. Click Yes to confirm.

    This will open a blank User-Defined Database Materials Dialog Box (Figure 7.8: User-Defined Database Materials Dialog Box: Blank).

    Figure 7.8:  User-Defined Database Materials Dialog Box: Blank

    User-Defined Database Materials Dialog Box: Blank

  4. Click New... in the User-Defined Database Materials Dialog Box. This will open a blank Material Properties dialog box.

    Figure 7.9:  Material Properties Dialog Box: Blank

    Material Properties Dialog Box: Blank

    1. In the Material Properties Dialog Box, under Types, select the material type. You can select from fluid, solid, inert-particle, droplet-particle, combusting-particle, and mixture materials.

    2. Enter the name and formula (if required) of the material that you are creating in the Name and Formula fields.

    3. Depending on the type of material selected in the Types list, properties applicable to that material type will appear in the Available Properties list. Select the properties that are applicable for the material that you are defining by clicking on them.

    4. Click the button to move these properties to the Material Properties list on the right and click Apply. You can use the button to move the property from the Material Properties list to the Available Properties list.

  5. To edit the parameters that define a property, select the property in the Material Properties list and click Edit.... This opens the Edit Property Methods Dialog Box.

    Figure 7.10:  Edit Property Methods Dialog Box

    Edit Property Methods Dialog Box

    1. The methods that can be used to define the selected property are listed in the Available Properties list. You can select one or more methods and specify them for the material that you are defining, by selecting and moving them to the Material Properties list.

    2. To modify each of these methods, you can select the method in the Edit Properties drop-down list and click Edit.... This will open the corresponding property dialog box, where you can modify the parameters used by the property method. Refer to Defining Properties Using Temperature-Dependent Functions to Real Gas Models for details of these properties, methods used to define the properties and the parameters for each method.

    3. Click OK in the Edit Property Methods Dialog Box.

  6. Click Apply in the Material Properties Dialog Box.

  7. Click Save in the User-Defined Database Materials Dialog Box to save the changes to the new materials database.

Similarly, you can also append new materials and click save to append these materials to the existing database.

7.1.4.7. Deleting Materials from a Database

To delete a material from a database, click the User-Defined Database button in the Open Database Dialog Box. Select the database and click OK in the Open Database Dialog Box. Select the Material Type and the materials that you want to delete in the User-Defined Materials list and click Delete. Click Save to save the database.


Release 18.2 - © ANSYS, Inc. All rights reserved.