Commit f8c65b4e authored by Christoph Pflaum's avatar Christoph Pflaum
Browse files

im wesentlichen bei FFT variablen scale eingefuegt

parent b020896d
This diff is collapsed.
......@@ -125,6 +125,25 @@ void VariableFFT::init() {
assignmentBlockgrid = NULL;
}
void VariableFFT::setDomainStrech(double strechX, double strechY) {
Blockgrid2D* blockGridFFT = Give_blockgrid();
blockGridFFT->SetDomainStrech(strechX,strechY);
}
double VariableFFT::getHx() const {
return Hx * Give_blockgrid()->getStrechX();
}
double VariableFFT::getHy() const {
return Hy * Give_blockgrid()->getStrechY();
}
double VariableFFT::getNx() { return Nx; }
double VariableFFT::getNy() { return Ny; }
double VariableFFT::getSizeX() {
return Hx*Nx * Give_blockgrid()->getStrechX();
}
double VariableFFT::getSizeY() {
return Hy*Ny * Give_blockgrid()->getStrechY();
}
VariableFFT::~VariableFFT() {
if(ownBlockGrid) blockgrid;
......
......@@ -50,6 +50,7 @@ public:
VariableFFT(VariableFFT* other);
VariableFFT(const VariableFFT& other);
~VariableFFT();
void setDomainStrech(double strechX, double strechY);
void FFT();
void inversFFT();
......@@ -67,12 +68,12 @@ public:
std::complex<double> defaultInterpolation);
double getHx() const { return Hx; }
double getHy() const { return Hy; }
double getNx() const { return Nx; }
double getNy() const { return Ny; }
double getSizeX() const { return Hx*Nx; }
double getSizeY() const { return Hy*Ny; }
double getHx() const;
double getHy() const;
double getNx();
double getNy();
double getSizeX();
double getSizeY();
/*
......
......@@ -61,6 +61,9 @@ class Blockgrid2D {
* @param strechDomainY streched die Geometrie um Faktor strechDomainY in y-Richtung
*/
void SetDomainStrech(double strechDomainX_,double strechDomainY_) { strechDomainX = strechDomainX_; strechDomainY = strechDomainY_; }
double getStrechX() const { return strechDomainX; }
double getStrechY() const { return strechDomainY; }
inline bool inStrechedDomain(const D2vector& point_coord);
double MinimumStrechedX() { return ug->MinimumX()*strechDomainX; };
double MinimumStrechedY() { return ug->MinimumY()*strechDomainY; };
......
......@@ -906,6 +906,7 @@ void VectorOfArrowsCreatorComplex::createVectorList(QVector<QPointF>& startP, QV
double signX = 1.0;
double signY = 1.0;
//test NOW
if(valueUx.real() < 0.0) signX = -1.0;
if(valueUy.real() < 0.0) signY = -1.0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment