MCPcopy Create free account
hub / github.com/NanoComp/meep / set_conductivity

Method set_conductivity

src/structure.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void structure::set_conductivity(component c, material_function &C) {
426 if (!gv.has_field(c)) return;
427 double tstart = wall_time();
428 changing_chunks();
429 for (int i = 0; i < num_chunks; i++)
430 if (chunks[i]->is_mine()) chunks[i]->set_conductivity(c, C);
431 all_wait(); // sync so that timing results are accurate
432 if (verbosity > 0) master_printf("time for set_conductivity = %g s\n", wall_time() - tstart);
433}
434
435void structure::set_conductivity(component c, double Cfunc(const vec &)) {
436 simple_material_function conductivity(Cfunc);

Callers 2

check_pml1dFunction · 0.80
check_pml2dFunction · 0.80

Calls 15

wall_timeFunction · 0.85
all_waitFunction · 0.85
master_printfFunction · 0.85
is_electricFunction · 0.85
is_magneticFunction · 0.85
is_DFunction · 0.85
is_BFunction · 0.85
abortFunction · 0.85
component_directionFunction · 0.85
direction_componentFunction · 0.85
has_fieldMethod · 0.80
surroundingsMethod · 0.80

Tested by

no test coverage detected