CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CFX: Insert custom mesh locators / Use user locations as locators in the expressions

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Gert-Jan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2018, 14:21
Default CFX: Insert custom mesh locators / Use user locations as locators in the expressions
  #1
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
Hi there,

Does anyone know how to use User Locations as locators in the expressions?

I'm running a case (single rotor) where I put two user surfaces at the locations where the experimental surveys were performed (upstream and downstream of the rotor, respectively). Since all the parameters were recorded at those two stations, I want to monitor the convergence behaviour of the essential variables, e.g. pressure ratio and rotor efficiency, exactly at those faces. Unfortunately, the expression fails when the specified location is not a mesh or physics locator.

I was thinking about possible workarounds but haven't found anything with reasonably little implementation effort.

Cheers!
heling is offline   Reply With Quote

Old   February 9, 2018, 03:11
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Why don't you create mesh locators in your geometry and then remesh it?
Gert-Jan is offline   Reply With Quote

Old   February 9, 2018, 04:13
Default
  #3
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Hi heling,
I tried something similar recently, but I was not able to use the user surfaces in Pre as well.
However, if you are conducting a steady state analysis, whats the point of convergence behaviour monitoring for other values than default? As long as residuals are desireably low at the end, your desired output will not vary much.
If its a transient analysis, you can write trn output and extract values at each position you are interested in (with table). Then, use a session file to extract the table for each timestep of interest and process the data in matlab/excel/... .
AtoHM is offline   Reply With Quote

Old   February 9, 2018, 04:28
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
@AtoHM, I disagree. Even in a steady state analysis, there are cases where variables tend to develop for a long time.

Therefore, you should always monitor:
- residuals
- imbalance
- variables in monitoring points

Judging convergence by residuals only is not enough. Always create several monitoring point in the domain where you monitor pressure, velocities, tke, temp etc. You have only achieved good convergence, if these become flat liners.

@heling, having said that, is it worth putting several monitoring points in your domain so you can judge convergence using this information.
heling likes this.
Gert-Jan is offline   Reply With Quote

Old   February 9, 2018, 05:06
Smile
  #5
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
Thanks for your replies, guys!

@Gert-Jan: I tried this approach in TurboGrid, however, inserting planes or turbo surfaces doesn't help, as they're not exported as a mesh locator. In fact, they are completely ignored and don't appear in CFX-pre even as user locations. Do you know how to do this in TG?

Alternatively, I could shift my inlet and outlet interfaces to the desired position but it will mess up my mesh. Their current position is carefully selected for the best mesh quality at the given resolution.

@AtoHM: Well, the convergence can be very tricky. Even though it's a steady-state case and your main parameters seem to converge, your flow might do some crazy acrobatics somewhere inside of the domain, especially at sharp edges, in the transition/separation areas etc., I want to have an adequate insight into the flow physics in the critical regions. Also, in terms of the comparability with the measurements, it's better if you can see if your desired parameters converge towards the experimental value, and they won't if the monitors are at the domain boundaries which are far away from the experimental survey location
heling is offline   Reply With Quote

Old   February 9, 2018, 05:13
Default
  #6
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
@AtoHM, I disagree. Even in a steady state analysis, there are cases where variables tend to develop for a long time.

Therefore, you should always monitor:
- residuals
- imbalance
- variables in monitoring points

Judging convergence by residuals only is not enough. Always create several monitoring point in the domain where you monitor pressure, velocities, tke, temp etc. You have only achieved good convergence, if these become flat liners.

@heling, having said that, is it worth putting several monitoring points in your domain so you can judge convergence using this information.
Exactly! Glad you mentioned that In general, there seems to be too less critical and thorough judgement regarding the convergence of steady-state flows. That's why I'm making the effort to monitor the parameters at the exact position of the experiment, plus in the critical areas as LE and TE, tip gap and some additional points at least at the suction side where a separation is likely to occur.

To better visualise what I want to achieve, I put a pic in the attachment. Do you think points will do that? I can't really output the mass flow for point probes and the quantities need to be mass flow avg. as it was done in the experiment.
Attached Images
File Type: jpg Monitors.jpg (117.5 KB, 68 views)

Last edited by heling; February 9, 2018 at 05:33. Reason: Forgot pic
heling is offline   Reply With Quote

Old   February 9, 2018, 05:42
Default
  #7
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
I don't know TG.
If you put several points in the critical area (and far away), you will get a good indication of the progress of the convergence.
Don't forget to monitor energy balance. You'll see it will lag behind.
Gert-Jan is offline   Reply With Quote

Old   February 9, 2018, 06:11
Default
  #8
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
I don't know TG.
I don't see your picture. Sorry.
But if you put several points in the critical area (and far away), you will get a good indication of the progress of the convergence.
Don't forget to monitor energy balance. You'll see it will lag behind.
I uploaded it once again

Sure, we're used to say "heat is lazy"!

Points will work in terms of the convergence, but won't allow the monitoring of the mass and flow averaged quantities of interest. It's a way to go, however, should anyone know how to use the user locations in the expression or how to find a workaround with a subroutine, I would appreciate it to the moon and back That would be the cleanest solution, also very helpful for transient simulations.
Attached Images
File Type: jpg Monitors.jpg (117.5 KB, 24 views)
heling is offline   Reply With Quote

