|
[Sponsors] |
April 27, 2015, 09:50 |
a problem in CFD-Post
|
#1 |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
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? |
|
April 27, 2015, 19:13 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
April 30, 2015, 01:44 |
|
#3 | |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
Quote:
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? |
||
April 30, 2015, 03:38 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
May 6, 2015, 05:36 |
|
#5 | |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
Quote:
is this correct? i think it's wrong. where is my mistake? |
||
May 6, 2015, 20:40 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
May 8, 2015, 13:57 |
|
#7 | |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
Quote:
i think there is a problem in the expression lineint |
||
May 9, 2015, 07:46 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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? |
|
May 9, 2015, 15:52 |
|
#9 | |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
Quote:
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 |
||
May 10, 2015, 07:13 |
|
#10 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
|
|
May 14, 2015, 07:29 |
|
#11 | |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
Quote:
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. |
||
May 14, 2015, 07:48 |
|
#12 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
May 16, 2015, 16:08 |
|
#13 | |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
Quote:
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 |
||
May 16, 2015, 19:46 |
|
#14 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
|
|
May 17, 2015, 04:35 |
|
#15 |
Member
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11 |
||
Tags |
cfx-post |
|
|
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 |