Surface elevation sigsegv on "sampledSurfaceElevation::sampleIntegrateAndWr ite"
Hi, I'm trying to use the surface elevation utility and probes to calculate velocities but I'm getting this error after a few time steps:
Code:
smoothSolver: Solving for alpha.water, Initial residual = 0.000163258, Final residual = 1.37002e-13, No Iterations 2 Code:
deleteParentOutputDirectory false; Code:
surfaceElevationAnyName Does anyone know what this error means or where it's coming from? |
Good afternoon all,
I will try to answer some of the questions: @Ariel #1135: It is quite likely that your wave gauges are outside of your computational domain. Kind regards, Niels |
Niels.
thank you for your response. I am now trying to fix the location of the wave gauges but am very confused by what is happening with this in the waveFlume tutorial: First of all, in this line in the controlDict file: Code:
#includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_controlDict"; Code:
constant/probeDefinitions Code:
surfaceElevationAnyName 1) What are the add and stretch values? 2) If I want to interpolate for surface elevation at several different areas in my wave tank, say to look for surface elevation decay, how would I set up more than one lineDistribution or can I do this in the way that I would do it for a system/probeDict file? Thanks a lot for any advice, Ariel |
Hi Ariel,
Note that there are generated VTK-files that show the locations of your wave gauges, when you execute waveGaugesNProbes. This makes it trivial to explore the effects of various parameters in paraView. Kind regards, Niels |
Hi Niels,
Thank you for your response. I am able to view the probes but am still not understanding how to manipulate some of the parameters. I have tried to turn on and off and change all features but just haven't been able to set up what I want for some reason. I am trying to calculate the surface elevation at different locations down a wave tank, I think just like the waveFlume tutorial. My wave tank is 600 meters long, the wavelength is 93 m, the depth is 10 m and gravity acts in the z direction. When I view the vtk file in parafoam, it simply doesn't look correct...as if the probes aren't stretching from the bottom to the sea surface or their location doesn't seem right. Here is my constant/probeDefinitions file: Code:
surfaceElevationAnyName Thank you EDIT: Ok I seem to have correctly placed the probes but it was almost by luck.. - Can you please explain the "add () " parameter? - I messed around with the y-value and it didn't seem to make a difference... I don't understand why not? |
Hallo Ariel,
It is good that you got it working. First of all, allow me to say that you have full access to the source code, so it should be fairly straight forward to figure out, what the code it doing. That said, for the 'pointDistribution' of type 'lineDistribution', then the 'linestart', 'lineend', 'N' and 'stretch' define N points along a line (e.g. a horizontal line). The stretch parameter allows you to define a non-equidistant stretch of the points. The keyword 'axis' comes from the original sample utility and should be given as your vertical axis. The parameter 'add' is a vector (vertical), which is added to each of the points on the lineDistribution. The original and translated point (translated by 'add') define a vertical line that is your wave gauge. Kind regards, Niels |
Niels -
thank you very much for your clear explanation. I've been looking through the source code and did manage to get it working but was still struggling to really picture what was happening! Very silly, I know.. I do seem to have it working although I had a look at the free surface elevation and it's always a negative value. I will need to check where my probes are but I thought I had set them up to extend to 4 meters above the sea surface, which I expected would give negative and positive values. I am not looking at my code at the moment and will try and fix this tomorrow based on what you've said. Thanks again Ariel |
Quote:
Hope you are doing fine. I am having the same problem as yours with probe definition. My gauges are well within the computational domain as i see them in paraFoam. but when I execute postProcessWaves2Foam it shows the same error as yours. how was you able to fix it? I would really appreciate your help. Regards Khalid |
All times are GMT -4. The time now is 21:53. |