Skip to content
Snippets Groups Projects
Commit 03266e84 authored by Guillaume Demesy's avatar Guillaume Demesy
Browse files

clean

parent d167050c
No related branches found
No related tags found
No related merge requests found
Pipeline #4714 passed
...@@ -383,7 +383,7 @@ Resolution { ...@@ -383,7 +383,7 @@ Resolution {
If (flag_study==RES_TMAT) If (flag_study==RES_TMAT)
{ Name res_VPWall_helmholtz_vector; { Name res_VPWall_helmholtz_vector;
System { System {
{ Name A; NameOfFormulation VPWMN_helmholtz_vector; Type ComplexValue; } { Name T; NameOfFormulation VPWMN_helmholtz_vector; Type ComplexValue; }
} }
Operation { Operation {
CreateDir[Str[myDir]]; CreateDir[Str[myDir]];
...@@ -395,15 +395,15 @@ Resolution { ...@@ -395,15 +395,15 @@ Resolution {
Evaluate[ $NE = Floor[Sqrt[$PE]] ]; Evaluate[ $NE = Floor[Sqrt[$PE]] ];
Evaluate[ $ME = $NE*($NE+1) - Floor[$PE] ]; Evaluate[ $ME = $NE*($NE+1) - Floor[$PE] ];
If (pe==1) If (pe==1)
Generate[A]; Generate[T];
Solve[A]; Solve[T];
EndIf EndIf
GenerateRHS[A]; GenerateRHS[T];
SolveAgain[A]; SolveAgain[T];
PostOperation[VPWM_postop~{pe}]; PostOperation[VPWM_postop~{pe}];
Evaluate[$isN=1]; Evaluate[$isN=1];
GenerateRHS[A]; GenerateRHS[T];
SolveAgain[A]; SolveAgain[T];
PostOperation[VPWN_postop~{pe}]; PostOperation[VPWN_postop~{pe}];
EndFor EndFor
Evaluate[Python[]{"scattering_post.py"}]; Evaluate[Python[]{"scattering_post.py"}];
...@@ -460,7 +460,7 @@ PostProcessing { ...@@ -460,7 +460,7 @@ PostProcessing {
EndIf EndIf
If (flag_study==RES_PW) If (flag_study==RES_PW)
{ Name PW_postpro ; NameOfFormulation PW_helmholtz_vector;NameOfSystem P; { Name PW_postpro ; NameOfFormulation PW_helmholtz_vector; NameOfSystem P;
Quantity { Quantity {
{ Name E_tot ; Value { Local { [{u}+Einc[]]; In All_domains; Jacobian JVol; } } } { Name E_tot ; Value { Local { [{u}+Einc[]]; In All_domains; Jacobian JVol; } } }
{ Name E_scat ; Value { Local { [{u}]; In All_domains; Jacobian JVol; } } } { Name E_scat ; Value { Local { [{u}]; In All_domains; Jacobian JVol; } } }
...@@ -478,10 +478,10 @@ PostProcessing { ...@@ -478,10 +478,10 @@ PostProcessing {
} }
} }
EndIf EndIf
If (flag_study==RES_TMAT) If (flag_study==RES_TMAT)
For pe In {1:p_max} For pe In {1:p_max}
// { Name VPWM_postpro~{pe}; NameOfFormulation VPWM_helmholtz_vector~{pe};NameOfSystem M~{pe}; { Name VPWM_postpro~{pe}; NameOfFormulation VPWMN_helmholtz_vector; NameOfSystem T;
{ Name VPWM_postpro~{pe}; NameOfFormulation VPWMN_helmholtz_vector; NameOfSystem A;
Quantity { Quantity {
{ Name E_scat ; Value { Local { [{u}]; In All_domains; Jacobian JVol; } } } { Name E_scat ; Value { Local { [{u}]; In All_domains; Jacobian JVol; } } }
{ Name E_scat_sph ; Value { Local { [Vector[ { Name E_scat_sph ; Value { Local { [Vector[
...@@ -493,13 +493,12 @@ PostProcessing { ...@@ -493,13 +493,12 @@ PostProcessing {
{ Name H_scat ; Value { Local { [siwt*I[]/(mur[]*mu0*omega0)*{Curl u}]; In All_domains; Jacobian JVol; } } } { Name H_scat ; Value { Local { [siwt*I[]/(mur[]*mu0*omega0)*{Curl u}]; In All_domains; Jacobian JVol; } } }
{ Name Mnm_source~{pe} ; Value { Local { [ Mnm_source~{pe}[] ]; In All_domains; Jacobian JVol; } } } { Name Mnm_source~{pe} ; Value { Local { [ Mnm_source~{pe}[] ]; In All_domains; Jacobian JVol; } } }
For po In {1:p_max} For po In {1:p_max}
{ Name a~{pe}~{po} ; Value { Integral { [ (Cart2Sph[XYZ[]]*{u})*(Cart2Sph[XYZ[]]*Conj[Mnm_out~{pe}[]])]; In SurfInt; Integration Int_1 ; Jacobian JSur; } } } { Name a~{pe}~{po} ; Value { Integral { [ {u}*Conj[Mnm_out~{pe}[]] ]; In SurfInt; Integration Int_1 ; Jacobian JSur; } } }
{ Name norma~{pe}~{po} ; Value { Integral { [(Cart2Sph[XYZ[]]*Mnm_out~{pe}[])*(Cart2Sph[XYZ[]]*Conj[Mnm_out~{pe}[]])]; In SurfInt; Integration Int_1 ; Jacobian JSur; } } } { Name norma~{pe}~{po} ; Value { Integral { [ Mnm_out~{pe}[]*Conj[Mnm_out~{pe}[]] ]; In SurfInt; Integration Int_1 ; Jacobian JSur; } } }
EndFor EndFor
} }
} }
// { Name VPWN_postpro~{pe}; NameOfFormulation VPWN_helmholtz_vector~{pe};NameOfSystem N~{pe}; { Name VPWN_postpro~{pe}; NameOfFormulation VPWMN_helmholtz_vector; NameOfSystem T;
{ Name VPWN_postpro~{pe}; NameOfFormulation VPWN_helmholtz_vector~{pe};NameOfSystem A;
Quantity { Quantity {
{ Name E_scat ; Value { Local { [{u}]; In All_domains; Jacobian JVol; } } } { Name E_scat ; Value { Local { [{u}]; In All_domains; Jacobian JVol; } } }
{ Name E_scat_sph ; Value { Local { [Vector[ { Name E_scat_sph ; Value { Local { [Vector[
...@@ -514,6 +513,7 @@ PostProcessing { ...@@ -514,6 +513,7 @@ PostProcessing {
} }
EndFor EndFor
EndIf EndIf
If (flag_study==RES_GREEN) If (flag_study==RES_GREEN)
For ncomp In {0:2} For ncomp In {0:2}
{ Name GreenAll_postpro~{ncomp}; NameOfFormulation GreenAll_helmholtz_vector~{ncomp};NameOfSystem M~{ncomp}; { Name GreenAll_postpro~{ncomp}; NameOfFormulation GreenAll_helmholtz_vector~{ncomp};NameOfSystem M~{ncomp};
...@@ -565,6 +565,7 @@ PostOperation { ...@@ -565,6 +565,7 @@ PostOperation {
} }
} }
EndIf EndIf
If (flag_study==RES_PW) If (flag_study==RES_PW)
{Name PW_postop; NameOfPostProcessing PW_postpro ; {Name PW_postop; NameOfPostProcessing PW_postpro ;
Operation { Operation {
...@@ -585,6 +586,7 @@ PostOperation { ...@@ -585,6 +586,7 @@ PostOperation {
} }
} }
EndIf EndIf
If (flag_study==RES_TMAT) If (flag_study==RES_TMAT)
For pe In {1:p_max} For pe In {1:p_max}
{Name VPWM_postop~{pe}; NameOfPostProcessing VPWM_postpro~{pe} ; {Name VPWM_postop~{pe}; NameOfPostProcessing VPWM_postpro~{pe} ;
...@@ -627,6 +629,7 @@ PostOperation { ...@@ -627,6 +629,7 @@ PostOperation {
} }
EndFor EndFor
EndIf EndIf
If (flag_study==RES_GREEN) If (flag_study==RES_GREEN)
For ncomp In {0:2} For ncomp In {0:2}
{Name GreenAll_postop~{ncomp}; NameOfPostProcessing GreenAll_postpro~{ncomp} ; {Name GreenAll_postop~{ncomp}; NameOfPostProcessing GreenAll_postpro~{ncomp} ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment