|
[Sponsors] |
Access boundaryPoints for TetFEM ~ Help HJasak :) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 20, 2019, 14:58 |
Access boundaryPoints for TetFEM ~ Help HJasak :)
|
#1 |
New Member
Charlie
Join Date: Aug 2010
Posts: 14
Rep Power: 15 |
I'm performing mesh morphing with the tetFEM solver in foam-extend-4.0. As expected it truly is far more robust than FVM (cell-centered) laplacian solvers. Now I want to try some more complex motions and define explicitly the pointMotion (now motionU in tetFem solver), but I can't seem to access the mesh.boundaryMesh[patchI].points.blah(), like I normally do. In fact even within the deformedTetFemGeom utility when I try to report the points, it just lists the FVM patch points, not the added FEM (mid) points.
I see some functions within tetPolyMesh libs, but really have no idea how I can access these functions (calcLocalPoints?) at the solver level to get a list of the FEM points on a given patch, so I can use to prescribe the motionU for a given patch. HJasak Help! Your my only hope.... unless others also know ::FoamOn Last edited by shackman287; June 23, 2019 at 18:52. |
|
June 23, 2019, 18:51 |
Solution
|
#2 |
New Member
Charlie
Join Date: Aug 2010
Posts: 14
Rep Power: 15 |
So I figured it out tinkering around in the tetFiniteElement src.
Here are my solution steps for anyone trying to access the FEM points for a given patch. 1. Hijacked the deformedTetFemGeom.C file to basically create a "tetPolyMesh tetMesh(mesh); " object and call member functions from that object " Info<< tetMesh.getPoints() <<endl; " 2. Created "pointField tetPolyMesh::getPoints()" member function in tetPolyMesh.C/.H to call a "boundaryTriPoints" member function. 3. Created "boundaryTriPoints" function in tetPolyBoundaryMesh.C/.H to provide a pointField using the 'operator[](patchid).localPoints' Hope this helps as an easy example of bringing "lower src code" functionality up to the executable level (deformedTetFemGeom.C). ::FoamOn |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting access to mesh (fvMesh) via object registry | Chris Lucas | OpenFOAM Programming & Development | 18 | January 15, 2024 02:57 |
[DesignModeler] DesignModeler Scripting: How to get Full Command Access | ANT | ANSYS Meshing & Geometry | 53 | February 16, 2020 15:13 |
Is there a way to access the gradient limiter in Fluent ? | CFDYourself | FLUENT | 1 | February 16, 2016 05:49 |
Online libraries - with access to Journals | momentum_waves | Main CFD Forum | 2 | December 12, 2007 10:08 |
UDF Data Access Macro | Woo Meng Wai | FLUENT | 0 | November 6, 2007 20:23 |