|
[Sponsors] |
Manipulation of every single mesh node inside the domain (OpenFoam) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 1, 2012, 22:51 |
Manipulation of every single mesh node inside the domain (OpenFoam)
|
#1 |
New Member
Join Date: Jan 2011
Posts: 5
Rep Power: 15 |
Hello everyone,
I am new to OpenFoam and I would like to simulate an unsteady model that requires moving boundary/mesh motion analysis. However, the motion of the mesh nodes are already prescribed (known) as a function of time. so I do not need to use any dynamic mesh solver to calculate the position of each node. Is it possible in OpenFoam to manipulate the position of each mesh node inside the domain as a function of time? I appreciate if someone would help me with this issue. Thanks D |
|
November 5, 2012, 17:34 |
|
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 |
Hi D,
You can do something like this to manipulate the mesh point locations as you like. You will need to incorporate this CV motion into your solver though relative/abs flux treatments. Uniform mesh point manipulation can be quite easy: Code:
vectorField delCentroid(mesh.points().size(), deltaC); vectorField newPoints = mesh.points() + delCentroid; mesh.movePoints(newPoints); I hope that helps you out a bit. Cheers! Kyle |
|
November 27, 2012, 14:28 |
|
#3 |
New Member
Join Date: Jan 2011
Posts: 5
Rep Power: 15 |
Hey Kyle,
Thanks for the reply. I will give it a shot and let you know the results. Thanks D |
|
November 28, 2012, 18:18 |
|
#4 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
hello
I have the same problem.where in solver i should add this code? Thank you. |
|
December 20, 2015, 07:58 |
|
#5 |
Member
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21 |
Hello.
If someone still interested. Code:
vector deltaC; deltaC.x() = 0.01; deltaC.y() = 0.01; deltaC.z() = 0.01; vectorField delCentroid(mesh.points().size(), deltaC); forAll(mesh.points(),i) { Info << "mesh.points() " << mesh.points()[i] << nl << endl; } vectorField newPoints = mesh.points() + delCentroid; mesh.movePoints(newPoints); runTime.write(); |
|
May 12, 2017, 18:19 |
|
#6 | |
New Member
Clark Yan
Join Date: Jun 2015
Location: Ottawa, Canada
Posts: 5
Rep Power: 11 |
Quote:
Thank you for your code. I was wondering if you can indicate where we can add this type of code to? The source code of a solver like "displacementLaplacian" or a motion type like "oscillatingDisplacement"? Thanks, Clark |
||
January 24, 2019, 17:39 |
|
#7 | |
New Member
Khalid Abdelaziz
Join Date: Jan 2019
Posts: 1
Rep Power: 0 |
Quote:
I tried the code that you posted and got the following error: --> FOAM FATAL ERROR: V0 is not available From function fvMesh::V0() const in file fvMesh/fvMeshGeometry.C at line 382. Any help would be appreciated. Thanks, Khalid |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappHexMesh Mesh creating a Mesh inside a Cylinder? | abu | OpenFOAM Meshing & Mesh Conversion | 1 | April 4, 2017 10:57 |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
[Commercial meshers] mesh from ANSA to OpenFOAM | bephi | OpenFOAM Meshing & Mesh Conversion | 18 | April 8, 2013 08:14 |
query about domain and mesh motion of tube carrying fluid | hasan56 | CFX | 3 | October 26, 2011 17:53 |