Chi-Tech
material_property_isotropic_mg_src.h
Go to the documentation of this file.
1#ifndef CHI_PHYSICS_PROPERTY_ISOTROPIC_MG_SRC_H
2#define CHI_PHYSICS_PROPERTY_ISOTROPIC_MG_SRC_H
3
5
6namespace chi_physics
7{
8
9//###################################################################
10/** Basic thermal conductivity material property.*/
12{
13public:
14 std::vector<double> source_value_g_;
15
18
19 void PushLuaTable(lua_State* L) const override
20 {
21 lua_newtable(L);
22 lua_pushstring(L,"is_empty");
23 lua_pushboolean(L,false);
24 lua_settable(L,-3);
25
26 lua_pushstring(L,"G");
27 lua_pushnumber(L, source_value_g_.size());
28 lua_settable(L,-3);
29
30 lua_pushstring(L,"source_value_g");
31 lua_newtable(L);
32 int g=0;
33 for (auto val : source_value_g_)
34 {
35 ++g;
36 lua_pushnumber(L,g);
37 lua_pushnumber(L,val);
38 lua_settable(L,-3);
39 }
40 lua_settable(L,-3);
41 }
42};
43
44}
45
46#endif //CHI_PHYSICS_PROPERTY_ISOTROPIC_MG_SRC_H