CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Manipulation of every single mesh node inside the domain (OpenFoam)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 1, 2012, 22:51
Default Manipulation of every single mesh node inside the domain (OpenFoam)
  #1
New Member
 
Join Date: Jan 2011
Posts: 5
Rep Power: 6
davide is on a distinguished road
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
davide is offline   Reply With Quote

Old   November 5, 2012, 17:34
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: Amherst, MA USA - San Diego, CA USA
Posts: 285
Rep Power: 9
kmooney is on a distinguished road
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);
Here I'm moving the mesh every timestep by a vector deltaC. You could loop through the motion vectors in 'newPoints' and move them independently if you wanted.

I hope that helps you out a bit.

Cheers!
Kyle
kmooney is offline   Reply With Quote

Old   November 27, 2012, 14:28
Default
  #3
New Member
 
Join Date: Jan 2011
Posts: 5
Rep Power: 6
davide is on a distinguished road
Hey Kyle,

Thanks for the reply.

I will give it a shot and let you know the results.

Thanks
D
davide is offline   Reply With Quote

Old   November 28, 2012, 18:18
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
hello
I have the same problem.where in solver i should add this code?
Thank you.
immortality is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38
mesh from ANSA to OpenFOAM bephi OpenFOAM Meshing & Mesh Conversion 18 April 8, 2013 07:14
query about domain and mesh motion of tube carrying fluid hasan56 CFX 3 October 26, 2011 16:53
Domain Imbalance HMR CFX 3 March 6, 2011 21:10
SnappHexMesh Mesh creating a Mesh inside a Cylinder? abu OpenFOAM Mesh Utilities 0 February 15, 2011 05:39


All times are GMT -4. The time now is 10:22.