ansysworkbench流固耦合计算实例
ANSYS Workbench轴流叶轮机械流固耦合分析实例
ANSYS 14.0中Workbench提供了进行流固耦合(FSI)分析的模块,可以十分方便的对轴流叶轮机械进行气动载荷分析,包括最大变形量和等效应力分布。
1.进入ANSYS14.0 Workbench界面。
2.在左下角中的custom system模块中选择第一个流固耦合模块FSI:Fluid Flow(CFX)-staticstructural,双击。
3.屏幕中出现了FSI模块。
4.右击A5(solution)选择import solution,导入已经计算完毕的CFX结果.res文件。
5.导入结果后的界面如下图所示。
CFX部分已经完成了计算,所以不需要额外的设置。
6.双击B3(Geometry)进入结构分析的几何单元,初始单位选择meter。
7.导入一个叶片的几何实体,可以选择的几何文件类型很多,x_t、iges等等都可以。
在CFX中,我们通常计算的都是多个转子,多个叶片,但是在分析流固耦合时,只需导入自己关心的那个叶片就可以了。
8.然后点击Generate,就可以看到生成的叶片实体了。
8.关闭Geometry窗口回到Workbench截面,可以看到此时B3(Geometry)后已经变成了绿色的√,说明生成正确。
9.双击B4(model)进入。
可以看到Geometry、coordinate system、connections等项目前面已经是绿色的对号,不需要再进行设置。
10.单击mesh,在左下角的Details of mesh,如图进行设置。
10.右击mesh,选择generate mesh生成网格。
11.生成的叶片网格如图所示。
12.点击static structural ,选择工具栏中的support 下的fixed support,为叶片根部添加约束。
13.选中叶根面,点击左下角中的Apply,完成约束添加。
14.点击上工具栏中units,选择转速单位为RPM.15.如图所示添加转速16.按自己的算例输入转速。
ANSYS流固耦合计算实例
ANSYS流固耦合计算实例Oscillating Plate with Two-Way Fluid-Structure InteractionIntroductionThis tutorial includes:, Features, Overview of the Problem to Solve, Setting up the Solid Physics in Simulation (ANSYS Workbench), Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre, Obtaining a Solution using ANSYS CFX-Solver Manager, Viewing Results in ANSYS CFX-PostIf this is the first tutorial you are working with, it is important to review the following topicsbefore beginning:, Setting the Working Directory, Changing the Display ColorsUnless you plan on running a session file, you should copy the sample files used in this tutorial from the installation folder for your software (<CFXROOT>/examples/) to your working directory. This prevents you from overwriting source files provided with your installation. If youplan to use a session file, please refer to Playing a Session File. Sample files referenced by this tutorial include:, OscillatingPlate.pre, OscillatingPlate.agdb, OscillatingPlate.gtm, OscillatingPlate.inp1. FeaturesThis tutorial addresses the following features of ANSYS CFX. Component Feature DetailsUser Mode General ModeANSYS CFX-Pre TransientSimulation TypeANSYS Multi-fieldComponent Feature DetailsFluid Type General FluidDomain Type Single DomainTurbulence Model LaminarHeat Transfer NoneMonitor Points Output ControlTransient Results FileWall: Mesh Motion = ANSYS MultiFieldBoundary Details Wall: No SlipWall: AdiabaticTimestep TransientAnimationANSYS CFX-Post Plots ContourVectorIn this tutorial you will learn about:, Moving mesh, Fluid-solid interaction (including modeling solid deformationusing ANSYS), Running an ANSYS Multi-field (MFX) simulation, Post-processing two results files simultaneously.2. Overview of the Problem to SolveThis tutorial uses a simple oscillating plate example to demonstrate how to set up and run a simulation involving two-way Fluid-Structure Interaction, where the fluid physics is solved in ANSYS CFX and thesolid physics is solved in the FEA package ANSYS. Coupling between the two solvers is required throughout the solution to model the interaction between fluid and solid as time progresses, and the framework for the coupling is provided by the ANSYS Multi-field solver, using the MFX setup.The geometry consists of a 2D closed cavity. A thin plate is anchored to the bottom of the cavity as shown below:An initial pressure of 100 Pa is applied to one side of the thin plate for 0.5 seconds in order to distort it. Once this pressure isreleased, the plate oscillates backwards and forwards as it attempts to regain its equilibrium (vertical) position. The surrounding fluid damps the oscillations, which therefore have an amplitude that decreases in time. The CFX Solver calculates how the fluid responds to the motion of the plate, and the ANSYS Solver calculates how the plate deforms as a result of both the initial applied pressure and the pressure resulting from the presence of the fluid. Coupling between the two solvers is required since the solid deformation affects the fluid solution, and the fluid solution affects the solid deformation.The tutorial describes the setup and execution of the calculation including the setup of the solid physics in Simulation (within ANSYS Workbench) and the setup of the fluid physics and ANSYS Multi-field settings in ANSYS CFX-Pre. If you do not have ANSYS Workbench, then you can use the provided ANSYS input file to avoid the need for Simulation.3. Setting up the Solid Physics in Simulation (ANSYS Workbench)This section describes the step-by-step definition of the solid physics in Simulation within ANSYS Workbench that will result in the creation of an ANSYS input file OscillatingPlate.inp. If you prefer, you can instead use the provided OscillatingPlate.inp file and continue from Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre.Creating a New Simulation1. If required, launch ANSYS Workbench.2. Click Empty Project. The Project page appears displaying an unsaved project.3. Select File > Save or click Save button.4. If required, set the path location to a different folder. The default location is your workingdirectory. However, if you have a specific folder that you want to use to store files createdduring this tutorial, change the path.5. Under File name, type OscillatingPlate.6. Click Save.7. Under Link to Geometry File on the left hand task bar click Browse. Select the providedfile OscillatingPlate.agdb and click Open.8. Make sure that OscillatingPlate.agdb is highlighted and click New simulation from theleft-hand taskbar.Creating the Solid Material1. When Simulation opens, expand Geometry in the project tree at the left hand side of theSimulation window.2. Select Solid, and in the Details view below, select Material.3. Use the arrow that appears next to the material name Structural Steel to select NewMaterial.4. When the Engineering Data window opens, right-click New Material from the tree viewand rename it to Plate.5. Enter 2.5e06 for Young's Modulus, 0.35 for Poisson's Ratio and 2550 for Density.Note that the other properties are not used for this simulation, and that the units for thesevalues are implied by the global units in Simulation.6. Click the Simulation tab near the top of the Workbench window to return to thesimulation.Basic Analysis SettingsThe ANSYS Multi-field simulation is a transient mechanical analysis, with a timestep of 0.1 sand a time duration of 5 s.1. Select New Analysis > Flexible Dynamic from the toolbar.2. Select Analysis Settings from the tree view and in the Details view below, set Auto TimeStepping to Off.3. Set Time Step to 0.1.4. Under Tabular Data at the bottom right of the window, set End Time to5.0 for theSteps = 1 setting.Inserting LoadsLoads are applied to an FEA analysis as the equivalent of boundary conditions in ANSYS CFX. In this section, you will set a fixed support, a fluid-solid interface, and a pressure load. Fixed SupportThe fixed support is required to hold the bottom of the thin plate in place.1. Right-click Flexible Dynamic in the tree and select Insert > Fixed Support from theshortcut menu.2. Rotate the geometry using the Rotate button so that the bottom (low-y) face of thesolid is visible, then select Face and click the low-y face.That face should be highlighted to indicate selection.3. Ensure Fixed Support is selected in the Outline view, then, in the Details view, selectGeometry and click 1 Face to make the Apply button appear (if necessary). Click Applyto set the fixed support.Fluid-Solid InterfaceIt is necessary to define the region in the solid that defines the interface between the fluid in CFX and the solid in ANSYS. Data is exchanged across this interface during the execution of the simulation.1. Right-click Flexible Dynamic in the tree and select Insert >Fluid Solid Interface fromthe shortcut menu.2. Using the same face-selection procedure described earlier, select the three faces of thegeometry that form the interface between the solid and the fluid (low-x, high-y and high-xfaces) by holding down <Ctrl> to select multiple faces. Note thatthis load isautomatically given an interface number of 1.Pressure LoadThe pressure load provides the initial additional pressure of 100 [Pa] for the first 0.5 seconds of the simulation. It is defined using a step function.1. Right-click Flexible Dynamic in the tree and select Insert > Pressure from the shortcutmenu.2. Select the low-x face for Geometry.3. In the Details view, select Magnitude, and using the arrow that appears, select Tabular(Time).4. Under Tabular Data, set a pressure of 100 in the table row corresponding to a time of 0.[s] and [Pa], Note: The units for time and pressure in this tableare the global units of respectively.5. You now need to add two new rows to the table. This can be doneby typing the new timeand pressure data into the empty row at the bottom of the table, and Simulation willautomatically re-order the table in order of time value. Enter a pressure of 100 for a timevalue of 0.499, and a pressure of 0 for a time value of 0.5.This gives a step function for pressure that can be seen in thechart to the left of the table. Writing the ANSYS Input File The Simulation settings are now complete. An ANSYS Multi-field run cannot be launched from within Simulation, so the Solve buttons cannot be used to obtain a solution.1. Instead, highlight Solution in the tree, select Tools > Write ANSYS Input File andchoose to write the solution setup to the file OscillatingPlate.inp.2. The mesh is automatically generated as part of this process. If you want to examine it,select Mesh from the tree.3. Save the Simulation database, use the tab near the top of the Workbench window to returnto the Oscillating Plate [Project] tab, and save the project itself.4. Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-PreThis section describes the step-by-step definition of the flow physics and ANSYS Multi-field settings in ANSYS CFX-Pre.Playing a Session FileIf you want to skip past these instructions and to have ANSYS CFX-Pre set up the simulation automatically, you can select Session > Play Tutorial from the menu in ANSYS CFX-Pre, thenrun the session file: OscillatingPlate.pre. After you have playedthe session file as described in earlier tutorials under Playing the Session File and Starting ANSYS CFX-Solver Manager, proceed to Obtaining a Solution using ANSYS CFX-Solver Manager.Creating a New Simulation1. Start ANSYS CFX-Pre.2. Select File > New Simulation.3. Select General and click OK.4. Select File > Save Simulation As.5. Under File name, type OscillatingPlate.6. Click Save.Importing the Mesh1. Right-click Mesh and select Import Mesh.2. Select the provided mesh file, OscillatingPlate.gtm and click Open.Note:The file that was just created in Simulation,OscillatingPlate.inp, will be used as an input file for the ANSYS Solver.Setting the Simulation TypeA transient ANSYS Multi-field run executes as a series of timesteps. The Simulation Typetab is used both to enable an ANSYS Multi-field run and to specifythe time-related settings for it (in the External Solver Coupling settings). The ANSYS input file is read by ANSYS CFX-Pre so that it knows which Fluid Solid Interfaces are available.Once the timesteps and time duration are specified for the ANSYSMulti-field run (coupling run), ANSYS CFX automatically picks up these settings and it is not possible to set the timestep and time duration independently. Hence the only option available for Time Duration is CouplingTime Duration, and similarly for the related settings Time Step and Initial Time.1. Click Simulation Type .2. Apply the following settingsTab Setting ValueExternal Solver Coupling > Option ANSYS MultiFieldOscillatingPlate.inpExternal Solver Coupling > ANSYS Input File[a]Coupling Time Control > Coupling Time Duration > Total 5 [s] Time BasicCoupling Time Control > Coupling Time Steps > Option Timesteps SettingsCoupling Time Control > Coupling Time Steps > Timesteps 0.1 [s] Simulation Type > Option TransientSimulation Type > Time Duration > Option Coupling Time Duration Simulation Type > Time Steps > Option Coupling Time StepsSimulation Type > Initial Time > Option Coupling Initial Time[a] This file is located in your working directory.3. Click OK.Note:You may see a physics validation message related to the difference in the units used inANSYS CFX-Pre and the units contained within the ANSYS input file. While it is important toreview the units used in any simulation, you should be aware that, in this specific case, themessage is not crucial as it is related to temperature units and there is no heat transfer in this case.Therefore, this specific tutorial will not be affected by the physics message.Creating the FluidA custom fluid is created with user-specified properties. 1. Click Material .2. Set the name of the new material to Fluid.3. Apply the following settingsTab Setting ValueOption Pure SubstanceBasic Settings Thermodynamic State (Selected)Thermodynamic State > Thermodynamic State LiquidMaterial Properties Equation of State > Molar Mass 1 [kg kmol^-1] Tab Setting ValueEquation of State > Density 1 [kg m^-3]Transport Properties > Dynamic Viscosity (Selected)Transport Properties > Dynamic Viscosity > Dynamic 0.2 [Pa s] Viscosity4. Click OK.Creating the DomainIn order to allow the ANSYS Solver to communicate mesh displacements to the CFX Solver, mesh motion must be activated in CFX.1. Right click Simulation in the Outline tree view and ensure that Automatic DefaultDomain is selected. A domain named Default Domain should now appear under theSimulation branch.2. Double click Default Domain and apply the following settingsTab Setting ValueFluids List FluidGeneral Options Domain Models > Pressure > Reference Pressure 1 [atm] Domain Models > Mesh Deformation > Option Regions of MotionSpecifiedHeat Transfer > Option NoneFluid ModelsTurbulence > Option None (Laminar)3. Click OK.Creating the Boundary ConditionsIn addition to the symmetry conditions, another type of boundary condition corresponding with the interaction between the solid and the fluid is required in this tutorial.Fluid Solid External BoundaryThe interface between ANSYS and CFX is defined as an externalboundary in CFX that has its mesh displacement being defined by the ANSYS Multi-field coupling process.When an ANSYS Multi-field specification is being made in ANSYS CFX-Pre, it is necessary to provide the name and number of the matchingFluid Solid Interface that was created inSimulation. Since the interface number in Simulation was 1, the namein question is FSIN_1. (If the interface number had been 2, then thename would have been FSIN_2, and so on.)On this boundary, CFX will send ANSYS the forces on the interface, and ANSYS will sendback the total mesh displacement it calculates given the forces passed from CFX and the otherdefined loads.1. Create a new boundary condition named Interface.2. Apply the following settingsTab Setting ValueBoundary Type Wall Basic SettingsLocation InterfaceMesh Motion > Option ANSYS MultiFieldMesh Motion > Receive From ANSYS Total Mesh DisplacementBoundary DetailsMesh Motion > ANSYS Interface FSIN_1Mesh Motion > Send to ANSYS Total Force3. Click OK.Symmetry BoundariesSince a 2D representation of the flow field is being modeled (using a 3D mesh with oneelement thickness in the Z direction) symmetry boundaries will be created on the low and high Z2D regions of the mesh.1. Create a new boundary condition named Sym1.2. Apply the following settingsTab Setting ValueBoundary Type SymmetryBasic SettingsLocation Sym13. Click OK.4. Create a new boundary condition named Sym2.5. Apply the following settingsTab Setting ValueBoundary Type Symmetry Basic SettingsLocation Sym26. Click OK.Setting Initial ValuesSince a transient simulation is being modeled, initial values are required for all variables.1. Click Global Initialization .2. Apply the following settings:Tab Setting ValueInitial Conditions > Cartesian Velocity 0 [m s^-1] Components > U Initial Conditions > Cartesian Velocity 0 [m s^-1] Components > V GlobalSettings Initial Conditions > Cartesian Velocity 0 [m s^-1] Components > WInitial Conditions > Static Pressure > Relative 0 [Pa] Pressure3. Click OK.Setting Solver ControlVarious ANSYS Multi-field settings are contained under SolverControl under the ExternalCoupling tab. Most of these settings do not need to be changed forthis simulation.Within each timestep, a series of “coupling” or “stagger” iterations are performed to ensure that CFX, ANSYS and the data exchanged between the two solvers are all consistent. Within eachstagger iteration, ANSYS and CFX both run once each, but which one runs first is a user-specifiable setting. In general, it is slightly more efficient to choose the solver that drives the simulation to run first. In this case, the simulation is being driven by the initial pressure applied in ANSYS, so ANSYS is set to solve before CFX within eachstagger iteration.1. Click Solver Control .2. Apply the following settings:Tab Setting ValueSecond Order Transient Scheme > Option Backward EulerConvergence Control > Minimum Number of (Selected) Basic Coefficient Loops SettingsConvergence Control > Minimum Number of [a]2 Coefficient Loops > Min. Coeff. LoopsConvergence Control > Max. Coeff. Loops 3External Coupling Step Control > Solution Sequence Before CFX Fields Coupling Control > Solve ANSYS FieldsTab Setting Value[a] This setting is optional. The default value of 1 is also acceptable. 3. Click OK.Setting Output ControlThis step sets up transient results files to be written at set intervals.1. Click Output Control .2. On the Trn Results tab, create a new transient result with the default name.3. Apply the following settings to Transient Results 1:Setting ValueOption Selected VariablesOutput Variable List Pressure, Total Mesh Displacement, Velocity[a]Output Frequency > Option Every Coupling Step[a] This setting writes a transient results file every multi-field timestep. 4. Click the Monitor tab.5. Select Monitor Options.6. Under Monitor Points and Expressions:7. Click Add new item and accept the default name. 8. Set Option to Cartesian Coordinates. 9. Set Output Variables List to Total Mesh Displacement X. 10. Set Cartesian Coordinates to [0, 1, 0].11. Click OK.Writing the Solver (.def) File1. Click Write Solver File .2. If the Physics Validation Summary dialog box appears, click Yes to proceed.3. Apply the following settingsSetting ValueFile name OscillatingPlate.def[a]Quit CFX–Pre (Selected)[a] If using ANSYS CFX-Pre in Standalone Mode.4. Ensure Start Solver Manager is selected and click Save.5. If you are notified the file already exists, click Overwrite.6. This file is provided in the tutorial directory and will exist in your working folder if youhave copied it there.7. Quit ANSYS CFX-Pre, saving the simulation (.cfx) file at your discretion.5. Obtaining a Solution using ANSYS CFX-Solver ManagerThe execution of an ANSYS Multi-field simulation requires both the CFX and ANSYS solvers to be running and communicating with each other. ANSYS CFX-Solver Manager can be used to launch both solvers and to monitor the output from both.1. Ensure the Define Run dialog box is displayed.There is a new MultiField tab which contains settings specific for an ANSYS Multi-field simulation.2. On the MultiField tab, check that the ANSYS input file locationis correct (the location isrecorded in the definition file but may need to be changed if you have moved filesaround).3. On UNIX systems, you may need to manually specify where the ANSYS installation is ifit is not in the default location. In this case, you must providethe path to the v110/ansysdirectory.4. Click Start Run.The run begins by some initial processing of the ANSYS Multi-field input which results in the creation of a file containing the necessary multi-field commands for ANSYS, and then the ANSYS Solver is started. The CFX Solver is then started in such a way that it knows how to communicate with the ANSYS Solver.After the run is under way, two new plots appear in ANSYS CFX-Solver Manager:ANSYS Field Solver (Structural) This plot is produced only when the solid physics is set to use large displacements or when other non-linear analyses are performed. It shows convergence of the ANSYS Solver. Full details of the quantities are described in the ANSYS user documentation. In general, the CRIT quantities are the convergence criteria for each relevant variable, and the L2 quantities represent the L2 Norm of therelevant variable. For convergence, the L2 Norm should be below the criteria. The x-axis of the plot is the cumulative iteration number for ANSYS, which does not correspond to either timesteps or stagger iterations. Several ANSYS iterations will beperformed for each timestep, depending on how quickly ANSYS converges. You will usually see a somewhat “spiky” plot, as each quantity will be unconverged at the start of each timestep, and then convergence will improve.ANSYS Interface Loads (Structural) This plot shows the convergencefor each quantitythat is part of the data exchanged between the CFX and ANSYS Solvers. In this case, four lines appear, corresponding to two force components (FX and FY) and two displacement components (UX and UY). Since the analysis is 2D, FZ and UZ are not exchanged. Each quantity is converged when the plot shows a negative value. The x-axis of the plot corresponds to the cumulative number of stagger iterations (coupling iterations) and there are several of these for every timestep. Again, a spiky plot is expected as the quantities will not be converged at the start of a timestep.The ANSYS out file is displayed in ANSYS CFX-Solver Manager as an extra tab. Similar to the CFX out file, this is a text file recording output from ANSYS as the solution progresses.1. Click the User Points tab and watch how the top of the plate displaces as the solutiondevelops.2. When the solvers have finished and ANSYS CFX-Solver Manager puts up a dialog boxto tell you this, click Yes to post-process the results.3. If using Standalone Mode, quit ANSYS CFX-Solver Manager.6. Viewing Results in ANSYS CFX-PostFor an ANSYS Multi-field run, both the CFX and ANSYS results files will be opened up in ANSYS CFX-Post by default if ANSYS CFX-Post is started from a finished run in ANSYS CFX-Solver Manager.Plotting Results on the SolidWhen ANSYS CFX-Post reads an ANSYS results file, all the ANSYS variables are available to plot on the solid, including stresses and strains. The mesh regions available for plots by default are limited to the full boundary of the solid, plus certain named regions which are automatically created when particular types of load are added in Simulation. For example, any Fluid Solid Interface will have a corresponding mesh region with a name such as FSIN 1. In this case, there is also a named region corresponding to the location of the fixed support, but in general pressure loads do not result in a named region.You can add extra mesh regions for plotting by creating named selections in Simulation - see the Simulation product documentation for more details. Note that the named selection must have a name which contains only English letters, numbers and underscores for the named mesh region to be successfully created.Note that when ANSYS CFX-Post loads an ANSYS results file, the true global range for each variable is not automatically calculated, as this would add a substantial amount of time onto how long it takes to load such a file (you can turn on this calculation using Edit > Options and using the Pre-calculate variable global ranges setting under CFX-Post > Files). When theglobal range is first used for plotting a variable, it is calculated as the range within the current timestep. As subsequent timesteps are loaded into ANSYS CFX-Post, the Global Range is extended each time variable values are found outside the previous Global Range.1. Turn on the visibility of Boundary ANSYS (under ANSYS > Domain ANSYS).2. Right-click a blank area in the viewer and select Predefined Camera > View Towards-Z. Zoom into the plate to see it clearly.3. Apply the following settings to Boundary ANSYS:Tab Setting ValueMode Variable ColorVariable Von Mises Stress4. Click Apply.5. Select Tools > Timestep Selector from the task bar to open the Timestep Selectordialog box. Notice that a separate list of timesteps is availablefor each results file loaded,although for this case the lists are the same. By default, Sync Cases is set to By TimeValue which means that each time you change the timestep for one results file, ANSYSCFX-Post will automatically load the results corresponding to the same time value for allother results files.6. Set Match to Nearest Available.7. Change to a time value of 1 [s] and click Apply.The corresponding transient results are loaded and you can see the mesh move in both the CFX and ANSYS regions.1. Clear the visibility check box of Boundary ANSYS.2. Create a contour plot, set Locations to Boundary ANSYS and Sym2, and set Variable toTotal Mesh Displacement. Click Apply.3. Using the timestep selector, load time value 1.1 [s] (which is where the maximum totalmesh displacement occurs).This verifies that the contours of Total Mesh Displacement are continuous through both the ANSYS and CFX regions.Many FSI cases will have only relatively small mesh displacements, which can make visualization of the mesh displacement difficult. ANSYS CFX-Post allows you to visually magnify the mesh deformation for ease of viewing such displacements. Although it is not strictly necessary forthis case, which has mesh displacements which are easily visible unmagnified, this is illustrated by the next few instructions.1. Using the timestep selector, load time value 0.1 [s] (which has a much smaller meshdisplacement than the currently loaded timestep).2. Place the mouse over somewhere in the viewer where the background color is showing.Right-click and select Deformation > Auto. Notice that the mesh displacements are nowexaggerated. The Auto setting is calculated to make the largest mesh displacement afixed percentage of the domain size.3. To return the deformations to their true scale, right-click and select Deformation > TrueScale.Creating an Animation1. Using the Timestep Selector dialog box, ensure the time value of 0.1 [s] is loaded.2. Clear the visibility check box of Contour 1.3. Turn on the visibility of Sym2.4. Apply the following settings to Sym2.Tab Setting ValueMode Variable ColorVariable Pressure5. Click Apply.6. Create a vector plot, set Locations to Sym1 and leave Variable set to Velocity. SetColor to be Constant and choose black. Click Apply.7. Select the visibility check box of Boundary ANSYS, and set Color to a constant blue.8. Click Animation .The Animation dialog box appears.9. Select Keyframe Animation.10. In the Animation dialog box:a. Click New to create KeyframeNo1.b. Highlight KeyframeNo1, then change # of Frames to 48.c. Load the last timestep (50) using the timestep selector.d. Click New to create KeyframeNo2.The # of Frames parameter has no effect for the last keyframe, so leave it at thedefault value.e. Select Save MPEG.f. Click Browse next to the MPEG file data box to set a path and file name forthe MPEG file.。
ansys workbench 流固耦合计算实例
Oscillating Plate with Two-Way Fluid-Structure InteractionIntroductionThis tutorial includes:•Features•Overview of the Problem to Solve•Setting up the Solid Physics in Simulation (ANSYS Workbench)•Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre•Obtaining a Solution using ANSYS CFX-Solver Manager•Viewing Results in ANSYS CFX-PostIf this is the first tutorial you are working with, it is important to review the following topics before beginning:•Setting the Working Directory•Changing the Display ColorsUnless you plan on running a session file, you should copy the sample files used in this tutorial from the installation folder for your software (<CFXROOT>/examples/) to your working directory. This prevents you from overwriting source files provided with your installation. If you plan to use a session file, please refer to Playing a Session File.Sample files referenced by this tutorial include:•OscillatingPlate.pre•OscillatingPlate.agdb•OscillatingPlate.gtm•OscillatingPlate.inp1.FeaturesThis tutorial addresses the following features of ANSYS CFX.In this tutorial you will learn about:•Moving mesh•Fluid-solid interaction (including modeling solid deformation using ANSYS)•Running an ANSYS Multi-field (MFX) simulation•Post-processing two results files simultaneously.2.Overview of the Problem to SolveThis tutorial uses a simple oscillating plate example to demonstrate how to set up and run a simulation involving two-way Fluid-Structure Interaction, where the fluid physics is solved in ANSYS CFX and the solid physics is solved in the FEA package ANSYS. Coupling between the two solvers is required throughout the solution to model the interaction between fluid and solid as time progresses, and the framework for the coupling is provided by the ANSYS Multi-field solver, using the MFX setup.The geometry consists of a 2D closed cavity. A thin plate is anchored to the bottom of the cavity as shown below:An initial pressure of 100 Pa is applied to one side of the thin plate for 0.5 seconds in order to distort it. Once this pressure is released, the plate oscillates backwards and forwards as it attempts to regain its equilibrium (vertical) position. The surrounding fluid damps the oscillations, which therefore have an amplitude that decreases in time. The CFX Solver calculates how the fluid responds to the motion of the plate, and the ANSYS Solver calculates how the plate deforms as a result of both the initial applied pressure and the pressure resulting from the presence of the fluid. Coupling between the two solvers is required since the solid deformation affects the fluid solution, and the fluid solution affects the solid deformation.The tutorial describes the setup and execution of the calculation including the setup of the solid physics in Simulation (within ANSYS Workbench) and the setup of the fluid physics and ANSYS Multi-field settings in ANSYS CFX-Pre. If you do not have ANSYS Workbench, then you can use the provided ANSYS input file to avoid the need for Simulation.3.Setting up the Solid Physics in Simulation (ANSYS Workbench)This section describes the step-by-step definition of the solid physics in Simulation within ANSYS Workbench that will result in the creation of an ANSYS input file OscillatingPlate.inp. If you prefer, you can instead use the provided OscillatingPlate.inp file and continue from Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre.Creating a New Simulation1.If required, launch ANSYS Workbench.2.Click Empty Project. The Project page appears displaying an unsaved project.3.Select File > Save or click Save button.4.If required, set the path location to a different folder. The default location is your workingdirectory. However, if you have a specific folder that you want to use to store files created during this tutorial, change the path.5.Under File name, type OscillatingPlate.6.Click Save.7.Under Link to Geometry File on the left hand task bar click Browse. Select the providedfile OscillatingPlate.agdb and click Open.8.Make sure that OscillatingPlate.agdb is highlighted and click New simulation from theleft-hand taskbar.Creating the Solid Material1.When Simulation opens, expand Geometry in the project tree at the left hand side of theSimulation window.2.Select Solid, and in the Details view below, select Material.e the arrow that appears next to the material name Structural Steel to select NewMaterial.4.When the Engineering Data window opens, right-click New Material from the tree viewand rename it to Plate.5.Enter 2.5e06 for Young's Modulus, 0.35 for Poisson's Ratio and 2550 for Density.Note that the other properties are not used for this simulation, and that the units for these values are implied by the global units in Simulation.6.Click the Simulation tab near the top of the Workbench window to return to thesimulation.Basic Analysis SettingsThe ANSYS Multi-field simulation is a transient mechanical analysis, with a timestep of 0.1 s and a time duration of 5 s.1.Select New Analysis > Flexible Dynamic from the toolbar.2.Select Analysis Settings from the tree view and in the Details view below, set Auto TimeStepping to Off.3.Set Time Step to 0.1.4.Under Tabular Data at the bottom right of the window, set End Time to5.0 for theSteps = 1 setting.Inserting LoadsLoads are applied to an FEA analysis as the equivalent of boundary conditions in ANSYS CFX. In this section, you will set a fixed support, a fluid-solid interface, and a pressure load. Fixed SupportThe fixed support is required to hold the bottom of the thin plate in place.1.Right-click Flexible Dynamic in the tree and select Insert> Fixed Support from theshortcut menu.2.Rotate the geometry using the Rotate button so that the bottom (low-y) face of thesolid is visible, then select Face and click the low-y face.That face should be highlighted to indicate selection.3.Ensure Fixed Support is selected in the Outline view, then, in the Details view, selectGeometry and click 1 Face to make the Apply button appear (if necessary). Click Apply to set the fixed support.Fluid-Solid InterfaceIt is necessary to define the region in the solid that defines the interface between the fluid in CFX and the solid in ANSYS. Data is exchanged across this interface during the execution of the simulation.1.Right-click Flexible Dynamic in the tree and select Insert > Fluid Solid Interface fromthe shortcut menu.ing the same face-selection procedure described earlier, select the three faces of thegeometry that form the interface between the solid and the fluid (low-x, high-y and high-x faces) by holding down <Ctrl> to select multiple faces. Note that this load is automatically given an interface number of 1.Pressure LoadThe pressure load provides the initial additional pressure of 100 [Pa] for the first 0.5 seconds of the simulation. It is defined using a step function.1.Right-click Flexible Dynamic in the tree and select Insert > Pressure from the shortcutmenu.2.Select the low-x face for Geometry.3.In the Details view, select Magnitude, and using the arrow that appears, select Tabular(Time).4.Under Tabular Data, set a pressure of 100 in the table row corresponding to a time of 0.Note: The units for time and pressure in this table are the global units of [s]and [Pa], respectively.5.You now need to add two new rows to the table. This can be done by typing the new timeand pressure data into the empty row at the bottom of the table, and Simulation will automatically re-order the table in order of time value. Enter a pressure of 100 for a time value of 0.499, and a pressure of 0 for a time value of 0.5.This gives a step function for pressure that can be seen in the chart to the left of the table. Writing the ANSYS Input FileThe Simulation settings are now complete. An ANSYS Multi-field run cannot be launched from within Simulation, so the Solve buttons cannot be used to obtain a solution.1.Instead, highlight Solution in the tree, select Tools> Write ANSYS Input File andchoose to write the solution setup to the file OscillatingPlate.inp.2.The mesh is automatically generated as part of this process. If you want to examine it,select Mesh from the tree.3.Save the Simulation database, use the tab near the top of the Workbench window to returnto the Oscillating Plate [Project] tab, and save the project itself.4.Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-PreThis section describes the step-by-step definition of the flow physics and ANSYS Multi-field settings in ANSYS CFX-Pre.Playing a Session FileIf you want to skip past these instructions and to have ANSYS CFX-Pre set up the simulation automatically, you can select Session > Play Tutorial from the menu in ANSYS CFX-Pre, then run the session file: OscillatingPlate.pre. After you have played the session file as described in earlier tutorials under Playing the Session File and Starting ANSYS CFX-Solver Manager, proceed to Obtaining a Solution using ANSYS CFX-Solver Manager.Creating a New Simulation1.Start ANSYS CFX-Pre.2.Select File > New Simulation.3.Select General and click OK.4.Select File > Save Simulation As.5.Under File name, type OscillatingPlate.6.Click Save.Importing the Mesh1.Right-click Mesh and select Import Mesh.2.Select the provided mesh file, OscillatingPlate.gtm and click Open.Note:The file that was just created in Simulation, OscillatingPlate.inp, will be used as an input file for the ANSYS Solver.Setting the Simulation TypeA transient ANSYS Multi-field run executes as a series of timesteps. The Simulation Type tab is used both to enable an ANSYS Multi-field run and to specify the time-related settings for it (in the External Solver Coupling settings). The ANSYS input file is read by ANSYS CFX-Pre so that it knows which Fluid Solid Interfaces are available.Once the timesteps and time duration are specified for the ANSYS Multi-field run (coupling run), ANSYS CFX automatically picks up these settings and it is not possible to set the timestep and time duration independently. Hence the only option available for Time Duration is Coupling Time Duration, and similarly for the related settings Time Step and Initial Time.1.Click Simulation Type .2.Apply the following settingsTab Setting ValueBasic Settings External Solver Coupling > Option ANSYS MultiField External Solver Coupling > ANSYS Input FileOscillatingPlate.inp[a]Coupling Time Control > Coupling Time Duration > TotalTime5 [s]Coupling Time Control > Coupling Time Steps > Option TimestepsCoupling Time Control > Coupling Time Steps > Timesteps 0.1 [s]Simulation Type > Option TransientSimulation Type > Time Duration > Option Coupling Time Duration Simulation Type > Time Steps > Option Coupling Time Steps Simulation Type > Initial Time > Option Coupling Initial Time[a] This file is located in your working directory.3.Click OK.Note:You may see a physics validation message related to the difference in the units used in ANSYS CFX-Pre and the units contained within the ANSYS input file. While it is important to review the units used in any simulation, you should be aware that, in this specific case, the message is not crucial as it is related to temperature units and there is no heat transfer in this case. Therefore, this specific tutorial will not be affected by the physics message.Creating the FluidA custom fluid is created with user-specified properties.1.Click Material .2.Set the name of the new material to Fluid.3.Apply the following settingsTab Setting ValueBasic Settings Option Pure Substance Thermodynamic State (Selected) Thermodynamic State > Thermodynamic State LiquidMaterial Properties Equation of State > Molar Mass 1 [kg kmol^-1]4.Click OK.Creating the DomainIn order to allow the ANSYS Solver to communicate mesh displacements to the CFX Solver, mesh motion must be activated in CFX.1.Right click Simulation in the Outline tree view and ensure that Automatic DefaultDomain is selected. A domain named Default Domain should now appear under the Simulation branch.2.Double click Default Domain and apply the following settings3.Click OK.Creating the Boundary ConditionsIn addition to the symmetry conditions, another type of boundary condition corresponding with the interaction between the solid and the fluid is required in this tutorial.Fluid Solid External BoundaryThe interface between ANSYS and CFX is defined as an external boundary in CFX that has its mesh displacement being defined by the ANSYS Multi-field coupling process.When an ANSYS Multi-field specification is being made in ANSYS CFX-Pre, it is necessary to provide the name and number of the matching Fluid Solid Interface that was created in Simulation. Since the interface number in Simulation was 1, the name in question is FSIN_1. (If the interface number had been 2, then the name would have been FSIN_2, and so on.)On this boundary, CFX will send ANSYS the forces on the interface, and ANSYS will send back the total mesh displacement it calculates given the forces passed from CFX and the other defined loads.1.Create a new boundary condition named Interface.2.Apply the following settings3.Click OK.Symmetry BoundariesSince a 2D representation of the flow field is being modeled (using a 3D mesh with one element thickness in the Z direction) symmetry boundaries will be created on the low and high Z 2D regions of the mesh.1.Create a new boundary condition named Sym1.2.Apply the following settings3.Click OK.4.Create a new boundary condition named Sym2.5.Apply the following settings6.Click OK.Setting Initial ValuesSince a transient simulation is being modeled, initial values are required for all variables.1.Click Global Initialization .2.Apply the following settings:Tab Setting ValueGlobal Settings Initial Conditions > Cartesian Velocity Components > U0 [m s^-1] Initial Conditions > Cartesian Velocity Components > V0 [m s^-1] Initial Conditions > Cartesian Velocity Components > W0 [m s^-1] Initial Conditions > Static Pressure > RelativePressure0 [Pa]3.Click OK.Setting Solver ControlVarious ANSYS Multi-field settings are contained under Solver Control under the External Coupling tab. Most of these settings do not need to be changed for this simulation.Within each timestep, a series of “coupling” or “stagger” iterations are performed to ensure that CFX, ANSYS and the data exchanged between the two solvers are all consistent. Within each stagger iteration, ANSYS and CFX both run once each, but which one runs first is a user-specifiable setting. In general, it is slightly more efficient to choose the solver that drives the simulation to run first. In this case, the simulation is being driven by the initial pressure applied in ANSYS, so ANSYS is set to solve before CFX within each stagger iteration.1.Click Solver Control .2.Apply the following settings:Tab Setting ValueBasic Settings Transient Scheme > OptionSecond OrderBackward Euler Convergence Control > Minimum Number ofCoefficient Loops(Selected) Convergence Control > Minimum Number ofCoefficient Loops > Min. Coeff. Loops2[a]Convergence Control > Max. Coeff. Loops 3External Coupling Coupling Step Control > Solution SequenceControl > Solve ANSYS FieldsBefore CFX FieldsTab Setting Value[a] This setting is optional. The default value of 1 is also acceptable.3.Click OK.Setting Output ControlThis step sets up transient results files to be written at set intervals.1.Click Output Control .2.On the Trn Results tab, create a new transient result with the default name.3.Apply the following settings to Transient Results 1:Setting ValueOption Selected VariablesOutput Variable List Pressure, Total Mesh Displacement, VelocityOutput Frequency > Option Every Coupling Step[a][a] This setting writes a transient results file every multi-field timestep.4.Click the Monitor tab.5.Select Monitor Options.6.Under Monitor Points and Expressions:7.Click Add new item and accept the default name.8.Set Option to Cartesian Coordinates.9.Set Output Variables List to Total Mesh Displacement X.10.Set Cartesian Coordinates to [0, 1, 0].11.Click OK.Writing the Solver (.def) File1.Click Write Solver File .2.If the Physics Validation Summary dialog box appears, click Yes to proceed.3.Apply the following settingsSetting ValueFile name OscillatingPlate.defQuit CFX–Pre[a](Selected)[a] If using ANSYS CFX-Pre in Standalone Mode.4.Ensure Start Solver Manager is selected and click Save.5.If you are notified the file already exists, click Overwrite.6.This file is provided in the tutorial directory and will exist in your working folder if youhave copied it there.7.Quit ANSYS CFX-Pre, saving the simulation (.cfx) file at your discretion.5.Obtaining a Solution using ANSYS CFX-Solver ManagerThe execution of an ANSYS Multi-field simulation requires both the CFX and ANSYS solvers to be running and communicating with each other. ANSYS CFX-Solver Manager can be used to launch both solvers and to monitor the output from both.1.Ensure the Define Run dialog box is displayed.There is a new MultiField tab which contains settings specific for an ANSYS Multi-field simulation.2.On the MultiField tab, check that the ANSYS input file location is correct (the location isrecorded in the definition file but may need to be changed if you have moved files around).3.On UNIX systems, you may need to manually specify where the ANSYS installation is ifit is not in the default location. In this case, you must provide the path to the v110/ansys directory.4.Click Start Run.The run begins by some initial processing of the ANSYS Multi-field input which results in the creation of a file containing the necessary multi-field commands for ANSYS, and then the ANSYS Solver is started. The CFX Solver is then started in such a way that it knows how to communicate with the ANSYS Solver.After the run is under way, two new plots appear in ANSYS CFX-Solver Manager:ANSYS Field Solver (Structural) This plot is produced only when the solid physics is set to use large displacements or when other non-linear analyses are performed. It shows convergence of the ANSYS Solver. Full details of the quantities are described in the ANSYS user documentation. In general, the CRIT quantities are the convergence criteria for each relevant variable, and the L2 quantities represent the L2 Norm of the relevant variable. For convergence, the L2 Norm should be below the criteria. The x-axis of the plot is the cumulative iteration number for ANSYS, which does not correspond to either timesteps or stagger iterations. Several ANSYS iterations will beperformed for each timestep, depending on how quickly ANSYS converges. You will usually see a somewhat “spiky” plot, as each quantity will be unconverged at the start of each timestep, and then convergence will improve.ANSYS Interface Loads (Structural)This plot shows the convergence for each quantity that is part of the data exchanged between the CFX and ANSYS Solvers. In this case, four lines appear, corresponding to two force components (FX and FY) and two displacement components (UX and UY). Since the analysis is 2D, FZ and UZ are not exchanged. Each quantity is converged when the plot shows a negative value. The x-axis of the plot corresponds to the cumulative number of stagger iterations (coupling iterations) and there are several of these for every timestep. Again, a spiky plot is expected as the quantities will not be converged at the start of a timestep.The ANSYS out file is displayed in ANSYS CFX-Solver Manager as an extra tab. Similar to the CFX out file, this is a text file recording output from ANSYS as the solution progresses.1.Click the User Points tab and watch how the top of the plate displaces as the solutiondevelops.2.When the solvers have finished and ANSYS CFX-Solver Manager puts up a dialog boxto tell you this, click Yes to post-process the results.3.If using Standalone Mode, quit ANSYS CFX-Solver Manager.6.Viewing Results in ANSYS CFX-PostFor an ANSYS Multi-field run, both the CFX and ANSYS results files will be opened up in ANSYS CFX-Post by default if ANSYS CFX-Post is started from a finished run in ANSYS CFX-Solver Manager.Plotting Results on the SolidWhen ANSYS CFX-Post reads an ANSYS results file, all the ANSYS variables are available to plot on the solid, including stresses and strains. The mesh regions available for plots by default are limited to the full boundary of the solid, plus certain named regions which are automatically created when particular types of load are added in Simulation. For example, any Fluid Solid Interface will have a corresponding mesh region with a name such as FSIN 1. In this case, there is also a named region corresponding to the location of the fixed support, but in general pressure loads do not result in a named region.You can add extra mesh regions for plotting by creating named selections in Simulation - see the Simulation product documentation for more details. Note that the named selection must have a name which contains only English letters, numbers and underscores for the named mesh region to be successfully created.Note that when ANSYS CFX-Post loads an ANSYS results file, the true global range for each variable is not automatically calculated, as this would add a substantial amount of time onto how long it takes to load such a file (you can turn on this calculation using Edit > Options and using the Pre-calculate variable global ranges setting under CFX-Post> Files). When the global range is first used for plotting a variable, it is calculated as the range within the current timestep. As subsequent timesteps are loaded into ANSYS CFX-Post, the Global Range is extended each time variable values are found outside the previous Global Range.1.Turn on the visibility of Boundary ANSYS (under ANSYS > Domain ANSYS).2.Right-click a blank area in the viewer and select Predefined Camera > View Towards-Z. Zoom into the plate to see it clearly.3.Apply the following settings to Boundary ANSYS:4.Click Apply.5.Select Tools> Timestep Selector from the task bar to open the Timestep Selectordialog box. Notice that a separate list of timesteps is available for each results file loaded, although for this case the lists are the same. By default, Sync Cases is set to By Time Value which means that each time you change the timestep for one results file, ANSYS CFX-Post will automatically load the results corresponding to the same time value for all other results files.6.Set Match to Nearest Available.7.Change to a time value of 1 [s] and click Apply.The corresponding transient results are loaded and you can see the mesh move in both the CFX and ANSYS regions.1.Clear the visibility check box of Boundary ANSYS.2.Create a contour plot, set Locations to Boundary ANSYS and Sym2, and set Variable toTotal Mesh Displacement. Click Apply.ing the timestep selector, load time value 1.1 [s] (which is where the maximum totalmesh displacement occurs).This verifies that the contours of Total Mesh Displacement are continuous through both the ANSYS and CFX regions.Many FSI cases will have only relatively small mesh displacements, which can make visualization of the mesh displacement difficult. ANSYS CFX-Post allows you to visually magnify the mesh deformation for ease of viewing such displacements. Although it is not strictly necessary for this case, which has mesh displacements which are easily visible unmagnified, this is illustrated by the next few instructions.ing the timestep selector, load time value 0.1 [s] (which has a much smaller meshdisplacement than the currently loaded timestep).2.Place the mouse over somewhere in the viewer where the background color is showing.Right-click and select Deformation > Auto. Notice that the mesh displacements are now exaggerated. The Auto setting is calculated to make the largest mesh displacement a fixed percentage of the domain size.3.To return the deformations to their true scale, right-click and select Deformation > TrueScale.Creating an Animationing the Timestep Selector dialog box, ensure the time value of 0.1 [s] is loaded.2.Clear the visibility check box of Contour 1.3.Turn on the visibility of Sym2.4.Apply the following settings to Sym2.5.Click Apply.6.Create a vector plot, set Locations to Sym1 and leave Variable set to Velocity. SetColor to be Constant and choose black. Click Apply.7.Select the visibility check box of Boundary ANSYS, and set Color to a constant blue.8.Click Animation .The Animation dialog box appears.9.Select Keyframe Animation.10.In the Animation dialog box:a.Click New to create KeyframeNo1.b.Highlight KeyframeNo1, then change # of Frames to 48.c.Load the last timestep (50) using the timestep selector.d.Click New to create KeyframeNo2.The # of Frames parameter has no effect for the last keyframe, so leave it at thedefault value.e.Select Save MPEG.f.Click Browse next to the MPEG file data box to set a path and file name forthe MPEG file.If the file path is not given, the file will be saved in the directory from whichANSYS CFX-Post was launched.g.Click Save.The MPEG file name (including path) will be set, but the MPEG will not becreated yet.h.Frame 1 is not loaded (The loaded frame is shown in the middle of theAnimation dialog box, beside F:). Click To Beginning to load it then waita few seconds for the frame to load.i.Click Play the animation .The MPEG will be created as the animation proceeds. This will be slow, since atimestep must be loaded and objects must be created for each frame. To view theMPEG file, you need to use a viewer that supports the MPEG format.11.When you have finished, exit ANSYS CFX-Post.。
ANSYSWorkbench流-固耦合计算方法解析
ANSYSWorkbench流-固耦合计算方法解析流-固耦合主要研究流体流动导致结构变形,而结构变形可能会影响流体流动。
基于ANSYS Workbench可以实现单向和双向流固耦合,而且可以处理结构发生大变形的双向流固耦合计算,流固耦合计算的典型应用包括,机翼颤振,管道振动,导线覆冰振动,含流体容器晃动,结构跌落入水冲击,柔性结构扰流振动等。
目前,ANSYS版本已经更新到了2023R1,各类流固耦合计算功能,更加完善,操作使用更加方便,对于流固耦合根据耦合方式可以分为:(1)单向耦合。
A场对B场有影响,而B场对A场没有影响,常见的问题就是热应力计算,一般的热应力计算中,只考虑温度对结构的影响,而忽律结构变形对温度场的影响;(2)双向耦合。
A场对B场有影响,而B场对A场也有影响,例如气动颤振问题,流场对结构的变形有影响,反过来结构变形也会影响流场。
ANSYS目前主要提供了四种流固耦合仿真策略:(1)Fluent+结构模块(稳态或瞬态)该方法可以完成各类稳态或瞬态的单向流固耦合计算,计算效率高,数据传递稳定,例如,各类流体载荷导致的结构变形和应力,结构在流体作用下的小变形振动等。
(2)Fluent+结构模块(稳态或瞬态)该方法在Fluent中完成流场求解,获得流场的压力;在结构模块(稳态或瞬态)完成固体场求解,获得变形,然后通过系统耦合器完成数据的交互传递,该方法,即可以完成单向流固耦合计算,也可以完成双向流固耦合计算,但是在同一时刻,只有一个场在求解,双向流固耦合的求解时间较长。
(3)基于LS-DYNA软件完成流固耦合计算LS-DYNA支持ICFD求解器与其自身的固体力学求解器之间的耦合。
ICFD求解器适用于五大行业多物理场应用:•汽车行业,LS-DYNA传统应用领域,ICFD可针对热-结构耦合的外部空气动力学分析提供解决方案;•制造行业,ICFD可应用于冷却相关分析,例如金属冲压,电池组的冷却等;•能源行业,尤其是风能行业。
【2019年整理】ansys14workbench血管流固耦合分析实例
Ansys14 workbench血管流固耦合实例根据收集的一些资料,进行学习后,试着做了这个ansys14workbench的血管流固耦合模拟,感觉能够耦合上,仅是熟悉流固耦合分析过程,不一定正确,仅供参考,希望大家多讨论。
谢谢!1、先在proe5中建立血管与血液流体区的模型(两者装配起来),或者直接在workbench中建模。
图1 模型图2、新建工程。
在workbench中toolbox中选custom system,双击FSI: FluidFlow(fluent)->static structure.图2 计算工程3、修改engineering data,因为系统缺省材料是钢,需要构建血管材料,如图3所示。
先复制steel,而后修改密度1150kg/m3,杨氏模量4.5e8Pa,泊松比0.3,重新命名,最后在主菜单中点击“update project”保存.图3 修改工程材料4、模型导入,进入gemetry模块,import外部模型文件。
图4 模型导入图5、进入FLUENT网格划分。
在workbench工程视图中的Mesh上点击右键,选择Edit…,如图5所示,进入网格划分meshing界面,如图6所示。
我们这里需要去掉血管部分,只保留血液几何。
图5 进入网格划分图6 禁用血管模型6、设置网格方法。
默认是采用ICEM CFD进行网格划分,设置方式如图7所示,截面圆弧边分为12份,纵截面的边均分为10份,网格结果如图8所示。
另外在这个界面中要设置边界的几何面,如inlet、outlet、symmetry图7 设置网格划分方式图8 最终出网格图9 边界几何7、进入fluent图10 进入fluent关闭mesh,回到fluent工程窗口,右键点击setup,选择edit…,进入fluent。
这里设置瞬态计算,流体为血液(密度1060,动力粘度0.004pas),入口压力波动(用profile输入),出口压力0Pa,采用k-e湍流模型。
ANSYS流固耦合
教程大纲
在这个教程中您将学到:
– – – – 移动网格 流体-固体相互作用模拟 运用ANSYS-MultiField模拟 同时处理两个结果文件
问题概述
在这个教程中,运用一个简单的摆动板例题来解释 怎样建立以及模拟流体-结构相互作用的问题。其 中流体模拟在ANSYS CFX求解器中运行,而用 ANSYS软件包中的FEA来模拟固体问题。模拟流固 相互作用的整个过程中需要两个求解器的耦合运 行,ANSYS-MultiField求解器提供了耦合求解的平 台。
4. 点击OK
设置流体问题、 中设置ANSYS MultiField 设置流体问题、在ANSYS CFX-Pre中设置 中设置
创建域:为了使ANSYS Solver能够把网格变形信息传递给 CFX Solver,在CFX中必须激活网格移动。 1. 重命名Default Domain为OscillatingPlate,并打开进行编 辑 2. 应用以下设置
8.
点击OK
设置流体问题、 中设置ANSYS MultiField 设置流体问题、在ANSYS CFX-Pre中设置 中设置
输出求解器文件(.def) 1. 点击Write Solver File 2. 如果 Physics Validation Summary 对话框出现,点击 Yes 以继续 3. 应用以下设置
3.
点击OK
设置流体问题、 中设置ANSYS MultiField 设置流体问题、在ANSYS CFX-Pre中设置 中设置
创建边界条件 • 流体外部边界
1. 2. 创建一个新边界条件,命名为Interface. 应用以下设置
3.
点击OK
设置流体问题、 中设置ANSYS MultiField 设置流体问题、在ANSYS CFX-Pre中设置 中设置
ANSYS Workbench LS-DYNA流固耦合方法应用
ANSYS Workbench LS-DYNA流固耦合方法应用贮液容器(含塑料瓶)广泛应用于化工、食品包装、储运等领域。
由于容器(含塑料瓶)在运输和使用过程中常常会因为跌落或碰撞冲击导致破损而造成损失和污染,因此,研究贮液容器(含塑料瓶)在跌落碰撞过程中的力学行为,对认识容器(含塑料瓶)跌落碰撞损伤机理,优化容器(含塑料瓶)结构,提高其安全性和使用价值意义重大。
.贮液容器的跌落是一个典型的流固耦合问题,可采用LS-DYNA的ALE算法(任意拉格朗日欧拉算法)进行模拟。
下面以一个封闭的装水水箱为例,介绍ANSYS Workbench LS-DYNA分析此类型跌落问题的方法和步骤:1.建立几何模型调用ANSYS Workbench中的LS-DYNA模块,如图1所示。
然后使用ANSYS的CAD工具DesignModeler建立几何模型,如图2所示。
图1 调用Workbench LS-DYNA 图2 DesignModeler中建立几何模型2.生成K文件双击进入“Model”后,对模型进行网格划分、边界条件设置、速度设置和分析设置,如图3所示。
设置完成后点击“solve”求解,生成K文件,如图4所示。
图3 调用Workbench LS-DYNA 图4 DesignModeler中建立几何模型3.编辑K文件通过Workbench LS-DYNA生成的K文件中关键字是不够完善的,并不能直接递交LS-DYNA求解器进行求解。
K文件中所欠缺的一些关键字,在流固耦合分析中是必不可少的,如空材料的定义、跟随坐标系的定义、空白域的定义以及状态方程的定义等。
3.1 重要关键字释义(1)LS-DYNA程序提供了运动的多物质ALE网格,可以方便地为多物质ALE算法定义跟随坐标系*ALE_REFERENCE_SYSTEM_NODE*ALE_REFERENCE_SYSTEM_GROUP(2)定义空材料和状态方程的关键字*MAT_NULL *EOS(3)初始化空白域的关键字*INITIAL_VOID_PART(4)结构和流体之间耦合的关键字*CONSTRAINED_LAGRANGE_IN_SOLID(5)单元算法定义(单点积分的单物质加空白材料)的关键字*SECTION_SOLID_ALE ELF0RM=12(6)在重力作用下产生下落的关键字*LOAD_BODY……3.2关键字编辑方法关键字的编辑或修改一般有两种方法,一种是直接在ls-prepost中对关键字进行编辑设置,如图5所示;另一种是在文本编辑器UltraEdit中对关键字进行编辑或修改,如图6所示。
ANSYS流固耦合分析实例
为0 [s]设置压力为100 [pa] 5. 表中需要继续输入两排参数,100 [pa]对应于0.499 [s], 0 [pa]
对应于0.5 [s]
模拟中固体问题的描述—记录ANSYS输入文件
现在,模拟设置已经完成。在Simulation中ANSYS MultiField 并不运行,因此用求解器按钮并不能得到结果 1. 然 而 , 在 目 录 树 中 的 高 亮 Solution 中 , 选 择 Tools > Write ANSYS Input File,把结果写进文件OscillatingPlate.inp 2. 网格是自动生成的,如果想检查,可以在目录树中选择Mesh 3. 保存Simulation数据,返回Oscillating Plate [Project]面板, 存储Project
固定支撑:为确保薄板的底部固定于平板,需要设置固定支撑 条件。
1. 右击目录树中Transient Stress,在快捷菜单中选择Insert > Fixed Support
2. 用旋转键 旋转几何模型,以便可以看见模型底面(low-y), 然后选择 并点击底面(low-y)
3. 在Details窗口,选择Geometry,然后点击No Selection使Apply 按钮出现(如果需要)。点击Apply以设置固支。
设置仿真类型: 1. 选择 Insert > Simulation Type. 2. 应用以下设置: 3. 点击OK
设置流体问题、在ANSYS CFX-Pre中设置ANSYS MultiField
建立流体物质 1. 选择 Insert > Material. 2. 把新物质名定义为 Fluid. 3. 应用以下设置
ANSYS12流固耦合的操作实例
流固耦合FSI分析分析原理:流场采用CFX12,固体采用ANSYS12分别计算,通过界面耦合。
流体网格:流体部分采用HyperMesh9.0分网,按照流体分网步骤即可,没有特殊要求。
网格导出:CFX可以很好的支持Fluent的.cas格式。
直接导出这个格式即可。
流体的其余设置都在CFX-PRE中设置。
固体网格即设置:HyperMesh9.0划分固体网格。
设置边界条件,载荷选项,求解控制,导出.cdb文件。
实例练习:以CFX12实例CFX tutorial 23作为练习。
为节省时间,将计算时间缩短为2s。
网格划分:提取CFX tutorial 23中的实体模型到hm中,分别划分流体,固体网格。
分别导出为fluent的.cas格式和ansys的cdb格式。
流体网格如下:网格文件见:fluid.cas固体网格为:特别注意:做FSI分析时,ANSYS固体部分必须在BATCH下运行(即将.cdb文件导入ansys不需要任何操作就能直接计算出结果),所以导出的.CDB文件需要添加一个命令,在hm建立FSIN_1的set,以方便在.cdb中手动添加命令SF,FSIN_1,FSIN,1,具体位置在定义了节点集合FSIN_1之后。
另一个set:pressure用于施加压强。
这里还设置了一些控制卡片用于分析,当然也可以直接修改.cdb文件详细.cdb文件请参看plate.cdb将固体部分在ansys中计算一下,以确定没有问题。
通过ansys计算检查最大位移:最上面的点x向变形曲线至此,固体部分的计算文件已经准备好,流体网格需要导入CFX以进一步设置求解选项和耦合选项。
以下在CFX-PRE中进行设置由于固体模型已经生成,故不需要利用workbench,所以不必按照指南的做法。
启动workbench,拖动fluid flow(CFX)到工作区直接双击setup进入CFX-PRE 导入流体网格然后设置分析选项:注意:mechanical input file即是固体部分网格。
流固耦合计算实例
Oscillating Plate with Two-Way Fluid-Structure InteractionANSYS-ChinaIntroductionThis tutorial includes:∙Features∙Overview of the Problem to Solve∙Setting up the Solid Physics in Simulation (ANSYS Workbench)∙Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre∙Obtaining a Solution using ANSYS CFX-Solver Manager∙Viewing Results in ANSYS CFX-PostIf this is the first tutorial you are working with, it is important to review the following topics before beginning:∙Setting the Working Directory∙Changing the Display ColorsUnless you plan on running a session file, you should copy the sample files used in this tutorial from the installation folder for your software (<CFXROOT>/examples/) to your working directory. This prevents you from overwriting source files provided with your installation. If you plan to use a session file, please refer to Playing a Session File.Sample files referenced by this tutorial include:∙OscillatingPlate.pre∙OscillatingPlate.agdb∙OscillatingPlate.gtm∙OscillatingPlate.inp1.FeaturesThis tutorial addresses the following features of ANSYS CFX.In this tutorial you will learn about:∙Moving mesh∙Fluid-solid interaction (including modeling solid deformation using ANSYS)∙Running an ANSYS Multi-field (MFX) simulation∙Post-processing two results files simultaneously.2.Overview of the Problem to SolveThis tutorial uses a simple oscillating plate example to demonstrate how to set up and run a simulation involving two-way Fluid-Structure Interaction, where the fluid physics is solved in ANSYS CFX and the solid physics is solved in the FEA package ANSYS. Coupling between the two solvers is required throughout the solution to model the interaction between fluid and solid as time progresses, and the framework for the coupling is provided by the ANSYS Multi-field solver, using the MFX setup.The geometry consists of a 2D closed cavity. A thin plate is anchored to the bottom of the cavity as shown below:An initial pressure of 100 Pa is applied to one side of the thin plate for 0.5 seconds in order to distort it. Once this pressure is released, the plate oscillates backwards and forwards as it attempts to regain its equilibrium (vertical) position. The surrounding fluid damps the oscillations, which therefore have an amplitude that decreases in time. The CFX Solver calculates how the fluid responds to the motion of the plate, and the ANSYS Solver calculates how the plate deforms as a result of both the initial applied pressure and the pressure resulting from the presence of the fluid. Coupling between the two solvers is required since the solid deformation affects the fluid solution, and the fluid solution affects the solid deformation.The tutorial describes the setup and execution of the calculation including the setup of the solid physics in Simulation (within ANSYS Workbench) and the setup of the fluid physics and ANSYS Multi-field settings in ANSYS CFX-Pre. If you do not have ANSYS Workbench, then you can use the provided ANSYS input file to avoid the need for Simulation.3.Setting up the Solid Physics in Simulation (ANSYS Workbench)This section describes the step-by-step definition of the solid physics in Simulation within ANSYS Workbench that will result in the creation of an ANSYS input file OscillatingPlate.inp. If you prefer, you can instead use the provided OscillatingPlate.inp file and continue from Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre.Creating a New Simulation1.If required, launch ANSYS Workbench.2.Click Empty Project. The Project page appears displaying an unsaved project.3.Select File > Save or click Save button.4.If required, set the path location to a different folder. The default location is your workingdirectory. However, if you have a specific folder that you want to use to store files created during this tutorial, change the path.5.Under File name, type OscillatingPlate.6.Click Save.7.Under Link to Geometry File on the left hand task bar click Browse. Select the providedfile OscillatingPlate.agdb and click Open.8.Make sure that OscillatingPlate.agdb is highlighted and click New simulation from theleft-hand taskbar.Creating the Solid Material1.When Simulation opens, expand Geometry in the project tree at the left hand side of theSimulation window.2.Select Solid, and in the Details view below, select Material.e the arrow that appears next to the material name Structural Steel to select NewMaterial.4.When the Engineering Data window opens, right-click New Material from the tree viewand rename it to Plate.5.Enter 2.5e06 for Young's Modulus, 0.35 for Poisson's Ratio and 2550 for Density.Note that the other properties are not used for this simulation, and that the units for these values are implied by the global units in Simulation.6.Click the Simulation tab near the top of the Workbench window to return to thesimulation.Basic Analysis SettingsThe ANSYS Multi-field simulation is a transient mechanical analysis, with a timestep of 0.1 s and a time duration of 5 s.1.Select New Analysis > Flexible Dynamic from the toolbar.2.Select Analysis Settings from the tree view and in the Details view below, set Auto TimeStepping to Off.3.Set Time Step to 0.1.4.Under Tabular Data at the bottom right of the window, set End Time to5.0 for theSteps = 1 setting.Inserting LoadsLoads are applied to an FEA analysis as the equivalent of boundary conditions in ANSYS CFX. In this section, you will set a fixed support, a fluid-solid interface, and a pressure load. Fixed SupportThe fixed support is required to hold the bottom of the thin plate in place.1.Right-click Flexible Dynamic in the tree and select Insert> Fixed Support from theshortcut menu.2.Rotate the geometry using the Rotate button so that the bottom (low-y) face of thesolid is visible, then select Face and click the low-y face.That face should be highlighted to indicate selection.3.Ensure Fixed Support is selected in the Outline view, then, in the Details view, selectGeometry and click 1 Face to make the Apply button appear (if necessary). Click Apply to set the fixed support.Fluid-Solid InterfaceIt is necessary to define the region in the solid that defines the interface between the fluid in CFX and the solid in ANSYS. Data is exchanged across this interface during the execution of the simulation.1.Right-click Flexible Dynamic in the tree and select Insert > Fluid Solid Interface fromthe shortcut menu.ing the same face-selection procedure described earlier, select the three faces of thegeometry that form the interface between the solid and the fluid (low-x, high-y and high-x faces) by holding down <Ctrl> to select multiple faces. Note that this load is automatically given an interface number of 1.Pressure LoadThe pressure load provides the initial additional pressure of 100 [Pa] for the first 0.5 seconds of the simulation. It is defined using a step function.1.Right-click Flexible Dynamic in the tree and select Insert > Pressure from the shortcutmenu.2.Select the low-x face for Geometry.3.In the Details view, select Magnitude, and using the arrow that appears, select Tabular(Time).4.Under Tabular Data, set a pressure of 100 in the table row corresponding to a time of 0.Note: The units for time and pressure in this table are the global units of [s]and [Pa], respectively.5.You now need to add two new rows to the table. This can be done by typing the new timeand pressure data into the empty row at the bottom of the table, and Simulation will automatically re-order the table in order of time value. Enter a pressure of 100 for a time value of 0.499, and a pressure of 0 for a time value of 0.5.This gives a step function for pressure that can be seen in the chart to the left of the table. Writing the ANSYS Input FileThe Simulation settings are now complete. An ANSYS Multi-field run cannot be launched from within Simulation, so the Solve buttons cannot be used to obtain a solution.1.Instead, highlight Solution in the tree, select Tools> Write ANSYS Input File andchoose to write the solution setup to the file OscillatingPlate.inp.2.The mesh is automatically generated as part of this process. If you want to examine it,select Mesh from the tree.3.Save the Simulation database, use the tab near the top of the Workbench window to returnto the Oscillating Plate [Project] tab, and save the project itself.4.Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-PreThis section describes the step-by-step definition of the flow physics and ANSYS Multi-field settings in ANSYS CFX-Pre.Playing a Session FileIf you want to skip past these instructions and to have ANSYS CFX-Pre set up the simulation automatically, you can select Session > Play Tutorial from the menu in ANSYS CFX-Pre, then run the session file: OscillatingPlate.pre. After you have played the session file as described in earlier tutorials under Playing the Session File and Starting ANSYS CFX-Solver Manager, proceed to Obtaining a Solution using ANSYS CFX-Solver Manager.Creating a New Simulation1.Start ANSYS CFX-Pre.2.Select File > New Simulation.3.Select General and click OK.4.Select File > Save Simulation As.5.Under File name, type OscillatingPlate.6.Click Save.Importing the Mesh1.Right-click Mesh and select Import Mesh.2.Select the provided mesh file, OscillatingPlate.gtm and click Open.Note:The file that was just created in Simulation, OscillatingPlate.inp, will be used as an input file for the ANSYS Solver.Setting the Simulation TypeA transient ANSYS Multi-field run executes as a series of timesteps. The Simulation Type tab is used both to enable an ANSYS Multi-field run and to specify the time-related settings for it (in the External Solver Coupling settings). The ANSYS input file is read by ANSYS CFX-Pre so that it knows which Fluid Solid Interfaces are available.Once the timesteps and time duration are specified for the ANSYS Multi-field run (coupling run), ANSYS CFX automatically picks up these settings and it is not possible to set the timestep and time duration independently. Hence the only option available for Time Duration is Coupling Time Duration, and similarly for the related settings Time Step and Initial Time.1. ClickSimulation Type .2. Apply the following settings3. Click OK .Note :You may see a physics validation message related to the difference in the units used in ANSYS CFX-Pre and the units contained within the ANSYS input file. While it is important to review the units used in any simulation, you should be aware that, in this specific case, the message is not crucial as it is related to temperature units and there is no heat transfer in this case. Therefore, this specific tutorial will not be affected by the physics message. Creating the FluidA custom fluid is created with user-specified properties. 1. Click Material.2. Set the name of the new material to Fluid.3. Apply the following settings4.Click OK.Creating the DomainIn order to allow the ANSYS Solver to communicate mesh displacements to the CFX Solver, mesh motion must be activated in CFX.1.Right click Simulation in the Outline tree view and ensure that Automatic DefaultDomain is selected. A domain named Default Domain should now appear under the Simulation branch.2.Double click Default Domain and apply the following settings3.Click OK.Creating the Boundary ConditionsIn addition to the symmetry conditions, another type of boundary condition corresponding with the interaction between the solid and the fluid is required in this tutorial.Fluid Solid External BoundaryThe interface between ANSYS and CFX is defined as an external boundary in CFX that has its mesh displacement being defined by the ANSYS Multi-field coupling process.When an ANSYS Multi-field specification is being made in ANSYS CFX-Pre, it is necessary to provide the name and number of the matching Fluid Solid Interface that was created in Simulation. Since the interface number in Simulation was 1, the name in question is FSIN_1. (If the interface number had been 2, then the name would have been FSIN_2, and so on.)On this boundary, CFX will send ANSYS the forces on the interface, and ANSYS will send back the total mesh displacement it calculates given the forces passed from CFX and the other defined loads.1.Create a new boundary condition named Interface.2.Apply the following settings3.Click OK.Symmetry BoundariesSince a 2D representation of the flow field is being modeled (using a 3D mesh with one element thickness in the Z direction) symmetry boundaries will be created on the low and high Z 2D regions of the mesh.1.Create a new boundary condition named Sym1.2.Apply the following settings3.Click OK.4.Create a new boundary condition named Sym2.5.Apply the following settings6.Click OK.Setting Initial ValuesSince a transient simulation is being modeled, initial values are required for all variables.1. ClickGlobal Initialization. 2. Apply the following settings:3. Click OK .Setting Solver ControlVarious ANSYS Multi-field settings are contained under Solver Control under the External Coupling tab. Most of these settings do not need to be changed for this simulation.Within each timestep, a series of “coupling” or “stagger” iterations are performed to ensure that CFX, ANSYS and the data exchanged between the two solvers are all consistent. Within each stagger iteration, ANSYS and CFX both run once each, but which one runs first is a user-specifiable setting. In general, it is slightly more efficient to choose the solver that drives the simulation to run first. In this case, the simulation is being driven by the initial pressure applied in ANSYS, so ANSYS is set to solve before CFX within each stagger iteration.1. Click Solver Control .2. Apply the following settings:3.Click OK.Setting Output ControlThis step sets up transient results files to be written at set intervals.1.Click Output Control .2.On the Trn Results tab, create a new transient result with the default name.3.Apply the following settings to Transient Results 1:4.Click the Monitor tab.5.Select Monitor Options.6.Under Monitor Points and Expressions:7.Click Add new item and accept the default name.8.Set Option to Cartesian Coordinates.9.Set Output Variables List to Total Mesh Displacement X.10.Set Cartesian Coordinates to [0, 1, 0].11.Click OK.Writing the Solver (.def) File1.Click Write Solver File .2.If the Physics Validation Summary dialog box appears, click Yes to proceed.3.Apply the following settings4.Ensure Start Solver Manager is selected and click Save.5.If you are notified the file already exists, click Overwrite.6.This file is provided in the tutorial directory and will exist in your working folder if youhave copied it there.7.Quit ANSYS CFX-Pre, saving the simulation (.cfx) file at your discretion.5.Obtaining a Solution using ANSYS CFX-Solver ManagerThe execution of an ANSYS Multi-field simulation requires both the CFX and ANSYS solvers to be running and communicating with each other. ANSYS CFX-Solver Manager can be used to launch both solvers and to monitor the output from both.1.Ensure the Define Run dialog box is displayed.There is a new MultiField tab which contains settings specific for an ANSYS Multi-field simulation.2.On the MultiField tab, check that the ANSYS input file location is correct (the location isrecorded in the definition file but may need to be changed if you have moved files around).3.On UNIX systems, you may need to manually specify where the ANSYS installation is ifit is not in the default location. In this case, you must provide the path to the v110/ansys directory.4.Click Start Run.The run begins by some initial processing of the ANSYS Multi-field input which results in the creation of a file containing the necessary multi-field commands for ANSYS, and then the ANSYS Solver is started. The CFX Solver is then started in such a way that it knows how to communicate with the ANSYS Solver.After the run is under way, two new plots appear in ANSYS CFX-Solver Manager:ANSYS Field Solver (Structural) This plot is produced only when the solid physics is set to use large displacements or when other non-linear analyses are performed. It shows convergence of the ANSYS Solver. Full details of the quantities are described in the ANSYS user documentation. In general, the CRIT quantities are the convergence criteria for each relevant variable, and the L2 quantities represent the L2 Norm of the relevant variable. For convergence, the L2 Norm should be below the criteria. The x-axis of the plot is the cumulative iteration number for ANSYS, which does not correspond to either timesteps or stagger iterations. Several ANSYS iterations will beperformed for each timestep, depending on how quickly ANSYS converges. You will usually see a somewhat “spiky” plot, as each quantity will be unconverged at the start of each time step, and then convergence will improve.ANSYS Interface Loads (Structural)This plot shows the convergence for each quantity that is part of the data exchanged between the CFX and ANSYS Solvers. In this case, four lines appear, corresponding to two force components (FX and FY) and two displacement components (UX and UY). Since the analysis is 2D, FZ and UZ are not exchanged. Each quantity is converged when the plot shows a negative value. The x-axis of the plot corresponds to the cumulative number of stagger iterations (coupling iterations) and there are several of these for every timestep. Again, a spiky plot is expected as the quantities will not be converged at the start of a timestep.The ANSYS out file is displayed in ANSYS CFX-Solver Manager as an extra tab. Similar to the CFX out file, this is a text file recording output from ANSYS as the solution progresses.1.Click the User Points tab and watch how the top of the plate displaces as the solutiondevelops.2.When the solvers have finished and ANSYS CFX-Solver Manager puts up a dialog boxto tell you this, click Yes to post-process the results.3.If using Standalone Mode, quit ANSYS CFX-Solver Manager.6.Viewing Results in ANSYS CFX-PostFor an ANSYS Multi-field run, both the CFX and ANSYS results files will be opened up in ANSYS CFX-Post by default if ANSYS CFX-Post is started from a finished run in ANSYS CFX-Solver Manager.Plotting Results on the SolidWhen ANSYS CFX-Post reads an ANSYS results file, all the ANSYS variables are available to plot on the solid, including stresses and strains. The mesh regions available for plots by default are limited to the full boundary of the solid, plus certain named regions which are automatically created when particular types of load are added in Simulation. For example, any Fluid Solid Interface will have a corresponding mesh region with a name such as FSIN 1. In this case, there is also a named region corresponding to the location of the fixed support, but in general pressure loads do not result in a named region.You can add extra mesh regions for plotting by creating named selections in Simulation - see the Simulation product documentation for more details. Note that the named selection must have a name which contains only English letters, numbers and underscores for the named mesh region to be successfully created.Note that when ANSYS CFX-Post loads an ANSYS results file, the true global range for each variable is not automatically calculated, as this would add a substantial amount of time onto how long it takes to load such a file (you can turn on this calculation using Edit > Options and using the Pre-calculate variable global ranges setting under CFX-Post> Files). When the global range is first used for plotting a variable, it is calculated as the range within the current timestep. As subsequent timesteps are loaded into ANSYS CFX-Post, the Global Range is extended each time variable values are found outside the previous Global Range.1.Turn on the visibility of Boundary ANSYS (under ANSYS > Domain ANSYS).2.Right-click a blank area in the viewer and select Predefined Camera > View Towards-Z. Zoom into the plate to see it clearly.3.Apply the following settings to Boundary ANSYS:4.Click Apply.5.Select Tools> Timestep Selector from the task bar to open the Timestep Selectordialog box. Notice that a separate list of timesteps is available for each results file loaded, although for this case the lists are the same. By default, Sync Cases is set to By Time Value which means that each time you change the timestep for one results file, ANSYS CFX-Post will automatically load the results corresponding to the same time value for all other results files.6.Set Match to Nearest Available.7.Change to a time value of 1 [s] and click Apply.The corresponding transient results are loaded and you can see the mesh move in both the CFX and ANSYS regions.1.Clear the visibility check box of Boundary ANSYS.2.Create a contour plot, set Locations to Boundary ANSYS and Sym2, and set Variable toTotal Mesh Displacement. Click Apply.ing the timestep selector, load time value 1.1 [s] (which is where the maximum totalmesh displacement occurs).This verifies that the contours of Total Mesh Displacement are continuous through both the ANSYS and CFX regions.Many FSI cases will have only relatively small mesh displacements, which can make visualization of the mesh displacement difficult. ANSYS CFX-Post allows you to visually magnify the mesh deformation for ease of viewing such displacements. Although it is not strictly necessary for this case, which has mesh displacements which are easily visible unmagnified, this is illustrated by the next few instructions.ing the timestep selector, load time value 0.1 [s] (which has a much smaller meshdisplacement than the currently loaded timestep).2.Place the mouse over somewhere in the viewer where the background color is showing.Right-click and select Deformation > Auto. Notice that the mesh displacements are now exaggerated. The Auto setting is calculated to make the largest mesh displacement a fixed percentage of the domain size.3.To return the deformations to their true scale, right-click and select Deformation > TrueScale.Creating an Animationing the Timestep Selector dialog box, ensure the time value of 0.1 [s] is loaded.2.Clear the visibility check box of Contour 1.3.Turn on the visibility of Sym2.4.Apply the following settings to Sym2.5.Click Apply.6.Create a vector plot, set Locations to Sym1 and leave Variable set to Velocity. SetColor to be Constant and choose black. Click Apply.7.Select the visibility check box of Boundary ANSYS, and set Color to a constant blue.8.Click Animation .The Animation dialog box appears.9.Select Keyframe Animation.10.In the Animation dialog box:a.Click New to create KeyframeNo1.b.Highlight KeyframeNo1, then change # of Frames to 48.c.Load the last timestep (50) using the timestep selector.d.Click New to create KeyframeNo2.The # of Frames parameter has no effect for the last keyframe, so leave it at thedefault value.e.Select Save MPEG.f.Click Browse next to the MPEG file data box to set a path and file name forthe MPEG file.If the file path is not given, the file will be saved in the directory from whichANSYS CFX-Post was launched.g.Click Save.The MPEG file name (including path) will be set, but the MPEG will not becreated yet.h.Frame 1 is not loaded (The loaded frame is shown in the middle of theAnimation dialog box, beside F:). Click To Beginning to load it then waita few seconds for the frame to load.i.Click Play the animation .The MPEG will be created as the animation proceeds. This will be slow, since atimestep must be loaded and objects must be created for each frame. To view theMPEG file, you need to use a viewer that supports the MPEG format.11.When you have finished, exit ANSYS CFX-Post.12.。
基于Ansys12.0的Workbench血管流固耦合例子
承蒙“水若无痕”版主信任,我把我做过的血管流固耦合以小火车的形式发出来,与大家共同讨论学习。
首先概述一下:1:血管建的比较短,这样单元会少些,调试比较方便,但效果可能没官方视频的好看,但原理步骤没错就行2:原来流体为自己建的Blood,为可压缩流体,我自己试了下,用Water也可以,所以就简化了建新材料这一步3:我用的是Ansys12.0版本,我建的模型保存成多种格式,欢迎大家下载做着玩玩2009-12-14 13:07:11 上传下载附件(36.54 KB)geometry.rar(31.03 KB, 下载次数: 1275)A:首先打开Ansys Workbench 拖出各个模块,连接关系如下图:2009-12-14 14:16:45 上传B:可双击Engineering Data编辑材料,因为进入Ansys结构部分设置时候要用到血管材料,默认是结构钢,太硬了,所以要自己重新设材料,这点很重要!C:单击我画的第一个大圈(左列),右击我画的第二个大圈(左列)——Duplicate,复制一个同种材料。
在复制的材料后面框里有链接,这个链接是链接到材料库的,右键把链接打断,我是这么做的。
如果双击Engineering Data看不到我图中的界面的话,可以在主菜单中——View——Properties以及接下来的两个选项给选上就可以看见了。
改好材料后可以把对新材料重命名,用右键。
然后再主菜单上点击update project,材料就可以在材料设置里用了。
D:更改密度,杨氏模量,和泊松比。
重命名。
上一步给出了怎么保存修改结果E:这个是Ansys model部分,这里是不需要用到流体部分的,不需要删掉,只要右键对它Suppress就可以了。
单击Pipe,可以在下面设置材料:对血管加约束,可以把两端完全约束,对称面部分在垂直面内不可运动,也可以所有平面部分都完全约束,这个没关系,都可以计算。
G:右键插入流固耦合面,当然就是流体固体接触面了本帖最后由panxu09 于2009-12-14 14:02 编辑H:注意还要给出要Ansys求解什么量,我这里给出了要求Von mises和全部变形,然后要保存*.inp文件,这个就是进行流固耦合的Ansys部分求解文件,保存时如果Tools菜单下保存按钮不可用可以点一下下面的——solution,当然做这个之前保证各部分设好了:1)只有血管壁模型有效;2)划分网格,这个网格与流体部分是独立的,没有形状要求;3)施加约束;4)定义流固耦合面;5)设置Ansys求解项;最后保存就好了I:打开CFX,由于是在Workbench下运行的,所以模型都是直接自动导入的(不包括Ansys 结构文件),下图是我设置好的概图::Analysis Type的设置,看我在图中画的圈,仔细设置,一般不会有错。
ansys14workbench血管流固耦合分析实例
Ansys14 workbench血管流固耦合实例根据收集的一些资料,进行学习后,试着做了这个ansys14workbench的血管流固耦合模拟,感觉能够耦合上,仅是熟悉流固耦合分析过程,不一定正确,仅供参考,希望大家多讨论。
谢谢!1、先在proe5中建立血管与血液流体区的模型(两者装配起来),或者直接在workbench中建模。
图1 模型图2、新建工程。
在workbench中toolbox中选custom system,双击FSI: FluidFlow(fluent)->static structure.图2 计算工程3、修改engineering data,因为系统缺省材料是钢,需要构建血管材料,如图3所示。
先复制steel,而后修改密度1150kg/m3,杨氏模量4.5e8Pa,泊松比0.3,重新命名,最后在主菜单中点击“update project”保存.图3 修改工程材料4、模型导入,进入gemetry模块,import外部模型文件。
图4 模型导入图5、进入FLUENT网格划分。
在workbench工程视图中的Mesh上点击右键,选择Edit…,如图5所示,进入网格划分meshing界面,如图6所示。
我们这里需要去掉血管部分,只保留血液几何。
图5 进入网格划分图6 禁用血管模型6、设置网格方法。
默认是采用ICEM CFD进行网格划分,设置方式如图7所示,截面圆弧边分为12份,纵截面的边均分为10份,网格结果如图8所示。
另外在这个界面中要设置边界的几何面,如inlet、outlet、symmetry图7 设置网格划分方式图8 最终出网格图9 边界几何7、进入fluent图10 进入fluent关闭mesh,回到fluent工程窗口,右键点击setup,选择edit…,进入fluent。
这里设置瞬态计算,流体为血液(密度1060,动力粘度0.004pas),入口压力波动(用profile输入),出口压力0Pa,采用k-e湍流模型。
基于ANSYSWorkbench的流固耦合计算研究及工程应用
基于ANSYSWorkbench的流固耦合计算研究及工程应用基于ANSYS Workbench的流固耦合计算研究及工程应用引言:随着工程技术的不断发展,流固耦合计算在众多领域得到了广泛的应用。
流固耦合计算是指流体力学和固体力学的耦合分析,用于研究流体与固体之间的相互作用和影响。
ANSYS Workbench是一款广泛使用的工程仿真软件,它提供了强大的流固耦合计算功能,被广泛应用于多个领域,如汽车工程、航空航天工程、能源领域等。
流固耦合计算的基本原理:流固耦合计算是根据连续介质力学原理进行的,可以将流体和固体看作连续介质,通过数值模拟方法求解它们之间的相互作用。
在ANSYS Workbench中,流固耦合计算通常包括以下三个步骤:网格划分、物理模型设定和求解。
第一步是网格划分,即将流体和固体分别划分成离散的网格,其中流体部分的网格通常采用流体网格生成软件生成,固体部分则使用固体网格生成软件生成。
网格划分的质量对计算结果的准确性和稳定性起着至关重要的作用。
第二步是物理模型设定,根据具体的工程问题,设定相应的流体和固体模型。
在ANSYS Workbench中,流体模型通常包括流体的黏性、密度、速度分布等参数,固体模型则包括材料的弹性模量、泊松比等参数。
在设定模型时,还需要考虑流体和固体之间的边界条件,如流体入口和出口的速度、固体边界的约束条件等。
第三步是求解,通过建立数学模型和设置计算参数,利用数值方法求解流体和固体的相互作用。
用户可以根据需要选择求解器和求解方法,ANSYS Workbench提供了多个求解器选项,例如基于有限元的求解器和基于有限体积的求解器。
求解过程中,可以监控计算结果的收敛情况,将其与实际情况进行比较,以验证模拟结果的准确性和可靠性。
工程应用实例:基于ANSYS Workbench的流固耦合计算在许多工程领域都有广泛的应用。
以下以汽车空气动力学为例进行说明。
在汽车设计中,空气动力学是一个非常重要的研究方向。
4-ANSYS流固耦合应用案例
2. 3.
4. 5.
模拟中固体问题的描述—记录ANSYS输入文件
现在,模拟设置已经完成。在Simulation中ANSYS MultiField并不运行,因此用求解器按钮并不能得到结果 1. 然而,在目录树中的高亮Solution中,选择Tools > Write ANSYS Input File,把结果写进文件OscillatingPlate.inp 2. 网格是自动生成的,如果想检查,可以在目录树中选择 Mesh 3. 保存Simulation数据,返回Oscillating Plate [Project]面 板,存储Project
确选择是 Start Solver Manager ,点击 Save 如果发现文件已经存在,点击Overwrite 退出ANSYS CFX-Pre,自己决定是否存储模拟文件 (.cfx)
通过 ANSYS CFX-Solver Manager 获 得结果
ANSYS Multifield simulation的运行需要CFX和ANSYS联 合求解 确认Define Run 对话框出现 在 MultiField 键, 确认 ANSYS 输入文件地址是正确的 确认ANSYS Install Root 设置是正确的 点击Start Run
3.
点击OK
设置流体问题、在ANSYS CFX-Pre中设置ANSYS MultiField
设置求解器控制 1. 点击Solver Control 2. 应用以下设置
3. 点击OK
设置流体问题、在ANSYS CFX-Pre中设置ANSYS MultiField
设置输出控制 1. 点击Output Control 2. 点击 Trn Results 键 3. 创建一个瞬态结果,用默认的文件名 4. 对 Transient Results 1应用以下设置
ANSYS Workbench LS-DYNA流固耦合方法应用
ANSYS Workbench LS-DYNA流固耦合方法应用贮液容器(含塑料瓶)广泛应用于化工、食品包装、储运等领域。
由于容器(含塑料瓶)在运输和使用过程中常常会因为跌落或碰撞冲击导致破损而造成损失和污染,因此,研究贮液容器(含塑料瓶)在跌落碰撞过程中的力学行为,对认识容器(含塑料瓶)跌落碰撞损伤机理,优化容器(含塑料瓶)结构,提高其安全性和使用价值意义重大。
.贮液容器的跌落是一个典型的流固耦合问题,可采用LS-DYNA的ALE算法(任意拉格朗日欧拉算法)进行模拟。
下面以一个封闭的装水水箱为例,介绍ANSYS Workbench LS-DYNA分析此类型跌落问题的方法和步骤:1.建立几何模型调用ANSYS Workbench中的LS-DYNA模块,如图1所示。
然后使用ANSYS的CAD工具DesignModeler建立几何模型,如图2所示。
图1 调用Workbench LS-DYNA 图2 DesignModeler中建立几何模型2.生成K文件双击进入“Model”后,对模型进行网格划分、边界条件设置、速度设置和分析设置,如图3所示。
设置完成后点击“solve”求解,生成K文件,如图4所示。
图3 调用Workbench LS-DYNA 图4 DesignModeler中建立几何模型3.编辑K文件通过Workbench LS-DYNA生成的K文件中关键字是不够完善的,并不能直接递交LS-DYNA求解器进行求解。
K文件中所欠缺的一些关键字,在流固耦合分析中是必不可少的,如空材料的定义、跟随坐标系的定义、空白域的定义以及状态方程的定义等。
3.1 重要关键字释义(1)LS-DYNA程序提供了运动的多物质ALE网格,可以方便地为多物质ALE算法定义跟随坐标系*ALE_REFERENCE_SYSTEM_NODE*ALE_REFERENCE_SYSTEM_GROUP(2)定义空材料和状态方程的关键字*MAT_NULL *EOS(3)初始化空白域的关键字*INITIAL_VOID_PART(4)结构和流体之间耦合的关键字*CONSTRAINED_LAGRANGE_IN_SOLID(5)单元算法定义(单点积分的单物质加空白材料)的关键字*SECTION_SOLID_ALE ELF0RM=12(6)在重力作用下产生下落的关键字*LOAD_BODY……3.2关键字编辑方法关键字的编辑或修改一般有两种方法,一种是直接在ls-prepost中对关键字进行编辑设置,如图5所示;另一种是在文本编辑器UltraEdit中对关键字进行编辑或修改,如图6所示。
ansys workbench的管道热流固耦合案例
图 3 fill 命令选取内部面
图 4 入口出口命名
选定所有外部壁面定义为 wall。最后定义耦合面,定义流固交界面流体一侧的三个面为 interfacef2s,定义流固交界面固体一侧的三个面为 interfaces2f,面的选取如图 5 所示。
图 5 流体域和固体域边界图示
四、网格划分
双击 A3 打开 Meshing 模块,网格划分主要有三部分,选定固体域定义网格方法为 Automatic Method,选定流体域定义网格方法同样为 Automatic Method,最后,在流体域中 选择与固体域相交的三个面定义膨胀层 Inflation。为了使网格更合适质量更好,在 detail of ‘mesh’面板中定义相应参数,其中定义 Relevance 为 100,Relevance Center 为 fine,Smoothing 为 High,Span Angle Center 为 Fine,其余选项均保持默认即可。单击 Generate Mesh 生成网 格,得到节点数为 64628,网格数量为 190857。观察网格质量,网格质量总体均在 0.5 以上, 基本可以认为网格质量良好。
七、变形及热应力分析
双击 C5 进入静态结构计算模块右键单击 Imported Load 打开右键菜单后单击 Imported Load 导入固体域的温度。右键单击 Static Structural—Insert—Fixed Support 给三个入口端面
施加固定约束。完成边界条件的加载。右键单击 Solution 插入总变形和应力。单击 solve 进 行求解。
图 2 数据传送关系
在 SolidWorks 中 建 立 相 应 模 型 , 并 转 化 成 ansys 适 用 的 x_t 格 式 。 双 击 A2 打 开 DesignModeler,导入相应模型。
16基于ANSYSWorkbench的风力机流固耦合分析
域: 一个是旋转域 , 另一个是静止域 。 旋转域表示与 风机一起旋转的有旋空气 , 其转速与风轮转速相同 。 静止域表示风机 周 围 的 空 气 , 其 速 度 即 为 风 速。 旋 转域用内部挖去风 机 形 状 的 圆 柱 来 表 示 , 圆柱内部 挖去的型腔为 风 机 的 外 形 。 静 止 域 用 长 方 体 表 示 , 内部挖去旋转域 , 见图 1。 ) 从风场的流速图 ( 图3 可以直 观 地 看 出 风 场 的 在叶尖处最大 , 叶根处 流速从叶根到叶尖逐渐增加 , 最小 。
限元分析能为叶片 的 优 化 设 计 、 改型及研发提供直 观准确的数据信息 。 随着 C 叶片的流固耦合可 A E 软件技术的发展 , 以在 A N S Y S W o r k b e n c h 中实现 。 最新的 W o r k b e n c h 利用该功能可 1 2 在工程页 引 入 了 工 程 图 解 的 概 念 , 以将一个复杂的包含多场分析的物理问题 , 通过系统 间的连接实现其相关性 。 这种全新的界面使得用户 与软件的交互更加方便 , 操作更 加 简 单 。 同 时 , A N -
对固体风机叶片进行模态分析进入模态分析数据传递对固体风机进行结构静力分析抑制风场对固体风机进行网格划分进入staticstructure压力传递对风场进行cfd分析抑制风机部分对风场网格划分风机模型包括风场图2流固耦合分析流程fig2processoffluidsolidcouplinganalysis从风场的流速图图3可以直观地看出风场的流速从叶根到叶尖逐渐增加在叶尖处最大叶根处最小
: ; ; ;m K e w o r d s w i n d t u r b i n e b l a d e f i n i t e e l e m e n t f l u i d s o l i d c o u l i n a n a l s i s o d a l a n a l s i s - p g y y y 它的设 叶片是风力发 电 机 组 的 关 键 部 件 之 一 , 计直接影响到风 能 的 利 用 效 率 。 因 此 , 对于叶片的 气动外形设计显得尤为重要 。 对叶片及流场进行有
ANSYS原版流固耦合计算实例
Oscillating Plate with Two-Way Fluid-Structure InteractionANSYS-ChinaIntroductionThis tutorial includes:« Features« Overview of the Problem to Solve«Setti ng up the Solid Physics in Simulatio n (ANSYS Workbe nch)«Setti ng up the Fluid Physics and ANSYS Multi-field Setti ngs in ANSYS CFX-Pre* Obta ining a Solution using ANSYS CFX-Solver Ma nager* Viewi ng Results in ANSYS CFX-PostIf this is the first tutorial you are working with, it is important to review the following topics before begi nning:« Sett ing the Worki ng Directory* Cha nging the Display ColorsUni ess you pla n on running a sessi on file, you should copy the sample files used in this tutorial from the in stallati on folder for your software (<CFXROOT>/examples/) to your work ing directory. This preve nts you from overwriti ng source files provided with your in stallatio n. If you pla n to use a sessi on file, please refer to Play ing a Sessi on File.Sample files refere need by this tutorial in clude:* Oscillati ngPlate.pre* Oscillati ngPlate.agdb* Oscillati ngPlate.gtm* Oscillati ngPlate.i np1. FeaturesIn this tutorial you will lear n about:* Moving mesh* Fluid-solid in teract ion (in cludi ng modeli ng solid deformati on using ANSYS)* Running an ANSYS Multi-field (MFX) simulatio n* Post-process ing two results files simulta neously.2. Overview of the Problem to SolveThis tutorial uses a simple oscillat ing plate example to dem on strate how to set up and run a simulation involving two-way Fluid-Structure Interaction, where the fluid physics is solved in ANSYS CFX and the solid physics is solved in the FEA package ANSYS. Coupling between the two solvers is required throughout the soluti on to model the in teract ion betwee n fluid and solid as time progresses, and the framework for the coupli ng is provided by the ANSYS Multi-field solver, using the MFX setup.The geometry con sists of a 2D closed cavity. A thin plate is an chored to the bottom of the cavity as show n below:An in itial pressure of 100 Pa is applied to one side of the thin plate for 0.5 sec onds in order to distort it. Once this pressure is released, the plate oscillates backwards and forwards as it attempts to regain its equilibrium (vertical) position. The surrounding fluid damps the oscillations, which therefore have an amplitude that decreases in time. The CFX Solver calculates how the fluid resp onds to the moti on of the plate, and the ANSYS Solver calculates how the plate deforms as a result of both the in itial applied pressure and the pressure result ing from the prese nee of the fluid. Coupli ng betwee n the two solvers is required si nee the solid deformati on affects the fluid soluti on, and the fluid solution affects the solid deformation.The tutorial describes the setup and execution of the calculation including the setup of the solid physics in Simulati on (withi n ANSYS Workbe nch) and the setup of the fluid physics and ANSYS Multi-field sett ings in ANSYS CFX-Pre. If you do n ot have ANSYS Workbe nch, the n you can use the provided ANSYS in put file to avoid the n eed for Simulatio n.3. Setting up the Solid Physics in Simulation (ANSYS Workbench)This secti on describes the step-by-step defi niti on of the solid physics in Simulati on with in ANSYS Workbe nch that will result in the creation of an ANSYS in put file Oscillati ngPlate.i np. If you prefer, you can in stead use the provided Oscillati ngPlate.i np file and continue from Sett ing up the Fluid Physics and ANSYS Multi-field Setti ngs in ANSYS CFX-Pre.Creating a New Simulatio n1. If required, lau nch ANSYS Workbe nch.2. Click Empty Project. The Project page appears displaying an unsaved project.3. Select File > Save or click Save butt on.4. If required, set the path location to a different folder. The default location is your workingdirectory. However, if you have a specific folder that you want to use to store files createdduring this tutorial, change the path.5. Un der File name, type Oscillat in gPlate.6. Click Save.7. Under Link to Geometry File on the left hand task bar click Browse. Select the provided fileOscillatingPlate.agdb and click Open .8. Make sure that OscillatingPlate.agdb is highlighted and click New simulation from the left-hand taskbar.Creati ng the Solid Material1. When Simulatio n ope ns, expa nd Geometry in the project tree at the left hand side of theSimulatio n win dow.2. Select Solid, and in the Details view below, select Material .3. Use the arrow that appears next to the material name Structural Steel to select NewMaterial .4. When the Engineering Data window ope ns, right-click New Material from the tree viewand ren ame it to Plate.-OlCdfatii'ngFLHr X_j| |2|4 PlMft□ %■ ShudijMl 咅 W浒P 窃A H - 5*np (n?d 二 j L OAd HrftC#Mh& IO]1PxopE 冲1 Iwmai 匚Cl WAn-TLLi专RCilM HiMi!卫E >leot r mnanEliL Add-'Aemove iPiaperiieRiFeme丄.1Fl ■任耐Q OlhtH m5. Enter 2.5e06 for Young's Modulus , 0.35 for Poisson's Ratio and 2550 for Density .Note that the other properties are not used for this simulati on, and that the un its for these values are implied by the global un its in Simulati on.6. Click the Simulation tab near the top of the Workbench window to return to the simulatio n. Basic An alysis Sett ingsThe ANSYS Multi-field simulation is a transient mechanical analysis, with a timestep of 0.1 s and a time duration of 5 s.1. Select New Analysis > Flexible Dynamic from the toolbar.2. Select An alysis Setti ngs from the tree view and in the Details view below, set Auto TimeStepping to Off. 3. Set Time Step to 0.1.OE ngrie^ii^ig D-al-s-]-占 ClgtLH H4. Under Tabular Data at the bottom right of the window, set End Time to5.0 for the Steps =1 sett in g.Inserting LoadsLoads are applied to an FEA an alysis as the equivale nt of boun dary con diti ons in ANSYS CFX. In this sect ion, you will set a fixed support, a fluid-solid in terface, and a pressure load.Fixed SupportThe fixed support is required to hold the bottom of the thin plate in place.1. Right-click Flexible Dynamic in the tree and select Insert > Fixed Support from the shortcutmenu.2. Rotate the geometry using the Rotate butt on so that the bottom (low-y) face of thesolid is visible, then select Face 囲and click the low-y face.That face should be highlighted to in dicate selecti on.3. Ensure Fixed Support is selected in the Outline view, then, in the Details view, selectGeometry and click 1 Face to make the Apply butt on appear (if n ecessary). Click Apply to set the fixed support.Fluid-Solid InterfaceIt is n ecessary to defi ne the regi on in the solid that defi nes the in terface betwee n the fluid in CFX and the solid in ANSYS. Data is excha nged across this in terface duri ng the executi on of the simulatio n.1. Right-click Flexible Dynamic in the tree and select Insert > Fluid Solid Interface fromthe shortcut menu.2. Using the same face-selection procedure described earlier, select the three faces of thegeometry that form the in terface betwee n the solid and the fluid (low-x, high-y and high-xfaces) by holding down <Ctrl> to select multiple faces. Note that this load is automaticallygive n an in terface nu mber of 1.Pressure LoadThe pressure load provides the in itial additi onal pressure of 100 [Pa] for the first 0.5 sec onds of the simulati on .It is defi ned using a step function.1. Right-click Flexible Dyn amic in the tree and select Insert > Pressure from the shortcutmenu.2. Select the low-x face for Geometry.3. In the Details view, select Magnitude , and using the arrow that appears, select Tabular(Time).4. Under Tabular Data , set a pressure of 100 in the table row corresponding to a time of 0.Note: The units for time and pressure in this table are the global units of [s] and [Pa], respectively.5. You now n eed to add two new rows to the table. This can be done by typi ng the new timeand pressure data into the empty row at the bottom of the table, and Simulation willautomatically re-order the table in order of time value. Enter a pressure of 100 for a timevalue of 0.499, and a pressure of 0 for a time value of 0.5.This gives a step function for pressure that can be see n in the chart to the left of the table.Writi ng the ANSYS In put FileThe Simulation settings are now complete. An ANSYS Multi-field run cannot be launched from with in Simulati on, so the Solve butt ons cannot be used to obta in a soluti on.1. In stead, highlight Solution in the tree, select Tools > Write ANSYS Input File and choose towrite the solution setup to the file OscillatingPlate.inp.2. The mesh is automatically gen erated as part of this process. If you want to exam ine it, selectMesh from the tree.3. Save the Simulation database, use the tab near the top of the Workbench window to return tothe Oscillating Plate [Project] tab, and save the project itself.4. Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-PreThis section describes the step-by-step definition of the flow physics and ANSYS Multi-field settings in ANSYS CFX-Pre.Playing a Session FileIf you want to skip past these instructions and to have ANSYS CFX-Pre set up the simulationautomatically, you can select Session> Play Tutorial from the menu in ANSYS CFX-Pre, then run the session file: OscillatingPlate.pre. After you have played the session file as described in earlier tutorials under Playing the Session File and Starting ANSYS CFX-Solver Manager, proceed to Obtaining a Solution using ANSYS CFX-Solver Manager.Creating a New Simulation1. Start ANSYS CFX-Pre.2. Select File > New Simulation .3. Select General and click OK.4. Select File > Save Simulation As.5. Under File name, type OscillatingPlate.6. Click Save.Importing the Mesh1. Right-click Mesh and select Import Mesh .2. Select the provided mesh file, OscillatingPlate.gtm and click Open.Note:The file that was just created in Simulation, OscillatingPlate.inp, will be used as an input file for the ANSYS Solver.Setting the Simulation TypeA transient ANSYS Multi-field run executes as a series of timesteps. The Simulation Type tab is used both to enable an ANSYS Multi-field run and to specify the time-related settings for it (in the External Solver Coupling settings). The ANSYS input file is read by ANSYS CFX-Pre so that it knows which Fluid Solid Interfaces are available.Once the timesteps and time duration are specified for the ANSYS Multi-field run (coupling run), ANSYS CFX automatically picks up these settings and it is not possible to set the timestep and time duration independently. Hence the only option available for Time Duration is Coupling Time Duration, and similarly for the related settings Time Step and Initial Time.2. Apply the follow ing sett ingsTab Setting ValueBasic Settings External Solver Coupling > Option ANSYS MultiField External Solver Coupling > ANSYS Input FileOscillatingPlate.inp[a]Coupling Time Control > Coupling Time Duration > TotalTime5 [s]Coupling Time Control > Coupling Time Steps > Option TimestepsCoupling Time Control > Coupling Time Steps > Timesteps 0.1 [s]Simulation Type > Option TransientSimulation Type > Time Duration > Option Coupling Time Duration Simulation Type > Time Steps > Option Coupling Time Steps Simulation Type > Initial Time > Option Coupling Initial Time呵This file is located in your working directory.3. Click OK.Note:You may see a physics validation message related to the differenee in the units used in ANSYS CFX-Pre and the units con tai ned withi n the ANSYS in put file. While it is importa nt to review the units used in any simulation, you should be aware that, in this specific case, the message is not crucial as it is related to temperature un its and there is no heat tran sfer in this case. Therefore, this specific tutorial will not be affected by the physics message.Creat ing the FluidA custom fluid is created with user-specified properties.1. Click Material 因.2. Set the n ame of the new material to Fluid.3. Apply the follow ing sett ingsTab Setting ValueBasic Settings Option Pure Substance Thermodynamic State (Selected) Thermodynamic State > Thermodynamic State LiquidMaterial Properties Equation of State > Molar Mass 1 [kg kmol A-1] 1. Click Simulation Type4. Click OK.Creat ing the Doma inIn order to allow the ANSYS Solver to com muni cate mesh displaceme nts to the CFX Solver, mesh moti on must be activated in CFX.1. Right click Simulation in the Outline tree view and ensure that Automatic Default Domain isselected. A domain named Default Domain should now appear under the Simulati on bran ch.2. Double click Default Doma in and apply the followi ng sett ings3. Click OK.Creati ng the Boun dary Con diti onsIn addition to the symmetry conditions, another type of boundary condition corresponding with the in teract ion betwee n the solid and the fluid is required in this tutorial.Fluid Solid Exter nal Boun daryThe in terface betwee n ANSYS and CFX is defi ned as an exter nal boun dary in CFX that has its mesh displacement being defined by the ANSYS Multi-field coupling process.When an ANSYS Multi-field specification is being made in ANSYS CFX-Pre, it is necessary to provide the name and number of the matching Fluid Solid Interface that was created in Simulati on. Since the in terface nu mber in Simulati on was 1, the n ame in questi on is FSIN_1. (If the in terface nu mber had bee n 2, the n the n ame would have bee n FSIN_2, and so on.)On this bou ndary, CFX will se nd ANSYS the forces on the in terface, and ANSYS will sendback the total mesh displacement it calculates given the forces passed from CFX and the other defi ned loads.1. Create a new boun dary con diti on n amed In terface.2. Apply the follow ing sett ings3. Click OK.Symmetry Boun dariesSince a 2D representation of the flow field is being modeled (using a 3D mesh with one eleme nt thick ness in the Z direct ion) symmetry boun daries will be created on the low and high Z 2D regi ons of the mesh.1. Create a new boun dary con diti on n amed Sym1.2. Apply the follow ing sett ings3. Click OK.4. Create a new boun dary con diti on n amed Sym2.5. Apply the follow ing sett ings6. Click OK.Setting Initial ValuesSince a transient simulation is being modeled, initial values are required for all variables.3. Click OK .Setti ng Solver Con trolVarious ANSYS Multi-field sett ings are co ntain ed un der Solver Control un der the ExternalCoupling tab. Most of these sett ings do not n eed to be cha nged for this simulati on.With in each timestep, a series of “ coupli ng ” or “ stagger ” iterati ons are performed to ensure that CFX, ANSYS and the data excha nged betwee n the two solvers are all con siste nt. Within each stagger iteration, ANSYS and CFX both run once each, but which one runs first is a user-specifiable setting. In general, it is slightly more efficient to choose the solver that drives the simulation to run first. In this case, the simulation is being driven by the initial pressure applied inANSYS, so ANSYS is set to solve before CFX within each stagger iteratio n.1. Click Solver Control 空J .2. Apply the follow ing sett ings:1. Click Global Initialization3. Click OK.Setti ng Output Co ntrolThis step sets up transient results files to be written at set intervals.1. Click Output Control E3 .2. On the Trn Results tab, create a new transient result with the default name.3. Apply the follow ing sett ings to Tran sie nt Results 1:4. Click the Monitor tab.5. Select Monitor Options .6. Un der Monitor Points and Expressions:7. Click Add new item and accept the default name.8. Set Option to Cartesia n Coordin ates.9. Set Output Variables List to Total Mesh Displacement X.10. Set Cartesian Coordinates to [0, 1,0].11. Click OK.Writi ng the Solver (.def) File1. Click Write Solver File2. If the Physics Validation Summary dialog box appears, click Yes to proceed.3. Apply the follow ing sett ings4. Ensure Start Solver Manager is selected and click Save.5. If you are notified the file already exists, click Overwrite .6. This file is provided in the tutorial directory and will exist in your working folder if you have copied it there.7. Quit ANSYS CFX-Pre, savi ng the simulatio n ( .cfx) file at your discreti on.5. Obtaining a Solution using ANSYS CFX-Solver ManagerThe execution of an ANSYS Multi-field simulation requires both the CFX and ANSYS solvers to be running and com muni cat ing with each other. ANSYS CFX-Solver Man ager can be used to launch both solvers and to mon itor the output from both.1. En sure the Define Run dialog box is displayed.There is a new MultiField tab which contains settings specific for an ANSYS Multi-field simulatio n.2. On the MultiField tab, check that the ANSYS in put file location is correct (the location is recorded in the definitionfile but may need to be changed if you have moved files aroun d).3. On UNIX systems, you may n eed to manu ally specify where the ANSYS in stallati on is if it is not in the defaultlocati on. In this case, you must provide the path to the v110/a nsys directory.4. Click Start Run.The run begi ns by some in itial process ing of the ANSYS Multi-field in put which results in the creati on of a file containing the n ecessary multi-field comma nds for ANSYS, and the n the ANSYS Solver is started. The CFX Solver is then started in such a way that it knows how to commu ni cate with the ANSYS Solver.After the run is un der way, two new plots appear in ANSYS CFX-Solver Man ager:ANSYS Field Solver (Structural) This plot is produced only whe n the solid physics is set to use large displaceme nts or whe n other non-I in ear an alyses are performed. It shows con verge nee of the ANSYS Solver. Full details of the quantities are described in the ANSYS user documentation. In gen eral, the CRIT qua ntities are the con verge nce criteria for each releva nt variable, and the L2 qua ntities represe nt the L2 Norm of the releva nt variable. For con verge nce, the L2 Norm should be below the criteria. The x-axis of the plot is the cumulative iterati on nu mber for ANSYS, which does not correspond to either timesteps or stagger iterations. Several ANSYS iterations will be performed for each timestep, depe nding on how quickly ANSYS con verges. You will usually see a somewhat “ spiky ” plot, as each qua ntity will be uncon verged at the start of each timt e p, and the n con verge nee will improve.ANSYS Inteface Loads (Structural) This plot shows the con verge nee for each qua ntity that is part of the data exchanged between the CFX and ANSYS Solvers. In this case, four lines appear, corresp onding to two force comp onents (FX and FY) and two displaceme nt comp onents (UX and UY). Since the an alysis is 2D, FZ and UZ are not excha nged. Each qua ntity is con verged when the plot shows a negative value. The x-axis of the plot corresponds to the cumulative nu mber of stagger iterati ons (coupli ng iterati ons) and there are several of these for every timestep. Aga in, aspiky plot is expected as the qua ntities will not be con verged at the start of a timestep.The ANSYS out file is displayed in ANSYS CFX-Solver Ma nager as an extra tab. Similar to the CFX out file, this is a text file recording output from ANSYS as the solution progresses.1. Click the User Points tab and watch how the top of the plate displaces as the solution develops.2. When the solvers have fini shed and ANSYS CFX-Solver Man ager puts up a dialog box to tell you this, click Yesto post-process the results.3. If using Sta ndalo ne Mode, quit ANSYS CFX-Solver Man ager.6. Viewing Results in ANSYS CFX-PostFor an ANSYS Multi-field run, both the CFX and ANSYS results files will be opened up in ANSYS CFX-Post by default if ANSYS CFX-Post is started from a finished run in ANSYS CFX-Solver Man ager.Plotting Results on the SolidWhen ANSYS CFX-Post reads an ANSYS results file, all the ANSYS variables are available to plot on the solid, in cludi ng stresses and stra ins. The mesh regi ons available for plots by default are limited to the full boundary of the solid, plus certain named regions which are automatically created when particular types of load are added in Simulation. For example, any Fluid Solid In terface will have a corresp onding mesh regi on with a n ame such as FSIN 1. In this case, there is also a named region corresponding to the location of the fixed support, but in general pressure loads do not result in a n amed regi on.You can add extra mesh regi ons for plott ing by creat ing n amed select ions in Simulatio n - see the Simulation product documentation for more details. Note that the named selection must have a n ame which contains only En glish letters, nu mbers and un derscores for the n amed mesh regi on to be successfully created.Note that when ANSYS CFX-Post loads an ANSYS results file, the true global range for each variable is not automatically calculated, as this would add a substantial amount of time onto how long it takes to load such a file (you can turn on this calculati on using Edit > Options and using the Pre-calculate variable global ranges setting under CFX-Post > Files). When the global range is first used for plott ing a variable, it is calculated as the range with in the curre nt timestep. As subsequent timesteps are loaded into ANSYS CFX-Post, the Global Range is exte nded each time variable values are found outside the previous Global Ran ge.1. Tur n on the visibility of Bou ndary ANSYS (un der ANSYS > Domai n ANSYS).2. Right-click a blank area in the viewer and select Predefined Camera > View Towards -Z. Zoom into the plate tosee it clearly.3. Apply the followi ng sett ings to Bou ndary ANSYS:4. Click Apply.5. Select Tools > Timestep Selector from the task bar to open the Timestep Selector dialog box. Notice that aseparate list of timesteps is available for each results file loaded, although for this case the lists are the same. By default, Sync Cases is set to By Time Value which means that each time you cha nge the timestep for oneresults file, ANSYS CFX-Post will automatically load the results corresponding to the same time value for allother results files.6. Set Match to Nearest Available.7. Change to a time value of 1 [s] and click Apply.The corresp onding tran sie nt results are loaded and you can see the mesh move in both the CFX and ANSYS regio ns.1. Clear the visibility check box of Boun dary ANSYS.2. Create a con tour plot, set Locations to Boun dary ANSYS and Sym2, and set Variable to Total MeshDisplacement. Click Apply.3. Using the timestep selector, load time value 1.1 [s] (which is where the maximum total mesh displaceme ntoccurs).This verifies that the con tours of Total Mesh Displaceme nt are continu ous through both the ANSYS and CFX regio ns.Many FSI cases will have only relatively small mesh displacements, which can make visualization of the mesh displacement difficult. ANSYS CFX-Post allows you to visually magnify the mesh deformation for ease of viewing such displacements. Although it is not strictly n ecessary for this case, which has mesh displaceme nts which are easily visible unmagni fied, this is illustrated by the n ext few in struct ions.1. Using the timestep selector, load time value 0.1 [s] (which has a much smaller mesh displacement than thecurrently loaded timestep).2. Place the mouse over somewhere in the viewer where the backgro und color is show ing. Right-click and selectDeformation > Auto. Notice that the mesh displacements are now exaggerated. The Auto setting is calculated to make the largest mesh displacement a fixed perce ntage of the doma in size.3. To retur n the deformati ons to their true scale, right-click and select Deformation > True Scale.Creat ing an An imatio n1. Using the Timestep Selector dialog box, en sure the time value of 0.1 [s] is loaded.2. Clear the visibility check box of Con tour 1.3. Turn on the visibility of Sym2.4. Apply the followi ng sett ings to Sym2.5. Click Apply.6. Create a vector plot, set Locations to Sym1 and leave Variable set to Velocity. SetColor to be Constant and choose black. Click Apply.7. Select the visibility check box of Bou ndary ANSYS, and set Color to a con sta nt blue.8. The Animation dialog box appears.9. Select Keyframe Animation .10. In the Animation dialog box:a. Click New ^3 to create KeyframeNo1.b. Highlight KeyframeNo1, then change # of Frames to 48.c. Load the last timestep (50) using the timestep selector.d. Click New to create KeyframeNo2.The # of Frames parameter has no effect for the last keyframe, so leave it at the default value. e. Select Save MPEG .the MPEG file. If the file path is not given, the file will be saved in the directory from which ANSYSCFX-Post was lau nched.g. Click Save.The MPEG file name (including path) will be set, but the MPEG will not be createdyet.h. Frame 1 is not loaded (The loaded frame is shown in the middle of theAnimation dialog box, beside F:). Click To Beginning to load it the n wait a few seconds for the frame to load.i. Click Play the animation — .The MPEG will be created as the animation proceeds. This will be slow, since atimestep must be loaded and objects must be created for each frame. To view theMPEG file, you n eed to use a viewer that supports the MPEG format.11. When you have finished, exit ANSYS CFX-Post. f.Click Browse next to the MPEG file data box to set a path and file name forClick An imation。
流固耦合计算实例
流固耦合计算实例Oscillating Plate with Two-Way Fluid-Structure InteractionANSYS-ChinaIntroductionThis tutorial includes:Features* Overview of the Problem to SolveSetti ng up the Solid Physics in Simulatio n (ANSYS Workbe nch)Setti ng up the Fluid Physics and ANSYS Multi-field Setti ngs in ANSYS CFX-PreObta ining a Solution using ANSYS CFX-Solver Ma nagerViewi ng Results in ANSYS CFX-PostIf this is the first tutorial you are working with, it is important to review the following topics before begi nning:* Sett ing the Worki ng Directory* Cha nging the Display ColorsUni ess you pla n on running a sessi on file, you should copy the sample files used in this tutorial from the in stallati on folder for your software (/examples/) to your work ing directory. This preve nts you from overwriti ng source files provided with your in stallatio n. If you pla n to use a sessi on file, please refer to Play ing a Sessi on File.Sample files refere need by this tutorial in clude:* Oscillati ngPlate.pre* Oscillati ngPlate.agdb* Oscillat in gPlate.gtm* Oscillati ngPlate.i np1. FeaturesIn this tutorial you will lear n about:Moving mesh* Fluid-solid in teract ion (in cludi ng modeli ng solid deformati on using ANSYS)* Running an ANSYS Multi-field (MFX) simulatio n* Post-process ing two results files simulta neously.2. Overview of the Problem to SolveThis tutorial uses a simple oscillat ing plate example to dem on strate how to set up and run a simulation involving two-way Fluid-Structure Interaction, where the fluid physics is solved in ANSYS CFX and the solid physics is solved in the FEA package ANSYS. Coupling between the two solvers is required throughout the soluti on to model the in teract ion betwee n fluid and solid as time progresses, and the framework for the coupli ng is provided by the ANSYS Multi-field solver, using the MFX setup.The geometry con sists of a 2D closed cavity. A thin plate is an chored to the bottom of the cavity as show n below:An in itial pressure of 100 Pa is applied to one side of the thin plate for 0.5 sec onds in order to distort it. Once this pressure is released, the plate oscillates backwards and forwards as it attempts to regain its equilibrium (vertical) position. The surrounding fluid damps the oscillations, which therefore have an amplitude that decreases in time. The CFX Solver calculates how the fluid resp onds to the moti on of the plate, and the ANSYS Solver calculates how the plate deforms as a result of both the in itial applied pressure and the pressure result ing from the prese nee of the fluid. Coupli ng betwee n the two solvers isrequired si nee the solid deformati on affects the fluid soluti on, and the fluid solution affects the solid deformation.The tutorial describes the setup and execution of the calculation including the setup of the solid physics in Simulati on (withi n ANSYS Workbe nch) and the setup of the fluid physics and ANSYS Multi-field sett ings in ANSYS CFX-Pre. If you do n ot have ANSYS Workbe nch, the n you can use the provided ANSYS in put file to avoid the n eed for Simulatio n.3. Setting up the Solid Physics in Simulation (ANSYS Workbench)This secti on describes the step-by-step defi niti on of the solid physics in Simulati on with in ANSYS Workbe nch that will result in the creation of an ANSYS in put file Oscillati ngPlate.i np. If you prefer, you can in stead use the provided Oscillati ngPlate.i np file and continue from Sett ing up the Fluid Physics and ANSYS Multi-field Setti ngs in ANSYS CFX-Pre.Creating a New Simulatio n1. If required, lau nch ANSYS Workbe nch.2. Click Empty Project. The Project page appears displaying an unsaved project.3. Select File > Save or click Save butt on.4. If required, set the path location to a different folder. The default location is your workingdirectory. However, if you have a specific folder that you want to use to store files createdduring this tutorial, change the path.5. Un der File name, type Oscillat in gPlate.6. Click Save.7. Under Link to Geometry File on the left hand task bar clickBrowse. Select the providedfile OscillatingPlate.agdb and click Open.8. Make sure that OscillatingPlate.agdb is highlighted and click New simulation from the left-ha nd taskbar.Creati ng the Solid Material1. When Simulatio n ope ns, expa nd Geometry in the project tree at the left hand side of theSimulatio n win dow.2. Select Solid, and in the Details view below, select Material .3. Use the arrow that appears next to the material name Structural Steel to select NewMaterial .4. When the Engineering Data window ope ns, right-click New Material from the tree viewand ren ame it to Plate.乱i i i ii-.i1 ir - 11 j j| -|^i y <="">Ffe UrWi T^i IH AW - - - 丙5. Enter 2.5e06 for Young's Modulus , 0.35 for Poisson's Ratio and 2550 for Density.Note that the other properties are not used for this simulati on, and that the un its for thesevalues are implied by the global un its in Simulati on.6. Click the Simulation tab near the top of the Workbench window to return to the simulatio n. Basic An alysis Sett ings The ANSYS Multi-field simulation is a transient mechanical analysis, with a timestep of 0.1 s anda time duration of 5 s.1. Select New Analysis > Flexible Dynamic from the toolbar.2. Select An alysis Setti ngs from the tree view and in theDetails view below, set Auto TimeStepping to Off.3. Set Time Step to 0.1.1 t Hwt&riw 期* MalffQ冠SbiUcHMl 5诟* 工L on vwMani {IpAgridiri AM 匕■曲亡■■4. Under Tabular Data at the bottom right of the window, set End Time to5.0 for the Steps =1 sett in g.Inserting LoadsLoads are applied to an FEA an alysis as the equivale nt of boun dary con diti ons in ANSYS CFX. In this sect ion, you will set a fixed support, a fluid-solid in terface, and a pressure load.Fixed SupportThe fixed support is required to hold the bottom of the thin plate in place.1. Right-click Flexible Dynamic in the tree and select Insert > Fixed Support from the shortcutmenu.2. Rotate the geometry using the Rotate butt on so that the bottom (low-y) face of thesolid is visible, then select Face 囲and click the low-y face.That face should be highlighted to in dicate selecti on.3. Ensure Fixed Support is selected in the Outline view, then, in the Details view, selectGeometry and click 1 Face to make the Apply butt on appear (if n ecessary). Click Apply to set the fixed support.Fluid-Solid InterfaceIt is n ecessary to defi ne the regi on in the solid that defi nes the in terface betwee n the fluid in CFX and the solid in ANSYS. Data is excha nged across this in terface duri ng the executi on of the simulatio n.1. Right-click Flexible Dynamic in the tree and select Insert > Fluid Solid Interface fromthe shortcut menu.2. Using the same face-selection procedure described earlier, select the three faces of thegeometry that form the in terface betwee n the solid and the fluid (low-x, high-y and high-xfaces) by holding down to select multiple faces. Note that this load is automaticallygive n an in terface nu mber of 1.Pressure LoadThe pressure load provides the in itial additi onal pressure of 100 [Pa] for the first 0.5 sec onds of the simulati on .It is defi ned using a step function.1. Right-click Flexible Dyn amic in the tree and select Insert > Pressure from the shortcutmenu.2. Select the low-x face for Geometry.3. In the Details view, select Magnitude , and using the arrow that appears, select Tabular(Time).4. Under Tabular Data , set a pressure of 100 in the table row corresponding to a time of 0.Note: The units for time and pressure in this table are the global units of [s] and [Pa], respectively.5. You now n eed to add two new rows to the table. This canbe done by typi ng the new timeand pressure data into the empty row at the bottom of the table, and Simulation willautomatically re-order the table in order of time value. Enter a pressure of 100 for a timevalue of 0.499, and a pressure of 0 for a time value of 0.5.This gives a step function for pressure that can be see n in the chart to the left of the table. Writi ng the ANSYS In put File The Simulation settings are now complete. An ANSYS Multi-field run cannot be launched from with in Simulati on, so the Solve butt ons cannot be used to obta in a soluti on.1. In stead, highlight Solution in the tree, select T ools > Write ANSYS Input File and chooseto write the solution setup to the file OscillatingPlate.inp.2. The mesh is automatically gen erated as part of this process. If you want to exam ine it,select Mesh from the tree.3. Save the Simulation database, use the tab near the top of the Workbench window to returnto the Oscillating Plate [Project] tab, and save the project itself.4. Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-PreThis section describes the step-by-step definition of the flow physics and ANSYS Multi-field settings in ANSYS CFX-Pre.Playing a Session FileIf you want to skip past these instructions and to have ANSYS CFX-Pre set up the simulation automatically, you can select Session> Play Tutorial from the menu in ANSYS CFX-Pre, then runthe session file: OscillatingPlate.pre. After you have played the session file as described in earlier tutorials under Playing the Session File and Starting ANSYS CFX-Solver Manager, proceed to Obtaining a Solution using ANSYS CFX-Solver Manager.Creating a New Simulation1. Start ANSYS CFX-Pre.2. Select File > New Simulation .3. Select General and click OK.4. Select File > Save Simulation As.5. Under File name, type OscillatingPlate.6. Click Save.Importing the Mesh1. Right-click Mesh and select Import Mesh .2. Select the provided mesh file, OscillatingPlate.gtm and click Open.Note:The file that was just created in Simulation, OscillatingPlate.inp, will be used as an input file for the ANSYS Solver.Setting the Simulation TypeA transient ANSYS Multi-field run executes as a series of timesteps. The Simulation Type tab is used both to enable an ANSYS Multi-field run and to specify the time-related settings for it (in the External Solver Coupling settings). The ANSYS input file is read by ANSYS CFX-Pre so that it knows which Fluid Solid Interfaces are available.Once the timesteps and time duration are specified for the ANSYS Multi-field run (coupling run), ANSYS CFX automatically picks up these settings and it is not possible to set the timestep and time duration independently. Hence the only option available for Time Duration is Coupling Time Duration, andsimilarly for the related settings Time Step and Initial Time.。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Oscillating Plate with Two-Way Fluid-Structure InteractionIntroductionThis tutorial includes:•Features•Overview of the Problem to Solve•Setting up the Solid Physics in Simulation (ANSYS Workbench)•Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre•Obtaining a Solution using ANSYS CFX-Solver Manager•Viewing Results in ANSYS CFX-PostIf this is the first tutorial you are working with, it is important to review the following topics before beginning:•Setting the Working Directory•Changing the Display ColorsUnless you plan on running a session file, you should copy the sample files used in this tutorial from the installation folder for your software (<CFXROOT>/examples/) to your working directory. This prevents you from overwriting source files provided with your installation. If you plan to use a session file, please refer to Playing a Session File.Sample files referenced by this tutorial include:••••1.FeaturesThis tutorial addresses the following features of ANSYS CFX.In this tutorial you will learn about:•Moving mesh•Fluid-solid interaction (including modeling solid deformation using ANSYS)•Running an ANSYS Multi-field (MFX) simulation•Post-processing two results files simultaneously.2.Overview of the Problem to SolveThis tutorial uses a simple oscillating plate example to demonstrate how to set up and run a simulation involving two-way Fluid-Structure Interaction, where the fluid physics is solved in ANSYS CFX and the solid physics is solved in the FEA package ANSYS. Coupling between the two solvers is required throughout the solution to model the interaction between fluid and solid as time progresses, and the framework for the coupling is provided by the ANSYS Multi-field solver, using the MFX setup.The geometry consists of a 2D closed cavity. A thin plate is anchored to the bottom of the cavity as shown below:An initial pressure of 100 Pa is applied to one side of the thin plate for seconds in order to distort it. Once this pressure is released, the plate oscillates backwards and forwards as it attempts to regain its equilibrium (vertical) position. The surrounding fluid damps the oscillations, which therefore have an amplitude that decreases in time. The CFX Solver calculates how the fluid responds to the motion of the plate, and the ANSYS Solver calculates how the plate deforms as a result of both the initial applied pressure and the pressure resulting from the presence of the fluid. Coupling between the two solvers is required since the solid deformation affects the fluid solution, and the fluid solution affects the solid deformation.The tutorial describes the setup and execution of the calculation including the setup of the solid physics in Simulation (within ANSYS Workbench) and the setup of the fluid physics and ANSYS Multi-field settings in ANSYS CFX-Pre. If you do not have ANSYS Workbench, then you can use the provided ANSYS input file to avoid the need for Simulation.3.Setting up the Solid Physics in Simulation (ANSYS Workbench)This section describes the step-by-step definition of the solid physics in Simulation within ANSYS Workbench that will result in the creation of an ANSYS input file . If you prefer, you can instead use the provided file and continue from Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-Pre.Creating a New Simulation1.If required, launch ANSYS Workbench.2.Click Empty Project. The Project page appears displaying an unsaved project.3.Select File > Save or click Save button.4.If required, set the path location to a different folder. The default location is your workingdirectory. However, if you have a specific folder that you want to use to store files created during this tutorial, change the path.5.Under File name, type OscillatingPlate.6.Click Save.7.Under Link to Geometry File on the left hand task bar click Browse. Select the providedfile and click Open.8.Make sure that is highlighted and click New simulation from the left-hand taskbar. Creating the Solid Material1.When Simulation opens, expand Geometry in the project tree at the left hand side of theSimulation window.2.Select Solid, and in the Details view below, select Material.e the arrow that appears next to the material name Structural Steel to select NewMaterial.4.When the Engineering Data window opens, right-click New Material from the tree viewand rename it to Plate.5.Enter for Young's Modulus, for Poisson's Ratio and 2550 for Density.Note that the other properties are not used for this simulation, and that the units for these values are implied by the global units in Simulation.6.Click the Simulation tab near the top of the Workbench window to return to thesimulation.Basic Analysis SettingsThe ANSYS Multi-field simulation is a transient mechanical analysis, with a timestep of s and a time duration of 5 s.1.Select New Analysis > Flexible Dynamic from the toolbar.2.Select Analysis Settings from the tree view and in the Details view below, set Auto TimeStepping to Off.3.Set Time Step to .4.Under Tabular Data at the bottom right of the window, set End Time to for the Steps= 1 setting.Inserting LoadsLoads are applied to an FEA analysis as the equivalent of boundary conditions in ANSYS CFX. In this section, you will set a fixed support, a fluid-solid interface, and a pressure load. Fixed SupportThe fixed support is required to hold the bottom of the thin plate in place.1.Right-click Flexible Dynamic in the tree and select Insert> Fixed Support from theshortcut menu.2.Rotate the geometry using the Rotate button so that the bottom (low-y) face of thesolid is visible, then select Face and click the low-y face.That face should be highlighted to indicate selection.3.Ensure Fixed Support is selected in the Outline view, then, in the Details view, selectGeometry and click 1 Face to make the Apply button appear (if necessary). Click Apply to set the fixed support.Fluid-Solid InterfaceIt is necessary to define the region in the solid that defines the interface between the fluid in CFX and the solid in ANSYS. Data is exchanged across this interface during the execution of the simulation.1.Right-click Flexible Dynamic in the tree and select Insert > Fluid Solid Interface fromthe shortcut menu.ing the same face-selection procedure described earlier, select the three faces of thegeometry that form the interface between the solid and the fluid (low-x, high-y and high-x faces) by holding down <Ctrl> to select multiple faces. Note that this load is automatically given an interface number of 1.Pressure LoadThe pressure load provides the initial additional pressure of 100 [Pa] for the first seconds of the simulation. It is defined using a step function.1.Right-click Flexible Dynamic in the tree and select Insert > Pressure from the shortcutmenu.2.Select the low-x face for Geometry.3.In the Details view, select Magnitude, and using the arrow that appears, select Tabular(Time).4.Under Tabular Data, set a pressure of 100 in the table row corresponding to a time of 0.Note: The units for time and pressure in this table are the global units of [s]and [Pa], respectively.5.You now need to add two new rows to the table. This can be done by typing the new timeand pressure data into the empty row at the bottom of the table, and Simulation will automatically re-order the table in order of time value. Enter a pressure of 100 for a time value of , and a pressure of 0 for a time value of .This gives a step function for pressure that can be seen in the chart to the left of the table. Writing the ANSYS Input FileThe Simulation settings are now complete. An ANSYS Multi-field run cannot be launched from within Simulation, so the Solve buttons cannot be used to obtain a solution.1.Instead, highlight Solution in the tree, select Tools> Write ANSYS Input File andchoose to write the solution setup to the file .2.The mesh is automatically generated as part of this process. If you want to examine it,select Mesh from the tree.3.Save the Simulation database, use the tab near the top of the Workbench window to returnto the Oscillating Plate [Project] tab, and save the project itself.4.Setting up the Fluid Physics and ANSYS Multi-field Settings in ANSYS CFX-PreThis section describes the step-by-step definition of the flow physics and ANSYS Multi-field settings in ANSYS CFX-Pre.Playing a Session FileIf you want to skip past these instructions and to have ANSYS CFX-Pre set up the simulation automatically, you can select Session > Play Tutorial from the menu in ANSYS CFX-Pre, then run the session file: . After you have played the session file as described in earlier tutorials under Playing the Session File and Starting ANSYS CFX-Solver Manager, proceed to Obtaining a Solution using ANSYS CFX-Solver Manager.Creating a New Simulation1.Start ANSYS CFX-Pre.2.Select File > New Simulation.3.Select General and click OK.4.Select File > Save Simulation As.5.Under File name, type OscillatingPlate.6.Click Save.Importing the Mesh1.Right-click Mesh and select Import Mesh.2.Select the provided mesh file, and click Open.Note:The file that was just created in Simulation, , will be used as an input file for the ANSYS Solver.Setting the Simulation TypeA transient ANSYS Multi-field run executes as a series of timesteps. The Simulation Type tab is used both to enable an ANSYS Multi-field run and to specify the time-related settings for it (in the External Solver Coupling settings). The ANSYS input file is read by ANSYS CFX-Pre so that it knows which Fluid Solid Interfaces are available.Once the timesteps and time duration are specified for the ANSYS Multi-field run (coupling run), ANSYS CFX automatically picks up these settings and it is not possible to set the timestep and time duration independently. Hence the only option available for Time Duration is Coupling Time Duration, and similarly for the related settings Time Step and Initial Time.1.Click Simulation Type .2.Apply the following settingsTab Setting ValueBasic Settings External Solver Coupling > Option ANSYS MultiFieldExternal Solver Coupling > ANSYS Input File[]Coupling Time Control > Coupling Time Duration > TotalTime5 [s]Coupling Time Control > Coupling Time Steps > Option TimestepsCoupling Time Control > Coupling Time Steps > Timesteps [s]Simulation Type > Option TransientSimulation Type > Time Duration > Option Coupling Time Duration Simulation Type > Time Steps > Option Coupling Time Steps Simulation Type > Initial Time > Option Coupling Initial Time[] This file is located in your working directory.3.Click OK.Note:You may see a physics validation message related to the difference in the units used in ANSYS CFX-Pre and the units contained within the ANSYS input file. While it is important to review the units used in any simulation, you should be aware that, in this specific case, the message is not crucial as it is related to temperature units and there is no heat transfer in this case. Therefore, this specific tutorial will not be affected by the physics message.Creating the FluidA custom fluid is created with user-specified properties.1.Click Material .2.Set the name of the new material to Fluid.3.Apply the following settingsTab Setting ValueBasic Settings Option Pure Substance Thermodynamic State (Selected) Thermodynamic State > Thermodynamic State LiquidMaterial Properties Equation of State > Molar Mass 1 [kg kmol^-1]4.Click OK.Creating the DomainIn order to allow the ANSYS Solver to communicate mesh displacements to the CFX Solver, mesh motion must be activated in CFX.1.Right click Simulation in the Outline tree view and ensure that Automatic DefaultDomain is selected. A domain named Default Domain should now appear under the Simulation branch.2.Double click Default Domain and apply the following settings3.Click OK.Creating the Boundary ConditionsIn addition to the symmetry conditions, another type of boundary condition corresponding with the interaction between the solid and the fluid is required in this tutorial.Fluid Solid External BoundaryThe interface between ANSYS and CFX is defined as an external boundary in CFX that has its mesh displacement being defined by the ANSYS Multi-field coupling process.When an ANSYS Multi-field specification is being made in ANSYS CFX-Pre, it is necessary to provide the name and number of the matching Fluid Solid Interface that was created in Simulation. Since the interface number in Simulation was 1, the name in question is FSIN_1. (If the interface number had been 2, then the name would have been FSIN_2, and so on.)On this boundary, CFX will send ANSYS the forces on the interface, and ANSYS will send back the total mesh displacement it calculates given the forces passed from CFX and the other defined loads.1.Create a new boundary condition named Interface.2.Apply the following settings3.Click OK.Symmetry BoundariesSince a 2D representation of the flow field is being modeled (using a 3D mesh with one element thickness in the Z direction) symmetry boundaries will be created on the low and high Z 2D regions of the mesh.1.Create a new boundary condition named Sym1.2.Apply the following settings3.Click OK.4.Create a new boundary condition named Sym2.5.Apply the following settings6.Click OK.Setting Initial ValuesSince a transient simulation is being modeled, initial values are required for all variables.1.Click Global Initialization .2.Apply the following settings:Tab Setting ValueGlobal Settings Initial Conditions > Cartesian Velocity Components > U0 [m s^-1] Initial Conditions > Cartesian Velocity Components > V0 [m s^-1] Initial Conditions > Cartesian Velocity Components > W0 [m s^-1] Initial Conditions > Static Pressure > RelativePressure0 [Pa]3.Click OK.Setting Solver ControlVarious ANSYS Multi-field settings are contained under Solver Control under the External Coupling tab. Most of these settings do not need to be changed for this simulation.Within each timestep, a series of “coupling” or “stagger” iterations are performed to ensure that CFX, ANSYS and the data exchanged between the two solvers are all consistent. Within each stagger iteration, ANSYS and CFX both run once each, but which one runs first is a user-specifiable setting. In general, it is slightly more efficient to choose the solver that drives the simulation to run first. In this case, the simulation is being driven by the initial pressure applied in ANSYS, so ANSYS is set to solve before CFX within each stagger iteration.1.Click Solver Control .2.Apply the following settings:Tab Setting ValueBasic Settings Transient Scheme > OptionSecond OrderBackward Euler Convergence Control > Minimum Number ofCoefficient Loops(Selected) Convergence Control > Minimum Number ofCoefficient Loops > Min. Coeff. Loops2[]Convergence Control > Max. Coeff. Loops 3External Coupling Coupling Step Control > Solution SequenceControl > Solve ANSYS FieldsBefore CFX FieldsTab Setting Value [] This setting is optional. The default value of 1 is also acceptable.3.Click OK.Setting Output ControlThis step sets up transient results files to be written at set intervals.1.Click Output Control .2.On the Trn Results tab, create a new transient result with the default name.3.Apply the following settings to Transient Results 1:Setting ValueOption Selected VariablesOutput Variable List Pressure, Total Mesh Displacement, VelocityOutput Frequency > Option Every Coupling Step[][] This setting writes a transient results file every multi-field timestep.4.Click the Monitor tab.5.Select Monitor Options.6.Under Monitor Points and Expressions:7.Click Add new item and accept the default name.8.Set Option to Cartesian Coordinates.9.Set Output Variables List to Total Mesh Displacement X.10.Set Cartesian Coordinates to [0, 1, 0].11.Click OK.Writing the Solver (.def) File1.Click Write Solver File .2.If the Physics Validation Summary dialog box appears, click Yes to proceed.3.Apply the following settingsSetting ValueFile nameQuit CFX–Pre[](Selected)[] If using ANSYS CFX-Pre in Standalone Mode.4.Ensure Start Solver Manager is selected and click Save.5.If you are notified the file already exists, click Overwrite.6.This file is provided in the tutorial directory and will exist in your working folder if youhave copied it there.7.Quit ANSYS CFX-Pre, saving the simulation (.cfx) file at your discretion.5.Obtaining a Solution using ANSYS CFX-Solver ManagerThe execution of an ANSYS Multi-field simulation requires both the CFX and ANSYS solvers to be running and communicating with each other. ANSYS CFX-Solver Manager can be used to launch both solvers and to monitor the output from both.1.Ensure the Define Run dialog box is displayed.There is a new MultiField tab which contains settings specific for an ANSYS Multi-field simulation.2.On the MultiField tab, check that the ANSYS input file location is correct (the location isrecorded in the definition file but may need to be changed if you have moved files around).3.On UNIX systems, you may need to manually specify where the ANSYS installation is ifit is not in the default location. In this case, you must provide the path to the v110/ansys directory.4.Click Start Run.The run begins by some initial processing of the ANSYS Multi-field input which results in the creation of a file containing the necessary multi-field commands for ANSYS, and then the ANSYS Solver is started. The CFX Solver is then started in such a way that it knows how to communicate with the ANSYS Solver.After the run is under way, two new plots appear in ANSYS CFX-Solver Manager:ANSYS Field Solver (Structural) This plot is produced only when the solid physics is set to use large displacements or when other non-linear analyses are performed. It shows convergence of the ANSYS Solver. Full details of the quantities are described in the ANSYS user documentation. In general, the CRIT quantities are the convergence criteria for each relevant variable, and the L2 quantities represent the L2 Norm of the relevant variable. For convergence, the L2 Norm should be below the criteria. The x-axis of the plot is the cumulative iteration number for ANSYS, which does not correspond to either timesteps or stagger iterations. Several ANSYS iterations will beperformed for each timestep, depending on how quickly ANSYS converges. You will usually see a somewhat “spiky” plot, as each quantity will be unconverged at the start of each timestep, and then convergence will improve.ANSYS Interface Loads (Structural)This plot shows the convergence for each quantity that is part of the data exchanged between the CFX and ANSYS Solvers. In this case, four lines appear, corresponding to two force components (FX and FY) and two displacement components (UX and UY). Since the analysis is 2D, FZ and UZ are not exchanged. Each quantity is converged when the plot shows a negative value. The x-axis of the plot corresponds to the cumulative number of stagger iterations (coupling iterations) and there are several of these for every timestep. Again, a spiky plot is expected as the quantities will not be converged at the start of a timestep.The ANSYS out file is displayed in ANSYS CFX-Solver Manager as an extra tab. Similar to the CFX out file, this is a text file recording output from ANSYS as the solution progresses.1.Click the User Points tab and watch how the top of the plate displaces as the solutiondevelops.2.When the solvers have finished and ANSYS CFX-Solver Manager puts up a dialog boxto tell you this, click Yes to post-process the results.3.If using Standalone Mode, quit ANSYS CFX-Solver Manager.6.Viewing Results in ANSYS CFX-PostFor an ANSYS Multi-field run, both the CFX and ANSYS results files will be opened up in ANSYS CFX-Post by default if ANSYS CFX-Post is started from a finished run in ANSYS CFX-Solver Manager.Plotting Results on the SolidWhen ANSYS CFX-Post reads an ANSYS results file, all the ANSYS variables are available to plot on the solid, including stresses and strains. The mesh regions available for plots by default are limited to the full boundary of the solid, plus certain named regions which are automatically created when particular types of load are added in Simulation. For example, any Fluid Solid Interface will have a corresponding mesh region with a name such as FSIN 1. In this case, there is also a named region corresponding to the location of the fixed support, but in general pressure loads do not result in a named region.You can add extra mesh regions for plotting by creating named selections in Simulation - see the Simulation product documentation for more details. Note that the named selection must have a name which contains only English letters, numbers and underscores for the named mesh region to be successfully created.Note that when ANSYS CFX-Post loads an ANSYS results file, the true global range for each variable is not automatically calculated, as this would add a substantial amount of time onto how long it takes to load such a file (you can turn on this calculation using Edit > Options and using the Pre-calculate variable global ranges setting under CFX-Post> Files). When the global range is first used for plotting a variable, it is calculated as the range within the current timestep. As subsequent timesteps are loaded into ANSYS CFX-Post, the Global Range is extended each time variable values are found outside the previous Global Range.1.Turn on the visibility of Boundary ANSYS (under ANSYS > Domain ANSYS).2.Right-click a blank area in the viewer and select Predefined Camera > View Towards-Z. Zoom into the plate to see it clearly.3.Apply the following settings to Boundary ANSYS:4.Click Apply.5.Select Tools> Timestep Selector from the task bar to open the Timestep Selectordialog box. Notice that a separate list of timesteps is available for each results file loaded, although for this case the lists are the same. By default, Sync Cases is set to By Time Value which means that each time you change the timestep for one results file, ANSYS CFX-Post will automatically load the results corresponding to the same time value for all other results files.6.Set Match to Nearest Available.7.Change to a time value of 1 [s] and click Apply.The corresponding transient results are loaded and you can see the mesh move in both the CFX and ANSYS regions.1.Clear the visibility check box of Boundary ANSYS.2.Create a contour plot, set Locations to Boundary ANSYS and Sym2, and set Variable toTotal Mesh Displacement. Click Apply.ing the timestep selector, load time value [s] (which is where the maximum totalmesh displacement occurs).This verifies that the contours of Total Mesh Displacement are continuous through both the ANSYS and CFX regions.Many FSI cases will have only relatively small mesh displacements, which can make visualization of the mesh displacement difficult. ANSYS CFX-Post allows you to visually magnify the mesh deformation for ease of viewing such displacements. Although it is not strictly necessary for this case, which has mesh displacements which are easily visible unmagnified, this is illustrated by the next few instructions.ing the timestep selector, load time value [s] (which has a much smaller meshdisplacement than the currently loaded timestep).2.Place the mouse over somewhere in the viewer where the background color is showing.Right-click and select Deformation > Auto. Notice that the mesh displacements are now exaggerated. The Auto setting is calculated to make the largest mesh displacement a fixed percentage of the domain size.3.To return the deformations to their true scale, right-click and select Deformation > TrueScale.Creating an Animationing the Timestep Selector dialog box, ensure the time value of [s] is loaded.2.Clear the visibility check box of Contour 1.3.Turn on the visibility of Sym2.4.Apply the following settings to Sym2.5.Click Apply.6.Create a vector plot, set Locations to Sym1 and leave Variable set to Velocity. SetColor to be Constant and choose black. Click Apply.7.Select the visibility check box of Boundary ANSYS, and set Color to a constant blue.8.Click Animation .The Animation dialog box appears.9.Select Keyframe Animation.10.In the Animation dialog box:a.Click New to create KeyframeNo1.b.Highlight KeyframeNo1, then change # of Frames to 48.c.Load the last timestep (50) using the timestep selector.d.Click New to create KeyframeNo2.The # of Frames parameter has no effect for the last keyframe, so leave it at thedefault value.e.Select Save MPEG.f.Click Browse next to the MPEG file data box to set a path and file name forthe MPEG file.If the file path is not given, the file will be saved in the directory from whichANSYS CFX-Post was launched.g.Click Save.The MPEG file name (including path) will be set, but the MPEG will not becreated yet.h.Frame 1 is not loaded (The loaded frame is shown in the middle of theAnimation dialog box, beside F:). Click To Beginning to load it then waita few seconds for the frame to load.i.Click Play the animation .The MPEG will be created as the animation proceeds. This will be slow, since atimestep must be loaded and objects must be created for each frame. To view theMPEG file, you need to use a viewer that supports the MPEG format.11.When you have finished, exit ANSYS CFX-Post.。