|
[Sponsors] |
how to manipulate pointMotionU or pointdisplacement when running |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 29, 2013, 05:32 |
how to manipulate pointMotionU or pointdisplacement when running
|
#1 |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Hi
Does anyone who knows how to manipulate pointMotionU file or pointdisplacement file when running in openfoam 2.1+? I mean if there is a way to change the speed of dynamic mesh according to the solution in openfoam 2.1+. Thanks. |
|
August 30, 2013, 06:30 |
|
#2 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
I put my code on this topic few day ago: http://www.cfd-online.com/Forums/ope...tml#post447947
Enjoy |
|
August 30, 2013, 17:36 |
|
#3 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
Thanks Yu |
||
August 30, 2013, 18:29 |
|
#4 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
"pointNormal" is a function that returns a vector that is defined as the "normal direction at the node".
The problem here is to give the direction of the motion (the code can only moves nodes, not edges or faces). First you need to understand that each face has a "normal vector" that is defined at the center of the face. Then, you can understand the "pointnormal" as an average of the neigbours faces normal. For example, if you are in 2D and that you have 2 faces: One face is vertical (its normal vector is then horizontal) and another is horizontal (its normal vector is vertical). The "pointNormal" would be a unit vector that is at 45 degrees (average of 0° and 90°). Hope you get it |
|
August 31, 2013, 06:52 |
|
#5 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
1. for 2D case, would the node on the most side own only one face? It seems to be so because I have printed them out ,and find the pointNormal for the node at the coner and for the internal node are the same. 2. I did an experince on a plane boundary yesterday, making half of the node on the boundary move at the same speed and the other half keep stable. In my opinion, only a few of nodes in the middle of the boundary should have an unusual pointNormal, others should be the same(e.g. (-1,0,0) for a vertical plane). However, the result is many of the are unusual. What's more , some of them did not only unnomalised, but also have a component of Z axis.(e.g. PointNormalVector.size(): 42 index0: (-1 1.57209e-15 2.35099e-32)), which confused me a lot. Have you ever notice these thing? and have you got the answer? Thanks |
||
September 1, 2013, 15:38 |
|
#6 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
Well, the best thing you can do is to export each step and to visualize it with paraview for example (you can really see the motion).
For your "strange" point: -1 1.57209e-15 2.35099e-32 you are talking about 2 time 10 power -32 that is 0.0000000000000000000000000000000235099 to be exact. In other words, it is a "computer mistake" that doesn't define exactly zero. There is nothing strange in this if you take a look at a computer architecture |
|
September 2, 2013, 05:24 |
|
#7 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
|
||
September 6, 2013, 09:54 |
|
#8 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
The code can run in parallel under certain conditions... The main problem is when the deforming boundary belong to 2 (or more) domains. The node at the interface might have a strange behavior. But if your boundary belong to a single domain, everything should be ok.
|
|
September 6, 2013, 12:41 |
|
#9 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
|
||
September 7, 2013, 07:17 |
|
#10 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
I tried few cases but I didn't really care about it since I had to run my simulation with 1 cpu for some other reasons. I mainly found that it is the interface between two domains that start to mess up.
You can try to export each time step and read the value in the pointdisplacement file. Anyway, running a deforming mesh in parallel is always hard, even in Fluent |
|
September 7, 2013, 07:58 |
|
#11 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
|
||
September 11, 2013, 13:49 |
|
#12 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
|
||
September 11, 2013, 14:28 |
|
#13 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
I haven't been able to run any test yet. I am currently working on another project that takes 200% of my time.
I have to say that your notice is quite interesting ! Maybe the programmers only made half of the work by optimizing the pointMotionU concept and not the pointdisplacement. It would be interesting to compare the codes. |
|
September 11, 2013, 15:19 |
|
#14 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hello,
I might add that I have been running into the same problems using deforming boundaries in OpenFoam-1.6-ext. I solved the problem by synchronising the point displacement/point velocity on the parallel boundaries prior to executing the mesh motion. To be more specific, then I synchronised the values before I added them to the boundary patch(es) of my moving variable. Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
September 11, 2013, 16:05 |
|
#15 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
Nice idea ! Would you mind posting the corresponding piece of code ?
|
|
September 11, 2013, 17:08 |
|
#16 | |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
Quote:
I think my problem is not this. I implemented the deforming boundaries in OpenFoam-2.1.1, however, my work did not run even one processor did not contained the deforming boundary(two in total). I am not sure if there is something wrong in my work. I think version difference is not the problem because I have ever had a look at them and found they are the same. And I think you solution only solved the problem when the deforming boundary is located in several processors, am I right? |
||
September 11, 2013, 17:57 |
|
#17 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Yes, my problem occurred, when multiple processors shared the same (moving) patch.
Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
October 7, 2013, 11:19 |
|
#18 |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
||
October 7, 2013, 15:50 |
|
#19 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Yu,
I am using the laplaceFaceDecomposition method, which is available in 1.6-ext. Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
October 7, 2013, 16:58 |
|
#20 |
Member
Yu CAO
Join Date: May 2013
Posts: 76
Rep Power: 13 |
It seems that this solver did not exist in 2.1.0+? Did your codes similar to interTrackFoam when running them in parallel? Have you ever tried any other solver for motion in parallel? As far as I know, laplaceFaceDecomposition method is time-consuming as it would probablelly redraw the mesh?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
License trouble: ANSLIC_ADMIN, FLEXlm not running, but two lmgrd processes running! | dancoz87 | ANSYS | 17 | November 14, 2016 02:10 |
Something weird encountered when running OpenFOAM in parallel on multiple nodes | xpqiu | OpenFOAM Running, Solving & CFD | 2 | May 2, 2013 05:59 |
What do you CFD guys do during a long simulation running? | bearcat | Main CFD Forum | 5 | July 23, 2009 09:08 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 10:38 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 08:52 |