CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   pressure sensor on a floating body (https://www.cfd-online.com/Forums/openfoam-solving/149795-pressure-sensor-floating-body.html)

ashkan March 9, 2015 03:37

pressure sensor on a floating body
 
Hi All,

I am modelling a floating body (tethered to sea bed) in waves using OpenFOAM 2.3 and waves2foam. I need to measure pressure on particular locations on the floating body. I Know that I can define probe locations in controlDict but as far as I understood that would work for fixed points but my points are located on the floating body, is there any way to do this in OF 2.3?

I would highly appreciate any comments.

Cheers
Ashkan

ybapat March 9, 2015 04:05

Hello Ashkan,

If you look at probes.H in it has flag fixedLocations_. By default if is yes.

//- Fixed locations, default = yes
// Note: set to false for moving mesh calations where locations
// should move with the mesh
bool fixedLocations_;

I think you need to specify
fixedLocations no;
in probes dict in cotrolDict file .

Regards
-Yogesh

ashkan March 9, 2015 04:14

Quote:

Originally Posted by ybapat (Post 535267)
Hello Ashkan,

If you look at probes.H in it has flag fixedLocations_. By default if is yes.

//- Fixed locations, default = yes
// Note: set to false for moving mesh calations where locations
// should move with the mesh
bool fixedLocations_;

I think you need to specify
fixedLocations no;
in probes dict in cotrolDict file .

Regards
-Yogesh


Thanks Yogesh,
I had a look at the source code and it makes sense. As you said, I need to set fixedLocations = false

Many thanks again.
Ashkan


All times are GMT -4. The time now is 23:47.