Dear CS10-Gitlab-users, on Thursday, Feb 3 there will be maintenance. That will lead to a downtime of the CS10-Gitlab-service including Subversion and Mattermost chat from 09:30. This might take the whole day since we don't know how long it is going to take. We are sorry for the inconvenience! Best regards, CS10-Admin-Team

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() { ...@@ -125,6 +125,25 @@ void VariableFFT::init() {
assignmentBlockgrid = NULL; 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() { VariableFFT::~VariableFFT() {
if(ownBlockGrid) blockgrid; if(ownBlockGrid) blockgrid;
......
...@@ -50,6 +50,7 @@ public: ...@@ -50,6 +50,7 @@ public:
VariableFFT(VariableFFT* other); VariableFFT(VariableFFT* other);
VariableFFT(const VariableFFT& other); VariableFFT(const VariableFFT& other);
~VariableFFT(); ~VariableFFT();
void setDomainStrech(double strechX, double strechY);
void FFT(); void FFT();
void inversFFT(); void inversFFT();
...@@ -67,12 +68,12 @@ public: ...@@ -67,12 +68,12 @@ public:
std::complex<double> defaultInterpolation); std::complex<double> defaultInterpolation);
double getHx() const { return Hx; } double getHx() const;
double getHy() const { return Hy; } double getHy() const;
double getNx() const { return Nx; } double getNx();
double getNy() const { return Ny; } double getNy();
double getSizeX() const { return Hx*Nx; } double getSizeX();
double getSizeY() const { return Hy*Ny; } double getSizeY();
/* /*
......
...@@ -61,6 +61,9 @@ class Blockgrid2D { ...@@ -61,6 +61,9 @@ class Blockgrid2D {
* @param strechDomainY streched die Geometrie um Faktor strechDomainY in y-Richtung * @param strechDomainY streched die Geometrie um Faktor strechDomainY in y-Richtung
*/ */
void SetDomainStrech(double strechDomainX_,double strechDomainY_) { strechDomainX = strechDomainX_; strechDomainY = strechDomainY_; } 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); inline bool inStrechedDomain(const D2vector& point_coord);
double MinimumStrechedX() { return ug->MinimumX()*strechDomainX; }; double MinimumStrechedX() { return ug->MinimumX()*strechDomainX; };
double MinimumStrechedY() { return ug->MinimumY()*strechDomainY; }; double MinimumStrechedY() { return ug->MinimumY()*strechDomainY; };
......
...@@ -906,6 +906,7 @@ void VectorOfArrowsCreatorComplex::createVectorList(QVector<QPointF>& startP, QV ...@@ -906,6 +906,7 @@ void VectorOfArrowsCreatorComplex::createVectorList(QVector<QPointF>& startP, QV
double signX = 1.0; double signX = 1.0;
double signY = 1.0; double signY = 1.0;
//test NOW
if(valueUx.real() < 0.0) signX = -1.0; if(valueUx.real() < 0.0) signX = -1.0;
if(valueUy.real() < 0.0) signY = -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