dear all, i have been looking
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?
Erik, Do try this: //
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
// Move points that lie on the box patch
const labelList& boxPoints = mesh.boundaryMesh()[patchID].meshPoints();
forAll (boxPoints, index)
// Move the boundary points
Sandeep, Thank you! i will
i will implement this to try when i get some time over, just have a bit much now, really appreciate your help!
brilliant, thank you, i have u
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!
hi again, i thought i got it w
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?
You haven't provided BC inform
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:
|All times are GMT -4. The time now is 17:29.|