Monday, August 28, 2023

How to define porosity in Ansys Fluent ?

 ANSYS Fluent is a software for computational fluid dynamics (CFD) that can simulate various phenomena involving fluid flow, heat transfer, and chemical reactions. One of the features of ANSYS Fluent is the ability to model porous media, such as packed beds, filter papers, perforated plates, etc

To define porosity in ANSYS Fluent, you need to specify a cell zone in which the porous media model is applied and the pressure loss in the flow is determined by your inputs. There are two approaches to set up the porous media model:

In addition to the source term in the momentum equation, you also need to define the porosity value for the porous cell zone. The porosity is a dimensionless quantity that indicates the fraction of the cell volume that is occupied by fluid. The porosity affects the calculation of material properties, heat transfer, reaction source terms, and body forces in the porous medium. You can enter a constant value for the porosity or use a user-defined function (UDF) to specify a spatially varying porosity

To define porosity and resistance coefficients in ANSYS Fluent using the graphical user interface (GUI), you can follow these steps:

  • Go to Cell Zone Conditions panel and select the cell zone that you want to model as porous.
  • Enable Porous Zone option and click Edit.
  • In the Porous Zone panel, enter the value for porosity or select UDF option if you have a UDF for porosity.
  • Select either Standard or Power-Law option for Resistance Formulation.
  • Enter the values for resistance coefficients or select UDF option if you have a UDF for resistance coefficients.
  • Click OK to close the Porous Zone panel and Apply to close the Cell Zone Conditions panel.

To define porosity and resistance coefficients in ANSYS Fluent using the text user interface (TUI), you can follow these steps:

  • Enable the use of parameters in TUI by using the command: /define/parameters/enable-in-TUI? yes
  • In the TUI, type /define/boundary-conditions/set/fluid
  • Select the appropriate cell zone by typing its name and hitting Enter.
  • Type y to enable Porous Zone option.
  • Enter the value for porosity or type udf if you have a UDF for porosity.
  • Type standard or power-law for Resistance Formulation.
  • Enter the values for resistance coefficients or type udf if you have a UDF for resistance coefficients.
  • Type end to exit from fluid boundary conditions.

For more information and examples on how to define porosity in ANSYS Fluent, you can refer to these sources:

You can also watch these videos that demonstrate how to simulate flow through porous media using ANSYS Fluent:


#12steps Video Tutorial Ansys Transient Thermal - How to define different temperatures on various elements on one geometry ?

First of all, U need to know what are APDL commands and what to use for. 

 The IC command in Ansys APDL is used to specify initial conditions at nodes for a static or transient analysis . It allows you to define the initial values of the degrees of freedom, such as displacements, rotations, temperatures, magnetic potentials, etc. The syntax of the IC command is:

IC, NODE, Lab, VALUE, VALUE2, NEND, NINC

where:

  • NODE is the node at which the initial condition is applied. You can use ALL to apply to all selected nodes, P to enable graphical picking, or a component name.
  • Lab is the degree-of-freedom label for which the initial condition is specified. You can use ALL to apply to all appropriate labels.
  • VALUE is the initial value of the degree of freedom. It defaults to the program default for that degree of freedom (0.0 for structural analysis, TUNIF for thermal analysis, etc.).
  • VALUE2 is the second-order degree of freedom value, mainly used for non-structural DOF where VELX can’t be used. It defaults to the program default for that degree of freedom (0.0 for structural analysis).
  • NEND and NINC are optional arguments that specify the same initial condition values at a range of nodes from NODE to NEND (defaults to NODE), in steps of NINC (defaults to 1).

Some notes and examples of using the IC command are:

For example, to apply an initial temperature of 100°C to all selected nodes, you can use:

IC, ALL, TEMP, 100

To apply an initial displacement of 0.01 m in the x-direction and an initial velocity of 5 m/s in the y-direction to node 5 and node 10, you can use:

IC, 5, UX, 0.01
IC, 5, VELY, 5
IC, 10,, , , 10

You can find more information about the IC command and other Ansys APDL commands in the Mechanical APDL Command Reference . You can also visit the Ansys Learning Forum  to ask questions and learn from other users. I hope this helps you understand the IC command better. 😊

Sunday, August 27, 2023

What is better? SpaceClaim or Design Modeler in Ansys ?

 SpaceClaim is a 3D CAD modeling software that runs on Microsoft Windows and is developed by SpaceClaim Corporation, which was acquired by Ansys in 2014². SpaceClaim allows you to quickly create, edit, or modify imported geometry without the complexity associated with traditional CAD systems. You can use SpaceClaim for various purposes, such as design and concept modeling, reverse engineering, 3D printing, model preparation for simulation and manufacturing, and more⁴.


SpaceClaim uses direct modeling techniques that let you manipulate the geometry with simple gestures, such as pull, move, fill, and combine. You can also add constraints and parameters to your sketches and save them with a block recording function. SpaceClaim can import and export various file formats, such as STEP, IGES, STL, etc⁵. SpaceClaim is integrated with Ansys Simulation packages as a built-in 3D modeler².

Source: 

(1) Ansys SpaceClaim: Tips and Tricks | Ansys Virtual Academy. https://www.youtube.com/watch?v=ZI02A1cS8ME.

(2) Ansys SpaceClaim | 3D CAD Modeling Software. https://www.ansys.com/products/3d-design/ansys-spaceclaim.

(3) SpaceClaim - Wikipedia. https://en.wikipedia.org/wiki/SpaceClaim.

(4) What's New in Ansys SpaceClaim 2020 R2. https://www.youtube.com/watch?v=faAKd_aOq6w.

(5) ANSYS Discovery SpaceClaim - ANSYS 19 Overview. https://www.youtube.com/watch?v=Dz-k2f1Taq4.

(6) ANSYS SpaceClaim: Everything to Know | Explore the Future of .... https://sunglass.io/ansys-spaceclaim/.

(7) Ansys SpaceClaim Reviews 2023: Details, Pricing, & Features - G2. https://www.g2.com/products/ansys-spaceclaim/reviews.

(8) https://ketiv.com/academy/ansys-virtual-academy/.


What is better: Ansys SpaceClaim or Ansys Design Modeler?

There is no definitive answer to which tool is better, as it may depend on your preferences, needs, and use cases. However, I can provide you with some information and comparisons based on the web search results that I have found.

- ANSYS DesignModeler (DM) and ANSYS Discovery SpaceClaim (SC) are both 3D modeling tools that can be used for creating and modifying geometry for simulation purposes¹.

- DM and SC use different geometry modeling kernels: DM uses Parasolid, while SC uses ACIS². This means that moving data between DM and other tools that use Parasolid (such as SOLIDWORKS) is easier than moving data between SC and those tools, as there is no need for translation². However, SC can also import and export various file formats, such as STEP, IGES, STL, etc³.

- DM has a history tree that records the sequence of operations performed on the geometry, while SC does not have a history tree by default (although it can be enabled with an optional feature)². This means that DM allows you to easily modify the parameters and constraints of the geometry at any stage, while SC requires you to use the block recording function to save and replay the operations⁴.

- SC has a more intuitive and user-friendly interface than DM, as it uses direct modeling techniques that allow you to manipulate the geometry with simple gestures such as drag, pull, move, etc³. SC also has more advanced features such as repair, simplify, optimize, etc., that can help you prepare the geometry for simulation faster and easier³.

- Both DM and SC have their own advantages and disadvantages, and you may need to use both of them depending on the situation. For example, you may want to use DM for parametric design and optimization, and use SC for complex geometry creation and modification².

Source:

(1) Design Modeler Vs SpaceClaim - Ansys Learning Forum. https://forum.ansys.com/forums/topic/design-modelller-vs-spaceclaim/.

(2) When DesignModeler is a better choice than SpaceClaim. https://forum.ansys.com/forums/topic/when-designmodeler-is-a-better-choice-than-spaceclaim/.

(3) Compare ANSYS DesignModeler vs ANSYS Discovery SpaceClaim. https://comparisons.financesonline.com/ansys-designmodeler-vs-ansys-discovery-spaceclaim.

