Nektar++
Functions | Variables
FilterPython_Function Namespace Reference

Functions

def filter_initialise (fields, time)
 
def filter_update (fields, time)
 
def filter_finalise (fields, time)
 

Variables

 field = Field([], force_output=True)
 
int output_num = 0
 
 output_vtk = None
 

Function Documentation

◆ filter_finalise()

def FilterPython_Function.filter_finalise (   fields,
  time 
)

Definition at line 31 of file FilterPython_Function.py.

31def filter_finalise(fields, time):
32 # print out for testing!
33 sys.stdout.write("FilterPython_Function: %d\n" % output_num)
34 sys.stdout.flush()
def filter_finalise(fields, time)

◆ filter_initialise()

def FilterPython_Function.filter_initialise (   fields,
  time 
)

Definition at line 8 of file FilterPython_Function.py.

8def filter_initialise(fields, time):
9 # Generally this is bad form but we're doing this for proof of concept!!
10 global field, output_vtk
11
12 field.SetupFromExpList(fields)
13 output_vtk = OutputModule.Create("vtu", field, outfile="output_0.vtu")
14
def filter_initialise(fields, time)

◆ filter_update()

def FilterPython_Function.filter_update (   fields,
  time 
)

Definition at line 15 of file FilterPython_Function.py.

15def filter_update(fields, time):
16 global field, output_num, output_vtk
17
18 output_num += 1
19 if output_num % 10 != 0:
20 return
21
22 field.SetupFromExpList(fields)
23
24 output_vtk.RegisterConfig("outfile", "output_%03d.vtu" % (output_num / 10, ))
25 output_vtk.Run()
26
27 # now here you could e.g. extract a slice using VTK and then dump it out
28 # to a file instead of dumping whole file, or do whatever postprocessing
29 # you would like to
30
def filter_update(fields, time)

Variable Documentation

◆ field

FilterPython_Function.field = Field([], force_output=True)

Definition at line 4 of file FilterPython_Function.py.

