|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Jun 2017
Posts: 3
Rep Power: 7 ![]() |
Hi guys,
I am trying to implement the following formula into my code: ![]() That is, I aim at calculating this "antisymmetric" velocity for every time step. How can I implement especially the ![]() Of course, ![]() Code:
volVectorField U Regards fusionfire |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 8 ![]() |
Hi there,
What is your domain and mesh like? On the top of my head, I cannot think of a way to access velocity at the inverse location unless the mesh is a uniform structured Cartesian or cylindrical one. USV |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Jun 2017
Posts: 3
Rep Power: 7 ![]() |
Hi,
the domain is an ellipsoid with its center at the origin, generated with a rather complicated snappyHexMesh file. The coordinate system is cartesian though. Regards |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 8 ![]() |
Hi,
If your mesh is symmetrical about the origin, then perhaps you could build a volScalarField whose internalField consists of the indices of the cells centered at the corresponding inverse locations. Then, you could simply loop over the internalField to get your ![]() Can you attach an image of your mesh? That could give others some ideas. USV |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 8 ![]() |
Actually, if you mesh only the first octant and then mirror mesh to get the full mesh, you would get a symmetrical mesh about the origin. Then, the cell index at the inverse location could probably be obtained by adding a constant number to the cell index in the first four octants where z (or x or y) is positive.
USV |
|
![]() |
![]() |
![]() |
Tags |
coordinates, position, velocity, volvectorfield |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple floating objects | CKH | OpenFOAM Running, Solving & CFD | 14 | February 20, 2019 09:08 |
Results of CFX Simulations | Sof_70_Usthb | CFX | 3 | July 9, 2011 06:15 |
Accessing Velocity Components | anfho | OpenFOAM Programming & Development | 1 | June 30, 2011 19:21 |
accessing another velocity field in bc | daviderzen | OpenFOAM | 0 | April 20, 2011 06:24 |
Plot velocity profile at different position | AirS | Main CFD Forum | 2 | December 3, 2010 06:03 |