Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add easy way to control the Pressure BCs from the Pressure action #29602

Open
5 tasks done
GiudGiud opened this issue Dec 22, 2024 Discussed in #29078 · 0 comments
Open
5 tasks done

Add easy way to control the Pressure BCs from the Pressure action #29602

GiudGiud opened this issue Dec 22, 2024 Discussed in #29078 · 0 comments
Assignees
Labels
C: Framework T: task An enhancement to the software.

Comments

@GiudGiud
Copy link
Contributor

Reason

See discussion. It's not easy to figure out how to control objects created by actions
Well, unless you know about the ControlOutput (which I did not...)

Design

Add and forward the control parameters from the action to the objects

Impact

easier to use controls

Discussed in #29078

Originally posted by PEI0214 November 14, 2024

Check these boxes if you have followed the posting rules.

  • Q&A General is the most appropriate section for my question
  • I have consulted the posting Guidelines on the Discussions front page
  • I have searched the Discussions forum and my question has not been asked before
  • I have searched the MOOSE website and the documentation does not answer my question
  • I have formatted my post following the posting guidelines (screenshots as a last resort, triple back quotes around pasted text)

Question

Hello,
I'm using Pressure boundary conditions. When I tried to control the start time of 'Pressure BC' using the Controls module. It has the following error:

The following error occurred in the Control 'c1' of type TimePeriod.

The desired parameter 'BCs::Pressure::load1/enable' was not located for the 'c1' object, it either does not exist or has not been declared as controllable.

The Settings of BCs and Controls are as follows:

# ===== Boundary Conditions =====
[BCs]
  [archor_x]
    type = DirichletBC
    boundary = '3'
    variable = disp_x
    value = 0
  []

  [archor_y]
    type = DirichletBC
    boundary = '3'
    variable = disp_y
    value = 0
  []

  [archor_z]
    type = DirichletBC
    boundary = '3'
    variable = disp_z
    value = 0
  []

  [Pressure]
    [load1]
      boundary = '4'
      function = '-1e6'
      displacements = 'disp_x disp_y disp_z'
    []
  []
[]

[Controls]
  [c1]
    type = TimePeriod
    enable_objects = 'BCs::Pressure::load1'
    start_time = '400'
  []
[]

Is there a good way to control the start time of Pressure boundary conditions?

@GiudGiud GiudGiud added C: Framework T: task An enhancement to the software. labels Dec 22, 2024
@GiudGiud GiudGiud self-assigned this Dec 22, 2024
GiudGiud added a commit to GiudGiud/moose that referenced this issue Dec 23, 2024
GiudGiud added a commit to GiudGiud/moose that referenced this issue Dec 23, 2024
GiudGiud added a commit to GiudGiud/moose that referenced this issue Dec 23, 2024
GiudGiud added a commit to GiudGiud/moose that referenced this issue Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework T: task An enhancement to the software.
Projects
None yet
Development

No branches or pull requests

1 participant