Search found 177 matches
- 15 Sep 2020, 23:11
- Forum: General
- Topic: total node number considered for solver
- Replies: 2
- Views: 2151
total node number considered for solver
Here is another riddle: If Body 1 and Body 2 are different with a mesh encompassing both but the Solver1 is only to be executed on Body 1: ...... Body 1 Target Bodies(1) = 1 Name = "Body 1" Equation = 1 Material = 1 End Equation 1 Name = "whatever" Active Solvers(1) = 1 End Body ...
- 15 Sep 2020, 22:27
- Forum: General
- Topic: export variable in .sif or .f90 ?
- Replies: 3
- Views: 2778
export variable in .sif or .f90 ?
Good afternoon Running the following .sif .... Solver 1 Equation = "mu" Variable = "none" Variable DOFs = 1 Exported Variable 1 = mu Procedure = "flnm" "GetMu" ...... where GetMu is given by SUBROUTINE GetMu( Model,Solver,dt,TransientSimulation ) USE DefUtils ...
- 15 Sep 2020, 22:01
- Forum: General
- Topic: Constant names in matc expressions
- Replies: 3
- Views: 2925
Re: Constant names in matc expressions
Actually Charge Density = elfield was a typo in my thread. In the code, I had written Charge Density = Variable elfield and Print *, "voltage is ", GetVarName( Solver % Variable) will display elfield the same thing happens, if instead of the above, I write Charge Density = Variable "e...
- 11 Sep 2020, 18:38
- Forum: General
- Topic: Constant names in matc expressions
- Replies: 3
- Views: 2925
Constant names in matc expressions
Hi to all Here is the following excerpt of my .sif file Constants Unit Charge = 1.602e-19 End $q = 1.602e-19 Body Force 1 Name = "BodyForce 1" Charge Density = elfield Real MATC "1.602e-19*tx" End Solver 1 Equation = "Poisson" Variable = "Potential" Variable D...
- 04 Sep 2020, 22:03
- Forum: General
- Topic: Creating and passing variables
- Replies: 3
- Views: 3055
Re: Creating and passing variables
All that flexibility is great ! But I should have first read the programmer's tutorial before starting this thread. After all, for those who did not write the ElmerSolver code, it is still unclear how the information contained in the .sif file is structured when transferred to variables in memory to...
- 03 Sep 2020, 21:24
- Forum: General
- Topic: Creating and passing variables
- Replies: 3
- Views: 3055
Creating and passing variables
Good afternoon Elmer community I have dozens of questions on this topic whether I use standard solvers or designing new ones amd whether I deal with global variables or field variables. I cannot find the answers to them in the elmer solver manual. I am not sure how to start this thread but I will gi...
- 02 Sep 2020, 06:58
- Forum: ElmerSolver
- Topic: adding plasma source term to continuity equation
- Replies: 6
- Views: 2975
Re: adding plasma source term to continuity equation
It had already occurred to me some weeks ago that one could transform d/dt (rho) + div(rho*V) = 0 using any equation of state f(rho, pressure, temperature) = 0 and some juggling with Leibnitz's rule of differentiation to a continuity equation that would involve pressure and temperature instead of rh...
- 01 Sep 2020, 04:30
- Forum: ElmerSolver
- Topic: adding plasma source term to continuity equation
- Replies: 6
- Views: 2975
Re: adding plasma source term to continuity equation
If one looks at a standard reference text like Compressible Flows by Anderson and more specifically at chapter 6 entitled Differential Conservation Equations for Inviscid Flows the mass , momentum and energy equations can be written in conservation (flow variable) form or equivalently in non-conserv...
- 21 Aug 2020, 23:26
- Forum: ElmerSolver
- Topic: adding plasma source term to continuity equation
- Replies: 6
- Views: 2975
Re: adding plasma source term to continuity equation
Sounds very reasonable to me. But what it is the meaning of the following in subroutine NavierStokesCompose ? ! The relative change in temperature is the source term ! for continuity equation. !------------------------------------------------------ IF ( Compressible .AND. Cmodel==PerfectGas1 ) THEN ...
- 20 Aug 2020, 06:38
- Forum: ElmerSolver
- Topic: adding plasma source term to continuity equation
- Replies: 6
- Views: 2975
adding plasma source term to continuity equation
Hello again the continuity equation is d/dt (rho) + div (rho* velocity) = 0 but because of a plasma model, I have to replace the RHS ( 0 as shown above) by a field variable ( call it S for source) I am only guessing that this code would have to reside in file NavierStokes.F90 fairly close to the end...