|
[Sponsors] |
December 15, 2008, 13:16 |
dear all,
i have been looking
|
#1 |
Guest
Posts: n/a
|
dear all,
i have been looking at some of the exsiting utilities in order to transform my mesh before running interfoam. what i like to do is to be able to rotate and/or translate part of my mesh (a patch), say a box. imagine i have a certain waterlevel in my domain and before the sim. starts i like to tranform the box as explained to evealuate differents setups. in order to do this i looked at the rotatemesh utility and the transformpoints which are similar but only works for the whole mesh, if i understand this right? further i looked at making some sort of submesh and transform this but still i run in to problems specifying the part i like to move and move this without errors. has anybody tried something like this? anybody who could maybe have an idea how to implement if there is no way already? thank you Erik |
|
December 15, 2008, 17:40 |
Erik,
Do try this:
//
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
Erik,
Do try this: // Rotate all points belonging to the patch-name 'patchName' by 'theta' // about an axis p1-p2, translate by a distance defined by 't', and update the mesh void rotatePoints ( ) { } // Move points that lie on the box patch const labelList& boxPoints = mesh.boundaryMesh()[patchID].meshPoints(); forAll (boxPoints, index) { } // Move the boundary points mesh.movePoints(meshPoints); </blockquote> } |
|
December 16, 2008, 13:52 |
Sandeep,
Thank you!
i will
|
#3 |
Guest
Posts: n/a
|
Sandeep,
Thank you! i will implement this to try when i get some time over, just have a bit much now, really appreciate your help! sincerely Erik |
|
December 17, 2008, 15:59 |
brilliant, thank you, i have u
|
#4 |
Guest
Posts: n/a
|
brilliant, thank you, i have understood the general idea!
i had some trouble thinking how to move mesh without iterating over all the points but now this works and thats happiness! Erik |
|
January 4, 2009, 15:19 |
hi again, i thought i got it w
|
#5 |
Guest
Posts: n/a
|
hi again, i thought i got it working.
in fact, nothing happends. i see when running that the "solving for celldisplacement" is doing nothing. any idea? thanks |
|
January 4, 2009, 21:53 |
You haven't provided BC inform
|
#6 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
You haven't provided BC information to the motionSolver. Looks like you're using the displacement-based motion solvers, so you'll have to assign it using pointPatchFields. For a hint, look at:
http://www.cfd-online.com/cgi-bin/Op...=8407#POST8407 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fast Fourier Transform | Lourival | Main CFD Forum | 21 | June 7, 2007 01:53 |
Fast Fourier Transform | Lourival | FLUENT | 0 | May 16, 2007 15:02 |
RMS velocity coordinates transform ??? | lcw | FLUENT | 0 | February 22, 2006 23:29 |
Joukowskii transform | Alex | Main CFD Forum | 3 | December 7, 2000 09:27 |
mises transform | rameez | Main CFD Forum | 1 | January 18, 2000 15:26 |