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:
select from existing user-defined databases
copy materials from a user-defined database
create a new database, create new materials
add them to the user-defined database
delete materials from the database
copy materials from a case to a user-defined database
view the database
The following sections will address each of these functionalities in detail.
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 button in the Create/Edit Materials Dialog Box. This will open the Open Database Dialog Box.
Click the button, select the database in The Select File Dialog Box that opens and click . Click in the Open Database Dialog Box to open the User-Defined Database Materials Dialog Box.
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.
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.
The procedure for copying a material from a custom database is as follows:
In the Create/Edit Materials Dialog Box, click the button and open the database from which you want to copy the material.
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.
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.
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.
Click the 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 .
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 to make a local copy of the material.
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.
The procedure for copying a material to a custom database is as follows:
In the Create/Edit Materials Dialog Box, click .
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 . A Question Dialog Box will ask you to confirm if you want to create a new file. Click to confirm.
In the User-Defined Database Materials Dialog Box, click . This will open the Copy Case Material Dialog Box.
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.
Click 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 .
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.
In the Create/Edit Materials Dialog Box, click the button and open the database that you want to use.
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.
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.
Click to open the Material Properties Dialog Box.
In the Materials Properties list, select the property to be modified and click to open the Edit Property Methods Dialog Box.
Select the method to be modified in the Material Properties list of the Edit Property Methods Dialog Box and click under Edit Properties, in order to modify the properties.
Make the changes in the corresponding method dialog box and click .
Click in the Material Properties Dialog Box.
To use the modified material in the problem setup, click in the User-Defined Database Materials Dialog Box.
To save the modified material to the database, click and close the dialog box.
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:
In the Materials Task Page, click .
In the Open Database Dialog Box, enter the name of the database that you are creating and click .
A dialog box will appear asking you confirm the creation of a new file. Click to confirm.
This will open a blank User-Defined Database Materials Dialog Box (Figure 7.8: User-Defined Database Materials Dialog Box: Blank).
Click in the User-Defined Database Materials Dialog Box. This will open a blank Material Properties dialog box.
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.
Enter the name and formula (if required) of the material that you are creating in the Name and Formula fields.
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.
Click the button to move these properties to the Material Properties list on the right and click . You can
use the
button to move the property from the Material Properties list to the Available Properties list.
To edit the parameters that define a property, select the property in the Material Properties list and click . This opens the Edit Property Methods Dialog Box.
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.
To modify each of these methods, you can select the method in the Edit Properties drop-down list and click . 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.
Click in the Edit Property Methods Dialog Box.
Click in the Material Properties Dialog Box.
Click 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.
To delete a material from a database, click the button in the Open Database Dialog Box. Select the database and click 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 . Click to save the database.