Old   February 9, 2018, 06:22
Default
  #9
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
As long as user surfaces won't work, the only option I see is to shift you rotor-stator-interfaces to the location of your user surfaces and remesh it.
This will work definitely since these interfaces can be used in the equations.
Gert-Jan is offline   Reply With Quote

Old   February 9, 2018, 06:31
Default
  #10
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
As long as user surfaces won't work, the only option I see is to shift you rotor-stator-interfaces to the location of your user surfaces and remesh it.
This will work definitely since these interfaces can be used in the equations.
Ok, I'll give it a try. However, as I said before, the position of the interfaces is not random as it is, as other configurations result in high mesh skewness and high deviation of the interface to LE and TE distance alongside the span.

See the pic for the difference in the position of the interfaces and the monitor planes.
Attached Images
File Type: png Surf2.PNG (112.7 KB, 33 views)
heling is offline   Reply With Quote

Old   February 12, 2018, 04:21
Default
  #11
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Of course its better to monitor at the exact location, I agree with both of you. But since I was unable to create the exact type of monitors you are trying to set up (@user surfaces), I'd rely on residuals and check in Post if the results are consistent with my understanding of what happens in the domain.

Quote:
your flow might do some crazy acrobatics somewhere inside of the domain
haha, I had those as well!

I guess the feature doesnt work because those locations can be anywhere in the mesh and dont coincide with mesh nodes. So the solver would have to go through additional calculations to put out your desired values at those locations.
To resolve this, you must somehow introduce mesh locators you can use or extract those values using Backup-Result-Steps and Tables.

Gert's suggestion, moving the interfaces sounds like a sweet workaround for that. Also I experienced that moving them away from the blade can lead to a better mesh actually. Are you using traditional or atm meshing?
AtoHM is offline   Reply With Quote

Old   February 12, 2018, 10:13
Default
  #12
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
Hi AtoHm,

I agree with your rationale. In fact, it would require an additional interpolation from mesh on the monitor planes which CFX is not willing to do

Anyway, I'll move the interfaces and go with that approach. I use atm, and since I can't change the automatically generated topology, 'better mesh quality' is really subject to the region. At some points, it is better indeed (less skewness) but on the other hand, because of the twist of the blade, the mesh distribution at the tip is either too concentrated or too stretched depending on the location (see pics in the attachment).

I know this can be compensated by adding edge split and/or increasing global refinement but this deviates from the idea of having a basic mesh for initial calculations. On the other hand, since it's a preliminary mesh, probably there is not much to worry about the non-uniform mesh distribution.
Attached Images
File Type: jpg Hub.jpg (96.2 KB, 19 views)
File Type: jpg Shroud.jpg (130.7 KB, 20 views)
File Type: jpg Hub&Shroud.jpg (198.3 KB, 17 views)
heling is offline   Reply With Quote

Old   February 13, 2018, 03:36
Default
  #13
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Are you refering to the dense region at pressure side trailing edge and suction side leading edge? These are intended by the atm meshing algorithm and should not be considered bad. I figured they are included to better cover shocks and stall regions.
Actually, this looks like a pretty good mesh to me. Those orthogonality angles must be >30° I guess?
AtoHM is offline   Reply With Quote

Old   February 13, 2018, 13:36
Default
  #14
New Member
 
Natan Zawadzki
Join Date: Jun 2013
Posts: 11
Rep Power: 12
heling is on a distinguished road
I think it's the other way round, isn't it? Pressure side downstream the LE and suction side upstream the TE. Is this really an intended mesh design? I had this thought for a second but then I realised that the shock tends to occur exactly in the opposite areas: somewhere around the 1/3 chord length of the suction side.
heling is offline   Reply With Quote

Old   February 14, 2018, 03:53
Default
  #15
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Ups, I mixed up the flow direction^^ sry.

I checked and couldn't find any notes on whether thats actually intended. Was just my impression. I saw similar meshes used in papers, so I do not think its bad. If you are not sure about its influence on the result, do a convergence study and see how your values @ your locations vary.
AtoHM is offline   Reply With Quote

Old   February 19, 2018, 11:35
Default
  #16
Member
 
Philipp Wiedemer
Join Date: Dec 2016
Location: Munich, Germany
Posts: 42
Rep Power: 9
MangoNrFive is on a distinguished road
I think the density of the mesh in this region is a result of the torsion of the blade and the periodic boundary. Turbogrid is limited to put all those cells in this region because the other blocks are strongly coupled through periodic boundarys and block connectivity with the rest of the mesh. So you wouldn't get such nice spacings in the inlet- and outlet-regions otherwise. But turbogrid has to use this many cells here because else the cells at the root would get to big, as you can already see they're bigger at the root in this region. So it is a trade-off between those cell-sizes, large at the root and/or small at the tip.
MangoNrFive is offline   Reply With Quote

Reply

Tags
mesh locator, monitoring, monitoring boundary, monitors, user location


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
hex mesh using cfx mesh. mehul CFX 3 December 12, 2005 22:06
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38
CFX 5.5 Roued CFX 1 October 2, 2001 16:49


All times are GMT -4. The time now is 12:47.