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/)
-   -   sample line for a dynamic mesh (https://www.cfd-online.com/Forums/openfoam-solving/171829-sample-line-dynamic-mesh.html)

Thangam May 18, 2016 01:05

sample line for a dynamic mesh
 
I am trying to sample a line which lies on the surface of the mesh that is deforming. To simplify the case, assume a box with one surface of the box undergoing expansion and contraction and line to be sampled is on this surface. Since this cannot be done with the current line sampling option either in the controlDict or sampleDict i.e.
Code:

profile01
          {

              type        uniform;
              axis        x;
              start      (-1 0 0);
              end        (1 0 0);
              nPoints    100;

          }

I tried to use the probes (in this case 100 probes) with the option

Code:

fixedLocations  false;
This does the job (after sorting out the issues since it was on the edge rather than inside the control volume), however, the difficulty arises when the simulation ends and you need to continue from the last saved time step. The controlDict or probesDict needs to be modified with the displaced points for the probe locations for the surface every time the simulation is restarted. Also, I do not want to sample the entire patch because of the size. Is there a way to create a line that can be sampled in such scenarios during the run-time?


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