noether.modeling.models.aerodynamics¶
Classes¶
Transformer config extended with aerodynamic data specifications. |
|
Transolver config extended with aerodynamic data specifications. |
|
Aerodynamic Transformer wrapper. |
|
Aerodynamic Transolver wrapper. |
|
Aerodynamic UPT wrapper. |
|
Aerodynamic Anchored-Branched UPT wrapper. |
Module Contents¶
- class noether.modeling.models.aerodynamics.AeroTransformerConfig(/, **data)¶
Bases:
noether.core.schemas.models.TransformerConfigTransformer config extended with aerodynamic data specifications.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- data_specs: noether.core.schemas.dataset.AeroDataSpecs¶
- class noether.modeling.models.aerodynamics.AeroTransolverConfig(/, **data)¶
Bases:
noether.core.schemas.models.TransolverConfigTransolver config extended with aerodynamic data specifications.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- data_specs: noether.core.schemas.dataset.AeroDataSpecs¶
- class noether.modeling.models.aerodynamics.AeroTransformer(model_config, **kwargs)¶
Bases:
noether.core.models.ModelAerodynamic Transformer wrapper.
End-to-end forward for aero CFD: positional encoding, optional RoPE, optional physics features, surface/volume bias, Transformer backbone, output projection, and output gathering.
Base class for single models, i.e. one model with one optimizer as opposed to CompositeModel.
- Parameters:
model_config (AeroTransformerConfig) – Model configuration. See
ModelBaseConfigfor available options.update_counter – The
UpdateCounterprovided to the optimizer.is_frozen – If true, will set requires_grad of all parameters to false. Will also put the model into eval mode (e.g., to put Dropout or BatchNorm into eval mode).
path_provider –
PathProviderused by the initializer to store or retrieve checkpoints.data_container –
DataContainerwhich includes the data and dataloader. This is currently unused but helpful for quick prototyping only, evaluating forward in debug mode, etc.
- data_specs¶
- use_rope¶
- pos_embed¶
- surface_bias¶
- volume_bias¶
- use_physics_features¶
- backbone¶
- norm¶
- out¶
- forward(surface_position, volume_position, surface_features=None, volume_features=None)¶
- Parameters:
surface_position (torch.Tensor)
volume_position (torch.Tensor)
surface_features (torch.Tensor | None)
volume_features (torch.Tensor | None)
- Return type:
- class noether.modeling.models.aerodynamics.AeroTransolver(model_config, **kwargs)¶
Bases:
noether.core.models.ModelAerodynamic Transolver wrapper.
Like
AeroTransformerbut adds the Transolver-specific learnable placeholder parameter.Base class for single models, i.e. one model with one optimizer as opposed to CompositeModel.
- Parameters:
model_config (AeroTransolverConfig) – Model configuration. See
ModelBaseConfigfor available options.update_counter – The
UpdateCounterprovided to the optimizer.is_frozen – If true, will set requires_grad of all parameters to false. Will also put the model into eval mode (e.g., to put Dropout or BatchNorm into eval mode).
path_provider –
PathProviderused by the initializer to store or retrieve checkpoints.data_container –
DataContainerwhich includes the data and dataloader. This is currently unused but helpful for quick prototyping only, evaluating forward in debug mode, etc.
- data_specs¶
- pos_embed¶
- surface_bias¶
- volume_bias¶
- use_physics_features¶
- placeholder¶
- backbone¶
- norm¶
- out¶
- forward(surface_position, volume_position, surface_features=None, volume_features=None)¶
- Parameters:
surface_position (torch.Tensor)
volume_position (torch.Tensor)
surface_features (torch.Tensor | None)
volume_features (torch.Tensor | None)
- Return type:
- class noether.modeling.models.aerodynamics.AeroUPT(model_config, **kwargs)¶
Bases:
noether.core.models.ModelAerodynamic UPT wrapper.
Combines separate surface/volume query positions into the single
query_positionthat the core UPT expects, and splits outputs usingAeroDataSpecs.Base class for single models, i.e. one model with one optimizer as opposed to CompositeModel.
- Parameters:
model_config (noether.core.schemas.models.UPTConfig) – Model configuration. See
ModelBaseConfigfor available options.update_counter – The
UpdateCounterprovided to the optimizer.is_frozen – If true, will set requires_grad of all parameters to false. Will also put the model into eval mode (e.g., to put Dropout or BatchNorm into eval mode).
path_provider –
PathProviderused by the initializer to store or retrieve checkpoints.data_container –
DataContainerwhich includes the data and dataloader. This is currently unused but helpful for quick prototyping only, evaluating forward in debug mode, etc.
- backbone¶
- data_specs¶
- forward(surface_position_batch_idx, surface_position_supernode_idx, surface_position, surface_query_position, volume_query_position)¶
- Parameters:
surface_position_batch_idx (torch.Tensor)
surface_position_supernode_idx (torch.Tensor)
surface_position (torch.Tensor)
surface_query_position (torch.Tensor)
volume_query_position (torch.Tensor)
- Return type:
- class noether.modeling.models.aerodynamics.AeroABUPT(model_config, **kwargs)¶
Bases:
noether.core.models.ModelAerodynamic Anchored-Branched UPT wrapper.
Bridges the factory’s
(config, **kwargs)instantiation pattern to the core model.Base class for single models, i.e. one model with one optimizer as opposed to CompositeModel.
- Parameters:
model_config (noether.core.schemas.models.AnchorBranchedUPTConfig) – Model configuration. See
ModelBaseConfigfor available options.update_counter – The
UpdateCounterprovided to the optimizer.is_frozen – If true, will set requires_grad of all parameters to false. Will also put the model into eval mode (e.g., to put Dropout or BatchNorm into eval mode).
path_provider –
PathProviderused by the initializer to store or retrieve checkpoints.data_container –
DataContainerwhich includes the data and dataloader. This is currently unused but helpful for quick prototyping only, evaluating forward in debug mode, etc.
- backbone¶
- forward(**kwargs)¶
- Return type: