Skip to content

Commit

Permalink
Freesurface Sampling Upgrade (Exawind#580)
Browse files Browse the repository at this point in the history
* setting up FreeSurface methodology to be able to find the interface using any coordinate search direction.

* adding directional information to the ASCII header

* initializing some uninitialized things
  • Loading branch information
mbkuhn authored May 4, 2022
1 parent e5439f1 commit 9e008bb
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 87 deletions.
11 changes: 7 additions & 4 deletions amr-wind/utilities/sampling/FreeSurface.H
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,20 @@ private:
//! case of a breaking wave)
int m_ninst{1};

//! Coordinate direction to search along, default is z
//! (this also determines the meaning of start and end points)
int m_coorddir{2};
//! Grid coordinates, determined as a function of m_coorddir
int gc1 = 0;
int gc2 = 1;

//! Parameters to set up plane
amrex::Vector<amrex::Real> m_start, m_end;
//! Locations of points in 2D grid
amrex::Vector<amrex::Array<amrex::Real, 2>> m_locs;
//! Output coordinate
amrex::Vector<amrex::Real> m_out;

//! Orientation of interface search (always in z)
const int m_orient = 2;
const amrex::Vector<int> m_griddim = {0, 1};

//! Frequency of data sampling and output
int m_out_freq{100};
};
Expand Down
Loading

0 comments on commit 9e008bb

Please sign in to comment.