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

a problem in CFD-Post

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2015, 09:50
Lightbulb a problem in CFD-Post
  #1
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Hello.
The image i attached, show a wave in a tank.
I want to define a chart to show the wave height at a specific x along the time.
to define a point it need to x,y,z. but in this case y is variable.
i can to define chart to show the max or min wave height along the time. but it's not my answer.
i want to show the wave height in x=4.
how i can do it?
divoone1985 is offline   Reply With Quote

Old   April 27, 2015, 19:13
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
1) Create a line object from the top to bottom of the domain at x=4 (and y=whatever).
2) Graph lengthInt(water.volume fraction)@line versus time
3) Select graph versus time

Note you will get a better graph if you put the integration step in as a monitor point and then you get a point every solver time step. You might have to use an area integral or volume integral instead of a line integral as the solver does not support line objects.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   April 30, 2015, 01:44
Lightbulb
  #3
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
1) Create a line object from the top to bottom of the domain at x=4 (and y=whatever).
2) Graph lengthInt(water.volume fraction)@line versus time
3) Select graph versus time

Note you will get a better graph if you put the integration step in as a monitor point and then you get a point every solver time step. You might have to use an area integral or volume integral instead of a line integral as the solver does not support line objects.
Hello and thank you.
but i have some problems:
1- lenghtint don't return waveheight. it's bigger than waveheight.
2- how can i use area integral? is it more accurate than line integral?
divoone1985 is offline   Reply With Quote

Old   April 30, 2015, 03:38
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
1 - It should return the length of the line which is underwater. I will leave it up to you to work out how to get wave height from there.
2 - areaInt(water.vf)@plane will give you the area on that plane which is underwater. I will leave working out what the volume integral will give up to you. For the area integral, divide by the plane width and you will have the average depth on the plane. Whether it is more accurate of not depends on what you are trying to do.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   May 6, 2015, 05:36
Lightbulb
  #5
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
1 - It should return the length of the line which is underwater. I will leave it up to you to work out how to get wave height from there.
2 - areaInt(water.vf)@plane will give you the area on that plane which is underwater. I will leave working out what the volume integral will give up to you. For the area integral, divide by the plane width and you will have the average depth on the plane. Whether it is more accurate of not depends on what you are trying to do.
this pic show lineInt(water.vf)@line
is this correct?
i think it's wrong.
where is my mistake?

divoone1985 is offline   Reply With Quote

Old   May 6, 2015, 20:40
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It looks like your waves are either falling off the end of your line, or are hitting the top or bottom walls of the domain.

Fire up the post processor and have a look.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   May 8, 2015, 13:57
Lightbulb
  #7
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
It looks like your waves are either falling off the end of your line, or are hitting the top or bottom walls of the domain.

Fire up the post processor and have a look.
the animation is correct. and there is no top wall and the wave don't hit the bottom wall.
i think there is a problem in the expression lineint
divoone1985 is offline   Reply With Quote

Old   May 9, 2015, 07:46
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I think it highly unlikely there is a problem with the line integration function. Far more likely that your implementation of it is incorrect.

Can you post an image of what you are modelling, where the line you are using is and some frames from different parts of the wave motion?
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   May 9, 2015, 15:52
Lightbulb
  #9
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I think it highly unlikely there is a problem with the line integration function. Far more likely that your implementation of it is incorrect.

Can you post an image of what you are modelling, where the line you are using is and some frames from different parts of the wave motion?
Line Definition
http://i59.tinypic.com/xgcjki.jpg

T=0
http://i60.tinypic.com/34y1c00.jpg

T=2
http://i60.tinypic.com/2s6mvr5.jpg

T=4
http://i57.tinypic.com/21d4ntj.jpg

T=6
http://i59.tinypic.com/288pfsj.jpg

T=7
http://i60.tinypic.com/66b2ty.jpg

T=10
http://i60.tinypic.com/fz7xiq.jpg

T=13
http://i57.tinypic.com/6ns0uq.jpg
divoone1985 is offline   Reply With Quote

Old   May 10, 2015, 07:13
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You have set the line to use only 10 sampling points. If you make it a cut line you will get the full accuracy. Problem solved.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   May 14, 2015, 07:29
Default
  #11
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You have set the line to use only 10 sampling points. If you make it a cut line you will get the full accuracy. Problem solved.
Thank you so much.
why I didn't see that?
but what is the different between cut line and 1000 sample line?
they are a little different in results.
divoone1985 is offline   Reply With Quote

Old   May 14, 2015, 07:48
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Sampling gets the 1000 values along the line by interpolating at each point from the nearby nodes. Cut puts a value on the line whenever the line cuts a control volume and means it does not need to do interpolation.

If you then do operations like lineInt on the line feature you will find cut is more accurate, but sampling is very close when you have lots of points. Sampling can be miles off when you only have a few points.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   May 16, 2015, 16:08
Lightbulb
  #13
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Sampling gets the 1000 values along the line by interpolating at each point from the nearby nodes. Cut puts a value on the line whenever the line cuts a control volume and means it does not need to do interpolation.

If you then do operations like lineInt on the line feature you will find cut is more accurate, but sampling is very close when you have lots of points. Sampling can be miles off when you only have a few points.
Yes, Thank you again.
do you know why it's graph is upper than correct value?
my water depth is 1.66 but the cut line graph at t=0 show 1.71
divoone1985 is offline   Reply With Quote

Old   May 16, 2015, 19:46
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you are using a sampling line then it does not have many values to use for the calculation so accuracy will suffer. Use a cut line instead.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   May 17, 2015, 04:35
Lightbulb
  #15
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If you are using a sampling line then it does not have many values to use for the calculation so accuracy will suffer. Use a cut line instead.
I used a cut line.
but it show the water depth 1.71 at t=0
divoone1985 is offline   Reply With Quote

Reply

Tags
cfx-post


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
Problem in CFD -post pratikvn ANSYS 4 March 21, 2018 03:56
CFD Online Celebrates 20 Years Online jola Site News & Announcements 22 January 31, 2015 01:30
CFD Post problem Ledeeb FLUENT 0 December 9, 2014 10:36
Future CFD Research Jas Main CFD Forum 10 March 30, 2013 13:26
CEL mathematical functions in CFD Post Jonathan CFX 9 November 5, 2012 09:37


All times are GMT -4. The time now is 16:40.