|
[Sponsors] |
May 19, 2022, 05:13 |
how to set a fixed value at a volume
|
#1 |
New Member
young4of
Join Date: Nov 2021
Posts: 29
Rep Power: 5 |
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. |
|
May 24, 2022, 11:23 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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? |
|
June 3, 2022, 11:56 |
|
#3 |
New Member
young4of
Join Date: Nov 2021
Posts: 29
Rep Power: 5 |
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. |
|
June 3, 2022, 12:20 |
|
#4 | |
New Member
young4of
Join Date: Nov 2021
Posts: 29
Rep Power: 5 |
Quote:
|
||
June 7, 2022, 07:53 |
|
#5 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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. |
|
Tags |
fixed values, setfields, volume cell zone |
|
|
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 |