expression cfx

8
Hopp til innhold EDRMedeso portal Blogg Nyhetsbrev Ledige stillinger Søk Forsiden Produkter Kurs og seminarer Konsulenttjenester Referanser Om EDRMedeso Support Kontakt oss Forsiden / Blogg / ANSYS-bloggen / ANSYS Turtorial: CFX transient profile +47 67 57 21 00 +46 21 470 35 50 Kontaktskjema ANSYS Turtorial: CFX transient profile ANSYS CFX Tutorial: Do you have a transient boundary condition that you want to apply at for example an inlet? This can easily be added in ANSYS CFX 12.1 using the built in interpolation functions. This article shows briefly the key steps to make it work. Introduction In some cases boundary conditions arise from measurements or mathematical functions. Traditionally, the user has been forced to make us of advanced scripting or even programming languages like fortran to add a measured profile to a boundary. In this example the static mixer that are available in the tutorials are used as example. Figure 1 shows the mesh in CFX Pre. The green inlet named inlet 1 will use a transient profile that is stored in a file on the disk. Page 1 of 8 ANSYS Turtorial: CFX transient profile - EDR 11/3/2013 http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

Upload: israa-yheaa

Post on 21-Jan-2016

97 views

Category:

Documents


5 download

DESCRIPTION

cgx

TRANSCRIPT

Hopp til innhold

• EDRMedeso portal• Blogg• Nyhetsbrev• Ledige stillinger

Søk

• Forsiden• Produkter• Kurs og seminarer• Konsulenttjenester• Referanser• Om EDRMedeso• Support• Kontakt oss

Forsiden / Blogg / ANSYS-bloggen / ANSYS Turtorial: CFX transient profile

+47 67 57 21 00

+46 21 470 35 50

Kontaktskjema

ANSYS Turtorial: CFX transient profile

ANSYS CFX Tutorial: Do you have a transient boundary condition that you want to apply at for example an inlet? This can easily be added in ANSYS CFX 12.1 using the built in interpolation functions. This article shows briefly the key steps to make it work.

Introduction

In some cases boundary conditions arise from measurements or mathematical functions. Traditionally, the user has been forced to make us of advanced scripting or even programming languages like fortran to add a measured profile to a boundary. In this example the static mixer that are available in the tutorials are used as example.

Figure 1 shows the mesh in CFX Pre. The green inlet named inlet 1 will use a transient profile that is stored in a file on the disk.

Page 1 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

File format of the profile

The format of the boundary condition should be saved in a text file with a special layout that CFX recognizes. To do this, the text file with the transient condition should look like in Fig. 2. The boundary in Fig 1 is located in the x and z plane.

Page 2 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

Set up the ANSYS CFX case

In CFX Pre the profile that is going to be used needs to be initialized. This is done from the tools meny.

Page 3 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

Initialize the profile

Browse the file that contains the boundary condition. CFX Pre should then recognize the input arguments to the function and the resulting values. In this example we interpolate in the x-z plane and in time. The resulting value is a velocity that we apply on one of the inlets.

The initialization creates a new object under user functions called myin.

Page 4 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

Apply the boundary condition

If the initialization is correctly done, the details in the object should specify the units of the variables used for input and the resulting variable unit.

Page 5 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

In order to tell CFX to use this function as a boundary condition you need to add an expression at the boundary condition specification. Here inlet 1 utilize the transient profile by giving the expression myin.Velocity(x,z,t) at the normal speed of the inlet.

All that is left to do is to set up a transient simulation and the remaining boundary conditions. This is however done as usual.

Page 6 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

Results

The streamlines of the starting condition and ending conditions are shown below.

Page 7 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile

Do you want to learn more?

Please contact ANSYS Technical Support at EDR on +4 6757 2120 for technical questions, or ask for a sales representative for questions about licensing.

...or simply send us your contact information and we will get back to you:

You will also find more tutorials in our ANSYS Blog!

Relaterte produkter

• ANSYS Fluid Dynamics

Se alle produkter

Leif Tronstads plass 4, 1337 Sandvika, Norway | Tlf: (+47) 67 57 21 00 |

Lysgränd 1, SE-721 30 Västerås, Sweden | Tlf: (+46) 21 470 35 50 |

E-post: [email protected]

Copyright | Privacy/Antispam

Page 8 of 8ANSYS Turtorial: CFX transient profile - EDR

11/3/2013http://www.edr.no/blogg/ansys_bloggen/ansys_turtorial_cfx_transient_profile