#include <EvenStreamlinePlace.h>
Public Member Functions | |
bool | cal_a_sample_of_streamline (int traj, int &cur_lineindex, int &movetonext, double curpt[2], double interval, double &cur_length) |
void | cal_euclidean_dist_2 (int triangle, double p[3], double dsep, double discsize, DynList_Int *trianglelist) |
SamplePt ** | cal_samplepts_when_tracing (int traj, double interval, int &cur_line, int &movetonext, double &cur_length, SamplePt **samples, int &num_samples) |
bool | close_to_cur_samplePt (double p[2], int triangle, SamplePt **samples, int num_samples, double separate_dist, double discsize, double sample_interval) |
void | compute_phi_in_quad (int face, double x, double y, double &phi) |
void | compute_tensor_at_quad (int face, double x, double y, icMatrix2x2 &ten) |
bool | cross_vertex_ten_quad (int &face_id, double cur_p[2], double pre_p[2], int &passornot, int type) |
EvenStreamlinePlace (int initsize) | |
void | get_cell_through_ver (int vertid, int &cell, int type) |
int | get_cellID_givencoords (double x, double y) |
void | get_next_cell_2 (int &face_id, double pre[2], double cur[2], int &PassVertornot, int type) |
bool | get_nextpt_RK23_ten_quad (double first[2], double second[2], int &face_id, int type) |
int | get_nextpt_RK23_ten_quad (double first[2], double second[2], int &face_id, int type, int index, int sep_index) |
void | get_tenvec_quad (double cur_p[2], double vec[2]) |
bool | grow_a_majRoad (double seed_p[2], int triangle, double dtest, double discsize, double Sample_interval, double loopdsep, double dist2sing, double streamlinelength, int type, icVector2 &direction) |
bool | grow_a_separatrix (double start[2], double seed_p[2], int triangle, double dtest, double discsize, double Sample_interval, double loopdsep, double dist2sing, double streamlinelength, int type, icVector2 direction, int index, int sep_index) |
void | init () |
void | init_major_line_info () |
bool | is_in_cell (int id, double x, double y) |
bool | is_in_reg_cell (int id, double x, double y) |
void | reset () |
void | reset_dist (DynList_Int *trianglelist) |
void | reverse_streamline (int streamlineid) |
void | RK23_2d (double pre_p[2], double next_p[2], double &hstep_loc, double &hnext, double eps, double &eps_did) |
void | set_default_parameters () |
void | setTfCore (TfCore *tfCore) |
int | trace_majRoad_in_quad (int &face_id, double globalp[2], int type, double dtest, double loopsep, double dist2sing, double sample_interval, double discsize, int &flag) |
int | trace_separatrix_in_quad (int &face_id, double globalp[2], int type, double dtest, double loopsep, double dist2sing, double sample_interval, double discsize, int &flag, int index, int sep_index) |
~EvenStreamlinePlace () | |
Public Attributes | |
double | discsize |
double | dist2sing |
double | dsep |
double | euler_stepsize |
TrajectoryList * | evenstreamlines |
int | every_nsample |
int | g_face |
int | g_type |
int | globalface |
double | hstep |
bool | isAdd_push |
double | loopdsep |
TfCore * | m_tfCore |
double | majorDensity |
double | minstartdist |
double | mintenline_length |
int | num_tracingpoints |
icVector2 | outside_push |
double | percentage_dsep |
double | predict_stepsize |
float | push_rank |
QuadMesh * | quadmesh |
double | samp [2] |
double | sample_interval |
SamplePtList ** | samplepts |
double | seeddist |
double | streamlinelength |
icVector2 | tenline_dir_global |
DynList_Int * | trianglelist |
int | which_triangle |
Definition at line 13 of file EvenStreamlinePlace.h.
EvenStreamlinePlace::EvenStreamlinePlace | ( | int | initsize = 300 | ) |
Definition at line 7 of file EvenStreamlinePlace.cpp.
Definition at line 35 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::cal_a_sample_of_streamline | ( | int | traj, |
int & | cur_lineindex, | ||
int & | movetonext, | ||
double | curpt[2], | ||
double | interval, | ||
double & | cur_length | ||
) |
Definition at line 1178 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::cal_euclidean_dist_2 | ( | int | triangle, |
double | p[3], | ||
double | dsep, | ||
double | discsize, | ||
DynList_Int * | trianglelist | ||
) |
Definition at line 355 of file EvenStreamlinePlace.cpp.
SamplePt ** EvenStreamlinePlace::cal_samplepts_when_tracing | ( | int | traj, |
double | interval, | ||
int & | cur_line, | ||
int & | movetonext, | ||
double & | cur_length, | ||
SamplePt ** | samples, | ||
int & | num_samples | ||
) |
Definition at line 1226 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::close_to_cur_samplePt | ( | double | p[2], |
int | triangle, | ||
SamplePt ** | samples, | ||
int | num_samples, | ||
double | separate_dist, | ||
double | discsize, | ||
double | sample_interval | ||
) |
Definition at line 435 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::compute_phi_in_quad | ( | int | face, |
double | x, | ||
double | y, | ||
double & | phi | ||
) |
Definition at line 163 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::compute_tensor_at_quad | ( | int | face, |
double | x, | ||
double | y, | ||
icMatrix2x2 & | ten | ||
) |
Definition at line 103 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::cross_vertex_ten_quad | ( | int & | face_id, |
double | cur_p[2], | ||
double | pre_p[2], | ||
int & | passornot, | ||
int | type | ||
) |
Definition at line 937 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::get_cell_through_ver | ( | int | vertid, |
int & | cell, | ||
int | type | ||
) |
Definition at line 918 of file EvenStreamlinePlace.cpp.
int EvenStreamlinePlace::get_cellID_givencoords | ( | double | x, |
double | y | ||
) |
Definition at line 150 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::get_next_cell_2 | ( | int & | face_id, |
double | pre[2], | ||
double | cur[2], | ||
int & | PassVertornot, | ||
int | type | ||
) |
Definition at line 1023 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::get_nextpt_RK23_ten_quad | ( | double | first[2], |
double | second[2], | ||
int & | face_id, | ||
int | type | ||
) |
Definition at line 271 of file EvenStreamlinePlace.cpp.
int EvenStreamlinePlace::get_nextpt_RK23_ten_quad | ( | double | first[2], |
double | second[2], | ||
int & | face_id, | ||
int | type, | ||
int | index, | ||
int | sep_index | ||
) |
Definition at line 310 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::get_tenvec_quad | ( | double | cur_p[2], |
double | vec[2] | ||
) |
Definition at line 197 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::grow_a_majRoad | ( | double | seed_p[2], |
int | triangle, | ||
double | dtest, | ||
double | discsize, | ||
double | Sample_interval, | ||
double | loopdsep, | ||
double | dist2sing, | ||
double | streamlinelength, | ||
int | type, | ||
icVector2 & | direction | ||
) |
Definition at line 1363 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::grow_a_separatrix | ( | double | start[2], |
double | seed_p[2], | ||
int | triangle, | ||
double | dtest, | ||
double | discsize, | ||
double | Sample_interval, | ||
double | loopdsep, | ||
double | dist2sing, | ||
double | streamlinelength, | ||
int | type, | ||
icVector2 | direction, | ||
int | index, | ||
int | sep_index | ||
) |
Definition at line 1487 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::init | ( | ) |
Definition at line 50 of file EvenStreamlinePlace.cpp.
Definition at line 1606 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::is_in_cell | ( | int | id, |
double | x, | ||
double | y | ||
) |
Definition at line 135 of file EvenStreamlinePlace.cpp.
bool EvenStreamlinePlace::is_in_reg_cell | ( | int | id, |
double | x, | ||
double | y | ||
) |
Definition at line 1216 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::reset | ( | ) |
Definition at line 191 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::reset_dist | ( | DynList_Int * | trianglelist | ) |
Definition at line 417 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::reverse_streamline | ( | int | streamlineid | ) |
Definition at line 1291 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::RK23_2d | ( | double | pre_p[2], |
double | next_p[2], | ||
double & | hstep_loc, | ||
double & | hnext, | ||
double | eps, | ||
double & | eps_did | ||
) |
Definition at line 230 of file EvenStreamlinePlace.cpp.
Definition at line 76 of file EvenStreamlinePlace.cpp.
void EvenStreamlinePlace::setTfCore | ( | TfCore * | tfCore | ) |
Definition at line 97 of file EvenStreamlinePlace.cpp.
int EvenStreamlinePlace::trace_majRoad_in_quad | ( | int & | face_id, |
double | globalp[2], | ||
int | type, | ||
double | dtest, | ||
double | loopsep, | ||
double | dist2sing, | ||
double | sample_interval, | ||
double | discsize, | ||
int & | flag | ||
) |
!!!!!need to judge which cell it will enter!!!!!
Definition at line 486 of file EvenStreamlinePlace.cpp.
int EvenStreamlinePlace::trace_separatrix_in_quad | ( | int & | face_id, |
double | globalp[2], | ||
int | type, | ||
double | dtest, | ||
double | loopsep, | ||
double | dist2sing, | ||
double | sample_interval, | ||
double | discsize, | ||
int & | flag, | ||
int | index, | ||
int | sep_index | ||
) |
!!!!!need to judge which cell it will enter!!!!!
Definition at line 726 of file EvenStreamlinePlace.cpp.
Definition at line 23 of file EvenStreamlinePlace.h.
Definition at line 27 of file EvenStreamlinePlace.h.
double EvenStreamlinePlace::dsep |
Definition at line 21 of file EvenStreamlinePlace.h.
Definition at line 43 of file EvenStreamlinePlace.h.
Definition at line 16 of file EvenStreamlinePlace.h.
Definition at line 25 of file EvenStreamlinePlace.h.
Definition at line 45 of file EvenStreamlinePlace.h.
Definition at line 45 of file EvenStreamlinePlace.h.
Definition at line 44 of file EvenStreamlinePlace.h.
double EvenStreamlinePlace::hstep |
Definition at line 41 of file EvenStreamlinePlace.h.
Definition at line 36 of file EvenStreamlinePlace.h.
Definition at line 26 of file EvenStreamlinePlace.h.
Definition at line 30 of file EvenStreamlinePlace.h.
Definition at line 46 of file EvenStreamlinePlace.h.
Definition at line 29 of file EvenStreamlinePlace.h.
Definition at line 47 of file EvenStreamlinePlace.h.
Definition at line 18 of file EvenStreamlinePlace.h.
Definition at line 35 of file EvenStreamlinePlace.h.
Definition at line 22 of file EvenStreamlinePlace.h.
Definition at line 42 of file EvenStreamlinePlace.h.
Definition at line 37 of file EvenStreamlinePlace.h.
Definition at line 31 of file EvenStreamlinePlace.h.
double EvenStreamlinePlace::samp[2] |
Definition at line 34 of file EvenStreamlinePlace.h.
Definition at line 24 of file EvenStreamlinePlace.h.
Definition at line 17 of file EvenStreamlinePlace.h.
Definition at line 28 of file EvenStreamlinePlace.h.
Definition at line 20 of file EvenStreamlinePlace.h.
Definition at line 40 of file EvenStreamlinePlace.h.
Definition at line 19 of file EvenStreamlinePlace.h.
Definition at line 33 of file EvenStreamlinePlace.h.