(4) Compare Ansys Discovery vs Ansys SpaceClaim 2023 | Capterra. https://www.capterra.com/simulation-software/compare/245795-124168/Ansys-Discovery-vs-Ansys-SpaceClaim.

Saturday, August 26, 2023

#12steps Video Tutorial - Conjugate Heat Transfer on Ansys Fluent

 This is the first episode of 12 steps video's tutorials. I hope You like it :) 

First U need to know what is Conjugate Heat Transfer. 

Conjugate heat transfer is a type of heat transfer analysis that involves both solids and fluids. It takes into account the effects of conduction in solids and convection in fluids, as well as the interactions between them at the interface. Conjugate heat transfer is important for many engineering applications, such as cooling of electronic devices, heat exchangers, combustion chambers, and solar collectors. ¹²


Some examples of conjugate heat transfer problems are:


- A heat sink that dissipates heat from a power supply unit by increasing the surface area in contact with the air flow generated by a fan. ²

- A shell-and-tube heat exchanger that transfers heat between two fluids separated by a thin metal wall. ²

- A nuclear reactor core that transfers heat from the fuel rods to the coolant fluid. ⁴

To solve conjugate heat transfer problems, one needs to use a numerical method that can handle both solid and fluid domains, as well as the coupling conditions at the interface. Some of the methods are:

- The domain decomposition method, which divides the problem into subdomains and solves them separately, then matches the solutions at the interface. ¹

- The finite element method, which discretizes the problem into elements and applies variational principles to obtain a system of equations. ²

- The finite volume method, which discretizes the problem into control volumes and applies conservation laws to obtain a system of equations. ³⁴

Below two parts of video tutorial of Conjugate Heat Transfer in Ansys Fluent (#12steps series)


Source: 

(1) Conjugate convective heat transfer - Wikipedia. https://en.wikipedia.org/wiki/Conjugate_Convective_Heat_Transfer.

(2) Conjugate Heat Transfer | COMSOL Blog. https://www.comsol.com/blogs/conjugate-heat-transfer/.

(3) Solving Conjugate Heat Transfer problems - Computational Fluid Dynamics. https://www.computationalfluiddynamics.com.au/conjugate-heat-transfer/.

(4) Conjugate Heat Transfer Simulation: Best Practices | SimScale. https://www.simscale.com/blog/cht-best-practices/.

Wednesday, August 23, 2023

Quick Tip: How to avoid Incorrect Wave Height in Ansys Fluent

According to my video and web search, this is a common issue that many Fluent users face when simulating open channel flow with wave boundary conditions . Some possible causes and solutions are:

You can find more details and examples on how to perform these steps in the following resources:

I hope this helps you avoid incorrect wave height in Ansys Fluent and achieve your desired simulation results. If you have any other questions, please feel free to ask me. 😊

Quick Tip: How to fix Error: GENERAL-CAR-CDR in Ansys (Fluent)

 The error message Error: GENERAL-CAR-CDR: invalid argument [1]: improper list means that there is a problem with the scheme code or the UDF (user-defined function) in your case or data file . Some possible solutions are:

  • Save the case and data file and try to reopen it.
  • Reset the Fluent Setup tab and try opening the mesh.
  • Remesh the geometry and reopen in Fluent.
  • Change the material definition from “Solid” to “Fluid” in Design Modeler.
  • Change the transient to steady if you are using evaporation-condensation as the phase interaction mechanism.
  • Check the syntax of your UDF and make sure it follows the new rules in Fluent 6.2.16 or later.

I hope this helps you resolve the error. If you need more assistance, please visit the Ansys Learning Forum or contact Ansys Support . Have a nice day! 😊

Sources:

1. smartadm.ru

2. cfd-online.com

3. forum.ansys.com

4. forum.ansys.com


In Polish 

Błąd: GENERAL-CAR-CDR oznacza, że wystąpił problem z kodem Scheme w programie Ansys Fluent. Scheme to język programowania używany do pisania funkcji zdefiniowanych przez użytkownika (UDF) lub makr w Fluent 1. Błąd ten pojawia się, gdy Fluent oczekuje listy wartości, ale otrzymuje inną wartość, np. fałszywą (#f) 2.

Możliwe przyczyny tego błędu to:

  • Niepoprawna skÅ‚adnia lub brakujÄ…ce znaki w kodzie Scheme
  • Niezgodność typów danych lub argumentów w funkcjach Scheme
  • NieprawidÅ‚owe ustawienia lub opcje w Fluent

Możliwe rozwiązania tego błędu to:

  • Sprawdzenie i poprawienie kodu Scheme, upewniajÄ…c siÄ™, że wszystkie nawiasy i cudzysÅ‚owy sÄ… zamkniÄ™te i dopasowane
  • Sprawdzenie i poprawienie typów danych i argumentów w funkcjach Scheme, upewniajÄ…c siÄ™, że sÄ… zgodne z dokumentacjÄ… Fluent
  • Zapisanie i ponowne otwarcie pliku przypadku i danych
  • Zresetowanie zakÅ‚adki ustawieÅ„ Fluent i ponowne otwarcie siatki
  • Przemieszanie geometrii i ponowne otwarcie w Fluent

Możesz znaleźć więcej informacji i przykładów na temat tego błędu na stronach internetowych 34. Mam nadzieję, że to ci pomoże. 😊

Tuesday, August 22, 2023

What are APDL commands in Ansys and what are they used for?

 APDL commands are text commands that you can use to perform various tasks in Ansys, such as defining material properties, applying boundary conditions, solving models, and post-processing results. APDL stands for Ansys Parametric Design Language, and it is a scripting language that allows you to automate and customize your Ansys workflows.

APDL commands can be entered in the Ansys Mechanical APDL interface, or in the command objects in Ansys Workbench. You can also write APDL scripts or macros that contain multiple commands and run them as a batch file. APDL commands can access the full functionality of Ansys, including features that are not available in the graphical user interface.

Some examples of APDL commands are:

  • MP,EX,1,200E9 - This command defines the Young’s modulus (EX) of material number 1 as 200 GPa.
  • L,1,2,3 - This command creates a line (L) from keypoint 1 to keypoint 2 to keypoint 3.
  • PLANE42 - This command selects the 4-node plane element type (PLANE42) for meshing.
  • SOLVE - This command initiates the solution process.
  • PRNSOL,U - This command prints the nodal solution data (U) for displacements.

If you want to learn more about APDL commands and how to use them in Ansys, you can check out the following resources:

Here are some more examples of APDL commands in Ansys that you might find useful:

  • /SOLU - Enters the solution processor, where you can apply loads and constraints, and solve the model.
  • D - Applies displacement constraints on selected nodes. For example, D,ALL,UX,0 applies a zero displacement in the X-direction on all nodes.
  • F - Applies force loads on selected nodes. For example, F,ALL,FZ,-100 applies a downward force of 100 N on all nodes in the Z-direction.
  • SF - Applies surface loads on selected elements. For example, SF,ALL,PRES,1E5 applies a pressure of 1E5 Pa on all elements.
  • SOLVE - Initiates the solution process and writes the results to the database.
  • /POST1 - Enters the general postprocessor, where you can review and manipulate the results of the solution.
  • PLNSOL - Plots a contour of a nodal or element solution item. For example, PLNSOL,U,SUM plots the total displacement of the nodes.
  • PRNSOL - Prints the nodal or element solution data to a file or the screen. For example, PRNSOL,S,X prints the stress in the X-direction of the elements.
  • /POST26 - Enters the time-history postprocessor, where you can review and manipulate the results of a transient or harmonic analysis.
  • PLTIME - Plots a graph of a variable versus time or frequency. For example, PLTIME,UZ,2 plots the displacement in the Z-direction of node 2 versus time or frequency.
  • PRNLD - Prints the load step data to a file or the screen. For example, PRNLD,FREQ prints the frequency values for each load step.

You can find more information and examples of APDL commands in Ansys in the following resources:

Popular posts