⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elesta_v.pro

📁 cfd求解器使用与gmsh网格的求解
💻 PRO
字号:
/* -------------------------------------------------------------------   File "EleSta_v.pro"   Electrostatics - Electric scalar potential v formulation   -------------------------------------------------------------------    I N P U T   ---------   Global Groups :  (Extension '_Ele' is for Electric problem)   -------------   Domain_Ele               Whole electric domain (not used)   DomainCC_Ele             Nonconducting regions   DomainC_Ele              Conducting regions (not used)   Function :   --------   epsr[]                   Relative permittivity   Constraint :   ----------   ElectricScalarPotential  Fixed electric scalar potential                            (classical boundary condition)   Physical constants :   ------------------                                               */   eps0 = 8.854187818e-12;Group {  DefineGroup[ Domain_Ele, DomainCC_Ele, DomainC_Ele ];}Function {  DefineFunction[ epsr ];}FunctionSpace {  { Name Hgrad_v_Ele; Type Form0;    BasisFunction {      // v = v  s   ,  for all nodes      //      n  n      { Name sn; NameOfCoef vn; Function BF_Node;        Support DomainCC_Ele; Entity NodesOf[ All ]; }    }    Constraint {      { NameOfCoef vn; EntityType NodesOf;         NameOfConstraint ElectricScalarPotential; }    }  }}Formulation {  { Name Electrostatics_v; Type FemEquation;    Quantity {      { Name v; Type Local; NameOfSpace Hgrad_v_Ele; }    }    Equation {      Galerkin { [ epsr[] * Dof{d v} , {d v} ]; In DomainCC_Ele;                  Jacobian Vol; Integration GradGrad; }    }  }}Resolution {  { Name EleSta_v;    System {      { Name Sys_Ele; NameOfFormulation Electrostatics_v; }    }    Operation {       Generate[Sys_Ele]; Solve[Sys_Ele]; SaveSolution[Sys_Ele];    }  }}PostProcessing {  { Name EleSta_v; NameOfFormulation Electrostatics_v;    Quantity {      { Name v;         Value {           Local { [ {v} ]; In DomainCC_Ele; Jacobian Vol; }         }      }      { Name e;         Value {           Local { [ -{d v} ]; In DomainCC_Ele; Jacobian Vol; }        }      }      { Name d;         Value {           Local { [ -eps0*epsr[] * {d v} ]; In DomainCC_Ele;                                              Jacobian Vol; }         }       }    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -