surfaceElevation: "cell does not contain point"
1 Attachment(s)
Hi all -
I have a frustrating problem using the surfaceElevation utility. I use this often without problems with exactly the same locations, same domain size, but I can't seem to figure out what's happening here. Is there a way to view the wave gauge locations using surfaceElevation? I know you can do it using waveGaugesNProbes but I couldn't figure out how to set up my surfaceElevation wave gauges using that. I'm getting the following error: Code:
Reading g I know this has to do with there not being a cell where it's attempting to sample but there should definitely be a cell there?? I want to view where it's trying to sample because I can't figure out why it thinks there's nothing there. I am using 160 wave gauges around a cylinder so this is just a snippet of my surfaceElevationDict: Code:
setFormat raw; Thanks in advance for any help on this. Ariel |
Good evening.
@Ariel: I am not familiar with this error. I can only recommend you to track down the problem by removing one wave gauge at the time. Kind regards, Niels |
Hi Niels,
Thanks for the reply. Is there some way to set up the waveGaugesNProbes using sets? I have my probes in pretty specific locations and I can't figure out how to do that in probeDefinitions (as in, can I define the sets within this file somehow instead of using some automated distribution?) Or is there a way to view the surfaceElevation probes using surfaceElevationDict (which I know I can do if I run waveGaugesNProbes)? I tried using userDefinedDistribution but then I got the error: Code:
"ill defined primitiveEntry starting at keyword 'sets' on line 25... Ariel **EDIT** Ok so I have fixed my problem but I still have two queries: 1) I don't understand why it was fixed, the changes I made were something like 5.06966 to 5.07, and this fixed it. I really don't understand how the tiny change would have had such an effect? Also note, I have used the same surfaceElevationDict with a range of simulations with the same computational domain size, although a slightly different mesh resolution (this case is slightly coarser than others) 2) I would still like to find a way to view my wave gauges (create a vtk file with surfaceElevationDict) |
Quote:
I found that if you shrink it too much, the wave doesn't get fully absorbed and you will see some reflection. I played around with the mu value (alphaCoefficient in relaxation zone definition) and lowered it to 1 and was able to reduce the relaxation zone to just under 1 wavelength without getting reflection. Hope that helps! |
Hi Ariels,
I have no idea of the cause of the error. It is most likely related to the sampling function in your version of OpenFoam. An error similar to the reason that pointInMesh for snappyHexMesh is not allowed on grid lines. You can automatically create vtk-files, if you use the utility waveGaugesNProbes based on input in constant/probeDefinitions. Kind regards Niels |
Hi Niels,
Thanks for your response. Yes I usually would use the waveGaugesNProbes to view the wave gauges but I could not figure out how to set up the locations of the probes in the same way I'm doing that in my surfaceElevationDict (I don't want them automatically set up). Is there a way to create the vtk file on its own or using surfaceElevation? Or else a better way to set up the probeDefinitions file to specify locations? Best, Ariel |
Hi Ariel,
There is a method already in waveGaugesNProbes, where you can provide user-defined location. I think it is called userDefinedDistribution instead of lineDistribution. I do not have access to the source code right now, so cannot check, but it should be easy for you. A VTK-file will be generated, if you use this approach. Kind regards, Niels |
All times are GMT -4. The time now is 23:15. |