CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Xflow question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2022, 20:05
Default Xflow question
  #1
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
montera is on a distinguished road
For the exactly same shape geometry, Why simulation is very slow when it's small(centimeter), but fast when large(meter)?

Xflow to simulate a fan.
montera is offline   Reply With Quote

Old   March 2, 2022, 05:24
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 643
Rep Power: 12
AtoHM is on a distinguished road
How is it the same geometry, if its once small and once big?
A too general answer to a too general question:

Probably it results in different mesh sizes with whatever parameters you use for the meshing and thus, simulation time differs.
AtoHM is offline   Reply With Quote

Old   March 2, 2022, 07:40
Default
  #3
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
montera is on a distinguished road
Quote:
Originally Posted by AtoHM View Post
How is it the same geometry, if its once small and once big?
A too general answer to a too general question:

Probably it results in different mesh sizes with whatever parameters you use for the meshing and thus, simulation time differs.
Yes, once imported the geometry by centimeter unit, then simulated.
Second time, imported the geometry by meter unit, then simulated.

Every parameters are the same. Except Resolved scale times 100.
montera is offline   Reply With Quote

Old   March 3, 2022, 02:46
Default
  #4
Senior Member
 
M
Join Date: Dec 2017
Posts: 643
Rep Power: 12
AtoHM is on a distinguished road
My reply was aimed to get you to investigate your setup more thoroughly and tell us what you are doing. With the information provided, it is just guessing:
* what do the meshes look like (cell count, quality, ...)
* what equations are solved, models used
* are the results similar, are important quanities converging?

Have a look how other people here describe their cases.
Guide: How to ask a question on the forums
AtoHM is offline   Reply With Quote

Old   March 3, 2022, 07:50
Default
  #5
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
montera is on a distinguished road
I attached a very simply example to explain this question.(if I attached them correctly)

Xflow.zip contains 2 project files:
"Cylinder100.xfp, Cylinder100.lay" is the large one, "dm.png" tells its time.
"Cylinder.xfp, Cylinder.lay" is the small one, "mm.png" tells its time.

I just wish to learn the reason for the obvious difference.
Attached Images
File Type: png dm.png (41.6 KB, 7 views)
File Type: png mm.png (48.0 KB, 5 views)
Attached Files
File Type: zip XFLow.zip (6.2 KB, 1 views)
montera is offline   Reply With Quote

Old   March 3, 2022, 08:40
Default
  #6
Senior Member
 
M
Join Date: Dec 2017
Posts: 643
Rep Power: 12
AtoHM is on a distinguished road
Most people, including me, on this forum are not in possession of that particular software, so unfortunately this does not help.
AtoHM is offline   Reply With Quote

Old   March 3, 2022, 15:09
Default
  #7
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by montera View Post
For the exactly same shape geometry, Why simulation is very slow when it's small(centimeter), but fast when large(meter)?

Xflow to simulate a fan.


Assuming x flow is lattice boltzmann method, by changing the grid length ie from meter to cm you are now solving the problem at different Reynolds number because viscosity is computed from the size of the domain.

Thats why now the time to simulate has changed,
arjun is offline   Reply With Quote

Old   March 3, 2022, 23:04
Default
  #8
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
montera is on a distinguished road
Quote:
Originally Posted by arjun View Post
Assuming x flow is lattice boltzmann method, by changing the grid length ie from meter to cm you are now solving the problem at different Reynolds number because viscosity is computed from the size of the domain.

Thats why now the time to simulate has changed,

I try to catch your point.

Does it mean domain size ↓, viscosity ↑, Reynolds number ↓, time ↑ ?
montera is offline   Reply With Quote

Old   March 5, 2022, 02:35
Default
  #9
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by montera View Post
I try to catch your point.

Does it mean domain size ↓, viscosity ↑, Reynolds number ↓, time ↑ ?
Should be domain size down viscosity goes down and increase in Re gives to more computational efforts (reduction of time step).

There is a paper about it:

https://www.semanticscholar.org/pape...7321d72aeceaaf

Numerical Viscosity of Finite Difference Lattice Boltzmann Method

S. Mizutani, M. Tsutahara
Published 2006

Physics, Mathematics
Transactions of the Japan Society of Mechanical Engineers. B

The difference of the influence of numerical viscosity between the Navier-Stokes based finite difference method and the finite difference lattice Boltzmann mathod is shown. In order to stabilize calculation, upwind schemes with numerical viscosity is generally used in the finite difference lattice Boltzmann method. The influence of numerical viscosity is dependent on a Mach number. The dependence to the direction of the flow of numerical viscosity is small as compared with the Navier-Stokes based finite difference method.


Edited to add: Interestingly this was pointed to me by Tsutahara san himself when he was trying to clear some of my doubts.
arjun is offline   Reply With Quote

Old   March 5, 2022, 09:37
Default
  #10
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
montera is on a distinguished road
Quote:
Originally Posted by arjun View Post
Should be domain size down viscosity goes down and increase in Re gives to more computational efforts (reduction of time step).

There is a paper about it:

https://www.semanticscholar.org/pape...7321d72aeceaaf

Numerical Viscosity of Finite Difference Lattice Boltzmann Method

S. Mizutani, M. Tsutahara
Published 2006

Physics, Mathematics
Transactions of the Japan Society of Mechanical Engineers. B

The difference of the influence of numerical viscosity between the Navier-Stokes based finite difference method and the finite difference lattice Boltzmann mathod is shown. In order to stabilize calculation, upwind schemes with numerical viscosity is generally used in the finite difference lattice Boltzmann method. The influence of numerical viscosity is dependent on a Mach number. The dependence to the direction of the flow of numerical viscosity is small as compared with the Navier-Stokes based finite difference method.


Edited to add: Interestingly this was pointed to me by Tsutahara san himself when he was trying to clear some of my doubts.
Really? you happened to meet the author?

Frankly speaking, the paper is some difficult for me.
So, this difference of simulation speed is normal, neither xflow problem, nor my mistake?
montera is offline   Reply With Quote

Old   March 5, 2022, 12:43
Default
  #11
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by montera View Post
Really? you happened to meet the author?

Frankly speaking, the paper is some difficult for me.
So, this difference of simulation speed is normal, neither xflow problem, nor my mistake?
We were living in same city Kobe Japan that time and he sometimes used to visit the place I was working.

I had difficulty understanding the viscosity since in lattice boltzman you really do not specify it. It is an outcome of three main things

1. Time Step

2. Relaxation Parameter

3. The advection method used.


You are not doing anything wrong, what you are seeing is what is to be expected.
arjun is offline   Reply With Quote

Old   March 7, 2022, 07:59
Default
  #12
New Member
 
Join Date: Mar 2022
Posts: 6
Rep Power: 4
montera is on a distinguished road
Thank you, arjun and AtoHM, very much!
I learned much these days.
And I hope get along with xflow.
montera is offline   Reply With Quote

Reply


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
A question about XFlow boundary conditions mmkcfd Main CFD Forum 0 April 11, 2015 03:47
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 10:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37


All times are GMT -4. The time now is 13:46.