CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

how to set a fixed value at a volume

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2022, 05:13
Smile how to set a fixed value at a volume
  #1
New Member
 
young4of
Join Date: Nov 2021
Posts: 29
Rep Power: 5
Youngxl is on a distinguished road
Dear all,
I want to set the initial value in a volume area and then it doesn't change over time.
My first thought was to use setFields, but it sets the field values that change as the simulation progresses, as in the dambreak example.
I hope you could give me some suggestions that how to implement it.
Thank you for reading!
All the best.
Youngxl is offline   Reply With Quote

Old   May 24, 2022, 11:23
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
setFields lets you set "initial" condition. If this is a solution field (i.e. something the solver is solving for) then the internal field will change with time: this is the nature of a boundary value problem. If you already know the internal field, then there is no need to solve the problem.

What field are you referring to?
bigphil is offline   Reply With Quote

Old   June 3, 2022, 11:56
Default
  #3
New Member
 
young4of
Join Date: Nov 2021
Posts: 29
Rep Power: 5
Youngxl is on a distinguished road
Hi Philip,

It's a field that the solver is going to solve for, like the stress field, which has an initial high stress in a small part of a rock block, and it hardly changes during the compression of the rock block, so I want to fix its value, and the surrounding stress field becomes larger as the pressure increases, and eventually it coincides with the high stress field.

I don't know if my expression is helpful to understand.
Youngxl is offline   Reply With Quote

Old   June 3, 2022, 12:20
Default
  #4
New Member
 
young4of
Join Date: Nov 2021
Posts: 29
Rep Power: 5
Youngxl is on a distinguished road
Quote:
Originally Posted by Youngxl View Post
Hi Philip,

It's a field that the solver is going to solve for, like the stress field, which has an initial high stress in a small part of a rock block, and it hardly changes during the compression of the rock block, so I want to fix its value, and the surrounding stress field becomes larger as the pressure increases, and eventually it coincides with the high stress field.

I don't know if my expression is helpful to understand.
Oh, I remember an example, this example is a research topic that I did but didn't do before, about the setting of the phase field of the pre-crack, I was hoping that it could be represented by the formula in the figure, but I don't know how to set it in solids4Foam.
Attached Images
File Type: jpg pfm.JPG (21.8 KB, 16 views)
Youngxl is offline   Reply With Quote

Old   June 7, 2022, 07:53
Default
  #5
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Yang,

To be honest, I am still confused as to what you would like to do... :O

The solids4foam solid solvers all solve for displacement (or increment of displacement) and maybe pressure too, not stress. Stress is calculated from the displacement field (and from pressure too if that is independent). So there is no way to "fix" the stress field. Unless, maybe you are referring to an initial/residual stress field that gets added to calculated stress. If so, you can provide a "sigma0" field in the 0 directory when using some mechanical laws, e.g. linearElastic.
bigphil is offline   Reply With Quote

Reply

Tags
fixed values, setfields, volume cell zone


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::printStack(Foam::Ostream&) in compressibleInterFoam JM27 OpenFOAM Running, Solving & CFD 2 May 26, 2020 09:13
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 05:37
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 03:20.