|
[Sponsors] |
Can you statically rotate fluid mesh through TUI? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 12, 2020, 21:00 |
Can you statically rotate fluid mesh through TUI?
|
#1 |
Member
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9 |
Hi,
I’m having issues with unsteady solutions (steady vs. unsteady flow at the wall) and i figured I could probably achieve my goals by just solving a steady state solution in various orientations of the rotating body, write out the data, and average the results. My question is as follows: is it possible to use the TUI solve my steady state solution, and then to rotate one of the bodies in my model by X degrees, then issue another steady state solve, and so on? I would prefer to keep this all in one journal file rather than create a bunch of models. Alternatively, if it’s possible I could solve a steady state solution, then run it unsteady / transient until it gets into position, and then run the steady solution again? Any help greatly appreciated |
|
November 13, 2020, 00:09 |
|
#2 |
Member
Join Date: May 2016
Posts: 38
Rep Power: 10 |
I don't think there is a way to do it directly, the modify mesh commands seem to apply to the whole domain instead of individual zones. But you can move the mesh without updating the solver using the pre-view mesh motion feature. This does mean turning on transient->mrf-to-sliding and back again but it's not much more work in a journal file (:
the command to do the 'preview' is, whats in the square brackets are the questions you get from fluent after the command. solve/mesh-motion [time step size] [number of time steps] [display grid] [display frequency] [save picture] [enable autosave] [update monitors] |
|
November 13, 2020, 12:15 |
|
#3 | |
Member
Tyler Richardson
Join Date: Jun 2017
Posts: 30
Rep Power: 9 |
Quote:
i tried to implement this today, and while i was "successful" at rotating the body in between steady state solutions, i noticed my written out nodal results dont reflect the intended rotation (and actually does not provide a consistent rotation across the nodes) This makes me wonder if Fluent is consistent in its numbering when writing out data as follows: ;################################################# ;### Solve initial position ; /solve/init/hyb /solve/execute-commands/add-edit execUDF (rpgetvar'storeudm) "iteration" "/define/user-defined/execute-on-demand "on_demand_calc::HsgUDF"" /solve/execute-commands/add-edit execWRITE (rpgetvar'storeudm) "iteration" "/file/export/ascii hconv_data_stdy_rot0_%i.csv inflation () yes udm-0 udm-1 udm-2 udm-3 udm-4 udm-5 udm-6 udm-7 udm-8 udm-9 () no" /solve/iterate 1000 ;# Switch to unsteady /define/models/unsteady-1st-order? yes ;### Rotating Fluid Zone -> 45 deg / s /define/boundary-conditions/fluid body ; frame motion no no no yes -1 no (rpgetvar'rz1speed) no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 1 "none" no no no no no no ; mesh motion ;no no no no no 0 no 0 no 0 no 0 no 0 no 1 yes -1 no (rpgetvar'rz1speed) no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 1 "none" no no no no no ;# Rotate by 45 degrees /mesh/modify-zones/mrf-to-sliding-mesh body /solve/mesh-motion 0.1 10 yes 1 no no no ; ;# Switch to steady state /define/models/steady? yes ;### Rotating Fluid Zone -> 0 rpm /define/boundary-conditions/fluid body ; frame motion no no no yes -1 no 0.0 no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 1 "none" no no no no no ; ;yes oil no no no no 0 no 0 no 0 no 0 no 0 no 1 yes -1 yes yes no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 0 no 1 0 no no no no no ; ;################################################# ;### Solve position 1 (45 deg) ; /solve/init/hyb /solve/execute-commands/add-edit execUDF (rpgetvar'storeudm) "iteration" "/define/user-defined/execute-on-demand "on_demand_calc::HsgUDF"" /solve/execute-commands/add-edit execWRITE (rpgetvar'storeudm) "iteration" "/file/export/ascii hconv_data_stdy_rot1_%i.csv inflation () yes udm-0 udm-1 udm-2 udm-3 udm-4 udm-5 udm-6 udm-7 udm-8 udm-9 () no" /solve/iterate 1000 would one expect the node "numbering" from position 0 to position 1 to remain consistent? or do i need to sort this myself at the end of the process? I was kind of hoping that the node "numbers" would remain the same, and positions change, so that i could use the positions at time = 0 for my mapping |
||
Tags |
moving mesh, rotating, steady, unsteady |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to create solid to fluid interface in Fluent using an ICEM CFD mesh. | ekraft | FLUENT | 1 | June 15, 2017 12:59 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
Waterwheel shaped turbine inside a pipe simulation problem | mshahed91 | CFX | 3 | January 10, 2015 12:19 |
[Gmsh] Mesh flattening and fluid assignment not possible. | paka | OpenFOAM Meshing & Mesh Conversion | 6 | April 4, 2011 09:53 |
How to control Minximum mesh space? | hung | FLUENT | 7 | April 18, 2005 10:38 |