Referenced by Nektar::MultiRegions::LocTraceToTraceMap.AddLocTracesToField(), Nektar::MultiRegions::LocTraceToTraceMap.AddTraceCoeffsToFieldCoeffs(), Nektar::MultiRegions::ExpList.AddTraceQuadPhysToField(), Nektar::MultiRegions::ExpList.AddTraceQuadPhysToOffDiag(), Nektar::VariableConverter.ApplyC0Smooth(), Nektar::SolverUtils::MMFSystem.CartesianToMovingframes(), Nektar::SolverUtils::EquationSystem.Checkpoint_Output(), ModuleRegisterHelper.create(), Nektar::SolverUtils::CouplingCwipi.create(), Nektar::SolverUtils::CouplingFile.create(), EquationSystemWrap< T >.Default_v_EvaluateExactSolution(), EquationSystemWrap< T >.Default_v_L2Error(), EquationSystemWrap< T >.Default_v_LinfError(), Diffusion.Diffusion(), Diffusion.DoImplicitSolve(), EquationSystem_GetFunction2(), Nektar::SolverUtils::EquationSystem.ErrorExtraPoints(), Nektar::SolverUtils::EquationSystem.EvaluateExactSolution(), Nektar::CompressibleFlowSystem.EvaluateIsentropicVortex(), Diffusion.ExactSolution(), ExpandComposites(), ExpandEdges(), ExpandElmts(), Nektar::MultiRegions::ExpList.ExtractDataToCoeffs(), Nektar::MultiRegions::LocTraceToTraceMap.FwdLocTracesFromField(), GenerateMapEidsv1v2(), Nektar::CompressibleFlowSystem.GetExactRinglebFlow(), Nektar::SolverUtils::EquationSystem.GetFunction(), Nektar::MultiRegions::ExpList.GetFwdBwdTracePhys(), Nektar::MultiRegions::DisContField.GetFwdBwdTracePhys(), Nektar::FieldUtils::ProcessMapping.GetMapping(), Nektar::VariableConverter.GetSensor(), Nektar::LibUtilities::FieldIOHdf5.ImportFieldDef(), Nektar::MMFSWE.IsolatedMountainFlow(), Nektar::SolverUtils::FilterModalEnergy.L2Error(), Nektar::SolverUtils::EquationSystem.L2Error(), Nektar::SolverUtils::EquationSystem.LinfError(), Nektar::MultiRegions::LocTraceToTraceMap.LocTracesFromField(), main(), Nektar::SolverUtils::DriverArnoldi.MaskInit(), Nektar::MetricNoWarning.MetricNoWarning(), Nektar::MetricRegex.MetricRegex(), Module_Create(), Nektar::MMFDiffusion.Morphogenesis(), Nektar::SolverUtils::ALEHelper.MoveMesh(), Nektar::SpatialDomains::MeshGraphIOXml.ReadComposites(), Nektar::SolverUtils::Coupling.Receive(), Nektar::SolverUtils::CouplingCwipi.ReceiveCwipi(), Nektar::MMFSWE.RossbyWave(), Nektar::SolverUtils::Coupling.Send(), SessionFunction_Init(), Nektar::SpatialDomains::MeshGraph.SetExpansionInfo(), Nektar::MultiRegions::ExpList.SmoothField(), Nektar::MMFSWE.SteadyZonalFlow(), Nektar::MMFMaxwell.TestMaxwell1D(), Nektar::MMFMaxwell.TestMaxwell2DPEC(), Nektar::MMFMaxwell.TestMaxwell2DPMC(), Nektar::MMFMaxwell.TestMaxwellSphere(), Nektar::MMFSWE.TestSWE2Dproblem(), Diffusion.TimeIntegrate(), TurnOffEdges(), Nektar::MMFSWE.UnstableJetFlow(), Nektar::MMFSWE.UnsteadyZonalFlow(), Nektar::LinearisedAdvection.UpdateGradBase(), Nektar::MultiRegions::DisContField.v_AddTraceQuadPhysToField(), Nektar::SolverUtils::EquationSystem.v_EvaluateExactSolution(), Nektar::MMFDiffusion.v_EvaluateExactSolution(), Nektar::MMFMaxwell.v_EvaluateExactSolution(), Nektar::MMFSWE.v_EvaluateExactSolution(), Nektar::CompressibleFlowSystem.v_EvaluateExactSolution(), EquationSystemWrap< T >.v_EvaluateExactSolution(), Nektar::MultiRegions::ExpList.v_ExtractDataToCoeffs(), Nektar::MultiRegions::ExpListHomogeneous1D.v_ExtractDataToCoeffs(), Nektar::MultiRegions::ExpListHomogeneous2D.v_ExtractDataToCoeffs(), Nektar::MetricNoWarning.v_Generate(), Nektar::MetricRegex.v_Generate(), Nektar::MultiRegions::DisContField.v_GetFwdBwdTracePhys(), EquationSystemWrap< T >.v_L2Error(), Nektar::MMFSWE.v_L2Error(), Nektar::SolverUtils::EquationSystem.v_L2Error(), Nektar::PulseWaveSystem.v_L2Error(), EquationSystemWrap< T >.v_LinfError(), Nektar::MMFSWE.v_LinfError(), Nektar::SolverUtils::EquationSystem.v_LinfError(), Nektar::PulseWaveSystem.v_LinfError(), Nektar::SpatialDomains::MeshGraphIOXml.v_ReadCurves(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed.v_ReadCurves(), Nektar::SpatialDomains::MeshGraphIOXml.v_ReadEdges(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed.v_ReadEdges(), Nektar::SpatialDomains::MeshGraphIOXml.v_ReadElements1D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed.v_ReadElements1D(), Nektar::SpatialDomains::MeshGraphIOXml.v_ReadElements2D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed.v_ReadElements2D(), Nektar::SpatialDomains::MeshGraphIOXml.v_ReadElements3D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed.v_ReadElements3D(), Nektar::SpatialDomains::MeshGraphIOXml.v_ReadFaces(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed.v_ReadFaces(), Nektar::SolverUtils::CouplingCwipi.v_Receive(), Nektar::SolverUtils::CouplingFile.v_Receive(), Nektar::SolverUtils::CouplingCwipi.v_Send(), Nektar::SolverUtils::CouplingFile.v_Send(), Nektar::MultiRegions::ContField.v_SmoothField(), Nektar::MultiRegions::ContField3DHomogeneous1D.v_SmoothField(), Nektar::SolverUtils::EquationSystem.WriteFld(), and Diffusion.WriteSolution().

◆ output_num

int FilterPython_Function.output_num = 0

Definition at line 5 of file FilterPython_Function.py.

◆ output_vtk

FilterPython_Function.output_vtk = None

Definition at line 6 of file FilterPython_Function.py.