MCPcopy Create free account

hub / github.com/Litianyu141/Finite-Volume-Graph-Network / functions

Functions256 in github.com/Litianyu141/Finite-Volume-Graph-Network

↓ 12 callersFunctioncalc_symmetry_pos
(x1,y1),(x2,y2)是两点式确定的直线,(x3,y3)是需要被计算的顶点
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1921
↓ 9 callersMethodlog
log index value couple for specific item into csv file / tensorboard :item: string describing item (e.g. "training_loss","test_loss")
FVGN-src/main/utils/Logger.py:85
↓ 6 callersFunctionbuild_mlp
( in_size, hidden_size, out_size, drop_out=True, lay_norm=True, dropout_prob=0.2,
FVGN-src/main/FVGN_model/EncoderProcesserDecoder.py:12
↓ 6 callersMethodstep
(self, epoch=None, metrics=None)
FVGN-src/main/utils/scheduler.py:124
↓ 6 callersFunctionwhether_corner
which can determine whether a vertex is a corner vertex in rectangular domain
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1958
↓ 5 callersMethodget
(self, idx)
FVGN-src/main/dataset/Load_mesh.py:467
↓ 5 callersFunctionloss_function
(x)
FVGN-src/main/dataset/Load_mesh.py:1260
↓ 4 callersMethod__init__
( self, edge_input_size=128, cell_input_size=128, hidden_size=128, nn_act="SiLU" )
FVGN-src/main/FVGN_model/EncoderProcesserDecoder.py:53
↓ 4 callersMethod_set_status
(self, is_training=False)
FVGN-src/main/dataset/Load_mesh.py:404
↓ 4 callersMethodchain_dot_product
(self, a, b, keepdim=True)
FVGN-src/main/FVGN_model/EncoderProcesserDecoder.py:334
↓ 4 callersMethodload_mesh_to_cpu
(self, mode="tf", split="train", dataset_dir=None)
FVGN-src/main/dataset/Load_mesh.py:700
↓ 3 callersMethod__init__
(self)
FVGN-src/main/utils/scheduler.py:240
↓ 3 callersMethod_make_mlp
Builds an MLP.
MGN-src/main/meshgraphnets/core_model.py:113
↓ 3 callersMethod_mean
Returns accumulated mean
FVGN-src/main/utils/normalization.py:69
↓ 3 callersMethod_mean
(self)
MGN-src/main/meshgraphnets/normalization.py:66
↓ 3 callersMethodchain_flux_dot_product
Compute the dot product in a chained manner for tensor 'a' with varying even dimensions and tensor 'b' with 2 dimensions. Pa
FVGN-src/main/FVGN_model/EncoderProcesserDecoder.py:339
↓ 3 callersFunctiondecompose_and_trans_node_attr_to_cell_attr_graph
( graph, has_changed_node_attr_to_cell_attr )
FVGN-src/main/utils/utilities.py:19
↓ 3 callersFunctionget_hyperparam
(params)
FVGN-src/main/utils/get_param.py:146
↓ 3 callersMethodload_checkpoint
( self, optimizer=None, scheduler=None, ckpdir=None, device=None,
FVGN-src/main/FVGN_model/FVGN.py:328
↓ 3 callersMethodload_state_dict
Loads the schedulers state.
FVGN-src/main/utils/scheduler.py:229
↓ 3 callersMethodplot
plot item metrics :item: item :log: logarithmic scale. Default: False :smoothing: smoothing of metric. Default: 0.025
FVGN-src/main/utils/Logger.py:133
↓ 3 callersFunctionprocess_dataset
(dataset, writers, data_index_start)
FVGN-src/main/Extract_mesh/parse_comsol.py:485
↓ 3 callersFunctionreorder_face
(mesh_pos,edges,plot=False)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:1051
↓ 3 callersMethodrequire_minibatch_mesh
( self, start_epoch=None, batch_index: list = None, is_training=False,
FVGN-src/main/dataset/Load_mesh.py:762
↓ 3 callersFunctionserialize_example
(record, mode="airfoil")
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:275
↓ 3 callersFunctionserialize_example
(record,mode='airfoil')
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:356
↓ 3 callersMethodstate_dict
Returns the state of the scheduler as a dictionary.
FVGN-src/main/utils/scheduler.py:219
↓ 2 callersMethod__init__
( self, params=None, is_traning=True, device=None, transform=None,
FVGN-src/main/dataset/Load_mesh.py:354
↓ 2 callersMethod_build_graph
(self, minibatch_data, graph_indices)
FVGN-src/main/dataset/Load_mesh.py:589
↓ 2 callersMethod_build_graph
Builds input graph.
MGN-src/main/meshgraphnets/cfd_model.py:43
↓ 2 callersMethod_build_graph
Builds input graph.
MGN-src/main/meshgraphnets/cloth_model.py:41
↓ 2 callersMethod_set_dataset
state= simple/complex/full
FVGN-src/main/dataset/Load_mesh.py:410
↓ 2 callersMethod_std
Returns accumulated standard deviation
FVGN-src/main/utils/normalization.py:77
↓ 2 callersMethod_std_with_epsilon
(self)
MGN-src/main/meshgraphnets/normalization.py:70
↓ 2 callersFunctionanalyze_value
(value)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:974
↓ 2 callersMethodcreate_next_graph
( graph_old, graph_edge, mask_face_boundary, cell_next_UV, cell_type,
FVGN-src/main/dataset/Load_mesh.py:1077
↓ 2 callersFunctionextract_mesh_state
( dataset, tf_writer, index, origin_writer=None, solving_params=None, h5_writer=None,
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:419
↓ 2 callersFunctionextract_mesh_state
(dataset,writer,index,origin_writer=None,mode='cylinder_mesh')
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:458
↓ 2 callersMethodinverse
Unnormalizes input data
FVGN-src/main/utils/normalization.py:47
↓ 2 callersMethodinverse
Inverse transformation of the normalizer.
MGN-src/main/meshgraphnets/normalization.py:51
↓ 2 callersMethodload_state
loads state of model and optimizer :model: model to load (if list: load multiple models) :optimizer: optimizer to load (if li
FVGN-src/main/utils/Logger.py:230
↓ 2 callersMethodopenreadtxt
(self, file_name, mesh_reading=False, data_reading=False)
FVGN-src/main/Extract_mesh/parse_comsol.py:55
↓ 2 callersMethodread_index
(self, input, start)
FVGN-src/main/Extract_mesh/parse_comsol.py:146
↓ 2 callersFunctionseprate_cells
(mesh_pos,cells,node_type,density,pressure,velocity,index)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:889
↓ 2 callersFunctionstastic_nodeface_type
(frame)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:117
↓ 2 callersFunctiontriangles_to_faces
Computes mesh edges from triangles.
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1412
↓ 2 callersMethodupdate_cell_attr
( self, frames, one_hot: int, types: torch.Tensor, accumulation=True,
FVGN-src/main/FVGN_model/FVGN.py:83
↓ 2 callersMethodupdate_edge_attr
( self, edge_attr, one_hot: int, types: torch.Tensor, accumulation=Tru
FVGN-src/main/FVGN_model/FVGN.py:110
↓ 2 callersMethodvalid_datapreprocessing
( self, graph_node, graph_edge, graph_cell, cell_noise, dual_edge=False )
FVGN-src/main/dataset/Load_mesh.py:904
↓ 2 callersFunctionwrite_tecplotzone
( filename="FVGN.dat", datasets=None, time_step_length=100, has_cell_centered=False, )
FVGN-src/main/utils/write_tec.py:179
↓ 2 callersFunctionwrite_tfrecord_one
(tfrecord_path,records,mode)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:418
↓ 1 callersMethod__init__
(self, custom_func=None, dual_edge=False)
FVGN-src/main/FVGN_model/GN_blocks.py:10
↓ 1 callersMethod__init__
(self, model_fn, dual_edge, name="GraphNetBlock")
MGN-src/main/meshgraphnets/core_model.py:33
↓ 1 callersMethod_accumulate
Accumulates statistics for mean/standard deviation computation
FVGN-src/main/utils/normalization.py:56
↓ 1 callersMethod_accumulate
Function to perform the accumulation of the batch_data statistics.
MGN-src/main/meshgraphnets/normalization.py:55
↓ 1 callersMethod_decoder
Decodes node features from graph.
MGN-src/main/meshgraphnets/core_model.py:131
↓ 1 callersMethod_encoder
Encodes node and edge features into latent features.
MGN-src/main/meshgraphnets/core_model.py:121
↓ 1 callersFunction_rollout
Rolls out a model trajectory.
MGN-src/main/meshgraphnets/cloth_eval.py:24
↓ 1 callersFunction_rollout
Rolls out a model trajectory.
MGN-src/main/meshgraphnets/cfd_eval.py:24
↓ 1 callersMethod_update
Integrate model outputs.
MGN-src/main/meshgraphnets/cfd_model.py:98
↓ 1 callersMethod_update
Integrate model outputs.
MGN-src/main/meshgraphnets/cloth_model.py:93
↓ 1 callersMethod_update_edge_features
Aggregrates node features, and applies edge function.
MGN-src/main/meshgraphnets/core_model.py:38
↓ 1 callersMethod_update_node_features
Aggregrates edge features, and applies node function.
MGN-src/main/meshgraphnets/core_model.py:46
↓ 1 callersFunctioncal_mean_u_and_cd
(trajectory,path)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1045
↓ 1 callersFunctioncal_relonyds_number
prepare data for cal_relonyds_number
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:767
↓ 1 callersMethodcal_relonyds_number
prepare data for cal_relonyds_number
FVGN-src/main/dataset/Load_mesh.py:100
↓ 1 callersFunctioncolorbar
(mappable)
FVGN-src/main/rollout.py:320
↓ 1 callersFunctioncompute_FVM_loss
( params=None, graph_cell=None, graph_edge=None, mask_face_interior=None, predicted_edge_a
FVGN-src/main/utils/loss_compute.py:24
↓ 1 callersFunctioncopy_geometric_data
return a copy of torch_geometric.data.data.Data This function should be carefully used based on which keys in a given graph.
FVGN-src/main/utils/utilities.py:58
↓ 1 callersMethodcudacopy
(self, data)
FVGN-src/main/dataset/Load_mesh.py:1117
↓ 1 callersFunctiondividing_line
(index, x)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:110
↓ 1 callersFunctiondividing_line
(index,x)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:238
↓ 1 callersFunctionevaluator
Run a model rollout trajectory.
MGN-src/main/run_model.py:153
↓ 1 callersFunctionextract_cylinder_boundary
(graph_node: Data, graph_edge: Data, graph_cell: Data)
FVGN-src/main/rollout.py:65
↓ 1 callersFunctionextract_cylinder_boundary
(mesh)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:799
↓ 1 callersMethodextract_mesh
(self, plot, data_index=None, path=None)
FVGN-src/main/Extract_mesh/parse_comsol.py:192
↓ 1 callersFunctionextract_relonyds_number
prepare data for cal_relonyds_number
FVGN-src/main/rollout.py:175
↓ 1 callersFunctionextract_relonyds_number
prepare data for cal_relonyds_number
FVGN-src/main/dataset/Load_mesh.py:1172
↓ 1 callersFunctionformatnp
Generate appropriate format string for numpy array Argument: - data: a list of numpy array
FVGN-src/main/utils/write_tec.py:110
↓ 1 callersFunctionformatnp_c
Generate appropriate format string for numpy array Argument: - data: a list of numpy array
FVGN-src/main/utils/write_tec.py:131
↓ 1 callersFunctionformatnp_f
Generate appropriate format string for numpy array Argument: - data: a list of numpy array
FVGN-src/main/utils/write_tec.py:150
↓ 1 callersMethodget_noise
(self, graph_list)
FVGN-src/main/dataset/Load_mesh.py:1127
↓ 1 callersMethodget_variable
(self)
FVGN-src/main/utils/scheduler.py:131
↓ 1 callersFunctionlearner
Run a learner job.
MGN-src/main/run_model.py:107
↓ 1 callersFunctionload_dataset
Load dataset.
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:98
↓ 1 callersFunctionload_dataset
Load dataset.
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:227
↓ 1 callersMethodload_logger
copy older tensorboard logger to new dir :datetime: date and time from run to load (if None: take latest folder)
FVGN-src/main/utils/Logger.py:320
↓ 1 callersMethodloss
L2 loss on velocity.
MGN-src/main/meshgraphnets/cfd_model.py:72
↓ 1 callersFunctionmain
()
FVGN-src/main/validate.py:156
↓ 1 callersFunctionparse_node_center_to_cell_center
(traj_data,rollout_index,uv_MSE,plot_boundary_p_time_step=None,save_tec=False,plot_boundary=False,traj_idx=Non
MGN-src/main/run_model.py:290
↓ 1 callersFunctionparse_origin_dataset
(dataset,unorder=False,index_num=0,plot=None,writer=None)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:1491
↓ 1 callersFunctionpickle_save
(path, data)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:202
↓ 1 callersFunctionplot_edge_direction
(mesh_pos, edges)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1378
↓ 1 callersFunctionplot_edge_direction
(mesh_pos,edges)
MGN-src/main/meshgraphnets/parse_tfrecord_refactor.py:1077
↓ 1 callersMethodrandbool
Returns 50% channce of True of False
FVGN-src/main/dataset/Load_mesh.py:442
↓ 1 callersMethodread_mesh_pos
(self, input, start, end)
FVGN-src/main/Extract_mesh/parse_comsol.py:131
↓ 1 callersFunctionrecover_ghosted_2_fore_mesh
( ghosted_domain, mode="cylinder_mesh", unorder=False, limit=None, index=None, fig=Non
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:2455
↓ 1 callersFunctionrenum_data
(dataset, unorder=True, index=0, plot=None)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1550
↓ 1 callersFunctionreorder_face
(mesh_pos, edges, plot=False)
FVGN-src/main/Extract_mesh/parse_tfrecord_refactor.py:1343
↓ 1 callersFunctionrollout
( model, datasets, batch_index=[], result_dir=None, rollout_start_step=None, rollout_t
FVGN-src/main/rollout.py:229
next →1–100 of 256, ranked by callers